summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-05-22 16:24:25 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-05-22 16:24:25 -0300
commita2c9647f90d7a51a8cb267645506d972d1bdccfe (patch)
treee92eb3023a9969d7358e888958f5f1df36a4eb13 /pcr
parentad8006073ac6cf51d8f895b8801bc8e8b53c60e4 (diff)
downloadabslibre-a2c9647f90d7a51a8cb267645506d972d1bdccfe.tar.gz
abslibre-a2c9647f90d7a51a8cb267645506d972d1bdccfe.tar.bz2
abslibre-a2c9647f90d7a51a8cb267645506d972d1bdccfe.zip
ha-resourceagent: fixing pkg
Diffstat (limited to 'pcr')
-rw-r--r--pcr/ha-resourceagent/PKGBUILD35
1 files changed, 22 insertions, 13 deletions
diff --git a/pcr/ha-resourceagent/PKGBUILD b/pcr/ha-resourceagent/PKGBUILD
index a1588664b..56dc744fe 100644
--- a/pcr/ha-resourceagent/PKGBUILD
+++ b/pcr/ha-resourceagent/PKGBUILD
@@ -7,8 +7,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'
+pkgrel=2
+pkgdesc='Standardized interface for a cluster resource'
arch=(
i686
x86_64
@@ -17,6 +17,16 @@ arch=(
url=http://linux-ha.org/wiki/$_Name
license=GPL
depends=ha-glue
+optdepends=(
+ net-tools
+ openssh
+)
+makedepends=(
+ #libxslt
+ libvirt
+ net-tools
+ openssh
+)
source=(
https://github.com/ClusterLabs/$_name/archive/v$pkgver.tar.gz
ha-ldirector.service
@@ -28,16 +38,22 @@ sha512sums=(
prepare() {
cd $srcdir/$_name-$pkgver
- sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|' configure.ac
+ sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|;
+ ' configure.ac
+ sed -i 's|INCLUDES|AM_CPPFLAGS|;
+ ' {heartbeat,tools}/Makefile.am
}
build() {
cd $srcdir/$_name-$pkgver
./autogen.sh
./configure --prefix=/usr\
+ --enable-fatal-warnings\
+ --enable-libnet\
--libdir=/usr/lib\
--localstatedir=/var\
- --sysconfdir=/etc
+ --sysconfdir=/etc\
+ --with-ocf-root=/usr/lib/ocf
setarch $CARCH make
}
@@ -45,15 +61,8 @@ 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
}
+
+# vim:set ts=2 sw=2 et: