summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2011-07-17 17:10:56 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2011-07-17 17:10:56 +0000
commit60650e0882373eb30ee9c40e57849bd1211c0718 (patch)
tree00fbcf0ccac1235a7b500e53fba7be4bd6e31127 /net-mgmt
parent- Force the use of awk instead of gawk to prevent an installation issue (diff)
Fix build under clang
Add LICENSE PR: ports/158549 Submitted by: rpsfa@rit.edu (me) Approved by: wxs (mentor)
Notes
Notes: svn path=/head/; revision=277863
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/pmacct/Makefile2
-rw-r--r--net-mgmt/pmacct/files/patch-src__ll.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile
index a7985c10c6fc..6d35a7af15d3 100644
--- a/net-mgmt/pmacct/Makefile
+++ b/net-mgmt/pmacct/Makefile
@@ -15,6 +15,8 @@ MASTER_SITES= http://www.pmacct.net/ \
MAINTAINER= zi@FreeBSD.org
COMMENT= Accounting and aggregation tool for IPv4 and IPv6 traffic
+LICENSE= GPLv2
+
USE_RC_SUBR= pmacctd
SUB_FILES= pkg-message
GNU_CONFIGURE= yes
diff --git a/net-mgmt/pmacct/files/patch-src__ll.c b/net-mgmt/pmacct/files/patch-src__ll.c
new file mode 100644
index 000000000000..42c55ba28b45
--- /dev/null
+++ b/net-mgmt/pmacct/files/patch-src__ll.c
@@ -0,0 +1,11 @@
+--- ./src/ll.c.orig 2011-06-30 20:43:06.000000000 -0400
++++ ./src/ll.c 2011-06-30 20:43:45.000000000 -0400
+@@ -118,7 +118,7 @@
+
+ if (*caplen < 4) {
+ pptrs->iph_ptr = NULL;
+- return;
++ return 0;
+ }
+
+ do {