From d3dbc7f5429ff928ed616beb8574f081235ef85b Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 11 Feb 2010 14:03:38 +0100 Subject: [PATCH] debian/: Removed ancient Debian package files. You might want to look at git://git.tokkee.org/pkg-collectd.git instead. --- debian/README.Debian | 41 ---------- debian/changelog | 93 ----------------------- debian/collectd.conf | 89 ---------------------- debian/collectd.init.d | 115 ---------------------------- debian/collectd.postrm | 43 ----------- debian/compat | 1 - debian/control | 149 ------------------------------------- debian/copyright | 148 ------------------------------------ debian/examples/myplugin.c | 107 -------------------------- debian/rules | 111 --------------------------- 10 files changed, 897 deletions(-) delete mode 100644 debian/README.Debian delete mode 100644 debian/changelog delete mode 100644 debian/collectd.conf delete mode 100755 debian/collectd.init.d delete mode 100755 debian/collectd.postrm delete mode 100644 debian/compat delete mode 100644 debian/control delete mode 100644 debian/copyright delete mode 100644 debian/examples/myplugin.c delete mode 100755 debian/rules diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 index b0b701b4..00000000 --- a/debian/README.Debian +++ /dev/null @@ -1,41 +0,0 @@ -collectd on Debian -================== - -General notes: --------------- - -- This package is split up into several packages to prevent you from having to - install dependencies (or recommended packages) that you don't actually need. - Any plugin that has dependencies other than libc gets its own package. - -Configuring collectd: ---------------------- - -- collectd uses a similar configuration layout as openvpn does. That is to - say that one daemon process is started for each configuration file found in - /etc/collectd/. - -- See collectd.conf(5) for details about configuring collectd. - -Building your own plugins: --------------------------- - -- If you want to contribute plugins to the official distribution you should - read http://collectd.org/dev-info.shtml. - -- If you want to build plugins for your personal use only simply install the - collectd-dev package and use /usr/share/doc/collectd-dev/examples/myplugin.c - as a starting point (Note: This is already a working example, though it does - not collect any useful data). - - The resulting file can be compiled as follows: - - gcc -shared -o myplugin.so myplugin.c - - Copy myplugin.so to /usr/lib/collectd and add the following line to your - collectd config file: - - LoadPlugin myplugin - - Restart collectd and you're done. - diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 14e450b3..00000000 --- a/debian/changelog +++ /dev/null @@ -1,93 +0,0 @@ -collectd (3.11.5-0octo1) unstable; urgency=low - - * New upstream release. - - -- Florian Forster Tue, 29 May 2007 22:50:59 +0200 - -collectd (3.11.4-0octo1) unstable; urgency=low - - * New upstream release. - - -- Florian Forster Tue, 10 Apr 2007 17:18:11 +0200 - -collectd (3.11.3-0octo1) unstable; urgency=low - - * New upstream release. - - -- Florian octo Forster Fri, 30 Mar 2007 22:08:40 +0200 - -collectd (3.11.0-0octo1) unstable; urgency=low - - * New upstream release. - * The package collectd-mbmon has been added. - - -- Florian octo Forster Fri, 22 Dec 2006 15:10:37 +0100 - -collectd (3.10.4-0octo1) unstable; urgency=low - - * New upstream release. - - -- Florian Forster Thu, 21 Dec 2006 20:36:37 +0100 - -collectd (3.10.3-0octo1) unstable; urgency=low - - * New upstream release. - - -- Florian Forster Sat, 4 Nov 2006 13:46:49 +0100 - -collectd (3.10.1-4) unstable; urgency=low - - * Changed collectd-dbg's section and priority to "devel" and "extra" - respectively. - * Set init start sequence code to 95 to be sure to start after any daemons - that data is collected from. - - -- Sebastian Harl Thu, 5 Oct 2006 10:25:07 +0000 - -collectd (3.10.1-3) unstable; urgency=low - - * Added --oknodo to start-stop-daemon in the init script (Closes: #379703). - - -- Sebastian Harl Tue, 25 Jul 2006 18:34:55 +0200 - -collectd (3.10.1-2) unstable; urgency=low - - * Added collectd-dbg package. - - -- Sebastian Harl Sun, 23 Jul 2006 23:39:42 +0200 - -collectd (3.10.1-1) unstable; urgency=low - - * New upstream release. - * Dynamically link against external liboping. - - New binary package collectd-ping. - - Added collectd-ping to suggested packages. - * Moved config file from /usr/share/doc/collectd/examples/ to - /etc/collectd/. - - -- Sebastian Harl Sat, 22 Jul 2006 21:43:37 +0200 - -collectd (3.10.0-1) unstable; urgency=low - - * New upstream release. - New plugins: - - APC UPS's charge, load, input/output/battery voltage, etc.: apcups - - NTP daemon's local clock drift, offset to peers, etc.: ntpd - * Upstream no longer provides a debian/ directory. Thus no repackaging is - required any longer. - * Not using getifaddrs() is now the default in upstream. getifaddrs.dpatch - no longer needed. - * Added collectd-hddtemp as a suggestion to the collectd package. - - -- Sebastian Harl Sun, 9 Jul 2006 21:52:13 +0200 - -collectd (3.9.4+debian-1) unstable; urgency=low - - * Initial release (Closes: #373008). - * Removed upstream's debian/ directory from .orig.tar.gz. - * getifaddrs.dpatch: Patching src/traffic.c to read data from /proc instead - of using getifaddrs(). getifaddrs() does not seem to work correctly on - AMD64. - - -- Sebastian Harl Fri, 7 Jul 2006 15:49:42 +0200 - diff --git a/debian/collectd.conf b/debian/collectd.conf deleted file mode 100644 index 91eef477..00000000 --- a/debian/collectd.conf +++ /dev/null @@ -1,89 +0,0 @@ -# Config file for collectd(1). -# -# Some plugins need additional configuration and are disabled by default. -# Please read collectd.conf(5) for details. - -Mode Local - -# If in "Client" mode you have to specify which server to send datagrams to. -#Mode Client -#Server 123.123.123.123 12345 - -#Mode Server - -#Mode Log - -#DataDir /var/lib/collectd -#PIDFILE /var/run/collectd.pid -#PluginDir /usr/lib/collectd - -#LoadPlugin apache -#LoadPlugin apcups -#LoadPlugin apple_sensors -LoadPlugin battery -LoadPlugin cpu -#LoadPlugin cpufreq -LoadPlugin df -LoadPlugin disk -#LoadPlugin hddtemp -LoadPlugin load -#LoadPlugin mbmon -LoadPlugin memory -#LoadPlugin mysql -#LoadPlugin nfs -#LoadPlugin ntpd -#LoadPlugin ping -LoadPlugin processes -#LoadPlugin sensors -#LoadPlugin serial -LoadPlugin swap -#LoadPlugin tape -LoadPlugin traffic -LoadPlugin users -#LoadPlugin vserver -#LoadPlugin wireless - -# -# URL http://localhost/status?auto -# User www-user -# Password secret -# CACert /etc/ssl/ca.crt -# - -# -# Host localhost -# Port 3551 -# - -# -# Host 127.0.0.1 -# Port 7634 -# - -# -# Host 127.0.0.1 -# Port 411 -# - -# -# Host localhost -# Port 123 -# - -# -# Host localhost -# User db_user -# Password secret -# Database db_name -# - -# -# Host host.foo.bar -# Host host.baz.qux -# - -# -# Interface eth0 -# IgnoreSelected false -# - diff --git a/debian/collectd.init.d b/debian/collectd.init.d deleted file mode 100755 index 7c8ac291..00000000 --- a/debian/collectd.init.d +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash -# -# collectd Initscript for collectd -# http://collectd.org/ -# Authors: Florian Forster -# Sebastian Harl -# - -set -e - -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -DESC="Statistics collection daemon" -NAME=collectd -DAEMON=/usr/sbin/$NAME -SCRIPTNAME=/etc/init.d/$NAME -ARGS="" - -CONFIGDIR=/etc/collectd -# for backward compatibility -FALLBACKCONF=/etc/collectd.conf - -# Gracefully exit if the package has been removed. -test -x $DAEMON || exit 0 - -if [ -r /etc/default/$NAME ] -then - . /etc/default/$NAME -fi - -# -# Function that starts the daemon/service. -# -d_start() { - i=0 - - if [ ! -d "$CONFIGDIR" ] - then - if [ -e "$FALLBACKCONF" ] - then - $DAEMON -C "$FALLBACKCONF" 2> /dev/null - else - echo "" - echo "This package is not configured yet. Please refer" - echo "to /usr/share/doc/collectd/README.Debian for" - echo "details." - echo "" - exit 0 - fi - else - for FILE in `ls $CONFIGDIR/*.conf 2>/dev/null` - do - NAME=`basename "$FILE" .conf` - - if [ $i == 0 ] - then - echo -n " (" - else - echo -n ", " - fi - - $DAEMON -C "$FILE" 2> /dev/null - if [ $? == 0 ] - then - echo -n "$NAME" - else - echo -n "$NAME failed" - fi - - i=$(($i+1)) - done - - if [ $i == 0 ] - then - echo -n "[no config found]" - exit 1 - else - echo -n ")" - fi - fi -} - -# -# Function that stops the daemon/service. -# -d_stop() { - start-stop-daemon --stop --quiet --oknodo --exec $DAEMON -} - -case "$1" in - start) - echo -n "Starting $DESC: $NAME" - d_start - echo "." - ;; - stop) - echo -n "Stopping $DESC: $NAME" - d_stop - echo "." - ;; - restart|force-reload) - echo -n "Restarting $DESC: $NAME" - d_stop - sleep 1 - d_start - echo "." - ;; - *) - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 - exit 1 - ;; -esac - -exit 0 - -# vim: syntax=sh noexpandtab sw=8 ts=8 : diff --git a/debian/collectd.postrm b/debian/collectd.postrm deleted file mode 100755 index 84b83867..00000000 --- a/debian/collectd.postrm +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# postrm script for collectd -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' overwrit>r> -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - purge) - rm -rf /var/lib/collectd - rm -rf /etc/collectd - ;; - - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; - -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7ed6ff82..00000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/debian/control b/debian/control deleted file mode 100644 index 56e8463e..00000000 --- a/debian/control +++ /dev/null @@ -1,149 +0,0 @@ -Source: collectd -Section: utils -Priority: optional -Maintainer: Sebastian Harl -Build-Depends: debhelper (>= 5), autotools-dev, libcurl3-dev, - libmysqlclient15-dev | libmysqlclient14-dev, librrd2-dev | librrd0-dev, - libsensors-dev, liboping-dev (> 0.3.3) -Standards-Version: 3.7.2 - -Package: collectd -Architecture: any -Depends: ${shlibs:Depends} -Suggests: collectd-apache, collectd-mysql, collectd-sensors, collectd-dev, - collectd-hddtemp, collectd-mbmon, collectd-ping, librrds-perl -Description: statistics collection daemon - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the main program file and the following plugins: - * APC UPS's charge, load, input/output/battery voltage, etc.: apcups - * Apple computer's sensors information: apple_sensors (server mode only) - * battery status: battery - * CPU utilization: cpu - * CPU frequency: cpufreq - * disk space usage: df - * disk and partition throughput: disk - * system load averages: load - * memory usage: memory - * NFS utilization: nfs - * NTP daemon's local clock drift, offset to peers, etc.: ntpd - * number of processes: processes - * serial port traffic: serial - * swap usage: swap - * tape drive usage: tape (server mode only) - * network traffic: traffic - * number of users logged into the system: users - * system ressources used by Linux-VServers: vserver - * wireless network stats: wireless - -Package: collectd-dbg -Section: devel -Architecture: any -Priority: extra -Depends: collectd (= ${Source-Version}), collectd-apache (= ${Source-Version}), - collectd-hddtemp (= ${Source-Version}), collectd-mysql (= ${Source-Version}), - collectd-ping (= ${Source-Version}), collectd-sensors (= ${Source-Version}) -Description: statistics collection daemon (debugging symbols) - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the debugging symbols. - -Package: collectd-apache -Architecture: any -Depends: collectd (= ${Source-Version}), ${shlibs:Depends} -Description: statistics collection daemon (Apache plugin) - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the Apache plugin which collects Apache statistics - provided by Apache's mod_status. - -Package: collectd-hddtemp -Architecture: any -Depends: collectd (= ${Source-Version}), ${shlibs:Depends} -Recommends: hddtemp -Description: statistics collection daemon (hddtemp plugin) - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the hddtemp plugin which collects harddisk temperatures. - -Package: collectd-mbmon -Architecture: any -Depends: collectd (= ${Source-Version}), ${shlibs:Depends} -Recommends: mbmon (>= 2.01) -Description: statistics collection daemon (mbmon plugin) - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the mbmon plugin which collects motherboard status - information: temperatures, voltages and cooling fan speeds. - -Package: collectd-mysql -Architecture: any -Depends: collectd (= ${Source-Version}), ${shlibs:Depends} -Description: statistics collection daemon (MySQL plugin) - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the MySQL plugin which collects MySQL statistics - provided by MySQL's "show status" command. - -Package: collectd-ping -Architecture: any -Depends: collectd (= ${Source-Version}), ${shlibs:Depends} -Description: statistics collection daemon (ping plugin) - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the ping plugin which collects network latency - statistics. - -Package: collectd-sensors -Architecture: any -Depends: collectd (= ${Source-Version}), ${shlibs:Depends} -Description: statistics collection daemon (sensors plugin) - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the sensors plugin which collects lm_sensors - information (e.g. CPU temperature, fan speeds). - -Package: collectd-dev -Architecture: all -Depends: collectd (= ${Source-Version}) -Description: statistics collection daemon (development files) - collectd is a small daemon written in C for performance. It reads various - system statistics and updates RRD files, creating them if necessary. Since - the daemon doesn't need to startup every time it wants to update the files - it's very fast and easy on the system. Also, the statistics are very fine - grained since the files are updated every 10 seconds. - . - This package contains the development files needed to create your own - plugins. diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index c75c8ee6..00000000 --- a/debian/copyright +++ /dev/null @@ -1,148 +0,0 @@ -This package was debianized by Sebastian Harl on -Wed, 10 May 2006 09:20:39 +0200. - -It was downloaded from . - -Upstream Authors: - Core Developer: - Florian Forster - - For individual credits, see AUTHORS. - -Copyright Holders (in alphabetical order): - Andre M. Hedrick - Anthony Gialluca - David Bacher - Florian Forster - Free Software Foundation, Inc. - Jason Pepas - Kern Sibbald - Lyonel Vincent - Niki W. Waibel - Peter Holik - Roy Keene, Keene Enterprises - Scott Garrett - Sebastian Harl - Vincent Stehlé - -License: - - Files src/apache.c - src/apple_sensors.c - src/mysql.c - src/ntpd.c - src/battery.c - src/wireless.c - Copyright (C) 2006 Florian Forster - - File src/apcups.c - Copyright (C) 2006 Anthony Gialluca - Copyright (C) 2000-2004 Kern Sibbald - Copyright (C) 1996-99 Andre M. Hedrick - - File src/cpufreq.c - Copyright (C) 2005, 2006 Peter Holik - - File src/hddtemp.c - Copyright (C) 2005, 2006 Vincent Stehlé - - File src/mbmon.c - Copyright (C) 2006 Flavio Stanchina - - File src/nfs.c - Copyright (C) 2005, 2006 Jason Pepas - - File src/processes.c - Copyright (C) 2005 Lyonel Vincent - Copyright (C) 2006 Florian Forster (Mach code) - - File src/serial.c - Copyright (C) 2005, 2006 David Bacher - - File src/tape.c - Copyright (C) 2005, 2006 Scott Garrett - - File src/users.c - Copyright (C) 2005, 2006 Sebastian Harl - - Files src/utils_debug.c - src/utils_debug.h - src/utils_mount.c - src/utils_mount.h - Copyright (C) 2005, 2006 Niki W. Waibel - - File src/vserver.c - Copyright (C) 2006 Sebastian Harl - - All other files (except libltdl/* and src/libconfig/*): - Copyright (C) 2005, 2006 Florian Forster - - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this package; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, - USA. - -On Debian systems, the complete text of the GNU General Public License -can be found in `/usr/share/common-licenses/GPL'. - - File libltdl/ltdl.c - Copyright (C) 1998-2000, 2004, 2005 Free Software Foundation, Inc. - Originally by Thomas Tanner - - File libltdl/ltdl.h - Copyright (C) 1998-2000 Free Software Foundation, Inc. - Originally by Thomas Tanner - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, - USA. - -On Debian systems, the complete text of the GNU Lesser General Public License -can be found in `/usr/share/common-licenses/LGPL'. - - Files src/libconfig/* - Copyright (C) Roy Keene - - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation - files (the "Software"), to deal in the Software without restriction, - including without limitation the rights to use, copy, modify, merge, - publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. - IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY - CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, - TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -The Debian packaging is (C) 2006, Sebastian Harl and -is licensed under the GPL, see above. - diff --git a/debian/examples/myplugin.c b/debian/examples/myplugin.c deleted file mode 100644 index 1bd8e423..00000000 --- a/debian/examples/myplugin.c +++ /dev/null @@ -1,107 +0,0 @@ -/* - * /usr/share/doc/collectd/examples/sample_plugin.c - * - * A sample plugin for collectd. - * - * Written by Sebastian Harl - * - * This is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free - * Software Foundation; either version 2 of the License, or (at your - * option) any later version. - */ - -#include /* rrd_update_file */ -#include /* plugin_* */ - -#include -#include - -/* Optional config file support */ -/* #include */ - -/* Optional debugging support - * (only available if collectd was compiled with debugging support) */ -/* #include */ - -#define MODULE_NAME "myplugin" - -/* Name of the rrd file under DataDir (/var/lib/collectd by default) - * - * The name may contain slashes to create subdirectories. */ -static char *my_rrd = "myplugin.rrd"; - -/* DS definitions for the rrd file - * - * See the rrdcreate(1) manpage for details. The heartbeat is configurable in - * collectd. It defaults to 25. */ -static char *ds_def[] = -{ - "DS:my_ds:GAUGE:25:0:U", - NULL -}; - -/* DS count */ -static int ds_num = 1; - -/* Time at which the read function is called */ -extern time_t curtime; - -/* Initialize the plugin - * - * This function is called to set up a plugin before using it. */ -static void my_init(void) -{ - /* we have nothing to do here :-) */ - return; -} - -/* Get the data - * - * This function implements the magic used to get the desired values that - * should be stored in the rrd file. It uses plugin_submit to transfer the - * data to whatever place is configured in the config file. If there are more - * than one instances you should pass a uniq identifier as seconds argument to - * the plugin_submit function. */ -#define BUFSIZE 256 -static void my_read(void) -{ - long int data = 0; - char buf[BUFSIZE] = ""; - - /* magic ;-) */ - data = random(); - - if (snprintf(buf, BUFSIZE, "%u:%li", - (unsigned int)curtime, data) >= BUFSIZE) - return; - - plugin_submit(MODULE_NAME, NULL, buf); - return; -} -#undef BUFSIZE - -/* Save the data - * - * This function saves the data to the appropriate location by calling - * rrd_update_file. It is used to "calculate" the filename and DS definition - * appropriate for the given instance. */ -static void my_write(host, inst, val) - char *host; - char *inst; - char *val; -{ - rrd_update_file(host, my_rrd, val, ds_def, ds_num); - return; -} - -/* Register the plugin - * - * This function registers the plugin with collectd. It has to be named - * "module_register". */ -void module_register(void) -{ - plugin_register(MODULE_NAME, my_init, my_read, my_write); - return; -} - diff --git a/debian/rules b/debian/rules deleted file mode 100755 index 602efd54..00000000 --- a/debian/rules +++ /dev/null @@ -1,111 +0,0 @@ -#!/usr/bin/make -f -# debian/rules for collectd -# -# Written by Sebastian Harl . - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -config.status: configure - dh_testdir - CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \ - --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \ - --mandir=\$${prefix}/share/man \ - --localstatedir=/var --sysconfdir=/etc - -build: build-stamp - -build-stamp: config.status - dh_testdir - - $(MAKE) - - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - - -$(MAKE) distclean - - dh_clean - -install-indep: - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs -i - - include_dir=$(CURDIR)/debian/collectd-dev/usr/include/collectd/ \ - && mkdir -p $$include_dir \ - && cp src/*.h $$include_dir - -install-arch: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs -a - - $(MAKE) install DESTDIR=$(CURDIR)/debian/collectd - - rm -f $(CURDIR)/debian/collectd/usr/lib/collectd/*.la - - rm -f $(CURDIR)/debian/collectd/etc/collectd.conf - install -D -m 0644 $(CURDIR)/debian/collectd.conf \ - $(CURDIR)/debian/collectd/etc/collectd/collectd.conf - - for PLUGIN in apache hddtemp mbmon mysql ping sensors; do \ - plugin_dir=$(CURDIR)/debian/collectd-$$PLUGIN/usr/lib/collectd/; \ - mkdir -p $$plugin_dir; \ - mv $(CURDIR)/debian/collectd/usr/lib/collectd/$$PLUGIN.so \ - $$plugin_dir; \ - done - -binary-indep: install-indep - dh_testdir - dh_testroot - dh_installchangelogs -i ChangeLog - dh_installdocs -A -i debian/README.Debian AUTHORS README TODO - dh_installexamples -i debian/examples/myplugin.c - dh_compress -i - dh_fixperms -i - dh_installdeb -i - dh_gencontrol -i - dh_md5sums -i - dh_builddeb -i - -binary-arch: build install-arch - dh_testdir - dh_testroot - dh_installchangelogs -a ChangeLog - dh_installdocs -A -a debian/README.Debian AUTHORS README TODO - dh_installexamples -a contrib/collectd2html.pl contrib/collection.cgi - dh_installinit -a -- defaults 95 - dh_installman -a src/collectd.1 src/collectd.conf.5 - dh_link -a - dh_strip -a --dbg-package=collectd-dbg - dh_compress -a - dh_fixperms -a - dh_installdeb -a - dh_shlibdeps -a - dh_gencontrol -a - dh_md5sums -a - dh_builddeb -a - -binary: binary-arch binary-indep -.PHONY: build clean binary-indep binary-arch binary install-indep install-arch - -- 2.30.2