diff -urN db2-2.7.7.0/debian/control db2-2.7.7.0-freebsd/debian/control
--- db2-2.7.7.0/debian/control	Tue Feb 12 18:53:08 2002
+++ db2-2.7.7.0-freebsd/debian/control	Tue Feb 12 18:49:59 2002
@@ -63,7 +63,7 @@
 Architecture: any
 Section: devel
 Priority: extra
-Depends: libc-dev, libdb2-dev (=${Source-Version}), ${shlibs:Depends}
+Depends: libc-dev | freebsd-libc4-dev, libdb2-dev (=${Source-Version}), ${shlibs:Depends}
 Conflicts: lib-bdb2-dbg, libc6-bin, lib-bdb2++, libdb2++-dbg, lib-bdb2++-dbg
 Replaces: libdb2.6-dbg, lib-bdb2-dbg, libc6-bin, libdb2.6++-dbg, lib-bdb2++-dbg, libdb2++-dbg
 Suggests: gdb
diff -urN db2-2.7.7.0/debian/patches/012_freebsd_fixes.diff db2-2.7.7.0-freebsd/debian/patches/012_freebsd_fixes.diff
--- db2-2.7.7.0/debian/patches/012_freebsd_fixes.diff	Thu Jan  1 00:00:00 1970
+++ db2-2.7.7.0-freebsd/debian/patches/012_freebsd_fixes.diff	Tue Feb 12 18:45:47 2002
@@ -0,0 +1,28 @@
+--- ../../db2/compat.h	Tue Feb 12 18:30:05 2002
++++ ../../db2/compat.h	Tue Feb 12 18:30:19 2002
+@@ -7,10 +7,12 @@
+ # define EFTYPE EINVAL
+ #endif
+ 
++#if !defined (__FreeBSD__) && !defined (__NetBSD__)
+ /* Emulate Solaris llseek().  */
+ typedef loff_t offset_t;
+ 
+ extern int llseek (int fd, loff_t offset, int whence);
++#endif
+ 
+ #define weak_alias(original, alias) \
+ 	asm (".weak " #alias "\n" #alias " = " #original);
+--- ../../db2/config.h	Fri Aug 17 02:15:49 2001
++++ ../../db2.new/config.h	Tue Feb 12 18:42:55 2002
+@@ -30,8 +30,10 @@
+ /* Define if you have the ANSI C header files.  */
+ #define STDC_HEADERS 1
+ 
++#if !defined (__FreeBSD__) && !defined (__NetBSD__)
+ /* Say we have endian.h.  */
+ #define HAVE_ENDIAN_H	1
++#endif
+ 
+ /* Define to `int' if <sys/types.h> doesn't define.  */
+ /* #undef ssize_t */
diff -urN db2-2.7.7.0/debian/rules db2-2.7.7.0-freebsd/debian/rules
--- db2-2.7.7.0/debian/rules	Tue Feb 12 18:53:08 2002
+++ db2-2.7.7.0-freebsd/debian/rules	Thu Jan 24 22:51:37 2002
@@ -15,7 +15,7 @@
 
 export DH_COMPAT=2
 
-config_options := --prefix=/usr --enable-cxx --enable-compat185 --enable-dump185
+config_options := --prefix=/usr --enable-cxx
 
 build: $(STAMP_DIR)/build
 $(STAMP_DIR)/build: $(STAMP_DIR)/configure
@@ -69,13 +69,6 @@
 		> debian/db2-doc/usr/share/doc/db2-doc/README.thread
 	TERM=vt100 COLUMNS=80 lynx -dump $(BUILD_TREE)/docs/ref/env/region.html \
 		> debian/db2-doc/usr/share/doc/db2-doc/README.nfs
-	ps2ascii $(BUILD_TREE)/docs/packages/hash_usenix.ps > \
-		debian/db2-doc/usr/share/doc/db2-doc/hash_usenix.txt
-	ps2ascii $(BUILD_TREE)/docs/packages/libtp_usenix.ps > \
-		debian/db2-doc/usr/share/doc/db2-doc/libtp_usenix.txt
-	install -d -m755 debian/db2-doc/usr/share/doc/db2-doc/html
-	cp -ap $(BUILD_TREE)/docs/* \
-		debian/db2-doc/usr/share/doc/db2-doc/html
 	find debian/db2-doc -name tags -type l | xargs rm -f
 	dh_installdocs -i
 	dh_installdeb -i
@@ -89,8 +82,6 @@
 	dh_testdir
 	dh_testroot
 	dh_installchangelogs -a debian/local/ChangeLog
-	dh_installman -plibdb2-util debian/local/db_*.1
-	ln -s db_dump.1.gz debian/libdb2-util/usr/share/man/man1/db_dump185.1.gz
 	dh_installdocs -a
 	dh_undocumented -a
 	dh_installdeb -a
