summaryrefslogtreecommitdiffstats
path: root/extra/ktsuss
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-10 23:27:19 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-10 23:27:19 +0200
commitb64b0cae1bd42e73d791ad01f0a556bbb5bcb2c4 (patch)
treebb11021d3995916c351c9c40ffa45cc75b16ab5b /extra/ktsuss
parent203c5b192c45ee4222aaab4d12e6846b2c001a2a (diff)
downloadnutyx-pakxe-b64b0cae1bd42e73d791ad01f0a556bbb5bcb2c4.tar.gz
nutyx-pakxe-b64b0cae1bd42e73d791ad01f0a556bbb5bcb2c4.tar.bz2
nutyx-pakxe-b64b0cae1bd42e73d791ad01f0a556bbb5bcb2c4.tar.xz
nutyx-pakxe-b64b0cae1bd42e73d791ad01f0a556bbb5bcb2c4.zip
Ajout de ktsuss#1.4-3
Diffstat (limited to 'extra/ktsuss')
-rw-r--r--extra/ktsuss/.footprint10
-rw-r--r--extra/ktsuss/.md5sum3
-rw-r--r--extra/ktsuss/Pkgfile23
-rw-r--r--extra/ktsuss/gksu11
-rw-r--r--extra/ktsuss/ktsuss11
5 files changed, 58 insertions, 0 deletions
diff --git a/extra/ktsuss/.footprint b/extra/ktsuss/.footprint
new file mode 100644
index 000000000..7e00dbcd1
--- /dev/null
+++ b/extra/ktsuss/.footprint
@@ -0,0 +1,10 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/gksu
+-rwxr-xr-x root/root usr/bin/ktsuss
+drwxr-xr-x root/root usr/libexec/
+-rwsr-xr-x root/root usr/libexec/ktsuss
+-rwxr-xr-x root/root usr/libexec/re_su
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/pixmaps/
+-rw-r--r-- root/root usr/share/pixmaps/ktsuss.png
diff --git a/extra/ktsuss/.md5sum b/extra/ktsuss/.md5sum
new file mode 100644
index 000000000..a8d17319b
--- /dev/null
+++ b/extra/ktsuss/.md5sum
@@ -0,0 +1,3 @@
+07a2a6db68f8bd9f6b4887dfbeb5508c gksu
+b215c3caa13996b2a813078e8d60c407 ktsuss
+bad627cc5f5de08262fa4e60881ac30a ktsuss-1.4.tar.gz
diff --git a/extra/ktsuss/Pkgfile b/extra/ktsuss/Pkgfile
new file mode 100644
index 000000000..017038e02
--- /dev/null
+++ b/extra/ktsuss/Pkgfile
@@ -0,0 +1,23 @@
+# Description: Permet l'execution de programme root en environnement non root
+# URL: http://developer.berlios.de/projects/ktsuss
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: atk, directfb, expat, fontconfig, freetype, glib, gtk, libpng, pango, xorg-libxcb, zlib
+
+name=ktsuss
+version=1.4
+release=3
+source=(http://download.berlios.de/$name/$name-$version.tar.gz \
+ gksu ktsuss)
+
+build() {
+ cd $name-$version
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG install
+ chmod u+s $PKG/usr/bin/ktsuss
+ mv $PKG/usr/bin/ktsuss $PKG/usr/libexec
+ for i in ktsuss gksu
+ do install -m755 ../$i $PKG/usr/bin/
+ done
+}
diff --git a/extra/ktsuss/gksu b/extra/ktsuss/gksu
new file mode 100644
index 000000000..e905e2589
--- /dev/null
+++ b/extra/ktsuss/gksu
@@ -0,0 +1,11 @@
+#!/bin/bash
+COMMAND="$(echo "${@}" | tr -d "\'\"\\")"
+BIN="$(echo "${1}" | cut -d" " -f1)"
+KTSUSS="/usr/libexec/ktsuss -u root"
+export PATH="${PATH}:/sbin:/usr/sbin"
+[ "$(id -u)" = "0" ] && KTSUSS=""
+[ -x "${BIN}" ] && exec ${KTSUSS} ${COMMAND}
+for path in $(echo ${PATH} | sed -e 's/:/ /g') ; do
+ [ -x "${path}/${BIN}" ] && exec ${KTSUSS} ${path}/${COMMAND}
+done
+
diff --git a/extra/ktsuss/ktsuss b/extra/ktsuss/ktsuss
new file mode 100644
index 000000000..96b122521
--- /dev/null
+++ b/extra/ktsuss/ktsuss
@@ -0,0 +1,11 @@
+#!/bin/bash
+COMMAND="$(echo "${@}" | tr -d "\'\"\\")"
+BIN="$(echo "${1}" | cut -d" " -f1)"
+KTSUSS="/usr/libexec/ktsuss"
+export PATH="${PATH}:/sbin:/usr/sbin"
+[ "$(id -u)" = "0" ] && KTSUSS=""
+[ -x "${BIN}" ] && exec ${KTSUSS} ${COMMAND}
+for path in $(echo ${PATH} | sed -e 's/:/ /g') ; do
+ [ -x "${path}/${BIN}" ] && exec ${KTSUSS} ${path}/${COMMAND}
+done
+