diff options
Diffstat (limited to 'unmaintained/resource-agents/APKBUILD')
-rw-r--r-- | unmaintained/resource-agents/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/unmaintained/resource-agents/APKBUILD b/unmaintained/resource-agents/APKBUILD new file mode 100644 index 0000000000..7d6c90a462 --- /dev/null +++ b/unmaintained/resource-agents/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=resource-agents +pkgver=3.9.5 +pkgrel=0 +pkgdesc="Open Source HA Reusable Cluster Resource Scripts" +url="http://www.linux-ha.org/wiki/Resource_Agents" +arch="all" +license="GPL2" +depends="" +depends_dev="cluster-glue-dev libxslt-dev libnet-dev" +makedepends="$depends_dev automake autoconf perl docbook-xsl wget bash" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/ClusterLabs/resource-agents/tarball/v$pkgver + fix-bashism.patch + " + +_builddir="$srcdir"/ClusterLabs-resource-agents-ac806fd +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 + sed -i 's/export -n/export/g' configure.ac || return 1 + aclocal && autoheader && autoconf && automake --add-missing \ + || return 1 +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --enable-fatal-warnings=no \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install_sh=install install || return 1 +} + +md5sums="86ec112decf29906afb755016990f56f resource-agents-3.9.5.tar.gz +b609cdaa30571a1e637a55b42abe5af8 fix-bashism.patch" +sha256sums="e893812a2f5e179d129badb001b2d25364e65a7dd9e97903e1f911bb6eb99d91 resource-agents-3.9.5.tar.gz +b5d19d9268121d25f0a96b1e63c04c4aa3cab958bffe0906ddbb2ef0d05164af fix-bashism.patch" +sha512sums="d7d0926d64ca93f8735522d4e4a068ae680e77dbfc5a326042fc5b1d7775ec3bde712958a260c264d688e739793b87495c6cb6adf94a16e427edbe4c52393589 resource-agents-3.9.5.tar.gz +25949952f66f78af05179ac7c3ab5d2666600d0b26931c8579447b0c1a47463de5f39e31914df2a3971a7d60ebddcefcbe133f76411dac523fbc5a67ff2da3b9 fix-bashism.patch" |