From 2f99cd0fbab6975a39226fb6c1c92a5f6bb66a8d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 16 Feb 2011 11:37:46 +0100 Subject: [PATCH] xfce4-session: update to 4.8.1. --- .../files/org.freedesktop.consolekit.pkla | 31 +++++++++++++++++++ .../files/org.freedesktop.upower.pkla | 15 +++++++++ srcpkgs/xfce4-session/template | 24 ++++++++++---- 3 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/xfce4-session/files/org.freedesktop.consolekit.pkla create mode 100644 srcpkgs/xfce4-session/files/org.freedesktop.upower.pkla diff --git a/srcpkgs/xfce4-session/files/org.freedesktop.consolekit.pkla b/srcpkgs/xfce4-session/files/org.freedesktop.consolekit.pkla new file mode 100644 index 0000000000..7f1d74ff67 --- /dev/null +++ b/srcpkgs/xfce4-session/files/org.freedesktop.consolekit.pkla @@ -0,0 +1,31 @@ +[Local restart] +#Identity=unix-user: your_username +Identity=unix-group:power +Action=org.freedesktop.consolekit.system.restart +ResultAny=yes +ResultInactive=no +ResultActive=yes + +[Local shutdown] +#Identity=unix-user: your_username +Identity=unix-group:power +Action=org.freedesktop.consolekit.system.stop +ResultAny=yes +ResultInactive=no +ResultActive=yes + +[Local restart - multiple] +#Identity=unix-user: your_username +Identity=unix-group:power +Action=org.freedesktop.consolekit.system.restart-multiple-users +ResultAny=yes +ResultInactive=no +ResultActive=yes + +[Local shutdown - multiple] +#Identity=unix-user: your_username +Identity=unix-group:power +Action=org.freedesktop.consolekit.system.stop-multiple-users +ResultAny=yes +ResultInactive=no +ResultActive=yes diff --git a/srcpkgs/xfce4-session/files/org.freedesktop.upower.pkla b/srcpkgs/xfce4-session/files/org.freedesktop.upower.pkla new file mode 100644 index 0000000000..52c74f8921 --- /dev/null +++ b/srcpkgs/xfce4-session/files/org.freedesktop.upower.pkla @@ -0,0 +1,15 @@ +[Local hibernate] +#Identity=unix-user: your_username +Identity=unix-group:power +Action=org.freedesktop.upower.hibernate +ResultAny=yes +ResultInactive=no +ResultActive=yes + +[Local suspend] +#Identity=unix-user: your_username +Identity=unix-group:power +Action=org.freedesktop.upower.suspend +ResultAny=yes +ResultInactive=no +ResultActive=yes diff --git a/srcpkgs/xfce4-session/template b/srcpkgs/xfce4-session/template index 9f2a98d3ce..f04aef6232 100644 --- a/srcpkgs/xfce4-session/template +++ b/srcpkgs/xfce4-session/template @@ -1,12 +1,14 @@ # Template file for 'xfce4-session' pkgname=xfce4-session -version=4.8.0 -distfiles="http://archive.xfce.org/xfce/4.8/src/$pkgname-$version.tar.bz2" +version=4.8.1 +distfiles="http://archive.xfce.org/src/xfce/${pkgname}/4.8/$pkgname-$version.tar.bz2" build_style=gnu_configure -configure_args="--disable-gnome --enable-libgnome-keyring" +configure_args="--disable-gnome --disable-libgnome-keyring --disable-hal +--enable-session-screenshots --enable-upower --enable-consolekit +--enable-polkit --enable-panel-plugin --disable-debug --disable-static" short_desc="Xfce session manager" maintainer="Juan RP " -checksum=b93b6e06e28c97c1968cf9283b82618f4a4fdbf2ba838e8303e38122867a25d3 +checksum=1df52a77d87ed4d27b4f40a2f03a0b6334422d64bdc4e31b9aac22e25e68b829 long_desc=" xfce4-session is the session manager for the Xfce desktop environment." @@ -29,7 +31,6 @@ Add_dependency run libX11 Add_dependency run libwnck Add_dependency run atk Add_dependency run cairo -Add_dependency run libgnome-keyring Add_dependency run pango Add_dependency run libpng Add_dependency run freetype @@ -52,12 +53,23 @@ Add_dependency build libX11-devel Add_dependency build libwnck-devel Add_dependency build atk-devel Add_dependency build cairo-devel -Add_dependency build libgnome-keyring-devel Add_dependency build pango-devel Add_dependency build libpng-devel Add_dependency build freetype-devel Add_dependency build fontconfig-devel Add_dependency build xfce4-panel-devel +Add_dependency full upower +Add_dependency full udisks Add_dependency full hicolor-icon-theme Add_dependency full desktop-file-utils + +post_install() +{ + install -dm700 ${DESTDIR}/etc/polkit-1/localauthority + install -dm755 ${DESTDIR}/etc/polkit-1/localauthority/50-local.d + install -m644 ${FILESDIR}/org.freedesktop.consolekit.pkla \ + ${DESTDIR}/etc/polkit-1/localauthority/50-local.d/ + install -m644 ${FILESDIR}/org.freedesktop.upower.pkla \ + ${DESTDIR}/etc/polkit-1/localauthority/50-local.d/ +}