summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/ha-heartbeat/PKGBUILD6
-rw-r--r--pcr/ha-heartbeat/ha-heartbeat.service (renamed from pcr/ha-heartbeat/heartbeat.service)0
-rw-r--r--pcr/ha-resourceagent/PKGBUILD59
-rw-r--r--pcr/ha-resourceagent/ha-ldirector.service10
4 files changed, 72 insertions, 3 deletions
diff --git a/pcr/ha-heartbeat/PKGBUILD b/pcr/ha-heartbeat/PKGBUILD
index b47c525b3..10ef5def3 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=1
+pkgrel=2
pkgdesc='Daemon that provides cluster infrastructure services to its clients'
arch=(
i686
@@ -25,7 +25,7 @@ options=(
)
source=(
http://hg.linux-ha.org/$_pkgname-STABLE_$_pkgver/archive/STABLE-$pkgver.tar.bz2
- $_pkgname.service
+ $pkgname.service
)
sha512sums=(
e38083b87c56a72eb8925ac42adeabb92618608e92218a63960ec0d0bca264f92a8e9c3ebfb0589cc4538da1a82b268b5cc9ee5a51ed33057c969e694e16b27d
@@ -62,5 +62,5 @@ package() {
#end python path correction
install -d $pkgdir/usr/lib/systemd/system
- install -Dm644 $srcdir/$_pkgname.service $pkgdir/usr/lib/systemd/system
+ install -Dm644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system
}
diff --git a/pcr/ha-heartbeat/heartbeat.service b/pcr/ha-heartbeat/ha-heartbeat.service
index aacde3dbb..aacde3dbb 100644
--- a/pcr/ha-heartbeat/heartbeat.service
+++ b/pcr/ha-heartbeat/ha-heartbeat.service
diff --git a/pcr/ha-resourceagent/PKGBUILD b/pcr/ha-resourceagent/PKGBUILD
new file mode 100644
index 000000000..a1588664b
--- /dev/null
+++ b/pcr/ha-resourceagent/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgname=ha-resourceagent
+_pkgname=${pkgname:3}
+_xname=${_pkgname::8}
+_yname=${_pkgname:8}
+_Name=${_xname^}_${_yname^}
+_name=${_xname}-${_yname}s
+pkgver=3.9.5
+pkgrel=1
+pkgdesc='A standardized interface for a cluster resource'
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+url=http://linux-ha.org/wiki/$_Name
+license=GPL
+depends=ha-glue
+source=(
+ https://github.com/ClusterLabs/$_name/archive/v$pkgver.tar.gz
+ ha-ldirector.service
+)
+sha512sums=(
+ 668955de7a80577a1fb599d03b0a47589a00aed3017b532931b5132b877e45778c590f26d3057ee763c35973b0f6b032e2f74ebdf0b5f45b5e402b0f13b8ff4e
+ 9e257b31305657a5164eebf6893d84496ef5dc5e80058dda5cd250c847c8247e10410cca99f0a481fa461487198fa59640e09d1e81fc3199a54f3ec85c56d9a3
+)
+
+prepare() {
+ cd $srcdir/$_name-$pkgver
+ sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|' configure.ac
+}
+
+build() {
+ cd $srcdir/$_name-$pkgver
+ ./autogen.sh
+ ./configure --prefix=/usr\
+ --libdir=/usr/lib\
+ --localstatedir=/var\
+ --sysconfdir=/etc
+ setarch $CARCH make
+}
+
+package() {
+ cd $srcdir/$_name-$pkgver
+ setarch $CARCH make DESTDIR=$pkgdir install
+
+ #python path correction
+ for py in `grep -r -l "\#\!\/usr\/bin\/python" $pkgdir`;do
+ sed -i 's:/usr/bin/python$:/usr/bin/python2:g' $py
+ done
+ for py in `grep -r -l "\#\!\/usr\/bin\/env python" $pkgdir`;do
+ sed -i '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/ha-ldirector.service $pkgdir/usr/lib/systemd/system
+}
diff --git a/pcr/ha-resourceagent/ha-ldirector.service b/pcr/ha-resourceagent/ha-ldirector.service
new file mode 100644
index 000000000..c5809a216
--- /dev/null
+++ b/pcr/ha-resourceagent/ha-ldirector.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Non-heartbeat systems service, that manages the Linux Virtual Server component for TCP/UDP load-balancing.
+Requires=network.target remote-fs.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/ldirectord
+
+[Install]
+WantedBy=multi-user.target