summaryrefslogtreecommitdiff
path: root/pcr/corosync/PKGBUILD
blob: e7c019a6642d48e19cc322588bda0d9814735038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Eric Renfro <erenfro@gmail.com>

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
}