blob: ce44a2df151dd49678173f9f78b35c63380d8d46 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$
PORTNAME= pmacct
DISTVERSION= 1.7.5
CATEGORIES= net-mgmt
MASTER_SITES= http://www.pmacct.net/
MAINTAINER= pi@FreeBSD.org
COMMENT= Accounting and aggregation tool for IPv4 and IPv6 traffic
LICENSE= GPLv2
USES= libtool pkgconfig localbase
USE_RC_SUBR= pmacctd nfacctd sfacctd
SUB_FILES= pkg-message
GNU_CONFIGURE= yes
OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 LAYER2 DEBUG GEOIP2 \
DOCS PLABEL RABBITMQ REDIS KAFKA AVRO EXAMPLES
OPTIONS_DEFAULT=LAYER2
OPTIONS_SUB= 1
AVRO_DESC= Enable avro support
GEOIP2_DESC= Enable GeoIPv2 (libmaxminddb) support
KAFKA_DESC= Enable Kafka support
LAYER2_DESC= Enable Layer-2 support: MAC addresses and VLANs
PLABEL_DESC= Enable IP prefix labels
RABBITMQ_DESC= Enable RabbitMQ/AMQP support
REDIS_DESC= Enable Redis support
SQLITE3_DESC= Enable SQLite3 support
SQLDOC= "@comment "
MYSQL_USES= mysql
MYSQL_CONFIGURE_ENABLE= mysql
MYSQL_VARS+= SQLDOC=""
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ENABLE= pgsql
PGSQL_VARS+= WANT_PGSQL=client
PGSQL_VARS+= SQLDOC=""
SQLITE3_USES= sqlite
SQLITE3_CONFIGURE_ENABLE= sqlite3
SQLITE3_VARS= SQLDOC=""
LAYER2_CONFIGURE_ENABLE= l2
PLABEL_CONFIGURE_ENABLE= plabel
DEBUG_CONFIGURE_ENABLE= debug
RABBITMQ_VARS= LIB_DEPENDS+=librabbitmq.so:net/rabbitmq-c-devel
RABBITMQ_CONFIGURE_ENABLE= rabbitmq
REDIS_VARS= LIB_DEPENDS+=libhiredis.so:databases/hiredis
REDIS_CONFIGURE_ENABLE= redis
KAFKA_VARS= LIB_DEPENDS+=librdkafka.so:net/librdkafka
KAFKA_CONFIGURE_ENABLE== kafka
AVRO_VARS= LIB_DEPENDS+=libavro.so:devel/avro-c
AVRO_CONFIGURE_ENABLE= avro
GEOIP2_VARS= LIB_DEPENDS+=libmaxminddb.so:net/libmaxminddb
GEOIP2_CONFIGURE_ENABLE= geoipv2
.include <bsd.port.options.mk>
PLIST_SUB+= SQLDOC=${SQLDOC}
.if ${PORT_OPTIONS:MRABBITMQ} || ${PORT_OPTIONS:MKAFKA}
LIB_DEPENDS+= libjansson.so:devel/jansson
CONFIGURE_ARGS+=--enable-jansson
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
CONFIGURE_ARGS+=--enable-64bit
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/[A-Z]* ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS CONFIG-KEYS COPYING ChangeLog FAQS INSTALL QUICKSTART UPGRADE
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
${MKDIR} ${STAGEDIR}${DATADIR}
.include <bsd.port.post.mk>
|