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>
|
# Contributor: Tom <tomgparchaur@gmail.com>
|
||||||
pkgname=cacti-spine
|
pkgname=cacti-spine
|
||||||
pkgver=0.8.7g
|
pkgver=0.8.7g
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Faster poller for Cacti."
|
pkgdesc="Faster poller for Cacti."
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://cacti.net/spine_info.php"
|
url="http://cacti.net/spine_info.php"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('mysql' 'net-snmp' 'openssl')
|
depends=('libmysqlclient' 'net-snmp')
|
||||||
backup=('etc/spine.conf')
|
backup=('etc/spine.conf')
|
||||||
makedepends=('binutils')
|
|
||||||
source=("http://www.cacti.net/downloads/spine/${pkgname}-${pkgver}.tar.gz")
|
source=("http://www.cacti.net/downloads/spine/${pkgname}-${pkgver}.tar.gz")
|
||||||
|
md5sums=('22c2b1986c880b9c587876c18d5c3f9f')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/${pkgname}-${pkgver}
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
/usr/bin/aclocal
|
/usr/bin/aclocal
|
||||||
/usr/bin/libtoolize --force --copy
|
/usr/bin/libtoolize --force --copy
|
||||||
/usr/bin/autoheader
|
/usr/bin/autoheader
|
||||||
/usr/bin/autoconf
|
/usr/bin/autoconf
|
||||||
/usr/bin/automake --add-missing --copy --force-missing
|
/usr/bin/automake --add-missing --copy --force-missing
|
||||||
/bin/chmod +x ./configure
|
/bin/chmod +x ./configure
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr --sysconfdir=/etc
|
||||||
make || return 1
|
make
|
||||||
make DESTDIR=${pkgdir} install || return 1
|
}
|
||||||
mv ${pkgdir}/usr/etc/ ${pkgdir}/
|
|
||||||
|
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