From a2c9647f90d7a51a8cb267645506d972d1bdccfe Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Wed, 22 May 2013 16:24:25 -0300 Subject: ha-resourceagent: fixing pkg --- pcr/ha-resourceagent/PKGBUILD | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'pcr') 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: -- cgit v1.2.3