summaryrefslogtreecommitdiff
path: root/system/gksu
diff options
context:
space:
mode:
authorStylianos Tsampas <ztsampas@otenet.gr>2010-05-12 23:33:36 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:33:36 +0200
commitcecb7021603b703e03eec4537aa98c7b43140da5 (patch)
tree87be894ae73d30caad1a139e94c666c673356653 /system/gksu
parentc32fe7705dbe159ba2c40dbae0bd5a0f4ecfe412 (diff)
downloadslackbuilds-cecb7021603b703e03eec4537aa98c7b43140da5.tar.gz
system/gksu: Added to 12.2 repository
Diffstat (limited to 'system/gksu')
-rw-r--r--system/gksu/README11
-rw-r--r--system/gksu/doinst.sh8
-rw-r--r--system/gksu/gksu.SlackBuild99
-rw-r--r--system/gksu/gksu.desktop36
-rw-r--r--system/gksu/gksu.info8
-rw-r--r--system/gksu/slack-desc19
6 files changed, 181 insertions, 0 deletions
diff --git a/system/gksu/README b/system/gksu/README
new file mode 100644
index 0000000000..ef0fc962ca
--- /dev/null
+++ b/system/gksu/README
@@ -0,0 +1,11 @@
+GKSu is a library that provides a Gtk+ frontend to su and sudo.
+It supports login shells and preserving environment when acting as
+a su frontend. It is useful to menu items or other graphical
+programs that need to ask a user's password to run another program
+as another user.
+
+The root terminal used when gksu is called from the menu defaults to
+Xfce's terminal, but if you want something different, do something
+like this: TERM_APP=xterm ./gksu.SlackBuild
+
+This requires libgksu.
diff --git a/system/gksu/doinst.sh b/system/gksu/doinst.sh
new file mode 100644
index 0000000000..dc3c6f6d7a
--- /dev/null
+++ b/system/gksu/doinst.sh
@@ -0,0 +1,8 @@
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database /usr/share/mime &> /dev/null
+fi
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database &> /dev/null
+fi
+
diff --git a/system/gksu/gksu.SlackBuild b/system/gksu/gksu.SlackBuild
new file mode 100644
index 0000000000..eb5732ef2a
--- /dev/null
+++ b/system/gksu/gksu.SlackBuild
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+# Slackware build script for <gksu>
+
+# Copyright 2008 Stylianos Tsampas <ztsampas@otenet.gr>
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=gksu
+VERSION=${VERSION:-2.0.0}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --enable-shared \
+ --disable-static \
+ --disable-schemas-install \
+ --disable-nautilus-extension \
+ --build=$ARCH-slackware-linux \
+
+make
+make install DESTDIR=$PKG
+
+# Fix to gksu.desktop to open xfce-terminal
+sed s/_USER_TERM_/${TERM_APP:-terminal}/ $CWD/gksu.desktop \
+ > $PKG/usr/share/applications/gksu.desktop
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+( cd $PKG/usr/man || exit 1
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/system/gksu/gksu.desktop b/system/gksu/gksu.desktop
new file mode 100644
index 0000000000..b84ccfe60f
--- /dev/null
+++ b/system/gksu/gksu.desktop
@@ -0,0 +1,36 @@
+[Desktop Entry]
+Name=Root Terminal
+Name[cs]=Terminál uživatele root
+Name[da]=Root-terminal
+Name[es]=Terminal de «Root»
+Name[fr]=Terminal administrateur
+Name[hu]=Rendszergazda terminál
+Name[it]=Terminale root
+Name[ko]=루트 터미널
+Name[lt]=Administratoriaus terminalas
+Name[nl]=Terminal als root
+Name[pl]=Terminal użytkownika root
+Name[pt_BR]=Terminal como Root
+Name[sv]=Root-terminal
+Comment=Opens a terminal as the root user, using gksu to ask for the password
+Comment[cs]=Otevře terminál pod uživatelem root, na heslo se dotáže přes gksu
+Comment[da]=Åbner en terminal som brugeren root, og bruger gksu til at spørge om adgangskoden.
+Comment[de]=Root-Terminal
+Comment[es]=Abre un terminal como el usuario «root» utilizando gksu para preguntar la contraseña.
+Comment[fr]=Ouvrir un terminal en tant qu'administrateur, en utilisant gksu pour demander le mot de passe
+Comment[hu]=Megnyit egy rendszergazda terminált, a gksu-t használva a jelszó bekérésére
+Comment[it]=Apre un terminale come root, usando gksu per la richiesta della password
+Comment[ko]=루트 사용자로 터미널을 열고, GKSU로 열쇠글을 물어봅니다
+Comment[lt]=Atveria terminalą 'root' naudotojo teisėmis, naudojant gksu slaptažodžiui įvesti
+Comment[nl]=Start een terminal als de root-gebruiker waarbij gksu gebruikt wordt om het wachtwoord te vragen.
+Comment[pl]=Uruchamia terminal użytkownika root, używając gksu do wczytania hasła
+Comment[pt_BR]=Abre um terminal como usuário root, usando o gksu para pedir a senha
+Comment[sv]=Öppnar en terminal som root-användaren och använder gksu för att fråga efter lösenordet
+Encoding=UTF-8
+Exec=gksu /usr/bin/_USER_TERM_
+Icon=gksu-root-terminal
+StartupNotify=true
+Terminal=fasle
+X-MultipleArgs=false
+Type=Application
+Categories=GTK;Utility;TerminalEmulator;
diff --git a/system/gksu/gksu.info b/system/gksu/gksu.info
new file mode 100644
index 0000000000..37256e8182
--- /dev/null
+++ b/system/gksu/gksu.info
@@ -0,0 +1,8 @@
+PRGNAM="gksu"
+VERSION="2.0.0"
+HOMEPAGE="http://www.nongnu.org/gksu/"
+DOWNLOAD="http://people.debian.org/~kov/gksu/gksu-2.0.0.tar.gz"
+MD5SUM="f517302cff6f09e4f2f312c4b618bd40"
+MAINTAINER="Stylianos Tsampas"
+EMAIL="ztsampas@otenet.gr"
+APPROVED="rworkman"
diff --git a/system/gksu/slack-desc b/system/gksu/slack-desc
new file mode 100644
index 0000000000..718abefd9e
--- /dev/null
+++ b/system/gksu/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+gksu: gksu (Gtk+ frontend to su and sudo)
+gksu:
+gksu: GKSu is a library that provides a Gtk+ frontend to su and sudo.
+gksu: It supports login shells and preserving environment when acting as
+gksu: a su frontend. It is useful to menu items or other graphical
+gksu: programs that need to ask a user's password to run another program
+gksu: as another user.
+gksu:
+gksu: Homepage: http://www.nongnu.org/gksu/
+gksu:
+gksu: