diff options
author | tdb <tdb@FreeBSD.org> | 2014-05-13 04:01:59 +0800 |
---|---|---|
committer | tdb <tdb@FreeBSD.org> | 2014-05-13 04:01:59 +0800 |
commit | 4d62af393b4018d5d7607ca908ecdef40b6ff47c (patch) | |
tree | 668e7a047851c622918e90038d050cc6020eb0f5 /devel | |
parent | 522898e52b7082e5e071b95913a31d0b5fbee3bf (diff) | |
download | freebsd-ports-gnome-4d62af393b4018d5d7607ca908ecdef40b6ff47c.tar.gz freebsd-ports-gnome-4d62af393b4018d5d7607ca908ecdef40b6ff47c.tar.zst freebsd-ports-gnome-4d62af393b4018d5d7607ca908ecdef40b6ff47c.zip |
- Update to 0.90
- Remove duplicate MASTER_SITES keeping http in preference to ftp
- Drop separate DIST_SUBDIR, it's not needed
- Implement USES=libtool
- Convert -DWITHOUT_X to options framework
- The tools need perl, so add dependency when that option is chosen
Note that this version has an API that is different enough to the
previous version that dependent ports will need fixing to work with
this updated libstatgrab library. I'll take care of that.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libstatgrab/Makefile | 39 | ||||
-rw-r--r-- | devel/libstatgrab/distinfo | 4 | ||||
-rw-r--r-- | devel/libstatgrab/files/patch-configure | 20 | ||||
-rw-r--r-- | devel/libstatgrab/pkg-plist | 105 |
4 files changed, 125 insertions, 43 deletions
diff --git a/devel/libstatgrab/Makefile b/devel/libstatgrab/Makefile index fddfc99bd2a0..0e42e473dab8 100644 --- a/devel/libstatgrab/Makefile +++ b/devel/libstatgrab/Makefile @@ -2,37 +2,36 @@ # $FreeBSD$ PORTNAME= libstatgrab -PORTVERSION= 0.17 +PORTVERSION= 0.90 CATEGORIES= devel -MASTER_SITES= ftp://ftp.uk.i-scream.org/pub/i-scream/%SUBDIR%/ \ - http://ftp.uk.i-scream.org/pub/i-scream/%SUBDIR%/ \ - http://dl.ambiweb.de/mirrors/ftp.i-scream.org/%SUBDIR%/ \ - ftp://ftp.i-scream.org/pub/i-scream/%SUBDIR%/ \ - http://ftp.i-scream.org/pub/i-scream/%SUBDIR%/ -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= http://ftp.uk.i-scream.org/pub/i-scream/libstatgrab/ \ + http://dl.ambiweb.de/mirrors/ftp.i-scream.org/libstatgrab/ \ + http://ftp.i-scream.org/pub/i-scream/libstatgrab/ MAINTAINER= tdb@FreeBSD.org COMMENT= Provides a useful interface to system statistics -DIST_SUBDIR= i-scream USE_LDCONFIG= yes GNU_CONFIGURE= yes -USES= pathfix pkgconfig +USES= pathfix pkgconfig libtool -CONFIGURE_ARGS+= --disable-examples +CONFIGURE_ARGS= --disable-examples -.ifdef(WITHOUT_STATGRAB) -CONFIGURE_ARGS+= --disable-statgrab -PLIST_SUB+= STATGRAB="@comment " -.else -PLIST_SUB+= STATGRAB="" -.endif +OPTIONS_DEFINE= TOOLS +OPTIONS_DEFAULT= TOOLS + +TOOLS_DESC= Build and install statgrab and saidar + +OPTIONS_SUB= yes + +.include <bsd.port.options.mk> -.ifdef(WITHOUT_SAIDAR) -CONFIGURE_ARGS+= --disable-saidar -PLIST_SUB+= SAIDAR="@comment " +.if ${PORT_OPTIONS:MTOOLS} +USES+= shebangfix perl5 +SHEBANG_FILES= src/statgrab/statgrab-make-mrtg-config.in \ + src/statgrab/statgrab-make-mrtg-index.in .else -PLIST_SUB+= SAIDAR="" +CONFIGURE_ARGS+= --disable-statgrab --disable-saidar .endif .include <bsd.port.mk> diff --git a/devel/libstatgrab/distinfo b/devel/libstatgrab/distinfo index e3b514a04780..3f2f50d3018c 100644 --- a/devel/libstatgrab/distinfo +++ b/devel/libstatgrab/distinfo @@ -1,2 +1,2 @@ -SHA256 (i-scream/libstatgrab-0.17.tar.gz) = bbaa88c6bde8bd3cf2720b81a26528cc055a7e83e4ea3bdb1d0a3c4287cceb88 -SIZE (i-scream/libstatgrab-0.17.tar.gz) = 463224 +SHA256 (libstatgrab-0.90.tar.gz) = f614daf8d79bc3466ce62e871ed674f4fb549e26c8b3273fd53ba35a37b2cd70 +SIZE (libstatgrab-0.90.tar.gz) = 755785 diff --git a/devel/libstatgrab/files/patch-configure b/devel/libstatgrab/files/patch-configure index 51e42a111aec..911aa429a8c4 100644 --- a/devel/libstatgrab/files/patch-configure +++ b/devel/libstatgrab/files/patch-configure @@ -1,11 +1,11 @@ ---- ./configure.orig 2011-11-11 14:14:46.000000000 +0000 -+++ ./configure 2011-11-11 14:17:28.000000000 +0000 -@@ -21740,7 +21740,7 @@ - BIN_PERM="2755" - LINKFLAGS="-lkvm -ldevstat" - ;; --freebsd[5-9].*) -+freebsd[5-9].*|freebsd1[0-9].*) +--- ./configure.orig 2013-11-22 17:43:59.703104875 +0000 ++++ ./configure 2013-11-22 17:45:20.136104432 +0000 +@@ -10874,7 +10874,7 @@ + $as_echo "#define FREEBSD /**/" >>confdefs.h - cat >>confdefs.h <<\_ACEOF - #define ALLBSD + ;; #( +- freebsd[5-9].*|freebsd10.*) : ++ freebsd[5-9].*|freebsd1[0-9].*) : + + + $as_echo "#define FREEBSD /**/" >>confdefs.h diff --git a/devel/libstatgrab/pkg-plist b/devel/libstatgrab/pkg-plist index 91fa89a9e442..a701ad7d1e20 100644 --- a/devel/libstatgrab/pkg-plist +++ b/devel/libstatgrab/pkg-plist @@ -1,34 +1,117 @@ -%%SAIDAR%%bin/saidar -%%STATGRAB%%bin/statgrab -%%STATGRAB%%bin/statgrab-make-mrtg-config -%%STATGRAB%%bin/statgrab-make-mrtg-index +%%TOOLS%%bin/saidar +%%TOOLS%%bin/statgrab +%%TOOLS%%bin/statgrab-make-mrtg-config +%%TOOLS%%bin/statgrab-make-mrtg-index include/statgrab.h -include/statgrab_deprecated.h lib/libstatgrab.a -lib/libstatgrab.la lib/libstatgrab.so -lib/libstatgrab.so.8 +lib/libstatgrab.so.9 +lib/libstatgrab.so.9.0.0 libdata/pkgconfig/libstatgrab.pc -man/man1/saidar.1.gz -man/man1/statgrab-make-mrtg-config.1.gz -man/man1/statgrab-make-mrtg-index.1.gz -man/man1/statgrab.1.gz +%%TOOLS%%man/man1/saidar.1.gz +%%TOOLS%%man/man1/statgrab-make-mrtg-config.1.gz +%%TOOLS%%man/man1/statgrab-make-mrtg-index.1.gz +%%TOOLS%%man/man1/statgrab.1.gz +man/man3/libstatgrab.3.gz +man/man3/sg_clear_error.3.gz +man/man3/sg_comp_destroy.3.gz +man/man3/sg_comp_get_tls.3.gz +man/man3/sg_comp_init.3.gz +man/man3/sg_disk_io_compare_name.3.gz +man/man3/sg_disk_io_compare_traffic.3.gz +man/man3/sg_drop_privileges.3.gz +man/man3/sg_free_cpu_stats.3.gz +man/man3/sg_free_disk_io_stats.3.gz +man/man3/sg_free_fs_stats.3.gz +man/man3/sg_free_host_info.3.gz +man/man3/sg_free_load_stats.3.gz +man/man3/sg_free_mem_stats.3.gz +man/man3/sg_free_network_iface_stats.3.gz +man/man3/sg_free_network_io_stats.3.gz +man/man3/sg_free_page_stats.3.gz +man/man3/sg_free_process_count.3.gz +man/man3/sg_free_stats_buf.3.gz +man/man3/sg_free_swap_stats.3.gz +man/man3/sg_free_user_stats.3.gz +man/man3/sg_fs_compare_device_name.3.gz +man/man3/sg_fs_compare_mnt_point.3.gz man/man3/sg_get_cpu_percents.3.gz +man/man3/sg_get_cpu_percents_of.3.gz +man/man3/sg_get_cpu_percents_r.3.gz man/man3/sg_get_cpu_stats.3.gz man/man3/sg_get_cpu_stats_diff.3.gz +man/man3/sg_get_cpu_stats_diff_between.3.gz +man/man3/sg_get_cpu_stats_r.3.gz man/man3/sg_get_disk_io_stats.3.gz man/man3/sg_get_disk_io_stats_diff.3.gz +man/man3/sg_get_disk_io_stats_diff_between.3.gz +man/man3/sg_get_disk_io_stats_r.3.gz +man/man3/sg_get_error.3.gz +man/man3/sg_get_error_arg.3.gz +man/man3/sg_get_error_details.3.gz +man/man3/sg_get_error_errno.3.gz man/man3/sg_get_fs_stats.3.gz +man/man3/sg_get_fs_stats_diff.3.gz +man/man3/sg_get_fs_stats_diff_between.3.gz +man/man3/sg_get_fs_stats_r.3.gz man/man3/sg_get_host_info.3.gz +man/man3/sg_get_host_info_r.3.gz man/man3/sg_get_load_stats.3.gz +man/man3/sg_get_load_stats_r.3.gz man/man3/sg_get_mem_stats.3.gz +man/man3/sg_get_mem_stats_r.3.gz +man/man3/sg_get_nelements.3.gz man/man3/sg_get_network_iface_stats.3.gz +man/man3/sg_get_network_iface_stats_r.3.gz man/man3/sg_get_network_io_stats.3.gz man/man3/sg_get_network_io_stats_diff.3.gz +man/man3/sg_get_network_io_stats_diff_between.3.gz +man/man3/sg_get_network_io_stats_r.3.gz man/man3/sg_get_page_stats.3.gz man/man3/sg_get_page_stats_diff.3.gz +man/man3/sg_get_page_stats_diff_between.3.gz +man/man3/sg_get_page_stats_r.3.gz man/man3/sg_get_process_count.3.gz +man/man3/sg_get_process_count_of.3.gz +man/man3/sg_get_process_count_r.3.gz man/man3/sg_get_process_stats.3.gz +man/man3/sg_get_process_stats_r.3.gz man/man3/sg_get_swap_stats.3.gz +man/man3/sg_get_swap_stats_r.3.gz man/man3/sg_get_user_stats.3.gz +man/man3/sg_get_user_stats_r.3.gz +man/man3/sg_get_valid_filesystems.3.gz +man/man3/sg_global_lock.3.gz +man/man3/sg_global_unlock.3.gz +man/man3/sg_init.3.gz +man/man3/sg_internal-intro.3.gz +man/man3/sg_intro.3.gz +man/man3/sg_lock_mutex.3.gz +man/man3/sg_network_iface_compare_name.3.gz +man/man3/sg_network_io_compare_name.3.gz +man/man3/sg_process_compare_cpu.3.gz +man/man3/sg_process_compare_gid.3.gz +man/man3/sg_process_compare_name.3.gz +man/man3/sg_process_compare_pid.3.gz +man/man3/sg_process_compare_res.3.gz +man/man3/sg_process_compare_size.3.gz +man/man3/sg_process_compare_time.3.gz +man/man3/sg_process_compare_uid.3.gz +man/man3/sg_prove_vector.3.gz +man/man3/sg_set_error.3.gz +man/man3/sg_set_error_with_errno.3.gz +man/man3/sg_set_error_with_errno_code.3.gz +man/man3/sg_set_valid_filesystems.3.gz +man/man3/sg_shutdown.3.gz +man/man3/sg_snapshot.3.gz +man/man3/sg_str_error.3.gz +man/man3/sg_strperror.3.gz +man/man3/sg_unlock_mutex.3.gz +man/man3/sg_vector_clear.3.gz +man/man3/sg_vector_clone.3.gz +man/man3/sg_vector_clone_into.3.gz +man/man3/sg_vector_compute_diff.3.gz +man/man3/sg_vector_create.3.gz +man/man3/sg_vector_free.3.gz +man/man3/sg_vector_resize.3.gz man/man3/statgrab.3.gz |