# Maintainer: Brian Bidulock # Contributor: gls # Contributor: Thermi # Contributor: Tim Meusel pkgname=pacemaker-git _pkgname=pacemaker pkgver=2.0.0.rc1.r1.gedd67444e pkgrel=2 pkgdesc="advanced, scalable high-availability cluster resource manager" arch=('i686' 'x86_64') url="https://github.com/ClusterLabs/${_pkgname}/" license=('GPL2') makedepends=('git' 'libxml2' 'inkscape' 'help2man' 'asciidoc') depends=('gnutls' 'glib2' 'pam' 'libtool' 'python' 'libxslt' 'libesmtp' 'corosync-git' 'libqb-git' 'resource-agents-git') provides=(${_pkgname}) conflicts=(${_pkgname}) install=${_pkgname}.install source=("$pkgname::git+https://github.com/ClusterLabs/${_pkgname}.git" 'crm_report.in') md5sums=('SKIP' '07f26ba3fff0749cc5bc5b4da154611d') pkgver() { cd $pkgname git describe --long --tags | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g' } prepare() { cd $pkgname autoreconf -fiv # ./autogen.sh } build() { cd $pkgname ./configure \ CPPFLAGS= \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --localstatedir=/var \ --disable-static \ --disable-fatal-warnings \ --with-version=$pkgver-$pkgrel \ --enable-systemd \ --disable-upstart \ --with-ais \ --with-corosync \ --without-heartbeat \ --without-cman \ --with-cs-quorum \ --with-nagios \ --with-snmp \ --with-esmtp \ --with-acl \ --with-cibsecrets \ --without-profiling \ --without-coverage \ --with-configdir=/etc/pacemaker # --with-nagios-plugin-dir=DIR # --with-nagios-metadata-dir=DIR make V=0 } package() { cd $pkgname make DESTDIR="${pkgdir}" install cd "$srcdir" install -Dm644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf" cat>"$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf"<<-EOF d /var/log/pacemaker 0755 hacluster haclient d /var/lib/pacemaker 0770 hacluster haclient d /var/lib/pacemaker/blackbox 0770 hacluster haclient d /var/lib/pacemaker/cib 0770 hacluster haclient d /var/lib/pacemaker/cores 0770 hacluster haclient d /var/lib/pacemaker/pengine 0770 hacluster haclient EOF # install -Dm644 /dev/null "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf" # cat>"$pkgdir/usr/lib/sysusers.d/$_pkgname.conf"<<-EOF # u hacluster 189 "Cluster User" # g haclient 189 - # m hacluster haclient # EOF rm -fr "$pkgdir/var" chmod a+x "$pkgdir/usr/share/pacemaker/tests/cts/CTSlab.py" find "$pkgdir" -name '*.xml' -type f -print0 | xargs -0 chmod a-x find "$pkgdir" -type f -name '*.la' -delete -print rm -fr "$pkgdir/etc/init.d" rm -f "$pkgdir/usr/bin/fence_pcmk" mv "$pkgdir/usr/bin/crm_report" "$pkgdir/usr/bin/crm_report.pacemaker" install -Dm755 crm_report.in "$pkgdir/usr/bin/crm_report" } # vim: set sw=2 et ts=2: