diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-05-31 07:27:46 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-05-31 07:27:46 -0300 |
commit | b72845626d062a99a4556e041b126e3eed94abb9 (patch) | |
tree | 51669a092687007dac860cb1917fee8fabdaacc0 /pcr/pacemaker/PKGBUILD | |
parent | 475b01fc789b4ee29dab78435c2b6a06d4ed5979 (diff) | |
download | abslibre-b72845626d062a99a4556e041b126e3eed94abb9.tar.gz abslibre-b72845626d062a99a4556e041b126e3eed94abb9.tar.bz2 abslibre-b72845626d062a99a4556e041b126e3eed94abb9.zip |
resource-agent, heartbeat, pacemaker: drop ha- prefix type and drop unused services
Diffstat (limited to 'pcr/pacemaker/PKGBUILD')
-rw-r--r-- | pcr/pacemaker/PKGBUILD | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/pcr/pacemaker/PKGBUILD b/pcr/pacemaker/PKGBUILD new file mode 100644 index 000000000..2cd0be84c --- /dev/null +++ b/pcr/pacemaker/PKGBUILD @@ -0,0 +1,83 @@ +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> + +pkgname=ha-pacemaker +_pkgname=${pkgname:3} +pkgver=1.1.9 +pkgrel=3 +pkgdesc='Cluster resource manager' +arch=( + i686 + x86_64 + mips64el +) +url=http://linux-ha.org/wiki/${_pkgname^} +license=GPL2 +depends=( + corosync + ha-heartbeat + ha-resourceagent + libqb +) +optdepens=( + inkscape + lynx + openssh + valgrind + w3m +) +makedepends=( + help2man + inkscape + libxslt + lynx + openssh + valgrind + w3m +) +options=(!libtool) +source=https://github.com/ClusterLabs/$_pkgname/archive/${_pkgname^}-$pkgver.tar.gz +sha512sums=97d13cf722aea9cba1ce344afc3137d9edc15a978d2a7acc44179c4859ecb18f800312caf02c9574b0fab528cd6e2c3e4876a1ffde8a08c2500c0ba816cdf071 + +prepare() { + cd $srcdir/$_pkgname-${_pkgname^}-$pkgver + sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|; + s|AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)|AM_INIT_AUTOMAKE|; + ' configure.ac + sed -i 's|INCLUDES|AM_CPPFLAGS|; + ' {cib,crmd,cts,lib/{cib,cluster,common,fencing,lrmd,pengine,services,transition},mcp,pengine,replace,tools}/Makefile.am +} + +build() { + cd $srcdir/$_pkgname-${_pkgname^}-$pkgver + setarch $CARCH ./autogen.sh + setarch $CARCH ./configure --prefix=/usr\ + --enable-fatal-warnings=yes\ + --disable-static\ + --enable-systemd\ + --enable-upstart\ + --libdir=/usr/lib\ + --libexecdir=/usr/lib\ + --localstatedir=/var\ + --sysconfdir=/etc\ + --with-acl\ + --with-ais\ + --with-cibsecrets\ + --with-cman\ + --with-corosync\ + --with-cs-quorum\ + --with-esmtp\ + --with-heartbeat\ + --with-lcrso-dir=/usr/lib/lcrso\ + --with-nagios\ + --with-profiling\ + --with-snmp\ + --without-gcov + setarch $CARCH make +} + +package() { + cd $srcdir/$_pkgname-${_pkgname^}-$pkgver + setarch $CARCH make DESTDIR=$pkgdir install + + mv $pkgdir/usr/sbin/cibsecret{,-pacemaker} +} |