[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)
Date: Saturday, December 16, 2017 @ 02:30:13 Author: heftig Revision: 312953 0.113+34+g29ba7af-1 Modified: polkit/trunk/PKGBUILD Deleted: polkit/trunk/polkit.install + PKGBUILD | 12 polkit.install | 18 -- 2 files changed, 8 insertions(+), 22 deletions(-) Modified: PKGBUILD === --- PKGBUILD2017-12-16 02:20:17 UTC (rev 312952) +++ PKGBUILD2017-12-16 02:30:13 UTC (rev 312953) @@ -2,7 +2,7 @@ # Maintainer: Jan de Grootpkgname=polkit -pkgver=0.113+29+g3272a98 +pkgver=0.113+34+g29ba7af pkgrel=1 pkgdesc="Application development toolkit for controlling system-wide privileges" arch=(x86_64) @@ -10,8 +10,7 @@ url="https://www.freedesktop.org/wiki/Software/polkit/; depends=(glib2 pam expat systemd js) makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive) -install=polkit.install -_commit=3272a988655c3236b55bad70e9a3af20857f384b # master +_commit=29ba7afba1b79a325183a71966f35926dfdf506e # master source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit;) sha256sums=('SKIP') @@ -29,7 +28,7 @@ cd $pkgname ./configure --prefix=/usr --sysconfdir=/etc \ - --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \ + --localstatedir=/var --libexecdir=/usr/lib \ --enable-libsystemd-login=yes --disable-static \ --enable-gtk-doc --with-os-type=redhat @@ -49,6 +48,11 @@ chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d chmod 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d + + install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" /dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -G proc -d '/' -s /usr/bin/nologin polkitd - passwd -l polkitd &>/dev/null -} - -post_upgrade() { - post_install - - if (( $(vercmp $2 0.113-2) < 0 )); then -usermod -aG proc -s /usr/bin/nologin polkitd - fi - - if (( $(vercmp $2 0.113-4) < 0 )); then -chown root:102 /{etc,usr/share}/polkit-1/rules.d -chmod 750 /{etc,usr/share}/polkit-1/rules.d - fi -}
[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)
Date: Sunday, October 25, 2015 @ 19:39:57 Author: heftig Revision: 249755 Fix up perms post_upgrade Modified: polkit/trunk/PKGBUILD polkit/trunk/polkit.install + PKGBUILD |2 +- polkit.install |5 + 2 files changed, 6 insertions(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2015-10-25 18:24:01 UTC (rev 249754) +++ PKGBUILD2015-10-25 18:39:57 UTC (rev 249755) @@ -3,7 +3,7 @@ pkgname=polkit pkgver=0.113 -pkgrel=3 +pkgrel=4 pkgdesc="Application development toolkit for controlling system-wide privileges" arch=(i686 x86_64) license=(LGPL) Modified: polkit.install === --- polkit.install 2015-10-25 18:24:01 UTC (rev 249754) +++ polkit.install 2015-10-25 18:39:57 UTC (rev 249755) @@ -10,4 +10,9 @@ if (( $(vercmp $2 0.113-2) < 0 )); then usermod -aG proc -s /usr/bin/nologin polkitd fi + + if (( $(vercmp $2 0.113-4) < 0 )); then +chown root:102 /{etc,usr/share}/polkit-1/rules.d +chmod 750 /{etc,usr/share}/polkit-1/rules.d + fi }
[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)
Date: Wednesday, August 12, 2015 @ 06:45:04 Author: heftig Revision: 243187 FS#43930 proc group Modified: polkit/trunk/PKGBUILD polkit/trunk/polkit.install + PKGBUILD |2 +- polkit.install | 12 2 files changed, 9 insertions(+), 5 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-08-12 00:36:59 UTC (rev 243186) +++ PKGBUILD2015-08-12 04:45:04 UTC (rev 243187) @@ -3,7 +3,7 @@ pkgname=polkit pkgver=0.113 -pkgrel=1 +pkgrel=2 pkgdesc=Application development toolkit for controlling system-wide privileges arch=(i686 x86_64) license=(LGPL) Modified: polkit.install === --- polkit.install 2015-08-12 00:36:59 UTC (rev 243186) +++ polkit.install 2015-08-12 04:45:04 UTC (rev 243187) @@ -1,9 +1,13 @@ post_install() { - getent group polkitd /dev/null || groupadd -g 102 polkitd - getent passwd polkitd /dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd - passwd -l polkitd /dev/null + getent group polkitd /dev/null || groupadd -g 102 polkitd + getent passwd polkitd /dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -G proc -d '/' -s /usr/bin/nologin polkitd + passwd -l polkitd /dev/null } post_upgrade() { - post_install + post_install + + if (( $(vercmp $2 0.113-2) 0 )); then +usermod -aG proc -s /usr/bin/nologin polkitd + fi }
[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)
Date: Tuesday, June 2, 2015 @ 08:08:16 Author: jgc Revision: 23 upgpkg: polkit 0.112-3 Update to git snapshot, fixes some bugs and memleaks. Do not delete user account on post_remove Modified: polkit/trunk/PKGBUILD polkit/trunk/polkit.install + PKGBUILD | 16 +--- polkit.install |9 - 2 files changed, 9 insertions(+), 16 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-06-01 20:58:11 UTC (rev 239998) +++ PKGBUILD2015-06-02 06:08:16 UTC (rev 23) @@ -3,20 +3,24 @@ pkgname=polkit pkgver=0.112 -pkgrel=2 +pkgrel=3 pkgdesc=Application development toolkit for controlling system-wide privileges arch=(i686 x86_64) license=(LGPL) url=http://www.freedesktop.org/wiki/Software/polkit; depends=(glib2 pam expat systemd js17) -makedepends=(intltool gtk-doc gobject-introspection) +makedepends=(intltool gtk-doc gobject-introspection git) install=polkit.install -source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz +source=(git://anongit.freedesktop.org/polkit#commit=f4d71e0de885010494b8b0b8d62ca910011d7544 polkit.pam) +md5sums=('SKIP' + '6564f95878297b954f0572bc1610dd15') build() { - cd $pkgname-$pkgver + cd $pkgname + NOCONFIGURE=1 ./autogen.sh + ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \ --enable-libsystemd-login=yes --disable-static \ @@ -25,7 +29,7 @@ } package() { - cd $pkgname-$pkgver + cd $pkgname make DESTDIR=$pkgdir install chown 102 $pkgdir/etc/polkit-1/rules.d @@ -33,5 +37,3 @@ install -m644 $srcdir/polkit.pam $pkgdir/etc/pam.d/polkit-1 } -md5sums=('b0f2fa00a55f47c6a5d88e9b73f80127' - '6564f95878297b954f0572bc1610dd15') Modified: polkit.install === --- polkit.install 2015-06-01 20:58:11 UTC (rev 239998) +++ polkit.install 2015-06-02 06:08:16 UTC (rev 23) @@ -7,12 +7,3 @@ post_upgrade() { post_install } - -post_remove() { - if getent passwd polkitd /dev/null; then - userdel polkitd - fi - if getent group polkitd /dev/null; then - groupdel polkitd - fi -}