# Maintainer: Eric Renfro pkgname=corosync pkgver=2.1.0 pkgrel=4 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') makedepends=('nss' 'libstatgrab' 'net-snmp' 'libqb') depends=('nss' 'libstatgrab' 'net-snmp' 'libqb') provides=('corosync=2.1.0') conflicts=('corosync1') #source=(ftp://ftp:downloads@ftp.corosync.org/downloads/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz) source=("https://github.com/downloads/corosync/corosync/corosync-${pkgver}.tar.gz" "corosync.init" "corosync.service") md5sums=('dc5152e6dfdb4638ab544e587884483a' 'fdc3b648f020e165eaa7c3283ce5b9ac' 'abc267226faafc7dc8246634277705ea') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-systemd \ --enable-monitoring \ --enable-snmp \ --enable-dbus \ --with-systemddir=/usr/lib/systemd/system make || return 1 make DESTDIR="${pkgdir}" install || return 1 ## Updated and fixed up systemd service unit and associated start/stop script: cp ${srcdir}/corosync.service ${pkgdir}/usr/lib/systemd/system/corosync.service || return 1 cp ${srcdir}/corosync.init ${pkgdir}/usr/share/corosync/corosync || return 1 }