summaryrefslogtreecommitdiff
path: root/net-mgmt/flowd/Makefile
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2009-10-15 21:26:58 +0000
committerWesley Shields <wxs@FreeBSD.org>2009-10-15 21:26:58 +0000
commit6f0142ba6acfe0c625f3eb19b42fbfb958431a0e (patch)
treed193c5baa04648527f4ee92f4e5d775d6d5c6abe /net-mgmt/flowd/Makefile
parentLet jtoolkit use an installed version of python rather than forcing a dependa... (diff)
- Fix when using WITH_PERL and WITH_PYTHON
- Make pkg-install script accept FLOWD_UID from environment PR: ports/137560 Submitted by: Mel Flynn <mel.flynn+fbsd.ports@mailing.thruhere.net> Approved by: Janos Mohacsi <mohacsi@niif.hu> (maintainer)
Notes
Notes: svn path=/head/; revision=242898
Diffstat (limited to 'net-mgmt/flowd/Makefile')
-rw-r--r--net-mgmt/flowd/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/net-mgmt/flowd/Makefile b/net-mgmt/flowd/Makefile
index 08e83ea0d92a..ba77b4eb8af0 100644
--- a/net-mgmt/flowd/Makefile
+++ b/net-mgmt/flowd/Makefile
@@ -22,13 +22,15 @@ MAN8= flowd.8 flowd-reader.8
MAN5= flowd.conf.5
PORTDOCS= README INSTALL
FLOWD_USER?= _flowd
+SCRIPTS_ENV+= FLOWD_USER="${FLOWD_USER}"
+.if defined(FLOWD_UID)
+SCRIPTS_ENV+= FLOWD_UID="${FLOWD_UID}"
+.endif
.if defined(WITH_PERL)
USE_PERL5= yes
PLIST_SUB+= WITH_PERL=""
-#MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
-#MAN3= Flowd.3
-BROKEN= Incomplete pkg-plist
+MAN3= Flowd.3
.else
PLIST_SUB+= WITH_PERL="@comment "
.endif
@@ -36,7 +38,7 @@ PLIST_SUB+= WITH_PERL="@comment "
.if defined(WITH_PYTHON)
USE_PYTHON= yes
PLIST_SUB+= WITH_PYTHON=""
-BROKEN= Incomplete pkg-plist
+INSTALLS_EGGINFO= yes
.else
PLIST_SUB+= WITH_PYTHON="@comment "
.endif
@@ -67,9 +69,10 @@ post-install:
.if defined(WITH_PERL)
cd ${WRKSRC}/Flowd-perl && \
- ${PERL} Makefile.PL && \
+ ${PERL} Makefile.PL INSTALLSITEMAN3DIR=${MAN3PREFIX}/man/man3 && \
${GMAKE} && \
- ${GMAKE} install
+ ${GMAKE} install;
+ -@${RM} -f ${SITE_PERL}/${PERL_ARCH}/perllocal.pod
.endif
.if defined(WITH_PYTHON)
@@ -78,6 +81,6 @@ post-install:
${PYTHON_CMD} setup.py install
.endif
- FLOWD_USER=${FLOWD_USER} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>