From 1c525aed4cca62dc099dac21c7820f1636adc310 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Tue, 11 Nov 2003 22:58:01 +0000 Subject: [PATCH] Unbreak build on -stable while keep it buildable on -current. Noticed by: quite a lot of people. --- net/ngrep/Makefile | 10 ++++++++-- net/ngrep/files/{patch-configure => patch5-configure} | 0 net/ngrep/files/{patch-ngrep.c => patch5-ngrep} | 0 3 files changed, 8 insertions(+), 2 deletions(-) rename net/ngrep/files/{patch-configure => patch5-configure} (100%) rename net/ngrep/files/{patch-ngrep.c => patch5-ngrep} (100%) 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 + +.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 +.include diff --git a/net/ngrep/files/patch-configure b/net/ngrep/files/patch5-configure similarity index 100% rename from net/ngrep/files/patch-configure rename to net/ngrep/files/patch5-configure diff --git a/net/ngrep/files/patch-ngrep.c b/net/ngrep/files/patch5-ngrep similarity index 100% rename from net/ngrep/files/patch-ngrep.c rename to net/ngrep/files/patch5-ngrep