ports/52152: Update net/pmacct

Kirill Ponomarew ponomarew at oberon.net
Tue May 13 08:10:03 UTC 2003


>Number:         52152
>Category:       ports
>Synopsis:       Update net/pmacct
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 13 01:10:00 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kirill Ponomarew
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Oberon.net 
>Environment:
 
        
>Description:
Update net/pmacct

Fix building with mysql-client

>How-To-Repeat:
>Fix:
diff -ruN pmacct.orig/Makefile pmacct/Makefile
--- pmacct.orig/Makefile	Mon May 12 18:17:50 2003
+++ pmacct/Makefile	Tue May 13 09:59:03 2003
@@ -13,12 +13,16 @@
 MAINTAINER=	ponomarew at 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
diff -ruN pmacct.orig/files/patch-pmacct.h pmacct/files/patch-pmacct.h
--- pmacct.orig/files/patch-pmacct.h	Thu Jan  1 01:00:00 1970
+++ pmacct/files/patch-pmacct.h	Tue May 13 10:00:32 2003
@@ -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>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list