ports/57830: Update port: devel/libstatgrab
Tim Bishop
tim at bishnet.net
Fri Oct 10 10:50:30 UTC 2003
>Number: 57830
>Category: ports
>Synopsis: Update port: devel/libstatgrab
>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: Fri Oct 10 03:50:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Tim Bishop
>Release: FreeBSD 4.9-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD pendennis.ukc.ac.uk 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #5: Wed Sep 17 15:50:07 BST 2003 tdb at pendennis.ukc.ac.uk:/usr/obj/usr/src/sys/PENDENNIS i386
>Description:
Update libstatgrab to 0.6.
Most signficant changes are support for FreeBSD 5, and a
new tool called saidar for viewing system statistics.
>How-To-Repeat:
>Fix:
Apply patch below.
--- libstatgrab-0.6.diff begins here ---
diff -ruN libstatgrab.bak/Makefile libstatgrab/Makefile
--- libstatgrab.bak/Makefile Fri Sep 26 09:40:46 2003
+++ libstatgrab/Makefile Fri Oct 10 11:37:52 2003
@@ -6,7 +6,7 @@
#
PORTNAME= libstatgrab
-PORTVERSION= 0.5.1
+PORTVERSION= 0.6
CATEGORIES= devel
MASTER_SITES= ftp://ftp.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/%SUBDIR%/ \
http://www.mirror.ac.uk/sites/ftp.i-scream.org/pub/i-scream/%SUBDIR%/ \
@@ -17,17 +17,37 @@
MAINTAINER= tim at bishnet.net
COMMENT= Provides a useful interface to system statistics
-DIST_SUBDIR= iscream
+DIST_SUBDIR= i-scream
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
USE_LIBTOOL= yes
-ONLY_FOR_ARCHS= i386
+MAN3= cpu_percent_usage.3 get_cpu_diff.3 get_cpu_totals.3 \
+ get_diskio_stats.3 get_diskio_stats_diff.3 get_general_stats.3 \
+ get_load_stats.3 get_memory_stats.3 get_network_stats.3 \
+ get_network_stats_diff.3 get_page_stats.3 \
+ get_page_stats_diff.3 get_process_stats.3 get_swap_stats.3 \
+ get_user_stats.3 statgrab.3
+
+CONFIGURE_ARGS+= --disable-examples \
+ --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
+
+.if defined(WITHOUT_STATGRAB)
+CONFIGURE_ARGS+= --disable-statgrab
+PLIST_SUB+= STATGRAB="@comment "
+.else
+PLIST_SUB+= STATGRAB=""
+.endif
-.include <bsd.port.pre.mk>
+.if defined(WITHOUT_SAIDAR)
+CONFIGURE_ARGS+= --disable-saidar
+PLIST_SUB+= SAIDAR="@comment "
+.else
+PLIST_SUB+= SAIDAR=""
+.endif
-.if ${OSVERSION} >= 500000
-IGNORE= "does not currently support FreeBSD 5.x"
+.if defined(WITHOUT_SETGID_BINARIES)
+CONFIGURE_ARGS+= --disable-setgid-binaries
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN libstatgrab.bak/distinfo libstatgrab/distinfo
--- libstatgrab.bak/distinfo Fri Sep 26 09:40:46 2003
+++ libstatgrab/distinfo Thu Oct 9 22:31:50 2003
@@ -1 +1 @@
-MD5 (iscream/libstatgrab-0.5.1.tar.gz) = 27047d1402b0e34845f2ea306cda60cc
+MD5 (i-scream/libstatgrab-0.6.tar.gz) = 22d7e485c3be812139a71aebfb390f02
diff -ruN libstatgrab.bak/pkg-plist libstatgrab/pkg-plist
--- libstatgrab.bak/pkg-plist Fri Sep 26 09:40:46 2003
+++ libstatgrab/pkg-plist Tue Oct 7 23:02:45 2003
@@ -1,17 +1,10 @@
-bin/statgrab
-bin/statgrab-make-mrtg-config
-bin/statgrab-make-mrtg-index
+%%SAIDAR%%bin/saidar
+%%STATGRAB%%bin/statgrab
+%%STATGRAB%%bin/statgrab-make-mrtg-config
+%%STATGRAB%%bin/statgrab-make-mrtg-index
include/statgrab.h
lib/libstatgrab.a
lib/libstatgrab.so
lib/libstatgrab.so.1
-%%PORTDOCS%%%%DOCSDIR%%/cpu.txt
-%%PORTDOCS%%%%DOCSDIR%%/diskio.txt
-%%PORTDOCS%%%%DOCSDIR%%/load_average.txt
-%%PORTDOCS%%%%DOCSDIR%%/network.txt
-%%PORTDOCS%%%%DOCSDIR%%/os_stats.txt
-%%PORTDOCS%%%%DOCSDIR%%/page_stat.txt
-%%PORTDOCS%%%%DOCSDIR%%/process_stats.txt
-%%PORTDOCS%%%%DOCSDIR%%/user_list.txt
-%%PORTDOCS%%%%DOCSDIR%%/vm_stats.txt
- at dirrm %%PORTDOCS%%%%DOCSDIR%%
+libdata/pkgconfig/libstatgrab.pc
+ at unexec rmdir %D/libdata/pkgconfig 2>/dev/null || true
--- libstatgrab-0.6.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list