aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/pmacct
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-07-02 12:04:18 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-07-02 12:04:18 +0000
commit85bb98973234cd04d15c35e28e75203e635bc3ce (patch)
tree6a11ef7123c686a43af45a685a562404ca269ed3 /net-mgmt/pmacct
parent3eabf42be3d75890a3bd5cfa270ec1a67be17a97 (diff)
downloadports-85bb98973234cd04d15c35e28e75203e635bc3ce.tar.gz
ports-85bb98973234cd04d15c35e28e75203e635bc3ce.zip
update net/pmacct: 0.4.1 --> 0.4.2
PR: 53637 Submitted by: Kirill Ponomarew <ponomarew@oberon.net> (maintainer)
Notes
Notes: svn path=/head/; revision=84038
Diffstat (limited to 'net-mgmt/pmacct')
-rw-r--r--net-mgmt/pmacct/Makefile28
-rw-r--r--net-mgmt/pmacct/distinfo2
-rw-r--r--net-mgmt/pmacct/pkg-plist5
3 files changed, 24 insertions, 11 deletions
diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile
index 984d3376956f..cbf187eb5a6c 100644
--- a/net-mgmt/pmacct/Makefile
+++ b/net-mgmt/pmacct/Makefile
@@ -6,31 +6,39 @@
#
PORTNAME= pmacct
-PORTVERSION= 0.4.1
+PORTVERSION= 0.4.2
CATEGORIES= net
MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/
MAINTAINER= ponomarew@oberon.net
COMMENT= Network tool to gather IP traffic information
+.if defined(WITH_MYSQL)
+LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
+CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \
+ --with-mysql-includes=${LOCALBASE}/include/mysql \
+ --enable-mysql
+.else
+CONFIGURE_ARGS+= --disable-mysql
+.endif
+
GNU_CONFIGURE= yes
USE_GETOPT_LONG=yes
USE_REINPLACE= yes
-
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
pre-patch:
- @${REINPLACE_CMD} -e 's,<mysql/mysql.h>,<mysql.h>,' \
+ @${REINPLACE_CMD} -e \
+ 's,<mysql/mysql.h>,<mysql.h>,' \
${WRKSRC}/mysql_plugin.h
-.if defined(WITH_MYSQL)
-LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
-CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \
- --with-mysql-includes=${LOCALBASE}/include/mysql \
- --enable-mysql
-.else
-CONFIGURE_ARGS+= --disable-mysql
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for i in README EXAMPLES INTERNALS PLUGINS
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
.endif
.include <bsd.port.mk>
diff --git a/net-mgmt/pmacct/distinfo b/net-mgmt/pmacct/distinfo
index 14dd38bd545c..4fef1c5f2f53 100644
--- a/net-mgmt/pmacct/distinfo
+++ b/net-mgmt/pmacct/distinfo
@@ -1 +1 @@
-MD5 (pmacct-0.4.1.tar.gz) = 67c786bde193b027be6083348e43f901
+MD5 (pmacct-0.4.2.tar.gz) = fefad3dc7097b0b39965719af6e76683
diff --git a/net-mgmt/pmacct/pkg-plist b/net-mgmt/pmacct/pkg-plist
index e7872b7a40ab..b7374de1e2dd 100644
--- a/net-mgmt/pmacct/pkg-plist
+++ b/net-mgmt/pmacct/pkg-plist
@@ -1,2 +1,7 @@
bin/pmacct
bin/pmacctd
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/EXAMPLES
+%%PORTDOCS%%%%DOCSDIR%%/INTERNALS
+%%PORTDOCS%%%%DOCSDIR%%/PLUGINS
+%%PORTDOCS%%@dirrm %%DOCSDIR%%