summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-06-23 04:01:20 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-06-23 04:01:20 +0000
commit17be3b4e0ebfbd505a89d1b85eb816fee71c761f (patch)
tree8a0043f8d4f09c8a8aefe4467ad58aca23f0bb4c /sys-auth/polkit
parentFix einstall call to not install into /. Remove installation of html docs sin... (diff)
downloadgentoo-2-17be3b4e0ebfbd505a89d1b85eb816fee71c761f.tar.gz
gentoo-2-17be3b4e0ebfbd505a89d1b85eb816fee71c761f.tar.bz2
gentoo-2-17be3b4e0ebfbd505a89d1b85eb816fee71c761f.zip
Convert pkg_postinst() message about polkitd home directory to new user.eclass function esethome().
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'sys-auth/polkit')
-rw-r--r--sys-auth/polkit/ChangeLog6
-rw-r--r--sys-auth/polkit/polkit-0.106-r2.ebuild15
2 files changed, 13 insertions, 8 deletions
diff --git a/sys-auth/polkit/ChangeLog b/sys-auth/polkit/ChangeLog
index 706597212215..e7fb059d6803 100644
--- a/sys-auth/polkit/ChangeLog
+++ b/sys-auth/polkit/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-auth/polkit
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v 1.85 2012/06/19 12:04:07 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/ChangeLog,v 1.86 2012/06/23 04:01:20 ssuominen Exp $
+
+ 23 Jun 2012; Samuli Suominen <ssuominen@gentoo.org> polkit-0.106-r2.ebuild:
+ Convert pkg_postinst() message about polkitd home directory to new
+ user.eclass function esethome().
19 Jun 2012; Samuli Suominen <ssuominen@gentoo.org> polkit-0.106-r2.ebuild:
Check for mozjs187.pc for >=dev-lang/spidermonkey-1.8.7 compability.
diff --git a/sys-auth/polkit/polkit-0.106-r2.ebuild b/sys-auth/polkit/polkit-0.106-r2.ebuild
index 223823367b89..d7cfcc6d2aa3 100644
--- a/sys-auth/polkit/polkit-0.106-r2.ebuild
+++ b/sys-auth/polkit/polkit-0.106-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.106-r2.ebuild,v 1.3 2012/06/19 12:04:07 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/polkit-0.106-r2.ebuild,v 1.4 2012/06/23 04:01:20 ssuominen Exp $
EAPI=4
inherit eutils pam systemd user
@@ -44,8 +44,13 @@ PDEPEND="
DOCS="docs/TODO HACKING NEWS README"
pkg_setup() {
- enewgroup polkitd
- enewuser polkitd -1 -1 /var/lib/polkit-1 polkitd
+ local u=polkitd
+ local g=polkitd
+ local h=/var/lib/polkit-1
+
+ enewgroup ${g}
+ enewuser ${u} -1 -1 ${h} ${g}
+ esethome ${u} ${h}
}
src_prepare() {
@@ -95,10 +100,6 @@ pkg_postinst() {
chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1
echo
- ewarn "If home directory of unix-user \"polkitd\" is set to /dev/null, run:"
- ewarn "# usermod -d /var/lib/polkit-1 polkitd"
-
- echo
ewarn "The default administrator unix-group was changed from \"wheel\" to"
ewarn "\"adm\", see *-default.rules in /etc/polkit-1/rules.d"
ewarn "Users of unix-group \"adm\" can run, for example, \"pkexec /bin/sh\""