summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2007-09-02 13:55:44 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2007-09-02 13:55:44 +0000
commit1b360cbdbcbbbdc828e579aaadc10c1f2f3b3fb9 (patch)
tree3a3f3c93443abe80e17797c26532b75428f3f934 /net-mgmt
parent- Reduce dependencies[1]. (diff)
Fix build with gcc42
PR: 115791 Submitted by: Hung-Yi Chen <gaod@hychen.org> Approved by: Yann Berthier <yb@bashibuzuk.net> While here replace USE_XLIB with USE_XORG
Notes
Notes: svn path=/head/; revision=198645
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/aguri/Makefile6
-rw-r--r--net-mgmt/aguri/files/patch-aguri.h10
2 files changed, 15 insertions, 1 deletions
diff --git a/net-mgmt/aguri/Makefile b/net-mgmt/aguri/Makefile
index 6d833ea04c46..9cb3914fb4a7 100644
--- a/net-mgmt/aguri/Makefile
+++ b/net-mgmt/aguri/Makefile
@@ -7,6 +7,7 @@
PORTNAME= aguri
PORTVERSION= 0.7
+PORTREVISION= 1
CATEGORIES= net-mgmt ipv6
MASTER_SITES= ftp://ftp.csl.sony.co.jp/pub/kjc/
@@ -15,11 +16,14 @@ COMMENT= An Aggregation-based Traffic Profiler
.if defined(WITH_X11)
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
-USE_XLIB= yes
+USE_XORG= x11
.endif
MAN1= aguri.1
+post-patch:
+ ${REINPLACE_CMD} -e "s,/usr/X11R6,${X11BASE}," ${WRKSRC}/Makefile
+
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/aguri ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/aguri.1 ${MANPREFIX}/man/man1
diff --git a/net-mgmt/aguri/files/patch-aguri.h b/net-mgmt/aguri/files/patch-aguri.h
new file mode 100644
index 000000000000..ce764a0d2456
--- /dev/null
+++ b/net-mgmt/aguri/files/patch-aguri.h
@@ -0,0 +1,10 @@
+--- aguri.h.orig 2003-03-12 22:09:41.000000000 +0800
++++ aguri.h 2007-08-25 02:33:28.000000000 +0800
+@@ -32,7 +32,6 @@
+ #define AGURI_VERSION "0.7"
+
+ extern char *fmt_string;
+-extern int read_count;
+ extern struct timeval start_time, end_time;
+ extern int debug;
+ extern int time_slot;