aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/darkstat
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/darkstat')
-rw-r--r--net-mgmt/darkstat/Makefile10
-rw-r--r--net-mgmt/darkstat/distinfo6
-rw-r--r--net-mgmt/darkstat/files/extra-patch-cap.h10
3 files changed, 21 insertions, 5 deletions
diff --git a/net-mgmt/darkstat/Makefile b/net-mgmt/darkstat/Makefile
index 2c701e11d2a..da9b5d7bccb 100644
--- a/net-mgmt/darkstat/Makefile
+++ b/net-mgmt/darkstat/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= darkstat
-PORTVERSION= 3.0.524
+PORTVERSION= 3.0.540
CATEGORIES= net-mgmt
MASTER_SITES= http://dmr.ath.cx/net/darkstat/
@@ -26,4 +26,10 @@ post-install:
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+EXTRA_PATCHES= ${PATCHDIR}/extra-*
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-mgmt/darkstat/distinfo b/net-mgmt/darkstat/distinfo
index 838faa5b315..12a0724f355 100644
--- a/net-mgmt/darkstat/distinfo
+++ b/net-mgmt/darkstat/distinfo
@@ -1,3 +1,3 @@
-MD5 (darkstat-3.0.524.tar.bz2) = f4a18ccb9c77c3d2317c1a041519a21e
-SHA256 (darkstat-3.0.524.tar.bz2) = 767b27882ff26ac041517a951c366e49c18cea92bf3d4a0e779136a5dcbe9ee2
-SIZE (darkstat-3.0.524.tar.bz2) = 74605
+MD5 (darkstat-3.0.540.tar.bz2) = 498256c667b4fa79a551ac3626a2ba86
+SHA256 (darkstat-3.0.540.tar.bz2) = 0db1b2684ea8871c587c89c3ddc4d9302f7e885ff0ec401510c42445f5a77bb4
+SIZE (darkstat-3.0.540.tar.bz2) = 75293
diff --git a/net-mgmt/darkstat/files/extra-patch-cap.h b/net-mgmt/darkstat/files/extra-patch-cap.h
new file mode 100644
index 00000000000..5368433b25c
--- /dev/null
+++ b/net-mgmt/darkstat/files/extra-patch-cap.h
@@ -0,0 +1,10 @@
+--- cap.h.orig Wed Jun 21 12:25:20 2006
++++ cap.h Wed Aug 9 15:56:25 2006
+@@ -5,6 +5,7 @@
+ */
+
+ #include <sys/types.h> /* OpenBSD needs this before select */
++#include <sys/time.h> /* FreeBSD 4 needs this for struct timeval */
+ #include <sys/select.h>
+
+ void cap_init(const char *device, const char *filter);