Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/pmacct/Makefile
# Created by: Kirill Ponomarew <ponomarew@oberon.net> | # Created by: Kirill Ponomarew <ponomarew@oberon.net> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= pmacct | PORTNAME= pmacct | ||||
DISTVERSION= 1.7.3 | DISTVERSION= 1.7.3 | ||||
CATEGORIES= net-mgmt | CATEGORIES= net-mgmt | ||||
MASTER_SITES= http://www.pmacct.net/ | MASTER_SITES= http://www.pmacct.net/ | ||||
MAINTAINER= pi@FreeBSD.org | MAINTAINER= pi@FreeBSD.org | ||||
COMMENT= Accounting and aggregation tool for IPv4 and IPv6 traffic | COMMENT= Accounting and aggregation tool for IPv4 and IPv6 traffic | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
USES= libtool | USES= libtool pkgconfig localbase | ||||
USE_RC_SUBR= pmacctd nfacctd sfacctd | USE_RC_SUBR= pmacctd nfacctd sfacctd | ||||
SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CPPFLAGS+= "-I${LOCALBASE}/include" | |||||
LDFLAGS+= "-L${LOCALBASE}/lib" | |||||
OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 THREADS LAYER2 IPV6 DEBUG GEOIP2 \ | OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 LAYER2 DEBUG GEOIP2 \ | ||||
DOCS PLABEL RABBITMQ KAFKA JANSSON AVRO EXAMPLES | DOCS PLABEL RABBITMQ KAFKA JANSSON AVRO EXAMPLES | ||||
OPTIONS_DEFAULT=MMAP LAYER2 THREADS SHARED | OPTIONS_DEFAULT=MMAP LAYER2 SHARED | ||||
AVRO_DESC= Enable avro support | AVRO_DESC= Enable avro support | ||||
GEOIP2_DESC= Enable GeoIPv2 (libmaxminddb) support | GEOIP2_DESC= Enable GeoIPv2 (libmaxminddb) support | ||||
JANSSON_DESC= Enable Jansson support | JANSSON_DESC= Enable Jansson support | ||||
KAFKA_DESC= Enable Kafka support | KAFKA_DESC= Enable Kafka support | ||||
LAYER2_DESC= Enable Layer-2 support: MAC addresses and VLANs | LAYER2_DESC= Enable Layer-2 support: MAC addresses and VLANs | ||||
# Requires libnetfilter_log port/package | # Requires libnetfilter_log port/package | ||||
# NFLOG_DESC= Enable NFLOG support | # NFLOG_DESC= Enable NFLOG support | ||||
# Requires legacy mongo-c-driver version 0.8 which is not available | # Requires legacy mongo-c-driver version 0.8 which is not available | ||||
# MONGO_DESC= Enable MongoDB support | # MONGO_DESC= Enable MongoDB support | ||||
PLABEL_DESC= Enable IP prefix labels | PLABEL_DESC= Enable IP prefix labels | ||||
RABBITMQ_DESC= Enable RabbitMQ/AMQP support | RABBITMQ_DESC= Enable RabbitMQ/AMQP support | ||||
SQLITE3_DESC= Enable SQLite3 support | SQLITE3_DESC= Enable SQLite3 support | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
SQLDOC= "@comment " | |||||
.if ${PORT_OPTIONS:MMYSQL} | .if ${PORT_OPTIONS:MMYSQL} | ||||
USES+= mysql | USES+= mysql | ||||
tcberner: why not
```MYSQL_USES=mysql
MYSQL_CONFIGURE_ENABLE=mysql``` | |||||
CONFIGURE_ARGS+=--enable-mysql | CONFIGURE_ARGS+=--enable-mysql | ||||
PLIST_SUB+= WITH_MYSQL="" | SQLDOC= "" | ||||
PLIST_SUB+= SQLDOC="" | |||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-mysql | CONFIGURE_ARGS+=--disable-mysql | ||||
PLIST_SUB+= WITH_MYSQL="@comment " | |||||
PLIST_SUB+= SQLDOC="@comment " | |||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MPGSQL} | .if ${PORT_OPTIONS:MPGSQL} | ||||
USES+= pgsql | USES+= pgsql | ||||
WANT_PGSQL= client | WANT_PGSQL= client | ||||
CONFIGURE_ARGS+=--enable-pgsql | CONFIGURE_ARGS+=--enable-pgsql | ||||
PLIST_SUB+= WITH_PGSQL="" | SQLDOC= "" | ||||
PLIST_SUB+= SQLDOC="" | |||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-pgsql | CONFIGURE_ARGS+=--disable-pgsql | ||||
PLIST_SUB+= WITH_PGSQL="@comment " | |||||
PLIST_SUB+= SQLDOC="@comment " | |||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MSQLITE3} | .if ${PORT_OPTIONS:MSQLITE3} | ||||
USES+= pkgconfig sqlite | USES+= pkgconfig sqlite | ||||
CONFIGURE_ARGS+=--enable-sqlite3 \ | CONFIGURE_ARGS+=--enable-sqlite3 \ | ||||
--with-sqlite3-includes=${LOCALBASE}/include | --with-sqlite3-includes=${LOCALBASE}/include | ||||
PLIST_SUB+= WITH_SQLITE3="" | SQLDOC= "" | ||||
PLIST_SUB+= SQLDOC="" | |||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-sqlite3 | CONFIGURE_ARGS+=--disable-sqlite3 | ||||
PLIST_SUB+= WITH_SQLITE3="@comment " | |||||
PLIST_SUB+= SQLDOC="@comment " | |||||
.endif | .endif | ||||
PLIST_SUB+= SQLDOC=${SQLDOC} | |||||
.if ${PORT_OPTIONS:MLAYER2} | .if ${PORT_OPTIONS:MLAYER2} | ||||
tcbernerUnsubmitted Done Inline ActionsMLAYER2_CONFIGURE_ENABLE=... tcberner: ```
MLAYER2_CONFIGURE_ENABLE=...
``` | |||||
otisAuthorUnsubmitted Done Inline ActionsWIthout leading M. otis: WIthout leading M. | |||||
CONFIGURE_ARGS+=--enable-l2 | CONFIGURE_ARGS+=--enable-l2 | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-l2 | CONFIGURE_ARGS+=--disable-l2 | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MIPV6} | |||||
CONFIGURE_ARGS+=--enable-ipv6 | |||||
.else | |||||
CONFIGURE_ARGS+=--disable-ipv6 | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPLABEL} | .if ${PORT_OPTIONS:MPLABEL} | ||||
CONFIGURE_ARGS+=--enable-plabel | CONFIGURE_ARGS+=--enable-plabel | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-plabel | CONFIGURE_ARGS+=--disable-plabel | ||||
.endif | |||||
.if ${PORT_OPTIONS:MTHREADS} | |||||
CONFIGURE_ARGS+=--enable-threads | |||||
.else | |||||
CONFIGURE_ARGS+=--disable-threads | |||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MDEBUG} | .if ${PORT_OPTIONS:MDEBUG} | ||||
CONFIGURE_ARGS+=--enable-debug | CONFIGURE_ARGS+=--enable-debug | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MMONGO} | .if ${PORT_OPTIONS:MMONGO} | ||||
#CONFIGURE_ARGS+=--enable-mongodb | #CONFIGURE_ARGS+=--enable-mongodb | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |
why not