diff options
author | Brian Bidulock | 2017-05-19 16:18:43 -0600 |
---|---|---|
committer | Brian Bidulock | 2017-05-19 16:18:43 -0600 |
commit | 5279671f50378eb52e49a7336242dd4397d6431d (patch) | |
tree | c23f2c7a94a5fda12dd296c17faccc0c9c622947 | |
parent | 48617821845c1819f99b318c0059c60c81fcacd4 (diff) | |
download | aur-5279671f50378eb52e49a7336242dd4397d6431d.tar.gz |
work around uid/gid bug
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rw-r--r-- | pacemaker.install | 14 |
3 files changed, 25 insertions, 9 deletions
@@ -1,8 +1,9 @@ pkgbase = pacemaker pkgdesc = advanced, scalable high-availability cluster resource manager pkgver = 1.1.16 - pkgrel = 6 + pkgrel = 7 url = https://github.com/ClusterLabs/pacemaker/ + install = pacemaker.install arch = i686 arch = x86_64 license = GPL2 @@ -5,7 +5,7 @@ pkgname=pacemaker pkgver=1.1.16 -pkgrel=6 +pkgrel=7 pkgdesc="advanced, scalable high-availability cluster resource manager" arch=('i686' 'x86_64') url="https://github.com/ClusterLabs/${pkgname}/" @@ -13,6 +13,7 @@ license=('GPL2') makedepends=('libxml2' 'inkscape' 'help2man' 'asciidoc') depends=('gnutls' 'glib2' 'pam' 'libtool' 'python' 'libxslt' 'libesmtp' 'corosync' 'libqb' 'resource-agents') +install=${pkgname}.install source=("https://github.com/ClusterLabs/$pkgname/archive/Pacemaker-$pkgver.tar.gz" 'crm_report.in') md5sums=('a3b9d075bc9114ff698966e57e50bb12' @@ -63,18 +64,18 @@ package() { install -dm755 "$pkgdir"/usr/lib/{tmpfiles.d,sysusers.d} install -Dm644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" cat>"$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"<<-EOF - d /var/lib/pacemaker 0770 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 389 "Cluster User" - g haclient - - - m 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 diff --git a/pacemaker.install b/pacemaker.install new file mode 100644 index 000000000000..ce537fb2fa18 --- /dev/null +++ b/pacemaker.install @@ -0,0 +1,14 @@ +post_install(){ : + usr/bin/getent group haclient >/dev/null || usr/bin/groupadd -r haclient -g 189 + usr/bin/getent passwd hacluster >/dev/null || usr/bin/useradd -r -g 189 -u 189 -s /sbin/nologin -c "cluster user" -d / hacluster +} + +post_upgrade(){ : +} + +post_remove(){ : + usr/bin/getent group haclient >/dev/null && usr/bin/groupdel -f haclient + usr/bin/getent passwd hacluster >/dev/null && usr/bin/userdel hacluster + usr/bin/rm -fr var/lib/pacemaker +} + |