1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/net-mgmt/pmacct/Makefile
Kirill Ponomarev 25279ee6a3 Update to 0.7.1
2004-07-14 19:01:15 +00:00

59 lines
1.3 KiB
Makefile

# 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
PORTVERSION= 0.7.1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/
MAINTAINER= krion@FreeBSD.org
COMMENT= Network tool to gather IP traffic information
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+=--enable-mysql
PLIST_SUB+= WITH_MYSQL=""
.else
CONFIGURE_ARGS+= --disable-mysql
PLIST_SUB+= WITH_MYSQL="@comment "
.endif
.if defined(WITH_PGSQL)
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
CONFIGURE_ARGS+=--enable-pgsql
PLIST_SUB+= WITH_PGSQL=""
.else
CONFIGURE_ARGS+= --disable-pgsql
PLIST_SUB+= WITH_PGSQL="@comment "
.endif
.if defined(WITH_MMAP)
CONFIGURE_ARGS+=--enable-mmap
.endif
GNU_CONFIGURE= yes
GNUCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GETOPT_LONG=yes
USE_REINPLACE= yes
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure
post-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ChangeLog EXAMPLES FAQS README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>