pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libstatgrab, update to 0.92
Module Name: pkgsrc-wip
Committed By: pin <voidpin%protonmail.com@localhost>
Pushed By: pin
Date: Tue Jan 28 15:01:50 2020 +0100
Changeset: 163c76715f47460be6777c0b328d00bc7aa85f4b
Modified Files:
Makefile
Added Files:
libstatgrab/DESCR
libstatgrab/Makefile
libstatgrab/PLIST
libstatgrab/buildlink3.mk
libstatgrab/distinfo
libstatgrab/options.mk
libstatgrab/patches/patch-src_libstatgrab_tools.h
Log Message:
libstatgrab, update to 0.92
libstatgrab in pkgsrc is outdated.
Please consider merging this update into the main branch and
remove from wip.
Thx.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=163c76715f47460be6777c0b328d00bc7aa85f4b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
libstatgrab/DESCR | 7 ++
libstatgrab/Makefile | 40 +++++++
libstatgrab/PLIST | 121 ++++++++++++++++++++++
libstatgrab/buildlink3.mk | 19 ++++
libstatgrab/distinfo | 7 ++
libstatgrab/options.mk | 24 +++++
libstatgrab/patches/patch-src_libstatgrab_tools.h | 16 +++
8 files changed, 235 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 58d0ce83b5..e5114ff357 100644
--- a/Makefile
+++ b/Makefile
@@ -1963,6 +1963,7 @@ SUBDIR+= libsocialweb
SUBDIR+= libspt
SUBDIR+= libsquish
SUBDIR+= libstacktrace
+SUBDIR+= libstatgrab
SUBDIR+= libstrophe
SUBDIR+= libsysstat
SUBDIR+= libtermkey
diff --git a/libstatgrab/DESCR b/libstatgrab/DESCR
new file mode 100644
index 0000000000..a19732546c
--- /dev/null
+++ b/libstatgrab/DESCR
@@ -0,0 +1,7 @@
+The libstatgrab library provides an easy to use interface for
+accessing system statistics and information. Available statistics
+include CPU, Load, Memory, Swap, Disk I/O, and Network I/O.
+
+Also part of the package are two tools; saidar provides a curses-based
+interface to viewing live system statistics, and statgrab is a
+sysctl-like interface to the statistics.
diff --git a/libstatgrab/Makefile b/libstatgrab/Makefile
new file mode 100644
index 0000000000..11ed497360
--- /dev/null
+++ b/libstatgrab/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD$
+
+DISTNAME= libstatgrab-0.92
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.uk.i-scream.org/pub/i-scream/libstatgrab/
+MASTER_SITES+= ftp://ftp.i-scream.org/pub/i-scream/libstatgrab/
+MASTER_SITES+= http://ftp.i-scream.org/pub/i-scream/libstatgrab/
+MASTER_SITES+= http://www.mirrorservice.org/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/
+MASTER_SITES+= http://dl.ambiweb.de/mirrors/ftp.i-scream.org/libstatgrab/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.i-scream.org/libstatgrab/
+COMMENT= Provides a useful interface to system statistics
+LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
+
+.include "options.mk"
+
+CPPFLAGS.NetBSD+= -D_KERNTYPES
+
+USE_TOOLS+= pkg-config perl:run
+USE_LANGUAGES= c c++
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+PKGCONFIG_OVERRIDE= libstatgrab.pc.in
+
+REPLACE_PERL+= src/statgrab/statgrab-make-mrtg-config.in
+REPLACE_PERL+= src/statgrab/statgrab-make-mrtg-index.in
+
+CONFIGURE_ARGS+= --disable-examples
+
+# Default test target for Perl modules
+TEST_TARGET?= test
+
+CHECK_BUILTIN.pthread:= yes
+.include "../../mk/pthread.builtin.mk"
+CHECK_BUILTIN.pthread:= no
+
+.include "../../devel/log4cplus/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libstatgrab/PLIST b/libstatgrab/PLIST
new file mode 100644
index 0000000000..2b8dd4a734
--- /dev/null
+++ b/libstatgrab/PLIST
@@ -0,0 +1,121 @@
+@comment $NetBSD$
+${PLIST.saidar}bin/saidar
+${PLIST.statgrab}bin/statgrab
+${PLIST.statgrab}bin/statgrab-make-mrtg-config
+${PLIST.statgrab}bin/statgrab-make-mrtg-index
+include/statgrab.h
+lib/libstatgrab.la
+lib/pkgconfig/libstatgrab.pc
+${PLIST.saidar}man/man1/saidar.1
+${PLIST.statgrab}man/man1/statgrab-make-mrtg-config.1
+${PLIST.statgrab}man/man1/statgrab-make-mrtg-index.1
+${PLIST.statgrab}man/man1/statgrab.1
+man/man3/libstatgrab.3
+man/man3/sg_clear_error.3
+man/man3/sg_comp_destroy.3
+man/man3/sg_comp_get_tls.3
+man/man3/sg_comp_init.3
+man/man3/sg_disk_io_compare_name.3
+man/man3/sg_disk_io_compare_traffic.3
+man/man3/sg_drop_privileges.3
+man/man3/sg_free_cpu_stats.3
+man/man3/sg_free_disk_io_stats.3
+man/man3/sg_free_fs_stats.3
+man/man3/sg_free_host_info.3
+man/man3/sg_free_load_stats.3
+man/man3/sg_free_mem_stats.3
+man/man3/sg_free_network_iface_stats.3
+man/man3/sg_free_network_io_stats.3
+man/man3/sg_free_page_stats.3
+man/man3/sg_free_process_count.3
+man/man3/sg_free_stats_buf.3
+man/man3/sg_free_swap_stats.3
+man/man3/sg_free_user_stats.3
+man/man3/sg_fs_compare_device_name.3
+man/man3/sg_fs_compare_mnt_point.3
+man/man3/sg_get_cpu_percents.3
+man/man3/sg_get_cpu_percents_of.3
+man/man3/sg_get_cpu_percents_r.3
+man/man3/sg_get_cpu_stats.3
+man/man3/sg_get_cpu_stats_diff.3
+man/man3/sg_get_cpu_stats_diff_between.3
+man/man3/sg_get_cpu_stats_r.3
+man/man3/sg_get_disk_io_stats.3
+man/man3/sg_get_disk_io_stats_diff.3
+man/man3/sg_get_disk_io_stats_diff_between.3
+man/man3/sg_get_disk_io_stats_r.3
+man/man3/sg_get_error.3
+man/man3/sg_get_error_arg.3
+man/man3/sg_get_error_details.3
+man/man3/sg_get_error_errno.3
+man/man3/sg_get_fs_stats.3
+man/man3/sg_get_fs_stats_diff.3
+man/man3/sg_get_fs_stats_diff_between.3
+man/man3/sg_get_fs_stats_r.3
+man/man3/sg_get_host_info.3
+man/man3/sg_get_host_info_r.3
+man/man3/sg_get_load_stats.3
+man/man3/sg_get_load_stats_r.3
+man/man3/sg_get_mem_stats.3
+man/man3/sg_get_mem_stats_r.3
+man/man3/sg_get_nelements.3
+man/man3/sg_get_network_iface_stats.3
+man/man3/sg_get_network_iface_stats_r.3
+man/man3/sg_get_network_io_stats.3
+man/man3/sg_get_network_io_stats_diff.3
+man/man3/sg_get_network_io_stats_diff_between.3
+man/man3/sg_get_network_io_stats_r.3
+man/man3/sg_get_page_stats.3
+man/man3/sg_get_page_stats_diff.3
+man/man3/sg_get_page_stats_diff_between.3
+man/man3/sg_get_page_stats_r.3
+man/man3/sg_get_process_count.3
+man/man3/sg_get_process_count_of.3
+man/man3/sg_get_process_count_r.3
+man/man3/sg_get_process_stats.3
+man/man3/sg_get_process_stats_r.3
+man/man3/sg_get_swap_stats.3
+man/man3/sg_get_swap_stats_r.3
+man/man3/sg_get_user_stats.3
+man/man3/sg_get_user_stats_r.3
+man/man3/sg_get_valid_filesystems.3
+man/man3/sg_global_lock.3
+man/man3/sg_global_unlock.3
+man/man3/sg_init.3
+man/man3/sg_internal-intro.3
+man/man3/sg_intro.3
+man/man3/sg_lock_mutex.3
+man/man3/sg_network_iface_compare_name.3
+man/man3/sg_network_io_compare_name.3
+man/man3/sg_process_compare_cpu.3
+man/man3/sg_process_compare_gid.3
+man/man3/sg_process_compare_name.3
+man/man3/sg_process_compare_pid.3
+man/man3/sg_process_compare_res.3
+man/man3/sg_process_compare_size.3
+man/man3/sg_process_compare_time.3
+man/man3/sg_process_compare_uid.3
+man/man3/sg_prove_vector.3
+man/man3/sg_set_error.3
+man/man3/sg_set_error_with_errno.3
+man/man3/sg_set_error_with_errno_code.3
+man/man3/sg_set_valid_filesystems.3
+man/man3/sg_shutdown.3
+man/man3/sg_snapshot.3
+man/man3/sg_str_error.3
+man/man3/sg_strperror.3
+man/man3/sg_unlock_mutex.3
+man/man3/sg_vector_clear.3
+man/man3/sg_vector_clone.3
+man/man3/sg_vector_clone_into.3
+man/man3/sg_vector_compute_diff.3
+man/man3/sg_vector_create.3
+man/man3/sg_vector_free.3
+man/man3/sg_vector_resize.3
+man/man3/statgrab.3
+share/doc/libstatgrab/AUTHORS
+share/doc/libstatgrab/COPYING
+share/doc/libstatgrab/COPYING.LGPL
+share/doc/libstatgrab/NEWS
+share/doc/libstatgrab/PLATFORMS
+share/doc/libstatgrab/README
diff --git a/libstatgrab/buildlink3.mk b/libstatgrab/buildlink3.mk
new file mode 100644
index 0000000000..fb6d0b52f4
--- /dev/null
+++ b/libstatgrab/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= libstatgrab
+
+.if !defined(LIBSTATGRAB_BUILDLINK3_MK)
+LIBSTATGRAB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libstatgrab+= libstatgrab>=0.10
+BUILDLINK_ABI_DEPENDS.libstatgrab+= libstatgrab>=0.10.3nb1
+BUILDLINK_PKGSRCDIR.libstatgrab?= ../../devel/libstatgrab
+
+CHECK_BUILTIN.pthread:= yes
+.include "../../mk/pthread.builtin.mk"
+CHECK_BUILTIN.pthread:= no
+
+.include "../../devel/log4cplus/buildlink3.mk"
+.endif # LIBSTATGRAB_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libstatgrab
diff --git a/libstatgrab/distinfo b/libstatgrab/distinfo
new file mode 100644
index 0000000000..07cab484e2
--- /dev/null
+++ b/libstatgrab/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (libstatgrab-0.92.tar.gz) = e929bf6d4566ad2cf30a878eb972c8583deef959
+RMD160 (libstatgrab-0.92.tar.gz) = 34d0e0fbfbff6879e866a79cfd02c4649f87317a
+SHA512 (libstatgrab-0.92.tar.gz) = a99c6be56d930779d0d8f6f81e64e2f31e19423009c39e925b39116a42aa2c6037651992ac2168c43a5c6ecadf3e4a58486ab6148cf96118c429b04fdcf65192
+Size (libstatgrab-0.92.tar.gz) = 815262 bytes
+SHA1 (patch-src_libstatgrab_tools.h) = 873a7f8e067561b0c4184fb9d4cbecbc59690b73
diff --git a/libstatgrab/options.mk b/libstatgrab/options.mk
new file mode 100644
index 0000000000..9886ccfc6f
--- /dev/null
+++ b/libstatgrab/options.mk
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libstatgrab
+PKG_SUPPORTED_OPTIONS= saidar statgrab
+PKG_SUGGESTED_OPTIONS= saidar statgrab
+PKG_OPTIONS_LEGACY_VARS+= WITHOUT_SAIDAR:-saidar
+PKG_OPTIONS_LEGACY_VARS+= WITHOUT_STATGRAB:-statgrab
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= saidar statgrab
+
+.if !empty(PKG_OPTIONS:Mstatgrab)
+PLIST.statgrab= yes
+.else
+CONFIGURE_ARGS+= --disable-statgrab
+.endif
+
+.if !empty(PKG_OPTIONS:Msaidar)
+PLIST.saidar= yes
+. include "../../mk/curses.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-saidar
+.endif
diff --git a/libstatgrab/patches/patch-src_libstatgrab_tools.h b/libstatgrab/patches/patch-src_libstatgrab_tools.h
new file mode 100644
index 0000000000..afac483997
--- /dev/null
+++ b/libstatgrab/patches/patch-src_libstatgrab_tools.h
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Add include for LOCK_SH
+--- src/libstatgrab/tools.h.orig 2014-06-19 11:41:10.000000000 +0000
++++ src/libstatgrab/tools.h
+@@ -36,6 +36,10 @@
+ # include <sys/stat.h>
+ #endif
+
++#if defined(__sun)
++#include <sys/file.h>
++#endif
++
+ #include <stdio.h>
+ #ifdef STDC_HEADERS
+ # include <assert.h>
Home |
Main Index |
Thread Index |
Old Index