Better PKGBUILD for SPINE
This commit is contained in:
parent
66cba80c9a
commit
55f7720982
1 changed files with 12 additions and 9 deletions
|
@ -2,28 +2,31 @@
|
|||
# Contributor: Tom <tomgparchaur@gmail.com>
|
||||
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')
|
||||
|
|
Loading…
Reference in a new issue