mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 18:45:05 +02:00
install scripts belong in a single global $install (to allow validation)
and should not be included in $source.
Ref df8e468f0e
54 lines
1.3 KiB
Text
54 lines
1.3 KiB
Text
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=cluster-glue
|
|
pkgver=1.0.12
|
|
pkgrel=5
|
|
pkgdesc="Reusable cluster components"
|
|
url="https://clusterlabs.org"
|
|
arch="all"
|
|
license="GPL-2.0-only AND LGPL-2.1-or-later"
|
|
depends_dev="net-snmp-dev libxml2-dev glib-dev bzip2-dev curl-dev
|
|
e2fsprogs-dev libaio-dev"
|
|
makedepends="$depends_dev asciidoc autoconf automake libtool"
|
|
pkggroups="haclient"
|
|
pkgusers="hacluster"
|
|
install="
|
|
$pkgname.post-install
|
|
$pkgname.pre-install
|
|
"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
|
|
source="https://github.com/ClusterLabs/cluster-glue/archive/glue-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir/$pkgname-glue-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--prefix=/usr \
|
|
--localstatedir=/var \
|
|
--enable-fatal-warnings=no \
|
|
--with-daemon-group="$pkggroups" \
|
|
--with-daemon-user="$pkgusers"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
rm -rf "$pkgdir"/etc/init.d
|
|
# initd file needs fixing
|
|
#install -m755 -D "$srcdir"/ha_logd.initd \
|
|
# "$pkgdir"/etc/init.d/ha_logd || return 1
|
|
}
|
|
|
|
libs() {
|
|
pkgdesc="Reusable cluster components (libraries)"
|
|
|
|
amove usr/lib/lib*.so.*
|
|
}
|
|
|
|
sha512sums="e0da2b17499fb4ba83bb3414123fd00b44f24b3ef817a4802f628467e2876bb8a453b99e4443439edb31de315e8d76292694584e27dbf4310efdc8d438a25272 glue-1.0.12.tar.gz"
|