ArchLinux/pkgbuild/cacti-spine/PKGBUILD

41 lines
1 KiB
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
2015-06-12 17:39:14 +02:00
pkgver=0.8.8_d
pkgrel=2
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')
2015-06-12 17:39:14 +02:00
source=("make.patch" "http://www.cacti.net/downloads/spine/${pkgname}-${pkgver/_/}.tar.gz")
md5sums=('c36d7a35a9b9760fb6a8c53a007f06a7'
'7724218aff3695369a20f05d2aeb993b')
2010-12-22 12:22:10 +01:00
2015-06-12 17:39:14 +02:00
prepare() {
2012-05-04 15:56:06 +02:00
cd "${srcdir}/${pkgname}-${pkgver/_/}"
2015-06-12 17:39:14 +02:00
patch -p1 -i ../make.patch
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
2015-06-12 17:39:14 +02:00
}
build() {
cd "${srcdir}/${pkgname}-${pkgver/_/}"
export CFLAGS="$CFLAGS -lpthread -lm"
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
}