From 12a549950ba50cdca6c49659b9aab4e3b06093e0 Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Tue, 21 May 2013 16:48:04 -0300 Subject: fixing pkg --- pcr/ha-heartbeat/PKGBUILD | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/pcr/ha-heartbeat/PKGBUILD b/pcr/ha-heartbeat/PKGBUILD index 10ef5def3..fc2518ae7 100644 --- a/pcr/ha-heartbeat/PKGBUILD +++ b/pcr/ha-heartbeat/PKGBUILD @@ -4,7 +4,7 @@ pkgname=ha-heartbeat _pkgname=${pkgname:3} pkgver=3.0.5 _pkgver=${pkgver::1}_${pkgver:2:1} -pkgrel=2 +pkgrel=4 pkgdesc='Daemon that provides cluster infrastructure services to its clients' arch=( i686 @@ -12,17 +12,33 @@ arch=( mips64el ) url=http://linux-ha.org/wiki/${_pkgname^} -license=GPL -makedepends=docbook-xsl +license=( + GPL2 + lGPL2.1 +) depends=( gnutls ha-glue ) -options=( - '!emptydirs' - '!libtool' - strip +optdepends=( + lynx + net-tools + openssh + swig + valgrind + w3m +) +makedepends=( + docbook-xsl + libxslt + lynx + net-tools + openssh + swig + valgrind + w3m ) +options=!libtool source=( http://hg.linux-ha.org/$_pkgname-STABLE_$_pkgver/archive/STABLE-$pkgver.tar.bz2 $pkgname.service @@ -34,17 +50,18 @@ sha512sums=( prepare() { cd $srcdir/${_pkgname^}-3-0-STABLE-$pkgver - sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|' configure.in mv configure.{in,ac} + sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|' configure.ac } build() { cd $srcdir/${_pkgname^}-3-0-STABLE-$pkgver setarch $CARCH ./bootstrap setarch $CARCH ./configure --prefix=/usr\ - --enable-fatal-warnings=no\ + --disable-fatal-warnings\ --enable-static=no\ --libdir=/usr/lib\ + --localstatedir=/var\ --sysconfdir=/etc setarch $CARCH make } @@ -53,14 +70,8 @@ package() { cd $srcdir/${_pkgname^}-3-0-STABLE-$pkgver setarch $CARCH make DESTDIR=$pkgdir install - for py in `grep -r -l "\#\!\/usr\/bin\/python" $pkgdir`;do - sed -i.bk 's:/usr/bin/python$:/usr/bin/python2:g' $py - done - for py in `grep -r -l "\#\!\/usr\/bin\/env python" $pkgdir`;do - sed -i.bk 's:/usr/bin/env python$:/usr/bin/env python2:g' $py - done - #end python path correction - install -d $pkgdir/usr/lib/systemd/system install -Dm644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system } + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf