diff options
-rw-r--r-- | net-mgmt/pmacct/Makefile | 8 | ||||
-rw-r--r-- | net-mgmt/pmacct/files/patch-pmacct.h | 13 | ||||
-rw-r--r-- | net/pmacct/Makefile | 8 | ||||
-rw-r--r-- | net/pmacct/files/patch-pmacct.h | 13 |
4 files changed, 38 insertions, 4 deletions
diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile index a5b2e19aea4c..984d3376956f 100644 --- a/net-mgmt/pmacct/Makefile +++ b/net-mgmt/pmacct/Makefile @@ -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 \ diff --git a/net-mgmt/pmacct/files/patch-pmacct.h b/net-mgmt/pmacct/files/patch-pmacct.h new file mode 100644 index 000000000000..c6ed6407af26 --- /dev/null +++ b/net-mgmt/pmacct/files/patch-pmacct.h @@ -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> diff --git a/net/pmacct/Makefile b/net/pmacct/Makefile index a5b2e19aea4c..984d3376956f 100644 --- a/net/pmacct/Makefile +++ b/net/pmacct/Makefile @@ -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 \ diff --git a/net/pmacct/files/patch-pmacct.h b/net/pmacct/files/patch-pmacct.h new file mode 100644 index 000000000000..c6ed6407af26 --- /dev/null +++ b/net/pmacct/files/patch-pmacct.h @@ -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> |