From 2e5b72e5e8dfb5199a9b0da7c76d052a456662c2 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 May 2013 01:18:40 -0700 Subject: Tue May 14 01:18:40 PDT 2013 --- pcr/ha-glue/PKGBUILD | 58 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 25 deletions(-) (limited to 'pcr/ha-glue') diff --git a/pcr/ha-glue/PKGBUILD b/pcr/ha-glue/PKGBUILD index d170155d9..4806932db 100644 --- a/pcr/ha-glue/PKGBUILD +++ b/pcr/ha-glue/PKGBUILD @@ -3,38 +3,54 @@ pkgname=ha-glue _pkgname=${pkgname:3} pkgver=1.0.11 -pkgrel=2 -pkgdesc='A set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.' +pkgrel=4 +pkgdesc='A set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack' arch=( i686 x86_64 mips64el ) url=http://linux-ha.org/wiki/Cluster_${_pkgname^} -license=GPL +license=( + GPL2 + LGPL2.1 +) depends=( curl glib2 libaio - libtool + libesmtp libxml2 net-snmp - python2 + python util-linux ) +optdepends=( + lynx + net-tools + openssh + #valgrind + #w3m +) +makedepends=( + help2man + libxslt + #lynx + net-tools + openssh + #valgrind + #w3m +) +options=!libtool +install=$pkgname.install source=( http://hg.linux-ha.org/$_pkgname/archive/$_pkgname-$pkgver.tar.bz2 - ha-logd.service + ha-log.service ) sha512sums=( 35ac8ac555c39f24c11e3a768cc50eba051fe617edf4cdc0429dac73f45a472f144cfe6ec5faff575606f2b04ff76a2f732556d848b61410c2683d93ba928413 9252472a6d7a1bbad765c63becdec4064d882b1eb98abdf27833a6e06d8750f06663b2460d32a4c72d04f10a7480ef0a2093b8a18b4d1fc62a989cde54ee056a ) -install=$pkgname.install -options=( - '!libtool' - docs -) prepare() { export _CLUSTER_USER=hacluster @@ -63,16 +79,15 @@ prepare() { build() { cd $srcdir/Reusable-Cluster-Components-$_pkgname--$_pkgname-$pkgver - sed -i 's///g' include/clplumbing/cl_uuid.h setarch $CARCH ./autogen.sh setarch $CARCH ./configure --prefix=/usr\ --enable-fatal-warnings=no\ + --enable-static=no\ --libdir=/usr/lib\ - --libexecdir=/usr/lib/$pkgname\ --localstatedir=/var\ --sysconfdir=/etc\ - --with-daemon-group=$_CLUSTER_GROUP\ - --with-daemon-user=$_CLUSTER_USER + --with-daemon-group=haclient\ + --with-daemon-user=hacluster setarch $CARCH make } @@ -80,19 +95,12 @@ package() { cd $srcdir/Reusable-Cluster-Components-$_pkgname--$_pkgname-$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-logd.service $pkgdir/usr/lib/systemd/system + install -Dm644 $srcdir/ha-log.service $pkgdir/usr/lib/systemd/system msg 'AFTER COMPILE THIS SOFTWARE YOU MUST DELETE A CLUSTER USER AND A CLUSTER GROUP, EXECUTE AS ROOT:' echo -e "# userdel $_CLUSTER_USER" echo -e "# groupdel $_CLUSTER_GROUP" } + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf