diff options
author | Thierry N <thierryn1 at hispeed dot ch> | 2009-08-10 23:27:19 +0200 |
---|---|---|
committer | Thierry N <thierryn1 at hispeed dot ch> | 2009-08-10 23:27:19 +0200 |
commit | b64b0cae1bd42e73d791ad01f0a556bbb5bcb2c4 (patch) | |
tree | bb11021d3995916c351c9c40ffa45cc75b16ab5b /extra | |
parent | 203c5b192c45ee4222aaab4d12e6846b2c001a2a (diff) | |
download | nutyx-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')
-rw-r--r-- | extra/ktsuss/.footprint | 10 | ||||
-rw-r--r-- | extra/ktsuss/.md5sum | 3 | ||||
-rw-r--r-- | extra/ktsuss/Pkgfile | 23 | ||||
-rw-r--r-- | extra/ktsuss/gksu | 11 | ||||
-rw-r--r-- | extra/ktsuss/ktsuss | 11 |
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 + |