diff options
author | foxfair <foxfair@FreeBSD.org> | 2003-06-16 03:14:27 +0000 |
---|---|---|
committer | foxfair <foxfair@FreeBSD.org> | 2003-06-16 03:14:27 +0000 |
commit | 0dd6692aaf19e5dc8712fdc09bd468d19ae1c73d (patch) | |
tree | 3338d23fc1cd27c9a182b267f8f33ce3ebc28540 | |
parent | cf04213c4256abf2ce2d5a5bfce422d34faf7b32 (diff) | |
download | FreeBSD-ports-0dd6692aaf19e5dc8712fdc09bd468d19ae1c73d.zip FreeBSD-ports-0dd6692aaf19e5dc8712fdc09bd468d19ae1c73d.tar.gz |
Submitted by: maintainer
Obtained from: Andrzej Tobola <san@iem.pw.edu.pl>
Fix build if NOINET6 is defined, and bump PORTREVISION to aware this.
-rw-r--r-- | security/pf/Makefile | 2 | ||||
-rw-r--r-- | security/pf/files/patch-aa | 32 |
2 files changed, 33 insertions, 1 deletions
diff --git a/security/pf/Makefile b/security/pf/Makefile index 5682525..264337e 100644 --- a/security/pf/Makefile +++ b/security/pf/Makefile @@ -7,7 +7,7 @@ PORTNAME= pf_freebsd PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security ipv6 MASTER_SITES= http://pf4freebsd.love2party.net/ .if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes") diff --git a/security/pf/files/patch-aa b/security/pf/files/patch-aa new file mode 100644 index 0000000..2472459 --- /dev/null +++ b/security/pf/files/patch-aa @@ -0,0 +1,32 @@ +--- freebsd_tcpdump/print-pflog.c.orig Fri Jun 13 18:14:50 2003 ++++ freebsd_tcpdump/print-pflog.c Fri Jun 13 18:15:39 2003 +@@ -64,7 +64,9 @@ + u_int length = h->len; + u_int caplen = h->caplen; + const struct ip *ip; ++#ifdef INET6 + const struct ip6_hdr *ip6; ++#endif + const struct pfloghdr *hdr; + u_short res; + char reason[128], *why; +@@ -129,13 +131,16 @@ + if (xflag) + default_print((const u_char *)ip, + caplen - PFLOG_HDRLEN); +- } else { ++ } ++#ifdef INET6 ++ else { + ip6 = (struct ip6_hdr *)(p + PFLOG_HDRLEN); + ip6_print((const u_char *)ip6, length); + if (xflag) + default_print((const u_char *)ip6, + caplen - PFLOG_HDRLEN); + } ++#endif + + out: + putchar('\n'); + + |