diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2015-05-28 11:29:47 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2015-05-28 11:29:47 -0300 |
commit | fcb2d26cfa3b265200b5ae9e949d787a56bd4f14 (patch) | |
tree | 60bf5147d7608e6217b37e6807c386b3a43a2b36 /pcr/ndoutils/PKGBUILD | |
parent | 19fe7e7da672746eea0c2cae0307cea5e54fb23e (diff) | |
parent | b0bb663657922f0154dd8d60a6d5455f9a2bfe3c (diff) | |
download | abslibre-fcb2d26cfa3b265200b5ae9e949d787a56bd4f14.tar.gz abslibre-fcb2d26cfa3b265200b5ae9e949d787a56bd4f14.tar.bz2 abslibre-fcb2d26cfa3b265200b5ae9e949d787a56bd4f14.zip |
Merge branch 'master' of git://projects.parabola.nu/abslibre/abslibre
Diffstat (limited to 'pcr/ndoutils/PKGBUILD')
-rw-r--r-- | pcr/ndoutils/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pcr/ndoutils/PKGBUILD b/pcr/ndoutils/PKGBUILD new file mode 100644 index 000000000..405f4b20f --- /dev/null +++ b/pcr/ndoutils/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer (Arch): Muhkoenig +# Contributor (Arch): MisterG <mathieu.grzybek at gmail dot com> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=ndoutils +pkgver=2.0.0 +pkgrel=1 +pkgdesc="An addon designed to store all configuration and event data from Nagios in a database." +license=('GPL') +arch=('i686' 'x86_64') +url="http://www.nagios.org" +depends=('libmysqlclient' 'glibc' 'zlib') +optdepends=('nagios') +source=("http://downloads.sourceforge.net/project/nagios/ndoutils-2.x/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz") +md5sums=('93561584f0fa7582a795e795306a3b35') + +_nagios_user="nagios" +_nagios_group="nagios" +_instdir="usr/share/nagios" +_bindir="usr/bin" +_vardir="var/nagios" +_confdir="etc/nagios" + +getent group $_nagios_group > /dev/null || _nagios_group=30 +getent passwd $_nagios_user > /dev/null || _nagios_user=30 + +build() { + cd $pkgname-$pkgver + + ./configure \ + --with-ndo2db-user=$_nagios_user \ + --with-ndo2db-group=$_nagios_group \ + --prefix="/$_instdir" \ + --bindir="/$_bindir" \ + --localstatedir="/$_vardir" \ + --sysconfdir="/$_confdir" \ + --enable-mysql \ + --disable-ssl + + make all +} + +package() { + cd $pkgname-$pkgver + + make DESTDIR="$pkgdir/" fullinstall +} |