diff options
Diffstat (limited to 'main/nagios-plugins')
-rw-r--r-- | main/nagios-plugins/APKBUILD | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/main/nagios-plugins/APKBUILD b/main/nagios-plugins/APKBUILD index 57e275ec0f..8cdc5d3c8f 100644 --- a/main/nagios-plugins/APKBUILD +++ b/main/nagios-plugins/APKBUILD @@ -1,7 +1,7 @@ # 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" |