summaryrefslogtreecommitdiff
path: root/pcr/ha-heartbeat
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 22:24:43 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 22:24:43 -0400
commit1850477669a068ea78a0a51c7bbe62df6c1cb020 (patch)
tree41574213b4d929183f6d1c2541f68d34ad62a44f /pcr/ha-heartbeat
parent02ffd0379aa27eb836aa45396854d3c005e37e31 (diff)
parentb64f2ea4bc8d36302de9d8b77ae8ae72e383ff63 (diff)
downloadabslibre-1850477669a068ea78a0a51c7bbe62df6c1cb020.tar.gz
abslibre-1850477669a068ea78a0a51c7bbe62df6c1cb020.tar.bz2
abslibre-1850477669a068ea78a0a51c7bbe62df6c1cb020.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/ha-heartbeat')
-rw-r--r--pcr/ha-heartbeat/PKGBUILD66
-rw-r--r--pcr/ha-heartbeat/ha-heartbeat.service10
2 files changed, 76 insertions, 0 deletions
diff --git a/pcr/ha-heartbeat/PKGBUILD b/pcr/ha-heartbeat/PKGBUILD
new file mode 100644
index 000000000..10ef5def3
--- /dev/null
+++ b/pcr/ha-heartbeat/PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgname=ha-heartbeat
+_pkgname=${pkgname:3}
+pkgver=3.0.5
+_pkgver=${pkgver::1}_${pkgver:2:1}
+pkgrel=2
+pkgdesc='Daemon that provides cluster infrastructure services to its clients'
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+url=http://linux-ha.org/wiki/${_pkgname^}
+license=GPL
+makedepends=docbook-xsl
+depends=(
+ gnutls
+ ha-glue
+)
+options=(
+ '!emptydirs'
+ '!libtool'
+ strip
+)
+source=(
+ http://hg.linux-ha.org/$_pkgname-STABLE_$_pkgver/archive/STABLE-$pkgver.tar.bz2
+ $pkgname.service
+)
+sha512sums=(
+ e38083b87c56a72eb8925ac42adeabb92618608e92218a63960ec0d0bca264f92a8e9c3ebfb0589cc4538da1a82b268b5cc9ee5a51ed33057c969e694e16b27d
+ d14013b4ee133ed07e17fa6e09cae1f9f7bdbabaadfda9b9bb8ed25d4d5ff2f3d419f344195c6d5211da33293d5fe5ad64dbc8be6e1a02f7fa21563f54907a20
+)
+
+prepare() {
+ cd $srcdir/${_pkgname^}-3-0-STABLE-$pkgver
+ sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|' configure.in
+ mv configure.{in,ac}
+}
+
+build() {
+ cd $srcdir/${_pkgname^}-3-0-STABLE-$pkgver
+ setarch $CARCH ./bootstrap
+ setarch $CARCH ./configure --prefix=/usr\
+ --enable-fatal-warnings=no\
+ --enable-static=no\
+ --libdir=/usr/lib\
+ --sysconfdir=/etc
+ setarch $CARCH make
+}
+
+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
+}
diff --git a/pcr/ha-heartbeat/ha-heartbeat.service b/pcr/ha-heartbeat/ha-heartbeat.service
new file mode 100644
index 000000000..aacde3dbb
--- /dev/null
+++ b/pcr/ha-heartbeat/ha-heartbeat.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Startup script high-availability services.
+Requires=network.target remote-fs.target timers.target
+
+[Service]
+Type=forking
+ExecStart=/usr/lib/heartbeat/heartbeat
+
+[Install]
+WantedBy=multi-user.target