Last active
April 17, 2018 07:14
-
-
Save bbidulock/3bd0c332e970e6446d0326253f19b1d7 to your computer and use it in GitHub Desktop.
PKGBUILD for corosync 2.4.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Maintainer: ovi chis <[email protected]> | |
pkgname=corosync | |
pkgver=2.4.4 | |
pkgrel=2 | |
pkgdesc="Cluster engine for nodal communication systems with additional features for implementing high availability within applications." | |
arch=('i686' 'x86_64') | |
url="http://www.corosync.org/" | |
license=('BSD') | |
depends=('nss' 'libstatgrab' 'net-snmp' 'libdbus' 'libqb' 'libcgroup') | |
source=("$pkgname-$pkgver.tar.gz::https://github.com/corosync/$pkgname/archive/v$pkgver.tar.gz") | |
md5sums=('8d561538e26f734a165d4d1710816cc3') | |
prepare() { | |
cd ${pkgname}-${pkgver} | |
echo ${pkgver} >.tarball-version | |
GIT_DIR=`pwd`/.git ./autogen.sh | |
} | |
build() { | |
cd ${pkgname}-${pkgver} | |
GIT_DIR=`pwd`/.git ./configure --sbindir=/usr/bin \ | |
--sysconfdir=/etc \ | |
--libdir=/usr/lib \ | |
--localstatedir=/var \ | |
--enable-dbus \ | |
--enable-monitoring \ | |
--enable-watchdog \ | |
--enable-systemd \ | |
--disable-upstart \ | |
--enable-snmp \ | |
--enable-xmlconf \ | |
--enable-qdevices \ | |
--enable-qnetd \ | |
--enable-libcgroup \ | |
--with-systemddir=/usr/lib/systemd/system \ | |
--with-tmpfilesdir=/usr/lib/tmpfiles.d | |
make V=0 | |
} | |
package() { | |
cd ${pkgname}-${pkgver} | |
make DESTDIR="${pkgdir}" install | |
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" | |
rm -fr "${pkgdir}/var/log" | |
rm -fr "${pkgdir}/var/run" | |
install -Dm644 /dev/null "${pkgdir}/usr/lib/tmpfiles.d/corosync.conf" | |
cat >>"${pkgdir}/usr/lib/tmpfiles.d/corosync.conf" <<EOF | |
d /var/log/cluster 0755 root root - | |
d /run/corosync-qdevice 0755 root root - | |
d /run/corosync-qnetd 0755 root root - | |
EOF | |
} | |
# vim: set sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment