Ticket #25322: libpcap-1.1.1.diff
File libpcap-1.1.1.diff, 4.2 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
files/patch-Makefile.in
1 --- Makefile.in.orig 2009-08-11 10:03:06.000000000 -07002 +++ Makefile.in 2009-08-11 10:03:52.000000000 -07003 @@ -52,6 +52,7 @@4 DAGLIBS = @DAGLIBS@5 DEPLIBS = @DEPLIBS@6 DYEXT = @DYEXT@7 +LDFLAGS = @LDFLAGS@8 PROG=libpcap9 10 # Standard CFLAGS11 @@ -339,7 +340,7 @@12 #13 libpcap.dylib: $(OBJ)14 rm -f libpcap*.dylib15 - $(CC) -dynamiclib -undefined error -o libpcap.`cat $(srcdir)/VERSION`.dylib $(OBJ) \16 + $(CC) $(LDFLAGS) -dynamiclib -undefined error -o libpcap.`cat $(srcdir)/VERSION`.dylib $(OBJ) \17 -install_name $(libdir)/libpcap.A.dylib \18 -compatibility_version 1 \19 -current_version `sed 's/[^0-9.].*$$//' $(srcdir)/VERSION` -
files/patch-scanner.l.diff
1 --- scanner.l 2008-02-15 16:45:22.000000000 +01002 +++ scanner.l 20 08-02-15 16:46:11.000000000 +01003 @@ - 81,13 +81,6 @@4 B ([0-9A-Fa-f][0-9A-Fa-f]?)1 --- scanner.l.orig 2010-03-11 19:56:54.000000000 -0600 2 +++ scanner.l 2010-06-18 01:57:44.000000000 -0500 3 @@ -96,13 +96,6 @@ 4 B2 ([0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]) 5 5 W ([0-9A-Fa-f][0-9A-Fa-f]?[0-9A-Fa-f]?[0-9A-Fa-f]?) 6 6 7 7 -%a 18400 -
files/patch-pcap-bpf.c.diff
1 --- pcap-bpf.c.orig 2008-10-10 19:42:44.000000000 -07002 +++ pcap-bpf.c 2010-01-18 11:11:27.000000000 -08003 @@ -1860,7 +1860,7 @@4 * (Treating it as such doesn't fix the timeout5 * problem described below.)6 */7 - struct timeval to;8 + struct BPF_TIMEVAL to;9 to.tv_sec = p->md.timeout / 1000;10 to.tv_usec = (p->md.timeout * 1000) % 1000000;11 if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&to) < 0) { -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name libpcap 6 version 1.0.0 7 revision 1 6 version 1.1.1 8 7 categories net 9 maintainers darkart.com:opendarwin.org 8 maintainers ricci 9 license BSD 10 10 description Packet Capture library 11 11 long_description The Packet Capture library provides a high level \ 12 12 interface to packet capture systems. All packets \ … … 14 14 are accessible through this mechanism. 15 15 homepage http://www.tcpdump.org/ 16 16 platforms darwin 17 master_sites ${homepage}release/ \ 18 macports 19 checksums md5 9ad1358c5dec48456405eac197a46d3d \ 20 sha1 9893654027ae11033d785045ff35583da43fe8fa \ 21 rmd160 20857fe6af5dc70fffb19da46e0fee908f55b3ea 17 master_sites ${homepage}release/ 22 18 19 checksums md5 1bca27d206970badae248cfa471bbb47 \ 20 sha1 18581af5e78a40b7b2c9a6cd8ce40e7cb1cd9c63 \ 21 rmd160 760159c594cc995c9e05c0cd8637a02a3b2725e2 22 23 23 configure.args --enable-ipv6 24 24 25 patchfiles patch-scanner.l.diff \ 26 patch-Makefile.in \ 27 patch-pcap-bpf.c.diff 25 patchfiles patch-scanner.l.diff 28 26 29 27 use_parallel_build yes 30 28 build.target-append shared 31 29 32 30 destroot.target-append install-shared 33 31 34 platform darwin 8 { 35 patchfiles-delete patch-pcap-bpf.c.diff 32 post-destroot { 33 set docdir ${destroot}${prefix}/share/doc/${name} 34 xinstall -d ${docdir} 35 xinstall -m 644 -W ${worksrcpath} \ 36 CHANGES \ 37 CREDITS \ 38 LICENSE \ 39 README \ 40 README.macosx \ 41 TODO \ 42 ${docdir} 36 43 } 37 44 45 livecheck.type regex 46 livecheck.url [lindex ${master_sites} 0] 47 livecheck.regex ${name}-(\[0-9.\]+)\\.tar 48 38 49 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 39 50 # vi: set fenc=utf-8 filetype=tcl et sw=4 ts=4 sts=4: #