From 55f7720982a02a45cacc05d3f54189a22eeb05f6 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Fri, 25 Feb 2011 18:34:01 +0100 Subject: [PATCH] Better PKGBUILD for SPINE --- pkgbuild/cacti-spine/PKGBUILD | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgbuild/cacti-spine/PKGBUILD b/pkgbuild/cacti-spine/PKGBUILD index da95882..95395dd 100644 --- a/pkgbuild/cacti-spine/PKGBUILD +++ b/pkgbuild/cacti-spine/PKGBUILD @@ -2,28 +2,31 @@ # Contributor: Tom pkgname=cacti-spine pkgver=0.8.7g -pkgrel=2 +pkgrel=3 pkgdesc="Faster poller for Cacti." arch=('i686' 'x86_64') url="http://cacti.net/spine_info.php" license=('GPL') -depends=('mysql' 'net-snmp' 'openssl') +depends=('libmysqlclient' 'net-snmp') backup=('etc/spine.conf') -makedepends=('binutils') source=("http://www.cacti.net/downloads/spine/${pkgname}-${pkgver}.tar.gz") +md5sums=('22c2b1986c880b9c587876c18d5c3f9f') build() { - cd ${srcdir}/${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" /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 - make || return 1 - make DESTDIR=${pkgdir} install || return 1 - mv ${pkgdir}/usr/etc/ ${pkgdir}/ + ./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 } -md5sums=('22c2b1986c880b9c587876c18d5c3f9f')