summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-05-23 02:35:29 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-05-23 02:35:29 -0300
commit390974ad131516fe46cde550ced3708a77fbf0ce (patch)
treebeba439e828fa97591b071504b9ba347e4bbc762
parentd06751312fbbdce58390ce8d08b12ac98c5f1e3b (diff)
downloadabslibre-390974ad131516fe46cde550ced3708a77fbf0ce.tar.gz
abslibre-390974ad131516fe46cde550ced3708a77fbf0ce.tar.bz2
abslibre-390974ad131516fe46cde550ced3708a77fbf0ce.zip
ha-pacemaker: add pkg to pcr repo
-rw-r--r--pcr/ha-pacemaker/PKGBUILD81
1 files changed, 81 insertions, 0 deletions
diff --git a/pcr/ha-pacemaker/PKGBUILD b/pcr/ha-pacemaker/PKGBUILD
new file mode 100644
index 000000000..64132b521
--- /dev/null
+++ b/pcr/ha-pacemaker/PKGBUILD
@@ -0,0 +1,81 @@
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgname=ha-pacemaker
+_pkgname=${pkgname:3}
+pkgver=1.1.9
+pkgrel=2
+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
+}