View | Details | Raw Unified | Return to bug 157051
Collapse All | Expand All

(-)pmacct/Makefile (-3 / +10 lines)
Lines 7-21 Link Here
7
7
8
PORTNAME=	pmacct
8
PORTNAME=	pmacct
9
DISTVERSION=	0.12.5
9
DISTVERSION=	0.12.5
10
PORTREVISION=	1
10
CATEGORIES=	net-mgmt
11
CATEGORIES=	net-mgmt
11
MASTER_SITES=	http://www.pmacct.net/
12
MASTER_SITES=	http://www.pmacct.net/ \
13
		http://people.rit.edu/rpsfa/
12
14
13
MAINTAINER=	rpsfa@rit.edu
15
MAINTAINER=	rpsfa@rit.edu
14
COMMENT=	Accounting and aggregation tool for IPv4 and IPv6 traffic
16
COMMENT=	Accounting and aggregation tool for IPv4 and IPv6 traffic
15
17
18
USE_RC_SUBR=	pmacctd.sh
19
SUB_FILES=	pkg-message
16
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
17
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
21
CPPFLAGS=	"-I${LOCALBASE}/include"
18
		LDFLAGS="-L${LOCALBASE}/lib"
22
LDFLAGS=	"-L${LOCALBASE}/lib"
19
23
20
OPTIONS=	MYSQL "Enable MySQL support." Off \
24
OPTIONS=	MYSQL "Enable MySQL support." Off \
21
		PGSQL "Enable PostgreSQL support." Off \
25
		PGSQL "Enable PostgreSQL support." Off \
Lines 93-97 Link Here
93
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
97
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
94
.endfor
98
.endfor
95
.endif
99
.endif
100
	@${MKDIR} ${DATADIR}
101
	${INSTALL_DATA} ${WRKSRC}/sql/* ${DATADIR}
102
	@${CAT} ${PKGMESSAGE}
96
103
97
.include <bsd.port.post.mk>
104
.include <bsd.port.post.mk>
(-)pmacct/files/pkg-message.in (+17 lines)
Line 0 Link Here
1
=========================================================================
2
Please note that this port requires configuration before it will function
3
4
Add these to /etc/rc.conf:
5
pmacctd_enable="YES"
6
pmacctd_flags="-DF %%PREFIX%%/etc/pmacctd.conf -i <interface>"
7
8
Configuration examples are located in %%EXAMPLESDIR%%.  You must copy 
9
one of these to %%PREFIX%%/etc/pmacctd.conf and make any required edits
10
for your environment.
11
12
Database-related files/information can be found in %%DATADIR%%.
13
14
Additional documentation is available at:
15
WWW: http://wiki.pmacct.net/
16
=========================================================================
17
(-)pmacct/files/pmacctd.sh.in (+36 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: pmacctd
7
# REQUIRE: NETWORKING
8
# KEYWORD: shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable pmacctd:
12
#
13
# pmacctd_enable="YES"
14
#
15
# You can define flags for pmacctd running. See pmacctd(8) for details.
16
#
17
# Example:
18
# pmacctd_flags="-Df ${PREFIX}/etc/pmacctd.conf -i em0"
19
#
20
# Default flags: -Df ${PREFIX}/etc/pmacctd.conf
21
#
22
23
. /etc/rc.subr
24
25
name=pmacctd
26
rcvar=`set_rcvar`
27
28
command=%%PREFIX%%/$name
29
30
# set defaults
31
32
pmacctd_enable=${pmacctd_enable:-"NO"}
33
pmacctd_flags=${pmacctd_flags:-"-Df %%PREFIX%%/etc/pmacctd.conf"}
34
35
load_rc_config $name
36
run_rc_command "$1"
(-)pmacct/pkg-plist (+39 lines)
Lines 5-10 Link Here
5
sbin/pmacctd
5
sbin/pmacctd
6
sbin/sfacctd
6
sbin/sfacctd
7
sbin/uacctd
7
sbin/uacctd
8
%%DATADIR%%/README.64bit
9
%%DATADIR%%/README.IPv6
10
%%DATADIR%%/README.agent_id2
11
%%DATADIR%%/README.cos
12
%%DATADIR%%/README.iface
13
%%DATADIR%%/README.is_symmetric
14
%%DATADIR%%/README.mask
15
%%DATADIR%%/README.mysql
16
%%DATADIR%%/README.pgsql
17
%%DATADIR%%/README.sqlite3
18
%%DATADIR%%/pmacct-create-db.pgsql
19
%%DATADIR%%/pmacct-create-db_bgp_v1.mysql
20
%%DATADIR%%/pmacct-create-db_v1.mysql
21
%%DATADIR%%/pmacct-create-db_v2.mysql
22
%%DATADIR%%/pmacct-create-db_v3.mysql
23
%%DATADIR%%/pmacct-create-db_v4.mysql
24
%%DATADIR%%/pmacct-create-db_v5.mysql
25
%%DATADIR%%/pmacct-create-db_v6.mysql
26
%%DATADIR%%/pmacct-create-db_v7.mysql
27
%%DATADIR%%/pmacct-create-db_v8.mysql
28
%%DATADIR%%/pmacct-create-table_bgp_v1.pgsql
29
%%DATADIR%%/pmacct-create-table_bgp_v1.sqlite3
30
%%DATADIR%%/pmacct-create-table_v1.pgsql
31
%%DATADIR%%/pmacct-create-table_v1.sqlite3
32
%%DATADIR%%/pmacct-create-table_v2.pgsql
33
%%DATADIR%%/pmacct-create-table_v2.sqlite3
34
%%DATADIR%%/pmacct-create-table_v3.pgsql
35
%%DATADIR%%/pmacct-create-table_v3.sqlite3
36
%%DATADIR%%/pmacct-create-table_v4.pgsql
37
%%DATADIR%%/pmacct-create-table_v4.sqlite3
38
%%DATADIR%%/pmacct-create-table_v5.pgsql
39
%%DATADIR%%/pmacct-create-table_v5.sqlite3
40
%%DATADIR%%/pmacct-create-table_v6.pgsql
41
%%DATADIR%%/pmacct-create-table_v6.sqlite3
42
%%DATADIR%%/pmacct-create-table_v7.pgsql
43
%%DATADIR%%/pmacct-create-table_v7.sqlite3
44
%%DATADIR%%/pmacct-create-table_v8.sqlite3
45
%%DATADIR%%/pmacct-grant-db.mysql
46
@dirrmtry %%DATADIR%%
8
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
47
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
9
%%PORTDOCS%%%%DOCSDIR%%/EXAMPLES
48
%%PORTDOCS%%%%DOCSDIR%%/EXAMPLES
10
%%PORTDOCS%%%%DOCSDIR%%/FAQS
49
%%PORTDOCS%%%%DOCSDIR%%/FAQS

Return to bug 157051