aboutsummaryrefslogtreecommitdiffstats
path: root/net/ngrep
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-11-12 06:58:01 +0800
committeredwin <edwin@FreeBSD.org>2003-11-12 06:58:01 +0800
commita9fcb8643d50e322a50044d32bfc9c2cd6c066b6 (patch)
treef969f24f5eb4cc765d8d562d77bb93cf0e3e7c66 /net/ngrep
parent7020af386572ac93fb441498e066e83a34f3fe44 (diff)
downloadfreebsd-ports-gnome-a9fcb8643d50e322a50044d32bfc9c2cd6c066b6.tar.gz
freebsd-ports-gnome-a9fcb8643d50e322a50044d32bfc9c2cd6c066b6.tar.zst
freebsd-ports-gnome-a9fcb8643d50e322a50044d32bfc9c2cd6c066b6.zip
Unbreak build on -stable while keep it buildable on -current.
Noticed by: quite a lot of people.
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