debian/0000755000000000000000000000000012220255501007160 5ustar debian/build-doc.sh0000755000000000000000000000023312220250761011362 0ustar #!/bin/sh set -e echo 'GENERATE_HTML = YES' | cat Doxyfile - | doxygen - # rename the folder so we can use dh_install to install it. mv doc/html doc/api debian/compat0000644000000000000000000000000212220250761010361 0ustar 9 debian/copyright0000644000000000000000000000450612220250761011123 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=202 Upstream-Name: libsysactivity Source: http://sourceforge.net/projects/libsysactivity/ Files: * Copyright: 2009-2010, Carlos Olmedo Escobar License: LGPL-2.1+ Files: src/*BSD/cpu.c Copyright: 2009-2010, Carlos Olmedo Escobar 1984-2008, William LeFebvre License: LGPL-2.1+ and BSD-like Files: debian/* Copyright: 2010, Niels Thykier License: LGPL-2.1+ License: LGPL-2.1+ This package is licensed under the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . On Debian systems, the complete text of the GNU Lesser General Public License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1' License: BSD-like Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of William LeFebvre nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/libsysactivity-dev.install0000644000000000000000000000006712220250761014414 0ustar usr/include/* usr/lib/libsysactivity.so usr/lib/cmake/ debian/libsysactivity-doc.doc-base0000644000000000000000000000042412220250761014407 0ustar Document: libsysactivity Title: Public API for libsysactivity Author: Carlos Olmedo Escobar Abstract: Programming API for libsysactivity. Section: Programming Format: HTML Index: /usr/share/doc/libsysactivity-doc/api/index.html Files: /usr/share/doc/libsysactivity-doc/api/* debian/libsysactivity-doc.install0000644000000000000000000000005212220250761014375 0ustar doc/api usr/share/doc/libsysactivity-doc/ debian/libsysactivity1.install0000644000000000000000000000003412220250761013713 0ustar usr/lib/libsysactivity.so.* debian/libsysactivity1.symbols0000644000000000000000000000027612220250761013745 0ustar (arch=alpha amd64 armel hppa i386 ia64 mips mipsel powerpc s390 sparc)#include "libsysactivity1.symbols.linux" (arch=kfreebsd-amd64 kfreebsd-i386)#include "libsysactivity1.symbols.kfreebsd" debian/libsysactivity1.symbols.kfreebsd0000644000000000000000000000157212220250761015531 0ustar libsysactivity.so.1 libsysactivity1 #MINVER# sa_close_disk@Base 0.6.1 sa_close_net@Base 0.6.1 sa_close_process@Base 0.6.1 sa_count_cpus@Base 0.6.1 sa_count_disks@Base 0.6.1 sa_count_net_interfaces@Base 0.6.1 sa_count_processes@Base 0.6.1 sa_count_swaps@Base 0.6.1 sa_get_cpu@Base 0.6.1 sa_get_cpus@Base 0.6.1 sa_get_disk@Base 0.6.1 sa_get_disks@Base 0.6.1 sa_get_disks_ids@Base 0.6.1 sa_get_memory@Base 0.6.1 sa_get_net_interface@Base 0.6.1 sa_get_net_interfaces@Base 0.6.1 sa_get_net_interfaces_ids@Base 0.6.1 sa_get_process@Base 0.6.1 sa_get_process_activity@Base 0.6.1 sa_get_processes_ids@Base 0.6.1 sa_get_swap@Base 0.6.1 sa_get_swaps@Base 0.6.1 sa_open_disk@Base 0.6.1 sa_open_memory@Base 0.6.1 sa_open_net@Base 0.6.1 sa_open_swap@Base 0.6.1 sa_reset_cpus@Base 0.6.1 sa_reset_disks@Base 0.6.1 sa_reset_net_interfaces@Base 0.6.1 sa_reset_swaps@Base 0.6.1 debian/libsysactivity1.symbols.linux0000644000000000000000000000177512220250761015110 0ustar libsysactivity.so.1 libsysactivity1 #MINVER# sa_close_cpu@Base 0.6.1 sa_close_disk@Base 0.6.1 sa_close_memory@Base 0.6.1 sa_close_net@Base 0.6.1 sa_close_process@Base 0.6.1 sa_close_swap@Base 0.6.1 sa_count_cpus@Base 0.6.1 sa_count_disks@Base 0.6.1 sa_count_net_interfaces@Base 0.6.1 sa_count_processes@Base 0.6.1 sa_count_swaps@Base 0.6.1 sa_get_cpu@Base 0.6.1 sa_get_cpus@Base 0.6.1 sa_get_disk@Base 0.6.1 sa_get_disks@Base 0.6.1 sa_get_disks_ids@Base 0.6.1 sa_get_memory@Base 0.6.1 sa_get_net_interface@Base 0.6.1 sa_get_net_interfaces@Base 0.6.1 sa_get_net_interfaces_ids@Base 0.6.1 sa_get_process@Base 0.6.1 sa_get_process_activity@Base 0.6.1 sa_get_processes_ids@Base 0.6.1 sa_get_swap@Base 0.6.1 sa_get_swaps@Base 0.6.1 sa_open_cpu@Base 0.6.1 sa_open_disk@Base 0.6.1 sa_open_memory@Base 0.6.1 sa_open_net@Base 0.6.1 sa_open_process@Base 0.6.1 sa_open_swap@Base 0.6.1 sa_reset_cpus@Base 0.6.1 sa_reset_disks@Base 0.6.1 sa_reset_net_interfaces@Base 0.6.1 sa_reset_swaps@Base 0.6.1 debian/source/0000755000000000000000000000000012220250761010463 5ustar debian/source/format0000644000000000000000000000001412220250761011671 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000015712220250761010217 0ustar version=3 opts=dversionmangle=s/\+cvs\d+$// \ http://sf.net/libsysactivity/libsysactivity-([\d\.]+)\.tar\.gz debian/libsysactivity-doc.lintian-overrides0000644000000000000000000000041612220255465016377 0ustar # Lintian is technically right, but according to Doxygen maintainers # using libjs-query will not work. This has to do with lack of # backwards compatibilty in doxygen (and possibly in jQuery). embedded-javascript-library usr/share/doc/libsysactivity-doc/api/jquery.js debian/rules0000755000000000000000000000367412220255465010263 0ustar #!/usr/bin/make -f DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) # Skip data_storage test - requires that /sys is mounted ifeq ($(DEB_HOST_ARCH_OS),kfreebsd) # Also disable process and network on kFreeBSD # part of process is not implemented and not sure # about the network test. DISABLED_TESTS:=^data_storage|disk|process|network\$$ ARCH=FreeBSD else KERNEL_VERSION:=$(shell uname -r | cut -d '.' -f 1,2,3 | \ perl -ne 'print "ok" if m/^(\d+)\.(\d+)(?:\.(\d+))?/ && ($$1 > 2 || $$2 > 6 || $$3 >= 25);') # the process tests requires Linux >= 2.6.25 ifeq ($(KERNEL_VERSION),ok) # temporary disabled the process test, since it currently # unreliable. DISABLED_TESTS:=^data_storage|disk|process\$$ else DISABLED_TESTS:=^data_storage|disk|process\$$ endif ARCH=Linux endif DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-add-needed,--as-needed,--no-undefined include /usr/share/dpkg/buildflags.mk %: dh $@ -Bbuild override_dh_auto_configure-indep: # Do nothing for indep override_dh_auto_configure-arch: dh_auto_configure -Bbuild -- -DCMAKE_C_FLAGS="$(CFLAGS) $(CPPFLAGS)" \ -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" \ -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" \ -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ -DCMAKE_SKIP_RPATH:BOOL=ON -DHAS_FLTO_FLAG:BOOL=OFF # This override is not strictly required, but without it debhelper # will call cmake for the indep build (which is a bit wasteful :P) override_dh_auto_build-arch: dh_auto_build override_dh_auto_build-indep: sh debian/build-doc.sh override_dh_auto_test-indep: # Do nothing for indep override_dh_auto_test-arch: $(MAKE) -C build -f test/Makefile all cd build && LD_LIBRARY_PATH="$(CURDIR)/build/src/$(ARCH)" ctest -V --force-new-ctest-process -E "$(DISABLED_TESTS)" override_dh_strip-arch: dh_strip --dbg-package=libsysactivity1-dbg override_dh_auto_clean-indep: # Remove the doc-directories rm -fr doc/*/ debian/control0000644000000000000000000000530712220255465010601 0ustar Source: libsysactivity Section: libs Priority: optional Maintainer: Niels Thykier Build-Depends: cmake, debhelper (>= 9~), dpkg-dev (>= 1.16.2~), libbsd-dev [kfreebsd-any], libkvm-dev [kfreebsd-any], Build-Depends-Indep: doxygen Standards-Version: 3.9.4 Homepage: http://sourceforge.net/projects/libsysactivity/ Vcs-Git: git://anonscm.debian.org/collab-maint/libsysactivity.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/libsysactivity.git Package: libsysactivity1 Architecture: linux-any kfreebsd-any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Retrieves statistics of the system's activity A lightweight library that retrieves statistics of the system's activity in a portable and thread safe way. In each OS that it supports it offers the same API for retrieving the activity of: . * hard disks * CPUs memory * processes * network interfaces. Package: libsysactivity-dev Architecture: linux-any kfreebsd-any Section: libdevel Depends: libsysactivity1 (= ${binary:Version}), ${misc:Depends} Description: Retrieves statistics of the system's activity (development headers) A lightweight library that retrieves statistics of the system's activity in a portable and thread safe way. In each OS that it supports it offers the same API for retrieving the activity of: . * hard disks * CPUs memory * processes * network interfaces. . This package contains the development header files. Non-developers likely have little use for this package. Package: libsysactivity1-dbg Architecture: linux-any kfreebsd-any Section: debug Priority: extra Depends: libsysactivity1 (= ${binary:Version}), ${misc:Depends} Description: Retrieves statistics of the system's activity (debug package) A lightweight library that retrieves statistics of the system's activity in a portable and thread safe way. In each OS that it supports it offers the same API for retrieving the activity of: . * hard disks * CPUs memory * processes * network interfaces. . This package contains the debug symbols. Non-developers likely have little use for this package. Package: libsysactivity-doc Architecture: all Section: doc Depends: ${misc:Depends} Suggests: libsysactivity-dev Description: Retrieves statistics of the system's activity (development doc) A lightweight library that retrieves statistics of the system's activity in a portable and thread safe way. In each OS that it supports it offers the same API for retrieving the activity of: . * hard disks * CPUs memory * processes * network interfaces. . This package contains the development API documentation. Non-developers likely have little use for this package. debian/changelog0000644000000000000000000001416312220255465011050 0ustar libsysactivity (0.6.5-1) unstable; urgency=low * New upstream release. * Stop replacing the jquery.js with a symlink to Debian's copy in the libjs-query package. According to the Doxygen maintainers this will not work since Doxygen does not maintain compatibility with any jQuery release except the one it uses. * Bump Standards-Version to 3.9.4 - no changes required. * Update the Vcs-* fields to use the canonical URLs. -- Niels Thykier Tue, 24 Sep 2013 11:16:11 +0200 libsysactivity (0.6.4-1) unstable; urgency=low * New upstream release. - Made Linux version of sa_reset_net_interfaces reload data. (LP: #1072398) -- Niels Thykier Fri, 02 Nov 2012 11:35:00 +0100 libsysactivity (0.6.3-1) unstable; urgency=low * New upstream release. - Dropped patches, fixes applied upstream. -- Niels Thykier Mon, 04 Jun 2012 17:12:11 +0200 libsysactivity (0.6.2-7) unstable; urgency=low * Restrict building to linux-any and kfreebsd-any as there is no Hurd port of this package. * Remove fflush call on input stream. It is unneeded and in some cases it ends up corrupting the stream state. Thanks to Guillem Jover for the report and patch. (Closes: #670192) -- Niels Thykier Mon, 30 Apr 2012 15:33:30 +0200 libsysactivity (0.6.2-6) unstable; urgency=low * Pass CPPFLAGS to cmake - this enables fortify functions hardening. * Bump debhelper compat to 9. * Bump Standards-Version to 3.9.3 - no changes required. * Use -arch and -indep overrides to determine if the doc package is being built. Add versioned build-depends on dpkg-dev 1.16.2 to ensure libsysactivity is built with a "build-arch capable" dpkg-buildpackage. -- Niels Thykier Mon, 23 Apr 2012 14:05:19 +0200 libsysactivity (0.6.2-5) unstable; urgency=low * Use buildflags.mk from dpkg-dev to set compiler and linker flags. - This enables hardning flags. * Bumped debhelper compat to 8. * Bumped DEP-5 revision. -- Niels Thykier Sun, 06 Nov 2011 15:06:04 +0100 libsysactivity (0.6.2-4) unstable; urgency=low * Use kfreebsd-any wildcard instead of explicitly listing known kfreebsd architectures. (Closes: #634728) -- Niels Thykier Fri, 29 Jul 2011 10:46:35 +0200 libsysactivity (0.6.2-3) unstable; urgency=low * Upload to unstable. -- Niels Thykier Tue, 26 Jul 2011 11:27:35 +0200 libsysactivity (0.6.2-2) experimental; urgency=low * Removed B-D on the gold linker, since it is not available on most architectures and the problem appears to have been fixed. * Removed DMUA flag; it was not needed for it anymore. * Do not build with -flto since it (for some reason) marks the stack as executable. -- Niels Thykier Sat, 09 Jul 2011 13:32:27 +0200 libsysactivity (0.6.2-1) experimental; urgency=low * New upstream release. - API/ABI breakage. Hench the upload to experimental. * Disabled disk and process test. The first fails because /sys/ is not available and the second is unreliable. * Use (and B-D on) the gold linker as the GNU linker fails; see http://lists.gnu.org/archive/html/bug-binutils/2010-12/msg00069.html * Bumped S-V to 3.9.2 - no changes required. * Used jquery.js from libjs-jquery instead of letting doxygen embedding a copy of it in libsysactivity-doc. -- Niels Thykier Sat, 02 Jul 2011 12:39:46 +0200 libsysactivity (0.5.4-6) unstable; urgency=low * Fix a number of resource leaks reported by cppcheck. -- Niels Thykier Tue, 28 Sep 2010 20:48:01 +0200 libsysactivity (0.5.4-5) unstable; urgency=low * Added patch to fix the issue with calculating memory on kFreeBSD based architectures for machines with > 4 GB RAM. (Closes: #594594) * Added patch to disable "cpu idle" test, which causes build failures due to false positives. -- Niels Thykier Fri, 10 Sep 2010 12:11:25 +0200 libsysactivity (0.5.4-4) unstable; urgency=low * Applied patch from upstream to fix an issue with calculating memory on (k)FreeBSD based architectures (Closes: #593018). -- Niels Thykier Sat, 21 Aug 2010 13:35:13 +0200 libsysactivity (0.5.4-3) unstable; urgency=low * Enable verbose test output. * Applied patch from upstream to fix an issue with reading the swap data. (Closes: #593018) * Skip the process test on Linux if the kernel is too old; fixes FTBFS in Ubuntu. -- Niels Thykier Wed, 18 Aug 2010 00:08:38 +0200 libsysactivity (0.5.4-2) unstable; urgency=low * Added missing B-D on libkvm-dev for kfreebsd. (Closes: #591378) * Bumped Standards-Versions to 3.9.1 - no changes required. * Removed incorrect quotes in d/rules. -- Niels Thykier Tue, 03 Aug 2010 01:46:59 +0200 libsysactivity (0.5.4-1) unstable; urgency=low [ Niels Thykier ] * New upstream release. * Added patch to allow removal of libdevstat-dev from B-D on kfreebsd architectures. * Backported patch to allow testing libsysactivity from the build directory. * Enabled a subset of upstream build tests. * Bumped Standards-Version to 3.9.0 - no changes required. [ Jan Hauke Rahm ] * Set DMUA -- Niels Thykier Sun, 25 Jul 2010 09:34:18 +0200 libsysactivity (0.5.3+cvs20100613-1) unstable; urgency=low * New upstream release. - Pulled from CVS to deal with some non-DFSG compatible licenses. (Closes: #586342) * Removed patch applied upstream. -- Niels Thykier Fri, 18 Jun 2010 18:06:53 +0200 libsysactivity (0.5.2-1) unstable; urgency=low * New upstream release. - Updated years in debian/copyright. * Pulled patch from upstream CVS to fix linking on kFreeBSD. (Closes: #580515) - thanks to Cyril Brulebois for triaging the problem. -- Niels Thykier Tue, 18 May 2010 22:29:54 +0200 libsysactivity (0.5.1-1) unstable; urgency=low * Initial release. (Closes: #567500) -- Niels Thykier Tue, 13 Apr 2010 22:19:01 +0200