ArchLinux/pkgbuild/cacti-spine/PKGBUILD

33 lines
972 B
Bash

# Maintainer: Cedric Girard <girard.cedric@gmail.com>
# Contributor: Tom <tomgparchaur@gmail.com>
pkgname=cacti-spine
pkgver=0.8.8_b
pkgrel=1
pkgdesc="Faster poller for Cacti."
arch=('i686' 'x86_64')
url="http://cacti.net/spine_info.php"
license=('GPL')
depends=('libmariadbclient' 'net-snmp' "cacti=${pkgver}")
backup=('etc/spine.conf')
source=("http://www.cacti.net/downloads/spine/${pkgname}-${pkgver/_/}.tar.gz")
md5sums=('245eef2561a4939006cba8991a3ad6d5')
build() {
cd "${srcdir}/${pkgname}-${pkgver/_/}"
sed -i 's!AM_CONFIG_HEADER!AC_CONFIG_HEADERS!g' configure.ac
/usr/bin/aclocal
/usr/bin/libtoolize --force --copy
/usr/bin/autoheader
/usr/bin/autoconf
/usr/bin/automake --add-missing --copy --force-missing
/bin/chmod +x ./configure
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver/_/}"
make DESTDIR="${pkgdir}" install
mv "${pkgdir}"/etc/spine.conf.dist "${pkgdir}"/etc/spine.conf
}