summaryrefslogtreecommitdiff
path: root/pcr/ha-heartbeat
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/ha-heartbeat')
-rw-r--r--pcr/ha-heartbeat/PKGBUILD52
1 files changed, 35 insertions, 17 deletions
diff --git a/pcr/ha-heartbeat/PKGBUILD b/pcr/ha-heartbeat/PKGBUILD
index 10ef5def3..f913344a0 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=6
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,25 @@ 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|;
+ s|AM_INIT_AUTOMAKE(heartbeat, $HAPKGVERSION)|AM_INIT_AUTOMAKE|;
+ ' configure.ac
+ sed -i "s|AC_INIT(GNUmakefile)|AC_INIT(heartbeat, $pkgver)|;
+ " configure.ac
+ sed -i 's|INCLUDES|AM_CPPFLAGS|;
+ ' {contrib/{drbd-outdate-peer,ipfail,mlock},cts,heartbeat,lib/{apphb,hbclient,plugins/{HB{auth,comm,compress},quorum{,d},tiebreaker}},membership/{ccm,quorumd},replace,telecom/apphbd,tools}/Makefile.am
}
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\
+ --enable-valgrind\
--libdir=/usr/lib\
+ --localstatedir=/var\
--sysconfdir=/etc
setarch $CARCH make
}
@@ -53,14 +77,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: