mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
866f166217
A message to delete the _flowd user/group after deinstallation is already printed by USERS/GROUPS. No need to print it twice.
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= flowd
|
|
PORTVERSION= 0.9.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://mindrot.org/files/flowd/
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Small, fast, and secure NetFlow collector
|
|
|
|
LICENSE= MIT BSD2CLAUSE BSD3CLAUSE
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= gmake shebangfix
|
|
SHEBANG_FILES= tools/*.pl
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --localstatedir=/var
|
|
USE_RC_SUBR= flowd
|
|
PORTDOCS= README INSTALL
|
|
|
|
FLOWD_USER= _flowd
|
|
|
|
USERS= ${FLOWD_USER}
|
|
GROUPS= ${FLOWD_USER}
|
|
|
|
OPTIONS_DEFINE= PERL PYTHON DOCS EXAMPLES
|
|
OPTIONS_DEFAULT=PERL
|
|
OPTIONS_SUB= yes
|
|
|
|
PERL_DESC= Install flowd perl module
|
|
PERL_USES= perl5
|
|
PYTHON_DESC= Install flowd Python support
|
|
PYTHON_USES= python:2.7
|
|
PYTHON_PLIST_SUB= PYTHON_VER=${PYTHON_VER}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s;%%FLOWD_USER%%;${FLOWD_USER};g" \
|
|
${WRKSRC}/flowd.h
|
|
|
|
post-build-PERL-on:
|
|
(cd ${WRKSRC}/Flowd-perl && ${PERL} Makefile.PL \
|
|
INSTALLSITEMAN3DIR=${PERL5_MAN3} \
|
|
DESTDIR=${STAGEDIR} PREFIX=${PREFIX} && \
|
|
${MAKE_CMD})
|
|
|
|
post-build-PYTHON-on:
|
|
( cd ${WRKSRC} && ${PYTHON_CMD} setup.py build )
|
|
|
|
pre-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
pre-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
( cd ${WRKSRC}/tools && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} )
|
|
|
|
pre-install-PERL-on:
|
|
( cd ${WRKSRC}/Flowd-perl && ${MAKE_CMD} install )
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Flowd/Flowd.so
|
|
|
|
pre-install-PYTHON-on:
|
|
( cd ${WRKSRC} && ${PYTHON_CMD} setup.py install --root "${STAGEDIR}" )
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/flowd.so
|
|
|
|
.include <bsd.port.mk>
|