aboutsummaryrefslogtreecommitdiff
path: root/net/pmacct/Makefile
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-01-29 13:05:08 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-01-29 13:05:08 +0000
commitd9a7590fccf86842e1cba3d444bcff7c3a102481 (patch)
treee4ea6202c21eee99df36d62d924ad372e869cc12 /net/pmacct/Makefile
parent5876904b816cb6e4599e89414509f7b0d402dd87 (diff)
downloadports-d9a7590fccf86842e1cba3d444bcff7c3a102481.tar.gz
ports-d9a7590fccf86842e1cba3d444bcff7c3a102481.zip
Notes
Diffstat (limited to 'net/pmacct/Makefile')
-rw-r--r--net/pmacct/Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/net/pmacct/Makefile b/net/pmacct/Makefile
index bb17cbbd293c..74152c92aec7 100644
--- a/net/pmacct/Makefile
+++ b/net/pmacct/Makefile
@@ -6,19 +6,19 @@
#
PORTNAME= pmacct
-PORTVERSION= 0.6.0
+PORTVERSION= 0.6.0.p1
CATEGORIES= net
MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p1/p1/}
MAINTAINER= krion@FreeBSD.org
COMMENT= Network tool to gather IP traffic information
+WRKSRC= ${WRKDIR}/pmacct-0.6.0
+
.if defined(WITH_MYSQL)
USE_MYSQL= yes
-CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \
- --with-mysql-includes=${LOCALBASE}/include/mysql \
- --enable-mysql
-CFLAGS+= "-I${LOCALBASE}/include"
+CONFIGURE_ARGS+=--enable-mysql
PLIST_SUB+= WITH_MYSQL=""
.else
CONFIGURE_ARGS+= --disable-mysql
@@ -40,12 +40,8 @@ USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-pre-patch:
- @${REINPLACE_CMD} -e \
- 's,<mysql/mysql.h>,<mysql.h>,' \
- ${WRKSRC}/mysql_plugin.h
- @${REINPLACE_CMD} -e \
- 's|-O2||g' ${WRKSRC}/configure
+post-patch:
+ @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure
post-install:
.if !defined(NOPORTDOCS)