Lines 1-8
Link Here
|
1 |
# Created by: Kirill Ponomarew <ponomarew@oberon.net> |
1 |
# Created by: Kirill Ponomarew <ponomarew@oberon.net> |
2 |
|
2 |
|
3 |
PORTNAME= pmacct |
3 |
PORTNAME= pmacct |
4 |
DISTVERSION= 1.7.5 |
4 |
DISTVERSION= 1.7.7 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= net-mgmt |
5 |
CATEGORIES= net-mgmt |
7 |
MASTER_SITES= http://www.pmacct.net/ |
6 |
MASTER_SITES= http://www.pmacct.net/ |
8 |
|
7 |
|
Lines 11-23
COMMENT= Accounting and aggregation tool for IPv4 and IPv6 traffic
Link Here
|
11 |
|
10 |
|
12 |
LICENSE= GPLv2 |
11 |
LICENSE= GPLv2 |
13 |
|
12 |
|
14 |
USES= libtool pkgconfig localbase |
13 |
USES= libtool pkgconfig localbase autoreconf |
15 |
USE_RC_SUBR= pmacctd nfacctd sfacctd |
14 |
USE_RC_SUBR= pmacctd nfacctd sfacctd |
16 |
SUB_FILES= pkg-message |
15 |
SUB_FILES= pkg-message |
17 |
GNU_CONFIGURE= yes |
16 |
GNU_CONFIGURE= yes |
18 |
|
17 |
|
19 |
OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 LAYER2 DEBUG GEOIP2 \ |
18 |
OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 LAYER2 DEBUG GEOIP2 \ |
20 |
DOCS PLABEL RABBITMQ REDIS KAFKA AVRO EXAMPLES |
19 |
DOCS RABBITMQ REDIS KAFKA AVRO EXAMPLES |
21 |
OPTIONS_DEFAULT=LAYER2 |
20 |
OPTIONS_DEFAULT=LAYER2 |
22 |
OPTIONS_SUB= yes |
21 |
OPTIONS_SUB= yes |
23 |
|
22 |
|
Lines 25-31
AVRO_DESC= Enable avro support
Link Here
|
25 |
GEOIP2_DESC= Enable GeoIPv2 (libmaxminddb) support |
24 |
GEOIP2_DESC= Enable GeoIPv2 (libmaxminddb) support |
26 |
KAFKA_DESC= Enable Kafka support |
25 |
KAFKA_DESC= Enable Kafka support |
27 |
LAYER2_DESC= Enable Layer-2 support: MAC addresses and VLANs |
26 |
LAYER2_DESC= Enable Layer-2 support: MAC addresses and VLANs |
28 |
PLABEL_DESC= Enable IP prefix labels |
|
|
29 |
RABBITMQ_DESC= Enable RabbitMQ/AMQP support |
27 |
RABBITMQ_DESC= Enable RabbitMQ/AMQP support |
30 |
REDIS_DESC= Enable Redis support |
28 |
REDIS_DESC= Enable Redis support |
31 |
SQLITE3_DESC= Enable SQLite3 support |
29 |
SQLITE3_DESC= Enable SQLite3 support |
Lines 46-52
SQLITE3_CONFIGURE_ENABLE= sqlite3
Link Here
|
46 |
SQLITE3_VARS= SQLDOC="" |
44 |
SQLITE3_VARS= SQLDOC="" |
47 |
|
45 |
|
48 |
LAYER2_CONFIGURE_ENABLE= l2 |
46 |
LAYER2_CONFIGURE_ENABLE= l2 |
49 |
PLABEL_CONFIGURE_ENABLE= plabel |
|
|
50 |
DEBUG_CONFIGURE_ENABLE= debug |
47 |
DEBUG_CONFIGURE_ENABLE= debug |
51 |
|
48 |
|
52 |
RABBITMQ_LIB_DEPENDS= librabbitmq.so:net/rabbitmq-c-devel |
49 |
RABBITMQ_LIB_DEPENDS= librabbitmq.so:net/rabbitmq-c-devel |
Lines 73-81
LIB_DEPENDS+= libjansson.so:devel/jansson
Link Here
|
73 |
CONFIGURE_ARGS+=--enable-jansson |
70 |
CONFIGURE_ARGS+=--enable-jansson |
74 |
.endif |
71 |
.endif |
75 |
|
72 |
|
76 |
post-patch: |
|
|
77 |
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure |
78 |
|
79 |
post-install: |
73 |
post-install: |
80 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
74 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
81 |
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) |
75 |
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) |