wok-current rev 21783
Add gksu
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 17 22:18:59 2019 +0300 (2019-07-17) |
parents | 6847c1ac0883 |
children | 68f9518c4cb0 |
files | gksu/receipt gksu/stuff/gksu.patch libgksu-dev/receipt libgksu/receipt libgksu/stuff/libgksu.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gksu/receipt Wed Jul 17 22:18:59 2019 +0300 1.3 @@ -0,0 +1,40 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="gksu" 1.7 +VERSION="2.0.2" 1.8 +CATEGORY="admin" 1.9 +SHORT_DESC="A GTK+ frontend to su and sudo" 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="https://www.nongnu.org/gksu/" 1.13 + 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 +WGET_URL="https://people.debian.org/~kov/gksu/$TARBALL" 1.16 + 1.17 +BUILD_DEPENDS="gfortran intltool GConf-dev libgksu-dev gtk+-dev \ 1.18 +startup-notification-dev libgnome-keyring-dev libgtop-dev" 1.19 + 1.20 +DEPENDS="atk bzlib cairo fontconfig freetype GConf gdk-pixbuf glib gtk+ \ 1.21 +harfbuzz libffi libgio libgksu libgnome-keyring libpng libxcb libxml2 pango \ 1.22 +pcre pixman startup-notification xorg-libX11 xorg-libXau xorg-libXdmcp \ 1.23 +xorg-libXext xorg-libXrender zlib" 1.24 + 1.25 +compile_rules() { 1.26 + patch -p1 -i $stuff/gksu.patch 1.27 + 1.28 + ./configure \ 1.29 + --sysconfdir=/etc \ 1.30 + --disable-nautilus-extension \ 1.31 + $CONFIGURE_ARGS && 1.32 + make && 1.33 + make install 1.34 +} 1.35 + 1.36 +genpkg_rules() { 1.37 + mkdir -p $fs/usr/lib $fs/usr/share 1.38 + 1.39 + cp -a $install/usr/bin $fs/usr 1.40 + cp -a $install/usr/share/applications $fs/usr/share 1.41 + cp -a $install/usr/share/gksu $fs/usr/share 1.42 + cp -a $install/usr/share/pixmaps $fs/usr/share 1.43 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/gksu/stuff/gksu.patch Wed Jul 17 22:18:59 2019 +0300 2.3 @@ -0,0 +1,23 @@ 2.4 +--- a/gksu-migrate-conf.sh 2.5 ++++ b/gksu-migrate-conf.sh 2.6 +@@ -1,4 +1,4 @@ 2.7 +-#!/bin/bash 2.8 ++#!/bin/sh 2.9 + 2.10 + set_default () 2.11 + { 2.12 + 2.13 +# FIXME: gksu is incompatible with /usr/bin/terminal! 2.14 +# Using sakura here instead. 2.15 + 2.16 +--- a/gksu.desktop 2.17 ++++ b/gksu.desktop 2.18 +@@ -41,7 +41,7 @@ 2.19 + Comment[th]=เปิดเทอร์มินัลในนามผู้ใช้ root โดยใช้ gksu ถามรหัสผ่าน 2.20 + Comment[zh_CN]=以 root 用户身份打开一个终端,使用 gksu 询问密码 2.21 + Encoding=UTF-8 2.22 +-Exec=gksu /usr/bin/x-terminal-emulator 2.23 ++Exec=gksu sakura 2.24 + Icon=gksu-root-terminal 2.25 + StartupNotify=true 2.26 + Terminal=false
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/libgksu-dev/receipt Wed Jul 17 22:18:59 2019 +0300 3.3 @@ -0,0 +1,20 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="libgksu-dev" 3.7 +VERSION="2.0.12" 3.8 +CATEGORY="development" 3.9 +SHORT_DESC="Library that provides a GTK+ frontend to su and sudo development files" 3.10 +MAINTAINER="devel@slitaz.org" 3.11 +LICENSE="GPL2" 3.12 +WEB_SITE="https://www.nongnu.org/gksu/" 3.13 + 3.14 +WANTED="libgksu" 3.15 + 3.16 +DEPENDS="libgksu" 3.17 + 3.18 +genpkg_rules() { 3.19 + mkdir -p $fs/usr/lib 3.20 + cp -a $install/usr/include $fs/usr 3.21 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 3.22 + cp -a $install/usr/lib/*.*a $fs/usr/lib 3.23 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/libgksu/receipt Wed Jul 17 22:18:59 2019 +0300 4.3 @@ -0,0 +1,42 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="libgksu" 4.7 +VERSION="2.0.12" 4.8 +CATEGORY="admin" 4.9 +SHORT_DESC="Library that provides a GTK+ frontend to su and sudo" 4.10 +MAINTAINER="devel@slitaz.org" 4.11 +LICENSE="GPL2" 4.12 +WEB_SITE="https://www.nongnu.org/gksu/" 4.13 + 4.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 4.15 +WGET_URL="https://people.debian.org/~kov/gksu/$TARBALL" 4.16 + 4.17 +BUILD_DEPENDS="cairo gtk+-dev GConf-dev startup-notification-dev \ 4.18 +libgnome-keyring-dev libgtop-dev intltool xcb-util-dev dbus-dev libgcrypt-dev \ 4.19 +gtk-doc libxslt docbook-xsl" 4.20 + 4.21 +DEPENDS="atk bzlib cairo fontconfig freetype GConf gdk-pixbuf glib gtk+ \ 4.22 +harfbuzz libffi libgio libgnome-keyring libgtop libpng libxcb libxml2 ORBit2 \ 4.23 +pango pcre pixman startup-notification xorg-libX11 xorg-libXau xorg-libXdmcp \ 4.24 +xorg-libXext xorg-libXrender zlib" 4.25 + 4.26 +compile_rules() { 4.27 + patch -p1 -i $stuff/libgksu.patch 4.28 + 4.29 + ./configure \ 4.30 + --sysconfdir=/etc \ 4.31 + $CONFIGURE_ARGS && 4.32 + make && 4.33 + make install 4.34 +} 4.35 + 4.36 +genpkg_rules() { 4.37 + mkdir -p $fs/usr/lib $fs/usr/share 4.38 + cp -a $install/etc $fs 4.39 + cp -a $install/usr/bin $fs/usr 4.40 + cp -a $install/usr/lib/libgksu $fs/usr/lib 4.41 + cp -a $install/usr/lib/*.so* $fs/usr/lib 4.42 + cp -a $install/usr/share/applications $fs/usr/share 4.43 + cp -a $install/usr/share/libgksu $fs/usr/share 4.44 + cp -a $install/usr/share/pixmaps $fs/usr/share 4.45 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/libgksu/stuff/libgksu.patch Wed Jul 17 22:18:59 2019 +0300 5.3 @@ -0,0 +1,56 @@ 5.4 +--- a/Makefile.in 5.5 ++++ b/Makefile.in 5.6 +@@ -729,11 +729,11 @@ 5.7 + @INTLTOOL_SCHEMAS_RULE@ 5.8 + 5.9 + @GCONF_SCHEMAS_INSTALL_TRUE@install-data-local: 5.10 +-@GCONF_SCHEMAS_INSTALL_TRUE@ if test -z "$(DESTDIR)" ; then \ 5.11 +-@GCONF_SCHEMAS_INSTALL_TRUE@ for p in $(schemas_DATA) ; do \ 5.12 +-@GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \ 5.13 +-@GCONF_SCHEMAS_INSTALL_TRUE@ done \ 5.14 +-@GCONF_SCHEMAS_INSTALL_TRUE@ fi 5.15 ++@GCONF_SCHEMAS_INSTALL_TRUE@ if test -z "$(DESTDIR)" ; then \ 5.16 ++@GCONF_SCHEMAS_INSTALL_TRUE@ for p in $(schemas_DATA) ; do \ 5.17 ++@GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \ 5.18 ++@GCONF_SCHEMAS_INSTALL_TRUE@ done \ 5.19 ++@GCONF_SCHEMAS_INSTALL_TRUE@ fi 5.20 + @GCONF_SCHEMAS_INSTALL_FALSE@install-data-local: 5.21 + # Tell versions [3.59,3.63) of GNU make to not export all variables. 5.22 + # Otherwise a system limit (for SysV at least) may be exceeded. 5.23 +--- a/libgksu/Makefile.in 5.24 ++++ b/libgksu/Makefile.in 5.25 +@@ -267,7 +267,7 @@ 5.26 + gksu_run_helper_LDFLAGS = `pkg-config --libs glib-2.0` 5.27 + gksu_run_helper_SOURCES = gksu-run-helper.c 5.28 + test_gksu_SOURCES = test-gksu.c 5.29 +-test_gksu_LDADD = libgksu2.la 5.30 ++test_gksu_LDADD = libgksu2.la -lgtk-x11-2.0 5.31 + test_gksu_LDFLAGS = `pkg-config --libs glib-2.0` 5.32 + EXTRA_DIST = libgksu.ver 5.33 + all: all-am 5.34 +--- a/libgksuui/Makefile.in 5.35 ++++ b/libgksuui/Makefile.in 5.36 +@@ -231,7 +231,7 @@ 5.37 + libgksuui1_0_la_LDFLAGS = -Wl,-O1 `pkg-config --libs gtk+-2.0 gconf-2.0` 5.38 + noinst_HEADERS = defines.h gksuui.h gksuui-dialog.h 5.39 + test_gksuui_SOURCES = test-gksuui.c 5.40 +-test_gksuui_LDADD = libgksuui1.0.la 5.41 ++test_gksuui_LDADD = libgksuui1.0.la -lX11 5.42 + test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0` 5.43 + all: all-am 5.44 + 5.45 +--- a/gksu-properties/gksu-properties.desktop.in 5.46 ++++ b/gksu-properties/gksu-properties.desktop.in 5.47 +@@ -3,9 +3,9 @@ 5.48 + _Name=Privilege granting 5.49 + _Comment=Configure behavior of the privilege-granting tool 5.50 + Exec=gksu-properties 5.51 +-Icon=gksu.png 5.52 ++Icon=gksu 5.53 + StartupNotify=true 5.54 + Terminal=false 5.55 + Type=Application 5.56 +-Categories=GNOME;GTK;Application;Settings;AdvancedSettings; 5.57 ++Categories=GNOME;GTK;Settings;X-AdvancedSettings; 5.58 +-OnlyShowIn=GNOME;XFCE; 5.59 ++OnlyShowIn=GNOME;XFCE;LXDE;