2013-01-15 20:38:19 +01:00
|
|
|
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
|
2003-05-12 18:17:50 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pmacct
|
2020-08-05 16:42:27 +02:00
|
|
|
DISTVERSION= 1.7.5
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2017-03-21 20:44:42 +01:00
|
|
|
MASTER_SITES= http://www.pmacct.net/
|
2003-05-12 18:17:50 +02:00
|
|
|
|
2017-03-21 20:44:42 +01:00
|
|
|
MAINTAINER= pi@FreeBSD.org
|
2005-01-12 17:15:57 +01:00
|
|
|
COMMENT= Accounting and aggregation tool for IPv4 and IPv6 traffic
|
2003-05-12 18:17:50 +02:00
|
|
|
|
2011-07-17 19:10:56 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
USES= libtool pkgconfig localbase
|
2017-03-21 20:44:42 +01:00
|
|
|
USE_RC_SUBR= pmacctd nfacctd sfacctd
|
2011-05-15 16:08:00 +02:00
|
|
|
SUB_FILES= pkg-message
|
2005-05-27 14:57:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 LAYER2 DEBUG GEOIP2 \
|
|
|
|
DOCS PLABEL RABBITMQ REDIS KAFKA AVRO EXAMPLES
|
|
|
|
OPTIONS_DEFAULT=LAYER2
|
|
|
|
OPTIONS_SUB= 1
|
2012-08-04 05:34:36 +02:00
|
|
|
|
2017-03-21 20:44:42 +01:00
|
|
|
AVRO_DESC= Enable avro support
|
2019-01-13 21:58:36 +01:00
|
|
|
GEOIP2_DESC= Enable GeoIPv2 (libmaxminddb) support
|
2017-03-21 20:44:42 +01:00
|
|
|
KAFKA_DESC= Enable Kafka support
|
2012-08-04 05:34:36 +02:00
|
|
|
LAYER2_DESC= Enable Layer-2 support: MAC addresses and VLANs
|
2017-03-21 20:44:42 +01:00
|
|
|
PLABEL_DESC= Enable IP prefix labels
|
|
|
|
RABBITMQ_DESC= Enable RabbitMQ/AMQP support
|
2020-08-05 16:42:27 +02:00
|
|
|
REDIS_DESC= Enable Redis support
|
2017-03-21 20:44:42 +01:00
|
|
|
SQLITE3_DESC= Enable SQLite3 support
|
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
SQLDOC= "@comment "
|
2005-09-19 15:53:30 +02:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
MYSQL_USES= mysql
|
|
|
|
MYSQL_CONFIGURE_ENABLE= mysql
|
|
|
|
MYSQL_VARS+= SQLDOC=""
|
2004-01-27 16:51:34 +01:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
PGSQL_USES= pgsql
|
|
|
|
PGSQL_CONFIGURE_ENABLE= pgsql
|
|
|
|
PGSQL_VARS+= WANT_PGSQL=client
|
|
|
|
PGSQL_VARS+= SQLDOC=""
|
2003-07-02 14:04:18 +02:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
SQLITE3_USES= sqlite
|
|
|
|
SQLITE3_CONFIGURE_ENABLE= sqlite3
|
|
|
|
SQLITE3_VARS= SQLDOC=""
|
2004-07-14 21:01:15 +02:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
LAYER2_CONFIGURE_ENABLE= l2
|
|
|
|
PLABEL_CONFIGURE_ENABLE= plabel
|
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
2003-05-12 18:17:50 +02:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
RABBITMQ_VARS= LIB_DEPENDS+=librabbitmq.so:net/rabbitmq-c-devel
|
|
|
|
RABBITMQ_CONFIGURE_ENABLE= rabbitmq
|
2010-04-23 14:42:36 +02:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
REDIS_VARS= LIB_DEPENDS+=libhiredis.so:databases/hiredis
|
|
|
|
REDIS_CONFIGURE_ENABLE= redis
|
2017-03-21 20:51:33 +01:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
KAFKA_VARS= LIB_DEPENDS+=librdkafka.so:net/librdkafka
|
|
|
|
KAFKA_CONFIGURE_ENABLE== kafka
|
2010-05-17 10:50:20 +02:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
AVRO_VARS= LIB_DEPENDS+=libavro.so:devel/avro-c
|
|
|
|
AVRO_CONFIGURE_ENABLE= avro
|
2012-04-26 23:33:54 +02:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
GEOIP2_VARS= LIB_DEPENDS+=libmaxminddb.so:net/libmaxminddb
|
|
|
|
GEOIP2_CONFIGURE_ENABLE= geoipv2
|
2017-03-21 20:44:42 +01:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
PLIST_SUB+= SQLDOC=${SQLDOC}
|
2013-09-07 14:07:49 +02:00
|
|
|
|
2020-08-05 16:42:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MRABBITMQ} || ${PORT_OPTIONS:MKAFKA}
|
2017-03-21 20:44:42 +01:00
|
|
|
LIB_DEPENDS+= libjansson.so:devel/jansson
|
|
|
|
CONFIGURE_ARGS+=--enable-jansson
|
2013-09-07 14:07:49 +02:00
|
|
|
.endif
|
|
|
|
|
2015-06-11 18:34:14 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
|
|
|
|
CONFIGURE_ARGS+=--enable-64bit
|
|
|
|
.endif
|
|
|
|
|
2004-01-29 14:05:08 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure
|
2003-05-19 04:05:45 +02:00
|
|
|
|
2003-07-02 14:04:18 +02:00
|
|
|
post-install:
|
2019-06-16 20:42:05 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2017-03-21 20:44:42 +01:00
|
|
|
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
2019-06-16 20:42:05 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2020-02-22 17:51:55 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/[A-Z]* ${STAGEDIR}${DOCSDIR}
|
2019-06-07 22:02:06 +02:00
|
|
|
.for i in AUTHORS CONFIG-KEYS COPYING ChangeLog FAQS INSTALL QUICKSTART UPGRADE
|
2014-03-19 13:26:27 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2003-07-02 14:04:18 +02:00
|
|
|
.endfor
|
2019-06-08 17:03:12 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2003-05-12 18:17:50 +02:00
|
|
|
|
2005-05-27 14:57:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|