summaryrefslogtreecommitdiffstats
path: root/kde/polkit-kde
diff options
context:
space:
mode:
authorsibel <lesibel at free dot fr>2010-07-30 10:50:34 +0200
committersibel <lesibel at free dot fr>2010-07-30 10:50:34 +0200
commitdde3a8013f60318fd8cbe1e76558be2ddef33195 (patch)
tree36dbf0e399265244c3af0a73dcc49dd5f4229286 /kde/polkit-kde
parent8fa19ec992ebdb86cdae3a84d946655ccab80bc7 (diff)
downloadnutyx-extra-dde3a8013f60318fd8cbe1e76558be2ddef33195.tar.gz
nutyx-extra-dde3a8013f60318fd8cbe1e76558be2ddef33195.tar.bz2
nutyx-extra-dde3a8013f60318fd8cbe1e76558be2ddef33195.tar.xz
nutyx-extra-dde3a8013f60318fd8cbe1e76558be2ddef33195.zip
ajout de polkit-kde#0.95.1-1
Diffstat (limited to 'kde/polkit-kde')
-rw-r--r--kde/polkit-kde/.footprint11
-rw-r--r--kde/polkit-kde/.md5sum3
-rwxr-xr-xkde/polkit-kde/Pkgfile29
-rw-r--r--kde/polkit-kde/gcc45.patch11
-rw-r--r--kde/polkit-kde/xdg-path.patch13
5 files changed, 67 insertions, 0 deletions
diff --git a/kde/polkit-kde/.footprint b/kde/polkit-kde/.footprint
new file mode 100644
index 000000000..6e4461abc
--- /dev/null
+++ b/kde/polkit-kde/.footprint
@@ -0,0 +1,11 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/xdg/
+drwxr-xr-x root/root etc/xdg/autostart/
+-rw-r--r-- root/root etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/kde4/
+drwxr-xr-x root/root usr/lib/kde4/libexec/
+-rwxr-xr-x root/root usr/lib/kde4/libexec/polkit-kde-authentication-agent-1
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/locale/
diff --git a/kde/polkit-kde/.md5sum b/kde/polkit-kde/.md5sum
new file mode 100644
index 000000000..73e8d22dd
--- /dev/null
+++ b/kde/polkit-kde/.md5sum
@@ -0,0 +1,3 @@
+f00a359d35bfbedb47662341d5fd160e gcc45.patch
+68e40d2a43335cb5876a1c8bc51c461b polkit-kde-1-0.95.1.tar.bz2
+84d4873e60c1b628bcbaaf38c7ab2f44 xdg-path.patch
diff --git a/kde/polkit-kde/Pkgfile b/kde/polkit-kde/Pkgfile
new file mode 100755
index 000000000..234ba712d
--- /dev/null
+++ b/kde/polkit-kde/Pkgfile
@@ -0,0 +1,29 @@
+# Description: Librairie d'agent d'authentification de kde
+# URL: http://www.kde.org
+# Maintainer: NuTyX packager team
+# Packager: lesibel at free dot fr
+# Depends on: kdelibs
+
+name=polkit-kde
+version=0.95.1
+release=1
+source=(ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/$name-1-$version.tar.bz2
+ xdg-path.patch
+ gcc45.patch)
+
+build() {
+ cd $SRC/$name-1-$version
+ patch -p0 -i $SRC/xdg-path.patch
+ patch -p0 -i $SRC/gcc45.patch
+ cd ..
+ mkdir build
+ cd build
+ export XDG_CONFIG_DIRS=/etc/xdg
+ cmake ../$name-1-$version \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON
+ make
+ make DESTDIR=$PKG install
+}
+
diff --git a/kde/polkit-kde/gcc45.patch b/kde/polkit-kde/gcc45.patch
new file mode 100644
index 000000000..478b1660c
--- /dev/null
+++ b/kde/polkit-kde/gcc45.patch
@@ -0,0 +1,11 @@
+--- agent/AuthDialog.cpp 2010-04-10 10:13:18.634941750 +0200
++++ agent/AuthDialog.cpp 2010-04-10 10:13:56.021565836 +0200
+@@ -169,7 +169,7 @@
+ foreach(PolkitQt1::Identity *identity, identities) {
+ // First check to see if the user is valid
+ qDebug() << "User: " << identity;
+- KUser user = KUser::KUser(identity->toString().remove("unix-user:"));
++ KUser user = KUser(identity->toString().remove("unix-user:"));
+ if (!user.isValid()) {
+ kWarning() << "User invalid: " << user.loginName();
+ continue;
diff --git a/kde/polkit-kde/xdg-path.patch b/kde/polkit-kde/xdg-path.patch
new file mode 100644
index 000000000..872523bb3
--- /dev/null
+++ b/kde/polkit-kde/xdg-path.patch
@@ -0,0 +1,13 @@
+--- agent/CMakeLists.txt 2009-12-23 12:31:29.000000000 +0100
++++ agent/CMakeLists.txt 2010-02-10 21:26:05.183779591 +0100
+@@ -18,8 +18,8 @@
+
+ install(TARGETS polkit-kde-authentication-agent-1 DESTINATION ${LIBEXEC_INSTALL_DIR})
+
+-# Install .desktop file to the XDG_CONFIG_DIRS if exists, to the /etc/xdg/autostart otherwise
+-set (DESKTOP_INSTALL_DIR $ENV{XDG_CONFIG_DIRS})
++# Install .desktop file to the XDG_CONFIG_DIRS/autostart if exists, to the /etc/xdg/autostart otherwise
++set (DESKTOP_INSTALL_DIR $ENV{XDG_CONFIG_DIRS}/autostart)
+ if (DESKTOP_INSTALL_DIR)
+ else (DESKTOP_INSTALL_DIR)
+ set (DESKTOP_INSTALL_DIR /etc/xdg/autostart)