Ticket #35126: libnet11.diff

File libnet11.diff, 1.8 KB (added by suominen (Kimmo Suominen), 12 years ago)
  • libnet11/Portfile

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/libnet11/Portfile libnet11/Portfile
    old new  
    3333checksums           rmd160  b0549f639abfd21a892b73989f11b9b0716d62bc \
    3434                    sha256  d392bb5825c4b6b672fc93a0268433c86dc964e1500c279dc6d0711ea6ec467a
    3535
     36patchfiles          patch-configure.in.diff
     37
    3638post-patch {
    3739    reinplace "s|#include <net/bpf.h>||" ${worksrcpath}/src/libnet_link_bpf.c
    3840}
  • libnet11/files/patch-configure.in.diff

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/libnet11/files/patch-configure.in.diff libnet11/files/patch-configure.in.diff
    old new  
     1--- configure.in.orig   2012-03-30 00:16:23.000000000 +0300
     2+++ configure.in        2012-07-09 02:15:10.000000000 +0300
     3@@ -199,23 +199,9 @@
     4 *darwin*)
     5     AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1,
     6         [Define if the sockaddr structure includes a sa_len member.])
     7-    LIBNET_CONFIG_DEFINES="-DHAVE_SOCKADDR_SA_LEN"
     8-
     9-dnl
     10-dnl Check to see if x86
     11-dnl
     12-
     13-    case "$target" in
     14-    i?86-*-*darwin*)
     15-        AC_DEFINE(LIBNET_BSDISH_OS)
     16-        AC_DEFINE(LIBNET_BSD_BYTE_SWAP)
     17-        LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
     18-        ;;
     19-
     20-    *)
     21-        ;;
     22-
     23-    esac
     24+    AC_DEFINE(LIBNET_BSDISH_OS)
     25+    AC_DEFINE(LIBNET_BSD_BYTE_SWAP)
     26+    LIBNET_CONFIG_DEFINES="-DHAVE_SOCKADDR_SA_LEN -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
     27 
     28     ;;
     29