Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=546d11eabbf871bbaf69fcaf60d5c51fe842fdac
commit 546d11eabbf871bbaf69fcaf60d5c51fe842fdac Author: DeX77 <[email protected]> Date: Thu Aug 11 17:24:10 2016 +0200 polkit-0.113-8-x86_64 * use sysuser.d for user creation but install to remove diff --git a/source/base/polkit/FrugalBuild b/source/base/polkit/FrugalBuild index 6060568..1df1e55 100644 --- a/source/base/polkit/FrugalBuild +++ b/source/base/polkit/FrugalBuild @@ -4,7 +4,7 @@ pkgname=polkit pkgver=0.113 -pkgrel=7 +pkgrel=8 pkgdesc="Policy framework for controlling privileges for system-wide services" url="http://www.freedesktop.org/wiki/Software/polkit" depends=('pam>=1.1.8-2' 'expat>=2.1.0-3' 'libsystemd>=227-10' 'spidermonkey>=17.0.0' \ @@ -15,10 +15,12 @@ archs=('i686' 'x86_64' 'arm') up2date="Flasttar http://www.freedesktop.org/software/$pkgname/releases" source=(http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.tar.gz \ Fix_access_after_dereference_on_hashtable.patch \ - Fix_a_memory_leak_of_PolkitAgentListeners_Server_object.patch) + Fix_a_memory_leak_of_PolkitAgentListeners_Server_object.patch \ + $pkgname.conf ) sha1sums=('ef855c2d04184dceb38e0940dc7bec9cc3da415c' \ '29676e0cdf2ddcc0b887fa365de241c4e6e724f5' \ - '084bfc5290e406b87fad9f9b86ffd87f21031f0d') + '084bfc5290e406b87fad9f9b86ffd87f21031f0d' \ + '78587a357a20ca9cd6a33512b87f5d4c13a47aaa') replaces=('policykit') conflicts=('policykit') @@ -34,6 +36,10 @@ build() { Fdirschown etc/polkit-1/rules.d 67 root Fdirschown usr/share/polkit-1/rules.d 67 root + + # Create users using sysuser.d + Fmkdir usr/lib/sysusers.d/ + Ffile /usr/lib/sysusers.d/$pkgname.conf } # optimization OK diff --git a/source/base/polkit/polkit.conf b/source/base/polkit/polkit.conf new file mode 100644 index 0000000..074dd0b --- /dev/null +++ b/source/base/polkit/polkit.conf @@ -0,0 +1,2 @@ +g polkitd 67 - +u polkitd 67 - diff --git a/source/base/polkit/polkit.install b/source/base/polkit/polkit.install index 3bb10a5..7e98c8a 100644 --- a/source/base/polkit/polkit.install +++ b/source/base/polkit/polkit.install @@ -1,13 +1,3 @@ -post_install() -{ - getent group polkitd 2>&1 > /dev/null || /usr/sbin/groupadd -g 67 polkitd - getent passwd polkitd 2>&1 > /dev/null || /usr/sbin/useradd -s /bin/false -c "polkitd" -d '/' -u 67 -g polkitd polkitd -} - -post_upgrade() -{ - post_install -} pre_remove() { _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
