Ticket #4400: libpcap-0.9.3.diff

File libpcap-0.9.3.diff, 3.3 KB (added by mark@…, 19 years ago)

libpcap 0.9.3 update patch

  • Portfile

    diff -ruN libpcap-old/Portfile libpcap/Portfile
    old new  
    22
    33PortSystem 1.0
    44name            libpcap
    5 version         0.8.3
     5version         0.9.3
    66revision        3
    77categories      net
    88maintainers     ricci@opendarwin.org
     
    1313homepage        http://www.tcpdump.org/
    1414platforms       darwin
    1515master_sites    ${homepage}release/
    16 checksums       md5 56a9d4615d8354fcfe8cff8c8443c77b
     16checksums       md5 0ad921c881fdd3d278046afcd352a151
    1717configure.args  --mandir=${prefix}/share/man
    1818configure.env   CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H"
    1919patchfiles      patch-Makefile.in
     
    3636}
    3737
    3838platform darwin 8 {
    39         patchfiles-append patch-nametoaddr.c
     39        patchfiles-append
    4040}
  • files/patch-Makefile.in

    diff -ruN libpcap-old/files/patch-Makefile.in libpcap/files/patch-Makefile.in
    old new  
    1 --- Makefile.in.orig    Tue Jun  1 23:07:11 2004
    2 +++ Makefile.in Tue Jun  1 23:08:09 2004
    3 @@ -94,15 +94,19 @@
     1--- Makefile.in.orig    2005-08-11 22:37:20.000000000 -0700
     2+++ Makefile.in 2005-08-11 22:44:59.000000000 -0700
     3@@ -95,9 +95,9 @@ TAGHDR = \
    44 TAGFILES = \
    55        $(SRC) $(HDR) $(TAGHDR)
    66 
     
    1212 
    1313 libpcap.a: $(OBJ)
    1414        @rm -f $@
    15         ar rc $@ $(OBJ) $(LIBS)
    16         $(RANLIB) $@
     15@@ -116,11 +116,12 @@ libpcap.so: $(OBJ)
    1716 
    18 +libpcap.dylib: $(OBJ)
     17 # the following rule succeeds, but the result is untested.
     18 libpcap.dylib: $(OBJ)
     19-       rm -f libpcap*.dylib
     20-       $(CC) -dynamiclib -undefined error -o libpcap.`cat VERSION`.dylib $(OBJ) \
     21-               -install_name $(libdir)/libpcap.0.dylib -compatibility_version `cat VERSION` \
     22-               -current_version `cat VERSION`
     23-
     24+#      rm -f libpcap*.dylib
     25+#      $(CC) -dynamiclib -undefined error -o libpcap.`cat VERSION`.dylib $(OBJ) \
     26+#              -install_name $(libdir)/libpcap.0.dylib -compatibility_version `cat VERSION` \
     27+#              -current_version `cat VERSION`
    1928+       @rm -f $@
    2029+       $(CC) -dynamiclib -install_name $(DESTDIR)$(libdir)/libpcap.DP.dylib COMPAT_INFO -o $@ $(OBJ) $(LIBS)
    21 +
     30 
    2231 scanner.c: $(srcdir)/scanner.l
    2332        @rm -f $@
    24         $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
    25 @@ -156,6 +160,8 @@
    26             (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
    27         $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
    28         $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
    29 +       $(INSTALL_DATA) libpcap.dylib $(DESTDIR)$(libdir)/libpcap.DP.dylib
    30 +       (cd $(DESTDIR)$(libdir) && ln -s libpcap.DP.dylib libpcap.dylib)
    31         [ -d $(DESTDIR)$(includedir) ] || \
    32             (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir))
    33         $(INSTALL_DATA) $(srcdir)/pcap.h $(DESTDIR)$(includedir)/pcap.h
  • files/patch-nametoaddr.c

    diff -ruN libpcap-old/files/patch-nametoaddr.c libpcap/files/patch-nametoaddr.c
    old new  
    1 --- nametoaddr.c.orig   2005-04-03 08:33:42.000000000 -0400
    2 +++ nametoaddr.c        2005-04-03 08:35:24.000000000 -0400
    3 @@ -390,7 +390,7 @@
    4   * compile on one of 3.x or 4.x).
    5   */
    6  #if !defined(sgi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && \
    7 -       !defined(_UNICOSMP)
    8 +       !defined(_UNICOSMP) && !defined(__APPLE__)
    9  extern int ether_hostton(char *, struct ether_addr *);
    10  #endif
    11