aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-06-12 12:47:53 +0300
committerprspkt <prspkt@protonmail.com>2019-06-12 12:56:01 +0300
commit43d664ee64843a405bd61aa3a21486883dfa11aa (patch)
treec4c4f2d8155e4d5f3d754f900c8ca2d84ab36c4a
parent8b07835b187072289f2941f7c03572303c65c4db (diff)
downloadaports-43d664ee64843a405bd61aa3a21486883dfa11aa.tar.gz
aports-43d664ee64843a405bd61aa3a21486883dfa11aa.tar.bz2
aports-43d664ee64843a405bd61aa3a21486883dfa11aa.tar.xz
testing/cluster-glue: clarify license, modernize
-rw-r--r--testing/cluster-glue/APKBUILD39
1 files changed, 13 insertions, 26 deletions
diff --git a/testing/cluster-glue/APKBUILD b/testing/cluster-glue/APKBUILD
index 4b42734538..56442fb2f0 100644
--- a/testing/cluster-glue/APKBUILD
+++ b/testing/cluster-glue/APKBUILD
@@ -3,10 +3,10 @@
pkgname=cluster-glue
pkgver=1.0.12
pkgrel=2
-pkgdesc="A set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack."
-url="http://linux-ha.org/wiki/Cluster_Glue"
+pkgdesc="Reusable cluster components"
+url="https://clusterlabs.org"
arch="all"
-license="GPL"
+license="GPL-2.0-only AND LGPL-2.1-or-later"
depends=""
depends_dev="net-snmp-dev libxml2-dev glib-dev bzip2-dev curl-dev
e2fsprogs-dev libaio-dev"
@@ -15,36 +15,29 @@ install=""
pkggroups="haclient"
pkgusers="hacluster"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
-source="http://hg.linux-ha.org/glue/archive/glue-$pkgver.tar.bz2
+source="https://github.com/ClusterLabs/cluster-glue/archive/glue-$pkgver.tar.gz
$pkgname.post-install
$pkgname.pre-install"
-_builddir="$srcdir"/Reusable-Cluster-Components-glue--glue-$pkgver
+builddir="$srcdir"/$pkgname-glue-$pkgver
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
+ default_prepare
./autogen.sh
}
build() {
- cd "$_builddir"
- ./configure --prefix=/usr \
+ ./configure \
+ --prefix=/usr \
--localstatedir=/var \
--enable-fatal-warnings=no \
--with-daemon-group="$pkggroups" \
--with-daemon-user="$pkgusers"
- make || return 1
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="${pkgdir}" install || return 1
+ make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/etc/init.d
# initd file needs fixing
#install -m755 -D "$srcdir"/ha_logd.initd \
@@ -52,18 +45,12 @@ package() {
}
libs() {
- pkgdesc="A collection of libraries that are useful for writing cluster managers such as Pacemaker."
+ pkgdesc="Reusable cluster components (libraries)"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.so.* \
- "$subpkgdir"/usr/lib/ || return 1
+ "$subpkgdir"/usr/lib/
}
-md5sums="ec620466d6f23affa3b074b72bca7870 glue-1.0.12.tar.bz2
-d63b0532d08e602d714e8cabaa628158 cluster-glue.post-install
-1b64fd7488d129dcebad7415b8909bb7 cluster-glue.pre-install"
-sha256sums="feba102fa1e24b6be2005089ebe362b82d6567af60005cf371679b1b44ec503f glue-1.0.12.tar.bz2
-bcd5001b742722b8a36158ba903ee104b86b5c37824c423c39918eccace04223 cluster-glue.post-install
-84006abd77a376d802e561d53f99106373defd5cc6f12fe66eb01c23c1c20ac3 cluster-glue.pre-install"
-sha512sums="d5d2f6c426d2bed0d39269338fedfffe840a90ff56b05dff395243d0d8b803593bf35bbce5f7dce376120cd7ddef78400914cb7515b5451c287a1e9e74233122 glue-1.0.12.tar.bz2
+sha512sums="e0da2b17499fb4ba83bb3414123fd00b44f24b3ef817a4802f628467e2876bb8a453b99e4443439edb31de315e8d76292694584e27dbf4310efdc8d438a25272 glue-1.0.12.tar.gz
9d75933e002f938b5ac76170db5f1fd80e89172482186a44fe905d1e27c313d79bcff18e3564023ba94f2eeff3cc25811ea30b3ad06fa345a854b4e4da492bee cluster-glue.post-install
819641edd4aac839cc26c4398f664dc96ccad23bc2c9e813536166852fc01cadfee71294222a40466113bf0ceafb15a55482307a893785b436b3d9e98b58ea0c cluster-glue.pre-install"