summaryrefslogtreecommitdiff
path: root/net-mgmt/flowd/Makefile
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2005-01-26 05:13:28 +0000
committerKevin Lo <kevlo@FreeBSD.org>2005-01-26 05:13:28 +0000
commit32ad3aa428a6f98baddad5a874586c5f4a6d346b (patch)
tree10f98114850ccc0b7cfe75dfe07eb33adfca1dfd /net-mgmt/flowd/Makefile
parentUpdate to 0.5.1 (diff)
- Add privilege separation user handling.
- Bump PORTREVISION PR: ports/76669 Submitted by: MAINTAINER
Notes
Notes: svn path=/head/; revision=127366
Diffstat (limited to 'net-mgmt/flowd/Makefile')
-rw-r--r--net-mgmt/flowd/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-mgmt/flowd/Makefile b/net-mgmt/flowd/Makefile
index 27e031f3b85e..b211c323a414 100644
--- a/net-mgmt/flowd/Makefile
+++ b/net-mgmt/flowd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= flowd
PORTVERSION= 0.8
+PORTREVISION= 1
CATEGORIES= net-mgmt ipv6
MASTER_SITES= http://www2.mindrot.org/files/flowd/
@@ -16,9 +17,11 @@ COMMENT= The flowd is a small, fast and secure NetFlow collector
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
USE_GMAKE= yes
+USE_REINPLACE= yes
MAN8= flowd.8 flowd-reader.8
MAN5= flowd.conf.5
PORTDOCS= README INSTALL
+FLOWD_USER?= _flowd
.if defined(WITH_PERL)
USE_PERL5= yes
@@ -50,6 +53,12 @@ pre-extract:
@${ECHO_MSG} "You can enable Python bindings by defining WITH_PYTHON."
.endif
+post-patch:
+ @${REINPLACE_CMD} -e "s;%%FLOWD_USER%%;${FLOWD_USER};g" \
+ ${PKGDEINSTALL}
+ @${REINPLACE_CMD} -e "s;%%FLOWD_USER%%;${FLOWD_USER};g" \
+ ${WRKSRC}/flowd.h
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
@@ -69,4 +78,6 @@ post-install:
${PYTHON_CMD} setup.py install
.endif
+@FLOWD_USER=${FLOWD_USER} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
.include <bsd.port.mk>