blob: 18411ff46fab4abb9cdcf118dc87d669f7c01b00 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: packter-agent
# Date created: 2012-09-05
# Whom: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
#
# $FreeBSD$
#
PORTNAME= packter-agent
PORTVERSION= 2.5
CATEGORIES= net
MASTER_SITES= http://www.packter.net/
DISTNAME= PackterAgent-${PORTVERSION}
MAINTAINER= masaki@club.kyutech.ac.jp
COMMENT= An agent of the tool for graphical Internet traffic visualization
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/LICENSE
GNU_CONFIGURE= yes
USE_GNOME= glib20
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README
OPTIONS_DEFINE= IPV6 PACKTERTC
PACKTERTC_DESC= Install Packter TC
OPTIONS_DEFAULT= IPV6
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if ${PORT_OPTIONS:MPACKTERTC}
USE_PERL5_RUN= yes
RUN_DEPENDS+= p5-XML-Pastor>=0:${PORTSDIR}/devel/p5-XML-Pastor
PLIST_SUB+= PACKTERTC=""
.else
PLIST_SUB+= PACKTERTC="@comment "
.endif
post-install:
.if ${PORT_OPTIONS:MPACKTERTC}
@${MKDIR} ${DATADIR}
${CP} -pr ${WRKSRC}/packter_tc ${DATADIR}/
.endif
.for f in packter.conf
@if [ ! -f ${PREFIX}/etc/${f} ]; then \
${CP} -p ${PREFIX}/etc/${f}.sample ${PREFIX}/etc/${f} ; \
fi
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|