diff -ruN libpcap-old/Portfile libpcap/Portfile
old
|
new
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | name libpcap |
5 | | version 0.8.3 |
| 5 | version 0.9.3 |
6 | 6 | revision 3 |
7 | 7 | categories net |
8 | 8 | maintainers ricci@opendarwin.org |
… |
… |
|
13 | 13 | homepage http://www.tcpdump.org/ |
14 | 14 | platforms darwin |
15 | 15 | master_sites ${homepage}release/ |
16 | | checksums md5 56a9d4615d8354fcfe8cff8c8443c77b |
| 16 | checksums md5 0ad921c881fdd3d278046afcd352a151 |
17 | 17 | configure.args --mandir=${prefix}/share/man |
18 | 18 | configure.env CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H" |
19 | 19 | patchfiles patch-Makefile.in |
… |
… |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | platform darwin 8 { |
39 | | patchfiles-append patch-nametoaddr.c |
| 39 | patchfiles-append |
40 | 40 | } |
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 = \ |
4 | 4 | TAGFILES = \ |
5 | 5 | $(SRC) $(HDR) $(TAGHDR) |
6 | 6 | |
… |
… |
|
12 | 12 | |
13 | 13 | libpcap.a: $(OBJ) |
14 | 14 | @rm -f $@ |
15 | | ar rc $@ $(OBJ) $(LIBS) |
16 | | $(RANLIB) $@ |
| 15 | @@ -116,11 +116,12 @@ libpcap.so: $(OBJ) |
17 | 16 | |
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` |
19 | 28 | + @rm -f $@ |
20 | 29 | + $(CC) -dynamiclib -install_name $(DESTDIR)$(libdir)/libpcap.DP.dylib COMPAT_INFO -o $@ $(OBJ) $(LIBS) |
21 | | + |
| 30 | |
22 | 31 | scanner.c: $(srcdir)/scanner.l |
23 | 32 | @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 |
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 | | |