From b64b0cae1bd42e73d791ad01f0a556bbb5bcb2c4 Mon Sep 17 00:00:00 2001 From: Thierry N Date: Mon, 10 Aug 2009 23:27:19 +0200 Subject: Ajout de ktsuss#1.4-3 --- extra/ktsuss/.footprint | 10 ++++++++++ extra/ktsuss/.md5sum | 3 +++ extra/ktsuss/Pkgfile | 23 +++++++++++++++++++++++ extra/ktsuss/gksu | 11 +++++++++++ extra/ktsuss/ktsuss | 11 +++++++++++ 5 files changed, 58 insertions(+) create mode 100644 extra/ktsuss/.footprint create mode 100644 extra/ktsuss/.md5sum create mode 100644 extra/ktsuss/Pkgfile create mode 100644 extra/ktsuss/gksu create mode 100644 extra/ktsuss/ktsuss (limited to 'extra/ktsuss') 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 + -- cgit v1.2.3-70-g09d2