From 6c466d448bb63ca07544cf9c8da06ffc093e4d3b Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 20 Feb 2013 18:39:18 +0100 Subject: add user polkitd --- remote/tools/policykit/policykit.build | 16 +++++++++++----- remote/tools/policykit/policykit.conf | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'remote/tools') diff --git a/remote/tools/policykit/policykit.build b/remote/tools/policykit/policykit.build index ef08710e..b027cc85 100644 --- a/remote/tools/policykit/policykit.build +++ b/remote/tools/policykit/policykit.build @@ -1,4 +1,5 @@ #tool/distro specific functions for fetching, building and installing dependencies + fetch_source () { if [ ! -e .fetched_source ]; then @@ -42,11 +43,11 @@ build () { [ ! -d $FILE ] && echo $FILE >> $COPYLIST done done - fi - # prepare target dir & copy there - [ ! -d $BUILDDIR ] && mkdir -p $BUILDDIR - tar -cpv $(cat $COPYLIST|sort -u) | tar -xpv -C $BUILDDIR + # prepare target dir & copy there + [ ! -d $BUILDDIR ] && mkdir -p $BUILDDIR + tar -cpv $(cat $COPYLIST|sort -u) | tar -xpv -C $BUILDDIR + fi cd - touch .built @@ -55,5 +56,10 @@ build () { } post_copy() { - : + + #Add Polkit User/Group/Shadow to Stage3.2 + echo "polkitd:!:15756::::::" >> ${INIT_DIR}/etc/shadow + echo "polkitd:x:999:999:User for polkitd:/:/sbin/nologin" >> ${INIT_DIR}/etc/passwd + echo "polkitd:x:999:" >> ${INIT_DIR}/etc/group + } diff --git a/remote/tools/policykit/policykit.conf b/remote/tools/policykit/policykit.conf index e5e6b7b5..1ccef0e6 100644 --- a/remote/tools/policykit/policykit.conf +++ b/remote/tools/policykit/policykit.conf @@ -3,5 +3,5 @@ URL=http://www.freedesktop.org/software/polkit/releases/polkit-0.110.tar.gz DEPS="libmozjs185-dev" REQUIRED_PACKAGES="" REQUIRED_BINARIES="" -REQUIRED_DIRECTORIES="/bin /etc /lib /libexec /usr/share/dbus-1 /usr/share/polkit-1" +REQUIRED_DIRECTORIES="/bin /etc /lib /usr/share/dbus-1 /usr/share/polkit-1" REQUIRED_FILES="" -- cgit v1.2.3-55-g7522