xbps-casper: update for new policykit, bump to 0.3.1.

--HG--
extra : convert_revision : 73b6dafac77cd7233ec4334a88555abd1383b940
This commit is contained in:
Juan RP 2009-11-30 06:37:13 +01:00
parent 315c94dc73
commit 3ceb9b4a09
2 changed files with 1 additions and 47 deletions

View file

@ -1,46 +0,0 @@
#!/bin/sh
PREREQ=""
DESCRIPTION="Setting up PolicyKit actions for user '${USERNAME}'"
. /scripts/casper-functions
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
conf_file=${rootmnt}/etc/PolicyKit/PolicyKit.conf
if [ ! -f ${conf_file} ]; then
exit 0
fi
log_begin_msg "$DESCRIPTION"
rm -f ${conf_file}
cat >> ${conf_file} <<_EOF
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<match action="org.freedesktop.hal.*">
<match user="${USERNAME}">
<return result="yes"/>
</match>
</match>
</config>
_EOF
log_end_msg

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-casper'
pkgname=xbps-casper
version=0.3
version=0.3.1
build_style=custom-install
short_desc="Run a live preinstalled system from read-only media"
maintainer="Juan RP <xtraeme@gmail.com>"