create nagios-plugins-common package

This commit is contained in:
Jan Wagner 2012-05-15 11:38:37 +00:00
parent fd7b65e7a8
commit e6b4a0267d
9 changed files with 52 additions and 21 deletions

2
debian/changelog vendored
View file

@ -1,5 +1,7 @@
nagios-plugins (1.4.15-6) UNRELEASED; urgency=low
* Add nagios-plugins-common package which ships files possibly needed also by
other plugin packages
* Add icinga as recommand as alternative for nagios3
* Add '-w %d' as ping argument for check_ping on non-linux plattforms, as
inetutils-ping is now supporting this, thanks Guillem Jover for bringing

13
debian/control vendored
View file

@ -21,9 +21,20 @@ Description: Plugins for nagios compatible monitoring systems (metapackage)
(using nagios-nrpe-server or nsca), you may be interested in the
nagios-plugins-basic package.
Package: nagios-plugins-common
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ucf
Breaks: nagios-plugins-basic (<= 1.4.15-5)
Suggests: nagios3 | icinga
Description: Common files for plugins for nagios compatible monitoring
Common files for plugins for nagios compatible monitoring systems like Nagios
and Icinga.
.
This package contains common files which maybe needed for plugins.
Package: nagios-plugins-basic
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, procps, iputils-ping [linux-any], inetutils-ping [kfreebsd-any hurd-any], ucf
Depends: ${shlibs:Depends}, ${misc:Depends}, nagios-plugins-common, procps, iputils-ping [linux-any], inetutils-ping [kfreebsd-any hurd-any], ucf
Conflicts: nagios-plugins (<= 1.4.2-3)
Replaces: nagios-plugins, nagios-plugins-standard
Suggests: nagios3 | icinga

10
debian/nagios-plugins-basic.links vendored Normal file
View file

@ -0,0 +1,10 @@
usr/share/doc/nagios-plugins-common/NEWS.Debian.gz usr/share/doc/nagios-plugins-basic/NEWS.Debian.gz
usr/share/doc/nagios-plugins-common/README.Debian.gz usr/share/doc/nagios-plugins-basic/README.Debian.gz
usr/share/doc/nagios-plugins-common/changelog.gz usr/share/doc/nagios-plugins-basic/changelog.gz
usr/share/doc/nagios-plugins-common/examples usr/share/doc/nagios-plugins-basic/examples
usr/share/doc/nagios-plugins-common/FAQ usr/share/doc/nagios-plugins-basic/FAQ
usr/share/doc/nagios-plugins-common/NEWS.gz usr/share/doc/nagios-plugins-basic/NEWS.gz
usr/share/doc/nagios-plugins-common/README usr/share/doc/nagios-plugins-basic/README
usr/share/doc/nagios-plugins-common/LEGAL usr/share/doc/nagios-plugins-basic/LEGAL
usr/share/doc/nagios-plugins-common/REQUIREMENTS usr/share/doc/nagios-plugins-basic/REQUIREMENTS
usr/share/doc/nagios-plugins-common/SUPPORT usr/share/doc/nagios-plugins-basic/SUPPORT

1
debian/nagios-plugins-common.dirs vendored Normal file
View file

@ -0,0 +1 @@
usr/lib/nagios/plugins

View file

@ -1,10 +1,10 @@
usr/share/doc/nagios-plugins-basic/NEWS.Debian.gz usr/share/doc/nagios-plugins-standard/NEWS.Debian.gz
usr/share/doc/nagios-plugins-basic/README.Debian.gz usr/share/doc/nagios-plugins-standard/README.Debian.gz
usr/share/doc/nagios-plugins-basic/changelog.gz usr/share/doc/nagios-plugins-standard/changelog.gz
usr/share/doc/nagios-plugins-basic/examples usr/share/doc/nagios-plugins-standard/examples
usr/share/doc/nagios-plugins-basic/FAQ usr/share/doc/nagios-plugins-standard/FAQ
usr/share/doc/nagios-plugins-basic/NEWS.gz usr/share/doc/nagios-plugins-standard/NEWS.gz
usr/share/doc/nagios-plugins-basic/README usr/share/doc/nagios-plugins-standard/README
usr/share/doc/nagios-plugins-basic/LEGAL usr/share/doc/nagios-plugins-standard/LEGAL
usr/share/doc/nagios-plugins-basic/REQUIREMENTS usr/share/doc/nagios-plugins-standard/REQUIREMENTS
usr/share/doc/nagios-plugins-basic/SUPPORT usr/share/doc/nagios-plugins-standard/SUPPORT
usr/share/doc/nagios-plugins-common/NEWS.Debian.gz usr/share/doc/nagios-plugins-standard/NEWS.Debian.gz
usr/share/doc/nagios-plugins-common/README.Debian.gz usr/share/doc/nagios-plugins-standard/README.Debian.gz
usr/share/doc/nagios-plugins-common/changelog.gz usr/share/doc/nagios-plugins-standard/changelog.gz
usr/share/doc/nagios-plugins-common/examples usr/share/doc/nagios-plugins-standard/examples
usr/share/doc/nagios-plugins-common/FAQ usr/share/doc/nagios-plugins-standard/FAQ
usr/share/doc/nagios-plugins-common/NEWS.gz usr/share/doc/nagios-plugins-standard/NEWS.gz
usr/share/doc/nagios-plugins-common/README usr/share/doc/nagios-plugins-standard/README
usr/share/doc/nagios-plugins-common/LEGAL usr/share/doc/nagios-plugins-standard/LEGAL
usr/share/doc/nagios-plugins-common/REQUIREMENTS usr/share/doc/nagios-plugins-standard/REQUIREMENTS
usr/share/doc/nagios-plugins-common/SUPPORT usr/share/doc/nagios-plugins-standard/SUPPORT

View file

@ -1,11 +1,11 @@
usr/share/doc/nagios-plugins-basic/NEWS.Debian.gz usr/share/doc/nagios-plugins/NEWS.Debian.gz
usr/share/doc/nagios-plugins-basic/README.Debian.gz usr/share/doc/nagios-plugins/README.Debian.gz
usr/share/doc/nagios-plugins-common/NEWS.Debian.gz usr/share/doc/nagios-plugins/NEWS.Debian.gz
usr/share/doc/nagios-plugins-common/README.Debian.gz usr/share/doc/nagios-plugins/README.Debian.gz
usr/share/doc/nagios-plugins-standard/README.Debian.plugins usr/share/doc/nagios-plugins/README.Debian.plugins
usr/share/doc/nagios-plugins-basic/changelog.gz usr/share/doc/nagios-plugins/changelog.gz
usr/share/doc/nagios-plugins-basic/examples usr/share/doc/nagios-plugins/examples
usr/share/doc/nagios-plugins-basic/FAQ usr/share/doc/nagios-plugins/FAQ
usr/share/doc/nagios-plugins-basic/NEWS.gz usr/share/doc/nagios-plugins/NEWS.gz
usr/share/doc/nagios-plugins-basic/README usr/share/doc/nagios-plugins/README
usr/share/doc/nagios-plugins-basic/LEGAL usr/share/doc/nagios-plugins/LEGAL
usr/share/doc/nagios-plugins-basic/REQUIREMENTS usr/share/doc/nagios-plugins/REQUIREMENTS
usr/share/doc/nagios-plugins-basic/SUPPORT usr/share/doc/nagios-plugins/SUPPORT
usr/share/doc/nagios-plugins-common/changelog.gz usr/share/doc/nagios-plugins/changelog.gz
usr/share/doc/nagios-plugins-common/examples usr/share/doc/nagios-plugins/examples
usr/share/doc/nagios-plugins-common/FAQ usr/share/doc/nagios-plugins/FAQ
usr/share/doc/nagios-plugins-common/NEWS.gz usr/share/doc/nagios-plugins/NEWS.gz
usr/share/doc/nagios-plugins-common/README usr/share/doc/nagios-plugins/README
usr/share/doc/nagios-plugins-common/LEGAL usr/share/doc/nagios-plugins/LEGAL
usr/share/doc/nagios-plugins-common/REQUIREMENTS usr/share/doc/nagios-plugins/REQUIREMENTS
usr/share/doc/nagios-plugins-common/SUPPORT usr/share/doc/nagios-plugins/SUPPORT

7
debian/rules vendored
View file

@ -23,6 +23,7 @@ CFLAGS = -Wall -g
DEBIANDIR=$(CURDIR)/debian
NP_LIBEXEC:=/usr/lib/nagios/plugins
NP_COMMON_DIR:=$(DEBIANDIR)/nagios-plugins-common
NP_BASIC_DIR:=$(DEBIANDIR)/nagios-plugins-basic
NP_BASIC_TEMPLATES:=$(NP_BASIC_DIR)/usr/share/nagios-plugins/templates-basic
NP_STD_DIR:=$(DEBIANDIR)/nagios-plugins-standard
@ -35,6 +36,8 @@ std_plugins:=check_breeze check_ifoperstatus check_hpjd check_ifstatus \
check_mailq \
check_dns check_dig check_flexlm check_oracle
common_files:=negate urlize utils.pm utils.sh
basic_plugin_cfgs:=apt dhcp disk dummy ftp http load mail news ntp ping procs \
real ssh tcp_udp telnet users
std_plugin_cfgs:=breeze disk-smb dns flexlm fping games hppjd ifstatus ldap \
@ -151,6 +154,10 @@ install: build
for p in ${std_plugins}; do \
mv ${NP_BASIC_DIR}/${NP_LIBEXEC}/$$p ${NP_STD_DIR}/${NP_LIBEXEC}; \
done
# slit out common files
for p in ${common_files}; do \
mv ${NP_BASIC_DIR}/${NP_LIBEXEC}/$$p ${NP_COMMON_DIR}/${NP_LIBEXEC}; \
done
# now do the same for their configs, copying them into seperate
# "template" directories outside of /usr/share/doc for ucf to use.
for c in ${basic_plugin_cfgs}; do \