Created
March 18, 2018 02:23
-
-
Save bbidulock/b2c8d6394159c12432898d811e947450 to your computer and use it in GitHub Desktop.
PKGBUILD for corosync 2.4.3
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.3 | |
pkgrel=1 | |
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') | |
source=("$pkgname-$pkgver.tar.gz::https://github.com/corosync/$pkgname/archive/v$pkgver.tar.gz") | |
md5sums=('bf0ede13018aadc8a046183bc593b0e0') | |
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 \ | |
--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" | |
install -Dm644 /dev/null "${pkgdir}/usr/lib/tmpfiles.d/corosync.conf" | |
echo "d /var/log/cluster 0755 root root -" \ | |
>"${pkgdir}/usr/lib/tmpfiles.d/corosync.conf" | |
} | |
# vim: set sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment