Commit d9ad411e authored by Jeff Bilyk's avatar Jeff Bilyk Committed by Carlo Landmeter
Browse files

nagios-plugins: add nagios-plugins-contrib subpackage

nagios-plugins-contrib is a new subpackage that contains all of the nagios-plugins
that haven't been added to the main section of the package
parent 567a562f
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=nagios-plugins
pkgver=1.4.15
pkgrel=4
pkgrel=5
pkgdesc="Plugins for Nagios to check services on hosts"
url="http://nagiosplugins.org"
arch="all"
......@@ -11,6 +11,7 @@ makedepends="net-snmp-tools openssl-dev openldap-dev mysql-dev postgresql-dev li
source="http://downloads.sourceforge.net/nagiosplug/$pkgname-$pkgver.tar.gz"
pkgusers="nagios"
pkggroups="nagios"
subpackages="$pkgname-contrib"
build() {
cd "$srcdir/$pkgname-$pkgver"
......@@ -34,4 +35,21 @@ package() {
make DESTDIR="$pkgdir" install
}
contrib() {
pkgdesc="Contrib Plugins for Nagios"
cd "$pkgdir"
mkdir -p ${pkgdir}-contrib
cd ${pkgdir}-contrib
mkdir -p "${pkgdir}"-contrib/usr/lib/nagios/plugins/
cp "$srcdir"/$pkgname-$pkgver/contrib/*.sh "${pkgdir}"-contrib/usr/lib/nagios/plugins/
cp "$srcdir"/$pkgname-$pkgver/contrib/*.pl "${pkgdir}"-contrib/usr/lib/nagios/plugins/
cp "$srcdir"/$pkgname-$pkgver/contrib/*.pm "${pkgdir}"-contrib/usr/lib/nagios/plugins/
cp "$srcdir"/$pkgname-$pkgver/contrib/*.py "${pkgdir}"-contrib/usr/lib/nagios/plugins/
chmod a+x "${pkgdir}"-contrib/usr/lib/nagios/plugins/*.sh
chmod a+x "${pkgdir}"-contrib/usr/lib/nagios/plugins/*.pl
chmod a+x "${pkgdir}"-contrib/usr/lib/nagios/plugins/*.pm
chmod a+x "${pkgdir}"-contrib/usr/lib/nagios/plugins/*.py
}
md5sums="56abd6ade8aa860b38c4ca4a6ac5ab0d nagios-plugins-1.4.15.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment