[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/

2018-03-24 Thread Mart Raudsepp
commit: 7670c2aa380584c1fb2dcb888b0c6cff21a2ff67
Author: Mart Raudsepp  gentoo  org>
AuthorDate: Sat Mar 24 15:14:28 2018 +
Commit: Mart Raudsepp  gentoo  org>
CommitDate: Sat Mar 24 15:14:28 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7670c2aa

x11-libs/gksu: remove old

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 x11-libs/gksu/gksu-2.0.2-r1.ebuild | 80 --
 1 file changed, 80 deletions(-)

diff --git a/x11-libs/gksu/gksu-2.0.2-r1.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r1.ebuild
deleted file mode 100644
index 6032ee3cb1a..000
--- a/x11-libs/gksu/gksu-2.0.2-r1.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="4"
-GCONF_DEBUG="no"
-GNOME2_LA_PUNT="yes"
-
-inherit autotools eutils gnome2 fixheadtails
-
-DESCRIPTION="A gtk+ frontend for libgksu"
-HOMEPAGE="http://www.nongnu.org/gksu/";
-SRC_URI="http://people.debian.org/~kov/gksu/${P}.tar.gz";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
-IUSE="doc gnome"
-
-RDEPEND=">=x11-libs/libgksu-2.0.8
-   >=x11-libs/gtk+-2.4:2
-   >=gnome-base/gconf-2
-   gnome? (
-   >=gnome-base/nautilus-2
-   x11-terms/gnome-terminal )"
-DEPEND="${RDEPEND}
-   dev-util/intltool
-   virtual/pkgconfig
-   doc? ( dev-util/gtk-doc )"
-
-pkg_setup() {
-   DOCS="AUTHORS ChangeLog NEWS README"
-   G2CONF="${G2CONF}
-   --disable-static
-   $(use_enable gnome nautilus-extension)"
-}
-
-src_prepare() {
-   ht_fix_file "${S}/gksu-migrate-conf.sh"
-
-   # https://savannah.nongnu.org/bugs/index.php?36127
-   epatch "${FILESDIR}/${PN}-2.0.2-glib-2.31.patch"
-
-   if use gnome ; then
-   sed 's/x-terminal-emulator/gnome-terminal/' \
-   -i gksu.desktop || die "sed 1 failed"
-
-   # Conditional patch to avoid eautoreconf
-   # https://savannah.nongnu.org/bugs/index.php?36129
-   epatch "${FILESDIR}/${PN}-2.0.2-nautilus-dir.patch"
-
-   sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac 
|| die #467024
-   eautoreconf
-   else
-   sed 's/dist_desktop_DATA = 
$(desktop_in_files:.desktop.in=.desktop)/dist_desktop_DATA =/' \
-   -i Makefile.am Makefile.in || die "sed 2 failed"
-   fi
-
-   gnome2_src_prepare
-}
-
-src_install() {
-   gnome2_src_install
-   chmod +x "${D}/usr/share/gksu/gksu-migrate-conf.sh"
-}
-
-pkg_postinst() {
-   gnome2_pkg_postinst
-   einfo 'updating configuration'
-   "${ROOT}"/usr/share/gksu/gksu-migrate-conf.sh
-   einfo ""
-   einfo "A note on gksudo:  It actually runs sudo to get it's work done"
-   einfo "However, by default, Gentoo's sudo wipes your environment."
-   einfo "This means that gksudo will fail to run any X-based programs."
-   einfo "You need to either add yourself to wheel and uncomment this line"
-   einfo "in your /etc/sudoers:"
-   einfo "Defaults:%wheel   !env_reset"
-   einfo "Or remove the env_reset line entirely.  This can cause security"
-   einfo "problems; if you don't trust your users, don't do this, use gksu"
-   einfo "instead."
-}



[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/

2017-12-31 Thread Sergei Trofimovich
commit: bee706df60b2da10c3ec0f14e1b7df5564cd894f
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Sun Dec 31 00:51:41 2017 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Dec 31 21:32:45 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bee706df

x11-libs/gksu: stable 2.0.2-r2 for sparc, bug #635938

Package-Manager: Portage-2.3.13, Repoman-2.3.3
RepoMan-Options: --include-arches="sparc"

 x11-libs/gksu/gksu-2.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/gksu/gksu-2.0.2-r2.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
index fd75403e6ee..fa4ccabcb3b 100644
--- a/x11-libs/gksu/gksu-2.0.2-r2.ebuild
+++ b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~x86-fbsd"
+KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd"
 IUSE="gnome"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/

2017-12-27 Thread Markus Meier
commit: a6d9edb1b2c421f5cb48dcd81726015334ef80a1
Author: Markus Meier  gentoo  org>
AuthorDate: Wed Dec 27 08:34:54 2017 +
Commit: Markus Meier  gentoo  org>
CommitDate: Wed Dec 27 08:34:54 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6d9edb1

x11-libs/gksu: arm stable, bug #635938

Package-Manager: Portage-2.3.13, Repoman-2.3.3
RepoMan-Options: --include-arches="arm"

 x11-libs/gksu/gksu-2.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/gksu/gksu-2.0.2-r2.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
index 647c40f3e43..fd75403e6ee 100644
--- a/x11-libs/gksu/gksu-2.0.2-r2.ebuild
+++ b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ~mips ppc ppc64 ~sh ~sparc x86 
~x86-fbsd"
+KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~x86-fbsd"
 IUSE="gnome"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/

2017-12-19 Thread Thomas Deutschmann
commit: 0f1355d236f6d55730f0f1a27ad631e5d1e918bb
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Tue Dec 19 18:55:21 2017 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Tue Dec 19 19:13:00 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f1355d2

x11-libs/gksu: x86 stable (bug #635938)

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 x11-libs/gksu/gksu-2.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/gksu/gksu-2.0.2-r2.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
index abf02af9daf..97ddad387c6 100644
--- a/x11-libs/gksu/gksu-2.0.2-r2.ebuild
+++ b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 ~arm ia64 ~mips ppc ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="alpha amd64 ~arm ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~x86-fbsd"
 IUSE="gnome"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/

2017-12-16 Thread Tobias Klausmann
commit: a317e22f1765d5d6ac99faab6929fd7d155da960
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Sat Dec 16 14:02:42 2017 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Sat Dec 16 14:03:50 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a317e22f

x11-libs/gksu-2.0.2-r2: amd64 stable

Gentoo-Bug: http://bugs.gentoo.org/635938

 x11-libs/gksu/gksu-2.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/gksu/gksu-2.0.2-r2.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
index c26a711f1e1..abf02af9daf 100644
--- a/x11-libs/gksu/gksu-2.0.2-r2.ebuild
+++ b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha ~amd64 ~arm ia64 ~mips ppc ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="alpha amd64 ~arm ia64 ~mips ppc ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
 IUSE="gnome"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/

2017-11-18 Thread Sergei Trofimovich
commit: f19b9c6f2e19ef0b17b369f27a051eccc6b99208
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Nov 18 13:12:00 2017 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Nov 18 13:19:55 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f19b9c6f

x11-libs/gksu: stable 2.0.2-r2 for ppc64, bug #635938

Package-Manager: Portage-2.3.14, Repoman-2.3.6
RepoMan-Options: --include-arches="ppc64"

 x11-libs/gksu/gksu-2.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/gksu/gksu-2.0.2-r2.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
index 8a1fca391df..c26a711f1e1 100644
--- a/x11-libs/gksu/gksu-2.0.2-r2.ebuild
+++ b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha ~amd64 ~arm ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="alpha ~amd64 ~arm ia64 ~mips ppc ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
 IUSE="gnome"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/

2017-11-06 Thread Tobias Klausmann
commit: 37e9674f4677b9f919f017ab8db81b0320f18c29
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Mon Nov  6 20:49:27 2017 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Mon Nov  6 20:49:27 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37e9674f

x11-libs/gksu-2.0.2-r2: alpha stable

Gentoo-Bug: http://bugs.gentoo.org/635938

 x11-libs/gksu/gksu-2.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/gksu/gksu-2.0.2-r2.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
index 0822c245879..8a1fca391df 100644
--- a/x11-libs/gksu/gksu-2.0.2-r2.ebuild
+++ b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="alpha ~amd64 ~arm ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
 IUSE="gnome"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/

2017-11-04 Thread Sergei Trofimovich
commit: c042c9357339a325d3b021f1acc46a0fb867a320
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Nov  4 12:48:37 2017 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Nov  4 13:04:36 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c042c935

x11-libs/gksu: stable 2.0.2-r2 for ia64, bug #635938

Package-Manager: Portage-2.3.13, Repoman-2.3.4
RepoMan-Options: --include-arches="ia64"

 x11-libs/gksu/gksu-2.0.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/gksu/gksu-2.0.2-r2.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
index 13bd353f972..0822c245879 100644
--- a/x11-libs/gksu/gksu-2.0.2-r2.ebuild
+++ b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="~alpha ~amd64 ~arm ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
 IUSE="gnome"
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: x11-libs/gksu/, x11-libs/gksu/files/

2017-09-03 Thread Gilles Dartiguelongue
commit: b2d385b19200e3a77322e25d28ddd6dcb7d137fc
Author: Gilles Dartiguelongue  gentoo  org>
AuthorDate: Sun Sep  3 14:08:26 2017 +
Commit: Gilles Dartiguelongue  gentoo  org>
CommitDate: Sun Sep  3 16:15:32 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2d385b1

x11-libs/gksu: fix build with format-security, bug #517664

Bump to EAPI=6. Fix non-existant gtk-doc support. Use src_configure instead of 
G2CONF.

Closes: https://bugs.gentoo.org/show_bug.cgi?id=517664

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 .../gksu/files/gksu-2.0.2-format_security.patch| 37 ++
 x11-libs/gksu/gksu-2.0.2-r2.ebuild | 85 ++
 2 files changed, 122 insertions(+)

diff --git a/x11-libs/gksu/files/gksu-2.0.2-format_security.patch 
b/x11-libs/gksu/files/gksu-2.0.2-format_security.patch
new file mode 100644
index 000..ca87e9af995
--- /dev/null
+++ b/x11-libs/gksu/files/gksu-2.0.2-format_security.patch
@@ -0,0 +1,37 @@
+Description: Fix possible format string vulnerabilities
+Author: Michael Biebl 
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643389
+Index: gksu-2.0.2/gksu/gksu.c
+===
+--- gksu-2.0.2.orig/gksu/gksu.c2009-03-04 19:25:32.0 +0100
 gksu-2.0.2/gksu/gksu.c 2011-10-10 18:31:04.599677143 +0200
+@@ -146,9 +146,12 @@
+   msg = g_strdup_vprintf(format, ap);
+   va_end(ap);
+ 
+-  diag_win = gtk_message_dialog_new_with_markup (NULL, GTK_DIALOG_MODAL,
+-   type, GTK_BUTTONS_CLOSE,
+-   msg);
++  diag_win = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
++   type, GTK_BUTTONS_CLOSE,
++   NULL);
++
++  gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG(diag_win),
++   msg);
+ 
+   gtk_signal_connect_object (GTK_OBJECT(diag_win), "delete_event",
+GTK_SIGNAL_FUNC(gtk_main_quit),
+@@ -176,12 +179,7 @@
+   g_key_file_load_from_file (desktop, file_name, G_KEY_FILE_NONE, &error);
+   if (error)
+ {
+-  gchar *error_msg;
+-
+-  error_msg = g_strdup_printf ("Could not load desktop file: %s",
+- error->message);
+-  g_warning (error_msg);
+-  g_free (error_msg);
++  g_warning ("Could not load desktop file: %s", error->message);
+   g_error_free (error);
+   g_key_file_free (desktop);
+   return;

diff --git a/x11-libs/gksu/gksu-2.0.2-r2.ebuild 
b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
new file mode 100644
index 000..13bd353f972
--- /dev/null
+++ b/x11-libs/gksu/gksu-2.0.2-r2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools gnome2 fixheadtails
+
+DESCRIPTION="A gtk+ frontend for libgksu"
+HOMEPAGE="http://www.nongnu.org/gksu/";
+SRC_URI="https://people.debian.org/~kov/gksu/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="gnome"
+
+RDEPEND="
+   >=x11-libs/libgksu-2.0.8
+   >=x11-libs/gtk+-2.4:2
+   >=gnome-base/gconf-2
+   gnome? (
+   >=gnome-base/nautilus-2
+   x11-terms/gnome-terminal )
+"
+DEPEND="${RDEPEND}
+   dev-util/gtk-doc-am
+   dev-util/intltool
+   virtual/pkgconfig
+"
+
+src_prepare() {
+   ht_fix_file "${S}/gksu-migrate-conf.sh"
+
+   # https://savannah.nongnu.org/bugs/index.php?36127
+   eapply "${FILESDIR}"/${PN}-2.0.2-glib-2.31.patch
+
+   if use gnome ; then
+   sed 's/x-terminal-emulator/gnome-terminal/' \
+   -i gksu.desktop || die "sed 1 failed"
+
+   # Conditional patch to avoid eautoreconf
+   # https://savannah.nongnu.org/bugs/index.php?36129
+   eapply "${FILESDIR}"/${PN}-2.0.2-nautilus-dir.patch
+
+   sed -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
+   -i configure.ac || die #467024
+
+   eautoreconf
+   else
+   sed 's/dist_desktop_DATA = 
$(desktop_in_files:.desktop.in=.desktop)/dist_desktop_DATA =/' \
+   -i Makefile.am Makefile.in || die "sed 2 failed"
+   fi
+
+   # Fix build with format-security, bug #517664
+   eapply "${FILESDIR}"/${PN}-2.0.2-format_security.patch
+
+   gnome2_src_prepare
+}
+
+src_configure() {
+   gnome2_src_configure \
+   --disable-static \
+   $(use_enable gnome nautilus-extension)
+}
+
+src_install() {
+   gnome2_src_install
+   chmod +x "${D}/usr/share/gksu/gksu-migrate-conf.sh"
+}
+
+pkg_postinst() {
+   gnome2_pkg_postinst
+   einfo 'updating configuration'
+   "${ROOT}"/usr/share/gksu/gksu-migrate-conf.sh
+   einfo ""
+