- use USE_GETOPT_LONG

- fix WITH_MYSQL build

PR:		52152, 52150
Submitted by:	maintainer
This commit is contained in:
Pete Fritchman 2003-05-19 02:05:45 +00:00
parent 2fa167da9b
commit c22a0089be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=81326
4 changed files with 38 additions and 4 deletions

View File

@ -13,13 +13,17 @@ MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/
MAINTAINER= ponomarew@oberon.net
COMMENT= Network tool to gather IP traffic information
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
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>,' \
${WRKSRC}/mysql_plugin.h
.if defined(WITH_MYSQL)
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \

View File

@ -0,0 +1,13 @@
--- pmacct.h.orig Thu May 8 11:59:46 2003
+++ pmacct.h Tue May 13 10:00:09 2003
@@ -32,10 +32,6 @@
#include <stdlib.h>
#include <errno.h>
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
-
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>

View File

@ -13,13 +13,17 @@ MASTER_SITES= http://www.ba.cnr.it/~paolo/pmacct/
MAINTAINER= ponomarew@oberon.net
COMMENT= Network tool to gather IP traffic information
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
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>,' \
${WRKSRC}/mysql_plugin.h
.if defined(WITH_MYSQL)
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \

View File

@ -0,0 +1,13 @@
--- pmacct.h.orig Thu May 8 11:59:46 2003
+++ pmacct.h Tue May 13 10:00:09 2003
@@ -32,10 +32,6 @@
#include <stdlib.h>
#include <errno.h>
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
-
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>