summaryrefslogtreecommitdiff
path: root/net/ngrep
diff options
context:
space:
mode:
Diffstat (limited to 'net/ngrep')
-rw-r--r--net/ngrep/Makefile10
-rw-r--r--net/ngrep/files/patch5-configure (renamed from net/ngrep/files/patch-configure)0
-rw-r--r--net/ngrep/files/patch5-ngrep (renamed from net/ngrep/files/patch-ngrep.c)0
3 files changed, 8 insertions, 2 deletions
diff --git a/net/ngrep/Makefile b/net/ngrep/Makefile
index 76dce8229a2c..110c346b55d2 100644
--- a/net/ngrep/Makefile
+++ b/net/ngrep/Makefile
@@ -8,7 +8,7 @@
PORTNAME= ngrep
PORTVERSION= 1.40.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -24,6 +24,12 @@ MAN8= ngrep.8
PORTDOCS= BUGS CHANGES README README.pcre USAGE
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500000
+EXTRA_PATCHES= ${PATCHDIR}/patch5-configure ${PATCHDIR}/patch5-ngrep
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@@ -32,4 +38,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net/ngrep/files/patch-configure b/net/ngrep/files/patch5-configure
index 7e1d18edb8ec..7e1d18edb8ec 100644
--- a/net/ngrep/files/patch-configure
+++ b/net/ngrep/files/patch5-configure
diff --git a/net/ngrep/files/patch-ngrep.c b/net/ngrep/files/patch5-ngrep
index 44c4a094ee01..44c4a094ee01 100644
--- a/net/ngrep/files/patch-ngrep.c
+++ b/net/ngrep/files/patch5-ngrep