aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-22 00:01:16 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-22 00:01:16 +0800
commit889d02773488362f93573d872cd39a22235f2ce5 (patch)
treee078102ef090762a692996e3848e4c902b1daf49 /net-mgmt
parent560eb2e53ff22787a190b7d144372a8b3f47ce95 (diff)
downloadfreebsd-ports-gnome-889d02773488362f93573d872cd39a22235f2ce5.tar.gz
freebsd-ports-gnome-889d02773488362f93573d872cd39a22235f2ce5.tar.zst
freebsd-ports-gnome-889d02773488362f93573d872cd39a22235f2ce5.zip
Support staging
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/ipaudit/Makefile24
-rw-r--r--net-mgmt/ipaudit/pkg-plist3
2 files changed, 13 insertions, 14 deletions
diff --git a/net-mgmt/ipaudit/Makefile b/net-mgmt/ipaudit/Makefile
index 7aee71bf6b24..299095e6f633 100644
--- a/net-mgmt/ipaudit/Makefile
+++ b/net-mgmt/ipaudit/Makefile
@@ -10,29 +10,25 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= IP traffic summarizer
-MAN1= ipaudit.1 ipstrings.1 total.1
+MANPAGE= ipaudit.1 ipstrings.1 total.1
BIN= ipaudit ipstrings total
MSG_FILE= ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
do-install:
-.for b in ${BIN}
- cd ${WRKSRC}/src && ${INSTALL_PROGRAM} $b ${PREFIX}/bin
+.for f in ${BIN}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
-.for m in ${MAN1}
- cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} $m ${PREFIX}/man/man1
+.for f in ${MANPAGE}
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/${f} ${STAGEDIR}${PREFIX}/man/man1
.endfor
- cd ${WRKSRC}/src && ${INSTALL_DATA} ipaudit.conf.sample ${PREFIX}/etc
-
-post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/src/ipaudit.conf.sample ${STAGEDIR}${PREFIX}/etc
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
- @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/net-mgmt/ipaudit/pkg-plist b/net-mgmt/ipaudit/pkg-plist
index 80403c68db4a..89ab399a06cb 100644
--- a/net-mgmt/ipaudit/pkg-plist
+++ b/net-mgmt/ipaudit/pkg-plist
@@ -2,5 +2,8 @@ bin/ipaudit
bin/ipstrings
bin/total
etc/ipaudit.conf.sample
+man/man1/ipaudit.1.gz
+man/man1/ipstrings.1.gz
+man/man1/total.1.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%