Package: nmap
Version: 5.00-2
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs a small change to configure.in/configure
in libdnet-stripped subdir, see attached patch.
It would also be nice if you can ask upstream to
integrate this change in their next release.
Thanks in advance
Petronly in patch2:
unchanged:
--- nmap-5.00.orig/libdnet-stripped/configure.in
+++ nmap-5.00/libdnet-stripped/configure.in
@@ -278,7 +278,12 @@
AC_LIBOBJ([tun-linux])
elif test "$ac_cv_header_net_if_tun_h" = yes ; then
if test "$ac_cv_header_stropts_h" = yes ; then
- AC_LIBOBJ([tun-solaris])
+ case "$host_os" in
+ *kfreebsd*)
+ AC_LIBOBJ([tun-bsd]);;
+ *)
+ AC_LIBOBJ([tun-solaris]);;
+ esac
else
AC_LIBOBJ([tun-bsd])
fi
only in patch2:
unchanged:
--- nmap-5.00.orig/libdnet-stripped/configure
+++ nmap-5.00/libdnet-stripped/configure
@@ -23153,12 +20673,22 @@
elif test "$ac_cv_header_net_if_tun_h" = yes ; then
if test "$ac_cv_header_stropts_h" = yes ; then
- case " $LIBOBJS " in
+ case "$host_os" in
+ *kfreebsd*)
+ case " $LIBOBJS " in
+ *" tun-bsd.$ac_objext "* ) ;;
+ *) LIBOBJS="$LIBOBJS tun-bsd.$ac_objext"
+ ;;
+esac
+;;
+ *)
+ case " $LIBOBJS " in
*" tun-solaris.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS tun-solaris.$ac_objext"
;;
esac
-
+;;
+ esac
else
case " $LIBOBJS " in
*" tun-bsd.$ac_objext "* ) ;;