summaryrefslogtreecommitdiff
path: root/pcr/ha-resourceagent/PKGBUILD
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-05-13 16:54:30 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-05-13 16:54:30 -0300
commitc265312a9f9dd0cf88faf8661169d89e133d183a (patch)
tree4ce886c862afb122317b2814ac07a8191188578a /pcr/ha-resourceagent/PKGBUILD
parente77ca8848f90ebc012dc2d77b07790c2dec5462e (diff)
downloadabslibre-c265312a9f9dd0cf88faf8661169d89e133d183a.tar.gz
abslibre-c265312a9f9dd0cf88faf8661169d89e133d183a.tar.bz2
abslibre-c265312a9f9dd0cf88faf8661169d89e133d183a.zip
ha-resourceagent: adding pkg to pcr repo
Diffstat (limited to 'pcr/ha-resourceagent/PKGBUILD')
-rw-r--r--pcr/ha-resourceagent/PKGBUILD59
1 files changed, 59 insertions, 0 deletions
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
+}