ArchLinux/pkgbuild/cacti-spine/PKGBUILD

34 lines
972 B
Text
Raw Normal View History

2010-12-22 12:22:10 +01:00
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
# Contributor: Tom <tomgparchaur@gmail.com>
pkgname=cacti-spine
2014-11-24 17:53:11 +01:00
pkgver=0.8.8_c
2013-08-06 17:39:14 +02:00
pkgrel=1
2010-12-22 12:22:10 +01:00
pkgdesc="Faster poller for Cacti."
arch=('i686' 'x86_64')
url="http://cacti.net/spine_info.php"
license=('GPL')
2013-03-26 12:24:27 +01:00
depends=('libmariadbclient' 'net-snmp' "cacti=${pkgver}")
2010-12-22 12:22:10 +01:00
backup=('etc/spine.conf')
2012-05-04 15:56:06 +02:00
source=("http://www.cacti.net/downloads/spine/${pkgname}-${pkgver/_/}.tar.gz")
2014-11-24 17:53:11 +01:00
md5sums=('448c813422f943dc09b237bd8022002a')
2010-12-22 12:22:10 +01:00
build() {
2012-05-04 15:56:06 +02:00
cd "${srcdir}/${pkgname}-${pkgver/_/}"
2013-03-26 12:24:27 +01:00
sed -i 's!AM_CONFIG_HEADER!AC_CONFIG_HEADERS!g' configure.ac
2010-12-22 12:22:10 +01:00
/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
2011-02-25 18:34:01 +01:00
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
2012-05-04 15:56:06 +02:00
cd "${srcdir}/${pkgname}-${pkgver/_/}"
make DESTDIR="${pkgdir}" install
2011-02-25 18:34:01 +01:00
mv "${pkgdir}"/etc/spine.conf.dist "${pkgdir}"/etc/spine.conf
2010-12-22 12:22:10 +01:00
}