diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-05-11 13:40:12 -0400 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-05-12 13:48:21 +0000 |
commit | d9ad411e792c2d66fc88038c353832cb60a6e35c (patch) | |
tree | 2b900ae12087d21180a4178ba22f79a8f5d01fb8 /main/nagios-plugins | |
parent | 567a562f2e8d4820c8a836312f16f0063773000e (diff) | |
download | aports-d9ad411e792c2d66fc88038c353832cb60a6e35c.tar.bz2 aports-d9ad411e792c2d66fc88038c353832cb60a6e35c.tar.xz |
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
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" |