Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2003 10:08:53 +0200
From:      Kirill Ponomarew <ponomarew@oberon.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/52152: Update net/pmacct
Message-ID:  <E19FUqD-000PRJ-00@voodoo.oberon.net>
Resent-Message-ID: <200305130810.h4D8A1dZ044433@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19FUqD-000PRJ-00>