diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-11-03 15:37:52 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-11-03 15:37:52 +0000 |
commit | 971471b59729b779308a561f7cadde794b367799 (patch) | |
tree | 6ac255537b90914b17cbafc2a3db1a4cb65dd29e /testing/pacemaker | |
parent | f1724a024b640f0dad848d17db133ef635a1c6f0 (diff) | |
download | aports-971471b59729b779308a561f7cadde794b367799.tar.bz2 aports-971471b59729b779308a561f7cadde794b367799.tar.xz |
testing/pacemaker: new aport
Diffstat (limited to 'testing/pacemaker')
-rw-r--r-- | testing/pacemaker/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/pacemaker/APKBUILD b/testing/pacemaker/APKBUILD new file mode 100644 index 0000000000..b5fe08e801 --- /dev/null +++ b/testing/pacemaker/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=pacemaker +pkgver=1.1.6.1 +pkgrel=0 +pkgdesc="Scalable High-Availability cluster resource manager" +url="http://www.clusterlabs.org" +arch="all" +license="GPL2" +depends="" +depends_dev="glib-dev libxml2-dev libxslt-dev bzip2-dev gnutls-dev + cluster-glue-dev resouce-agents-dev corosync-dev" +makedepends="$depends_dev automake autoconf libtool libltdl wget docbook-xsl" +install="" +subpackages="$pkgname-doc $pkgname-dev" +source="saveas-https://nodeload.github.com/ClusterLabs/pacemaker/tarball/Pacemaker-1.1.6.1/pacemaker-1.1.6.1.tar.gz + $pkgname.initd" + +_builddir="$srcdir"/ClusterLabs-pacemaker-0c7312c +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./autogen.sh + ./configure \ + --enable-fatal-warnings=no \ + --with-corosync + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib*/*.la + rm -f "$pkgdir"/usr/lib*/heartbeat/plugins/RAExec/*.la + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + +} + +libs() { + pkgdesc="$pkgname libraries" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/lib*.so.* \ + "$subpkgdir"/usr/lib/ +} + +md5sums="6a4132bbba017581b36b87c35246bb92 pacemaker-1.1.6.1.tar.gz +aca8b793c4a977294121615ed3ce6398 pacemaker.initd" |