Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2014 07:46:05 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361509 - head/security/ipfwcount
Message-ID:  <201407110746.s6B7k5aW015095@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Jul 11 07:46:05 2014
New Revision: 361509
URL: http://svnweb.freebsd.org/changeset/ports/361509
QAT: https://qat.redports.org/buildarchive/r361509/

Log:
  - Add staging support
  - Convert to new options framework

Modified:
  head/security/ipfwcount/Makefile

Modified: head/security/ipfwcount/Makefile
==============================================================================
--- head/security/ipfwcount/Makefile	Fri Jul 11 07:32:45 2014	(r361508)
+++ head/security/ipfwcount/Makefile	Fri Jul 11 07:46:05 2014	(r361509)
@@ -8,21 +8,18 @@ CATEGORIES=	security
 MASTER_SITES=	http://deathbeforedecaf.net/misc/ports/ \
 		http://users.netleader.com.au/~rob/
 
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Summarise ipfw logs by counting and sorting the fields
 
-PLIST_FILES=	bin/ipfwcount
-MAN1=		ipfwcount.1
-
 USES=		perl5
 
-.if !defined(NOPORTDOCS)
-PLIST_DIRS=	%%EXAMPLESDIR%%
-PLIST_FILES+=	%%EXAMPLESDIR%%/100.ipfwcount
+PLIST_FILES=	bin/ipfwcount man/man1/ipfwcount.1.gz
+PORTEXAMPLES=	100.ipfwcount
+
 SUB_FILES=	pkg-message
-.endif
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	EXAMPLES
+
 post-patch:
 	${REINPLACE_CMD} -e '1s,^#![^ ]*,#!${PERL},' ${WRKSRC}/ipfwcount
 
@@ -30,16 +27,9 @@ do-build:
 	cd ${WRKSRC} && pod2man ipfwcount > ipfwcount.1
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/ipfwcount ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/ipfwcount.1 ${PREFIX}/man/man1/ipfwcount.1
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/100.ipfwcount ${EXAMPLESDIR}
-.endif
-
-post-install:
-.if !defined(NOPORTDOCS)
-	@${CAT} ${PKGMESSAGE}
-.endif
+	${INSTALL_SCRIPT} ${WRKSRC}/ipfwcount ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/ipfwcount.1 ${STAGEDIR}${PREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/100.ipfwcount ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407110746.s6B7k5aW015095>