1 |
commit: ee0376187fc13ba99ff5a458d8dae7f87fd81cda |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 4 11:17:23 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 4 11:26:01 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee037618 |
7 |
|
8 |
x11-misc/sux: Version 1.0.1 |
9 |
|
10 |
- Unify two patches |
11 |
- Install suxterm, man pages, docs |
12 |
|
13 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
14 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
15 |
|
16 |
x11-misc/sux/Manifest | 1 + |
17 |
...x-1.0-r1.patch => sux-1.0-xauth-and-home.patch} | 10 ++++----- |
18 |
x11-misc/sux/files/sux-X11R6.patch | 24 -------------------- |
19 |
x11-misc/sux/sux-1.0-r4.ebuild | 3 +-- |
20 |
x11-misc/sux/sux-1.0.1.ebuild | 26 ++++++++++++++++++++++ |
21 |
5 files changed, 33 insertions(+), 31 deletions(-) |
22 |
|
23 |
diff --git a/x11-misc/sux/Manifest b/x11-misc/sux/Manifest |
24 |
index e2de646105b..ad1a45ff499 100644 |
25 |
--- a/x11-misc/sux/Manifest |
26 |
+++ b/x11-misc/sux/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST sux 9403 BLAKE2B 26df0f3759b4f4f70479d1532459e3e04da05098045bed7b1066a89f6c636a1200f28866c7ba251d54c24d621b658686889f2306ed797719dfb95a55fb7b3430 SHA512 cf1afb736299e349a14837f89f0feb6a5beb1af35be8e6baef74d03e7278a9d9c331d2759ec21e5cf8b43197734f96464b82ff5904968428bc43a45d2ad0c598 |
29 |
+DIST sux-1.0.1.tar.gz 10614 BLAKE2B f22005a76194ff483ec24ad6ca1d92190fa9f2dbeabb96ad0343b06658b2bc2498e502e167e67df9ed335c74120b443e3daa31530aa18c615416d8464d758a5c SHA512 f121f70daa9e341ae636361675b1c73e3bb5c3f2301b93b32155c79175b3639d307b8fb0b63fbd51d98b6f3ae6c4530c0991343e86f95192a523a9a08a6048f3 |
30 |
|
31 |
diff --git a/x11-misc/sux/files/sux-1.0-r1.patch b/x11-misc/sux/files/sux-1.0-xauth-and-home.patch |
32 |
similarity index 86% |
33 |
rename from x11-misc/sux/files/sux-1.0-r1.patch |
34 |
rename to x11-misc/sux/files/sux-1.0-xauth-and-home.patch |
35 |
index 5be78fd7b7d..09bcf3826af 100644 |
36 |
--- a/x11-misc/sux/files/sux-1.0-r1.patch |
37 |
+++ b/x11-misc/sux/files/sux-1.0-xauth-and-home.patch |
38 |
@@ -13,11 +13,11 @@ |
39 |
# cookie, e.g. an MIT cookie, and there's still a stale XDM cookie hanging |
40 |
# around. |
41 |
- export TERM="xauth -q remove $DISPLAY 2>/dev/null;" |
42 |
-+ export TERM="/usr/X11R6/bin/xauth -q remove $DISPLAY 2>/dev/null;" |
43 |
++ export TERM="/usr/bin/xauth -q remove $DISPLAY 2>/dev/null;" |
44 |
if [ -n "$sux_unix_display" ] |
45 |
then |
46 |
- TERM="$TERM xauth -q remove $sux_unix_display;" |
47 |
-+ TERM="$TERM /usr/X11R6/bin/xauth -q remove $sux_unix_display;" |
48 |
++ TERM="$TERM /usr/bin/xauth -q remove $sux_unix_display;" |
49 |
fi |
50 |
|
51 |
# Note that there may be more than one cookie to transfer, hence |
52 |
@@ -26,11 +26,11 @@ |
53 |
if [ $sux_i -eq 9 ] |
54 |
then |
55 |
- TERM="$TERM | xauth nmerge - ;" |
56 |
-+ TERM="$TERM | /usr/X11R6/bin/xauth nmerge - ;" |
57 |
++ TERM="$TERM | /usr/bin/xauth nmerge - ;" |
58 |
sux_i=0 |
59 |
fi |
60 |
done |
61 |
-@@ -316,12 +316,12 @@ |
62 |
+@@ -316,12 +315,12 @@ |
63 |
# wouldn't have the proper access rights anyway... |
64 |
unset XAUTHORITY |
65 |
|
66 |
@@ -44,7 +44,7 @@ |
67 |
if [ -z "$sux_home" ] |
68 |
then |
69 |
echo "WARNING: --preserve-environment has been set, but no good value was found for XAUTHORITY, expect trouble" >&2 |
70 |
-@@ -334,4 +334,4 @@ |
71 |
+@@ -334,4 +333,4 @@ |
72 |
## |
73 |
# Execute su |
74 |
exec su $sux_su_opts -c "$sux_xauth_cmd \ |
75 |
|
76 |
diff --git a/x11-misc/sux/files/sux-X11R6.patch b/x11-misc/sux/files/sux-X11R6.patch |
77 |
deleted file mode 100644 |
78 |
index 6b345a64696..00000000000 |
79 |
--- a/x11-misc/sux/files/sux-X11R6.patch |
80 |
+++ /dev/null |
81 |
@@ -1,24 +0,0 @@ |
82 |
---- a/sux |
83 |
-+++ b/sux |
84 |
-@@ -229,10 +229,10 @@ |
85 |
- # Remove the old cookies. They may cause trouble if we transfer only one |
86 |
- # cookie, e.g. an MIT cookie, and there's still a stale XDM cookie hanging |
87 |
- # around. |
88 |
-- export TERM="/usr/X11R6/bin/xauth -q remove $DISPLAY 2>/dev/null;" |
89 |
-+ export TERM="/usr/bin/xauth -q remove $DISPLAY 2>/dev/null;" |
90 |
- if [ -n "$sux_unix_display" ] |
91 |
- then |
92 |
-- TERM="$TERM /usr/X11R6/bin/xauth -q remove $sux_unix_display;" |
93 |
-+ TERM="$TERM /usr/bin/xauth -q remove $sux_unix_display;" |
94 |
- fi |
95 |
- |
96 |
- # Note that there may be more than one cookie to transfer, hence |
97 |
-@@ -249,7 +249,7 @@ |
98 |
- sux_i=`expr $sux_i + 1` |
99 |
- if [ $sux_i -eq 9 ] |
100 |
- then |
101 |
-- TERM="$TERM | /usr/X11R6/bin/xauth nmerge - ;" |
102 |
-+ TERM="$TERM | /usr/bin/xauth nmerge - ;" |
103 |
- sux_i=0 |
104 |
- fi |
105 |
- done |
106 |
|
107 |
diff --git a/x11-misc/sux/sux-1.0-r4.ebuild b/x11-misc/sux/sux-1.0-r4.ebuild |
108 |
index a9b3f0087aa..1acd867a81c 100644 |
109 |
--- a/x11-misc/sux/sux-1.0-r4.ebuild |
110 |
+++ b/x11-misc/sux/sux-1.0-r4.ebuild |
111 |
@@ -23,8 +23,7 @@ src_unpack() { |
112 |
|
113 |
src_prepare() { |
114 |
epatch \ |
115 |
- "${FILESDIR}"/${P}-r1.patch \ |
116 |
- "${FILESDIR}"/${PN}-X11R6.patch \ |
117 |
+ "${FILESDIR}"/${PN}-1.0-xauth-and-home.patch \ |
118 |
"${FILESDIR}"/${P}-dash.patch |
119 |
} |
120 |
|
121 |
|
122 |
diff --git a/x11-misc/sux/sux-1.0.1.ebuild b/x11-misc/sux/sux-1.0.1.ebuild |
123 |
new file mode 100644 |
124 |
index 00000000000..8619606a884 |
125 |
--- /dev/null |
126 |
+++ b/x11-misc/sux/sux-1.0.1.ebuild |
127 |
@@ -0,0 +1,26 @@ |
128 |
+# Copyright 1999-2020 Gentoo Authors |
129 |
+# Distributed under the terms of the GNU General Public License v2 |
130 |
+ |
131 |
+EAPI=7 |
132 |
+ |
133 |
+DESCRIPTION="\"su\" wrapper which transfers X credentials" |
134 |
+HOMEPAGE="http://fgouget.free.fr/sux/sux-readme.shtml" |
135 |
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz" |
136 |
+ |
137 |
+LICENSE="MIT" |
138 |
+SLOT="0" |
139 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~sparc ~x86" |
140 |
+ |
141 |
+RDEPEND="x11-apps/xauth" |
142 |
+DEPEND="${RDEPEND}" |
143 |
+PATCHES=( |
144 |
+ "${FILESDIR}"/${PN}-1.0-xauth-and-home.patch |
145 |
+) |
146 |
+ |
147 |
+ |
148 |
+src_install() { |
149 |
+ dobin ${PN}{,term} |
150 |
+ dodoc TODO |
151 |
+ newdoc debian/changelog Debian.changelog |
152 |
+ doman debian/${PN}{,term}.1 |
153 |
+} |