1 |
commit: 7670c2aa380584c1fb2dcb888b0c6cff21a2ff67 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 24 15:14:28 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 24 15:14:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7670c2aa |
7 |
|
8 |
x11-libs/gksu: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
x11-libs/gksu/gksu-2.0.2-r1.ebuild | 80 -------------------------------------- |
13 |
1 file changed, 80 deletions(-) |
14 |
|
15 |
diff --git a/x11-libs/gksu/gksu-2.0.2-r1.ebuild b/x11-libs/gksu/gksu-2.0.2-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 6032ee3cb1a..00000000000 |
18 |
--- a/x11-libs/gksu/gksu-2.0.2-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,80 +0,0 @@ |
21 |
-# Copyright 1999-2013 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI="4" |
25 |
-GCONF_DEBUG="no" |
26 |
-GNOME2_LA_PUNT="yes" |
27 |
- |
28 |
-inherit autotools eutils gnome2 fixheadtails |
29 |
- |
30 |
-DESCRIPTION="A gtk+ frontend for libgksu" |
31 |
-HOMEPAGE="http://www.nongnu.org/gksu/" |
32 |
-SRC_URI="http://people.debian.org/~kov/gksu/${P}.tar.gz" |
33 |
- |
34 |
-LICENSE="GPL-2" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" |
37 |
-IUSE="doc gnome" |
38 |
- |
39 |
-RDEPEND=">=x11-libs/libgksu-2.0.8 |
40 |
- >=x11-libs/gtk+-2.4:2 |
41 |
- >=gnome-base/gconf-2 |
42 |
- gnome? ( |
43 |
- >=gnome-base/nautilus-2 |
44 |
- x11-terms/gnome-terminal )" |
45 |
-DEPEND="${RDEPEND} |
46 |
- dev-util/intltool |
47 |
- virtual/pkgconfig |
48 |
- doc? ( dev-util/gtk-doc )" |
49 |
- |
50 |
-pkg_setup() { |
51 |
- DOCS="AUTHORS ChangeLog NEWS README" |
52 |
- G2CONF="${G2CONF} |
53 |
- --disable-static |
54 |
- $(use_enable gnome nautilus-extension)" |
55 |
-} |
56 |
- |
57 |
-src_prepare() { |
58 |
- ht_fix_file "${S}/gksu-migrate-conf.sh" |
59 |
- |
60 |
- # https://savannah.nongnu.org/bugs/index.php?36127 |
61 |
- epatch "${FILESDIR}/${PN}-2.0.2-glib-2.31.patch" |
62 |
- |
63 |
- if use gnome ; then |
64 |
- sed 's/x-terminal-emulator/gnome-terminal/' \ |
65 |
- -i gksu.desktop || die "sed 1 failed" |
66 |
- |
67 |
- # Conditional patch to avoid eautoreconf |
68 |
- # https://savannah.nongnu.org/bugs/index.php?36129 |
69 |
- epatch "${FILESDIR}/${PN}-2.0.2-nautilus-dir.patch" |
70 |
- |
71 |
- sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467024 |
72 |
- eautoreconf |
73 |
- else |
74 |
- sed 's/dist_desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)/dist_desktop_DATA =/' \ |
75 |
- -i Makefile.am Makefile.in || die "sed 2 failed" |
76 |
- fi |
77 |
- |
78 |
- gnome2_src_prepare |
79 |
-} |
80 |
- |
81 |
-src_install() { |
82 |
- gnome2_src_install |
83 |
- chmod +x "${D}/usr/share/gksu/gksu-migrate-conf.sh" |
84 |
-} |
85 |
- |
86 |
-pkg_postinst() { |
87 |
- gnome2_pkg_postinst |
88 |
- einfo 'updating configuration' |
89 |
- "${ROOT}"/usr/share/gksu/gksu-migrate-conf.sh |
90 |
- einfo "" |
91 |
- einfo "A note on gksudo: It actually runs sudo to get it's work done" |
92 |
- einfo "However, by default, Gentoo's sudo wipes your environment." |
93 |
- einfo "This means that gksudo will fail to run any X-based programs." |
94 |
- einfo "You need to either add yourself to wheel and uncomment this line" |
95 |
- einfo "in your /etc/sudoers:" |
96 |
- einfo "Defaults:%wheel !env_reset" |
97 |
- einfo "Or remove the env_reset line entirely. This can cause security" |
98 |
- einfo "problems; if you don't trust your users, don't do this, use gksu" |
99 |
- einfo "instead." |
100 |
-} |