2003-05-12 18:17:50 +02:00
|
|
|
# New ports collection makefile for: pmacct
|
|
|
|
# Date created: Thu May 8 16:03:11 CEST 2003
|
|
|
|
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pmacct
|
2007-05-28 22:21:39 +02:00
|
|
|
DISTVERSION= 0.11.4
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2006-08-24 11:52:24 +02:00
|
|
|
MASTER_SITES= http://www.pmacct.net/ \
|
|
|
|
http://voodoo.bawue.com/download/
|
2003-05-12 18:17:50 +02:00
|
|
|
|
2003-07-22 12:34:12 +02:00
|
|
|
MAINTAINER= krion@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
|
|
|
|
2005-05-27 14:57:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
USE_GETOPT_LONG=yes
|
|
|
|
|
|
|
|
OPTIONS= MYSQL "Enable MySQL support." Off \
|
|
|
|
PGSQL "Enable PostgreSQL support." Off \
|
2005-12-10 10:45:32 +01:00
|
|
|
SQLITE "Enable SQLite support." Off \
|
2005-06-14 22:30:13 +02:00
|
|
|
MMAP "Enable mmap(2) support." On \
|
|
|
|
LAYER2 "Enable Layer-2 support: MAC Adresses and VLANs" On
|
2005-05-27 14:57:25 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-09-19 15:53:30 +02:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
|
|
|
|
CONFIGURE_ARGS+= --enable-64bit
|
|
|
|
.endif
|
|
|
|
|
2003-07-02 14:04:18 +02:00
|
|
|
.if defined(WITH_MYSQL)
|
2003-10-02 21:33:40 +02:00
|
|
|
USE_MYSQL= yes
|
2004-01-29 14:05:08 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-mysql
|
2004-01-27 16:51:34 +01:00
|
|
|
PLIST_SUB+= WITH_MYSQL=""
|
2003-07-02 14:04:18 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
2004-01-27 16:51:34 +01:00
|
|
|
PLIST_SUB+= WITH_MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2004-01-27 16:51:34 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-pgsql
|
|
|
|
PLIST_SUB+= WITH_PGSQL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pgsql
|
|
|
|
PLIST_SUB+= WITH_PGSQL="@comment "
|
2003-07-02 14:04:18 +02:00
|
|
|
.endif
|
|
|
|
|
2005-12-10 10:45:32 +01:00
|
|
|
.if defined(WITH_SQLITE)
|
2006-08-17 10:41:33 +02:00
|
|
|
USE_SQLITE= yes
|
2005-12-10 10:45:32 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-sqlite3 \
|
|
|
|
--with-sqlite3-includes=${LOCALBASE}/include
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sqlite3
|
|
|
|
.endif
|
|
|
|
|
2005-02-02 18:41:45 +01:00
|
|
|
.if defined(WITHOUT_MMAP)
|
|
|
|
CONFIGURE_ARGS+=--disable-mmap
|
2005-06-14 22:30:13 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-mmap
|
2004-07-14 21:01:15 +02:00
|
|
|
.endif
|
|
|
|
|
2005-05-27 14:57:25 +02:00
|
|
|
.if defined(WITHOUT_LAYER2)
|
|
|
|
CONFIGURE_ARGS+=--disable-l2
|
2005-06-14 22:30:13 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-l2
|
2005-05-27 14:57:25 +02:00
|
|
|
.endif
|
2003-05-12 18:17:50 +02:00
|
|
|
|
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:
|
2004-04-14 21:14:25 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
2003-07-02 14:04:18 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2004-07-01 16:29:39 +02:00
|
|
|
.for i in ChangeLog EXAMPLES FAQS README
|
2003-07-02 14:04:18 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
2003-05-12 18:17:50 +02:00
|
|
|
.endif
|
|
|
|
|
2005-05-27 14:57:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|