blob: dc5b6ba7d4664d2d6fb25c875a71ea5a1b0faefd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# New ports collection makefile for: nfsen
# Date created: 25 March 2005
# Whom: janos.mohacsi@bsd.hu
#
# $FreeBSD$
#
PORTNAME= nfsen
PORTVERSION= 1.2.2
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://nfsen.sourceforge.net/
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= Web based frontend to nfdump netflow collector
RUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/net/rrdtool \
nfdump:${PORTSDIR}/net-mgmt/nfdump
HAS_CONFIGURE= yes
USE_ICONV= yes
USE_PERL5= yes
USE_PHP= session pcre
NO_BUILD= yes
USE_REINPLACE= yes
PLIST_SUB+= PORTNAME=${PORTNAME}
.include <bsd.port.pre.mk>
pre-everything::
.if ${PERL_LEVEL} < 500600
IGNORE= requires at least perl 5.6.0
.endif
do-configure:
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' -e 's,%%PORTNAME%%,${PORTNAME},' \
${WRKSRC}/etc/nfsen-dist.conf
${REINPLACE_CMD} -e 's,%%PERL%%,${PERL},' ${WRKSRC}/install.pl
${RM} ${WRKSRC}/etc/nfsen-dist.conf.*
do-install:
${MKDIR} ${PREFIX}/var/${PORTNAME}/profiles/live
cd ${WRKSRC} ;${PERL} ${WRKSRC}/install.pl ${WRKSRC}/etc/nfsen-dist.conf
${INSTALL_SCRIPT} ${WRKSRC}/install.pl ${PREFIX}/bin/nfsen-reconfigure
@${ECHO_MSG} "Configure your ${LOCALBASE}/etc/nfsen.conf to have necessary profiles ";
@${ECHO_MSG} "Then run 'nfsen-reconfigure ${LOCALBASE}/etc/nfsen.conf' to correctly setup profile files";
.include <bsd.port.post.mk>
|