1 |
commit: e4fbb2d676e441d5b121752b1e06558d4c970bd7 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 20 16:00:51 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 20 16:01:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4fbb2d6 |
7 |
|
8 |
app-admin/sudo: always install tmpfiles |
9 |
|
10 |
- We now always install tmpfiles, even for non-systemd users. |
11 |
This should help some SELinux users. |
12 |
|
13 |
- rundir changed from /var/run to just /run [Bug 66104] |
14 |
|
15 |
Closes: https://bugs.gentoo.org/661004 |
16 |
Package-Manager: Portage-2.3.47, Repoman-2.3.10 |
17 |
|
18 |
.../{sudo-9999.ebuild => sudo-1.8.23-r2.ebuild} | 17 ++++---- |
19 |
app-admin/sudo/sudo-1.8.24.ebuild | 45 +++++++++++++--------- |
20 |
app-admin/sudo/sudo-9999.ebuild | 17 ++++---- |
21 |
3 files changed, 47 insertions(+), 32 deletions(-) |
22 |
|
23 |
diff --git a/app-admin/sudo/sudo-9999.ebuild b/app-admin/sudo/sudo-1.8.23-r2.ebuild |
24 |
similarity index 94% |
25 |
copy from app-admin/sudo/sudo-9999.ebuild |
26 |
copy to app-admin/sudo/sudo-1.8.23-r2.ebuild |
27 |
index bfac67e52ac..f4ab4527b4f 100644 |
28 |
--- a/app-admin/sudo/sudo-9999.ebuild |
29 |
+++ b/app-admin/sudo/sudo-1.8.23-r2.ebuild |
30 |
@@ -3,7 +3,7 @@ |
31 |
|
32 |
EAPI=6 |
33 |
|
34 |
-inherit eutils pam multilib libtool |
35 |
+inherit eutils pam multilib libtool tmpfiles |
36 |
if [[ ${PV} == "9999" ]] ; then |
37 |
EHG_REPO_URI="https://www.sudo.ws/repos/sudo" |
38 |
inherit mercurial |
39 |
@@ -31,15 +31,15 @@ fi |
40 |
# 3-clause BSD license |
41 |
LICENSE="ISC BSD" |
42 |
SLOT="0" |
43 |
-IUSE="gcrypt ldap nls openssl offensive pam sasl selinux +sendmail skey" |
44 |
+IUSE="gcrypt ldap nls offensive openssl pam sasl selinux +sendmail skey" |
45 |
|
46 |
CDEPEND=" |
47 |
- sys-libs/zlib |
48 |
+ sys-libs/zlib:= |
49 |
+ gcrypt? ( dev-libs/libgcrypt:= ) |
50 |
ldap? ( |
51 |
>=net-nds/openldap-2.1.30-r1 |
52 |
dev-libs/cyrus-sasl |
53 |
) |
54 |
- gcrypt? ( dev-libs/libgcrypt:= ) |
55 |
openssl? ( dev-libs/openssl:0= ) |
56 |
pam? ( virtual/pam ) |
57 |
sasl? ( dev-libs/cyrus-sasl ) |
58 |
@@ -132,10 +132,11 @@ src_configure() { |
59 |
# basing off other values. |
60 |
myeconfargs=( |
61 |
--enable-zlib=system |
62 |
+ --enable-tmpfiles.d="${EPREFIX}"/usr/lib/tmpfiles.d |
63 |
--with-editor="${EPREFIX}"/usr/libexec/editor |
64 |
--with-env-editor |
65 |
--with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo |
66 |
- --with-rundir="${EPREFIX}"/var/run/sudo |
67 |
+ --with-rundir="${EPREFIX}"/run/sudo |
68 |
--with-secure-path="${SECURE_PATH}" |
69 |
--with-vardir="${EPREFIX}"/var/db/sudo |
70 |
--without-linux-audit |
71 |
@@ -185,12 +186,14 @@ src_install() { |
72 |
fperms 0700 /var/db/sudo/lectured |
73 |
fperms 0711 /var/db/sudo #652958 |
74 |
|
75 |
- # Don't install into /var/run as that is a tmpfs most of the time |
76 |
+ # Don't install into /run as that is a tmpfs most of the time |
77 |
# (bug #504854) |
78 |
- rm -rf "${ED}"/var/run |
79 |
+ rm -rf "${ED%/}"/run |
80 |
} |
81 |
|
82 |
pkg_postinst() { |
83 |
+ tmpfiles_process sudo.conf |
84 |
+ |
85 |
#652958 |
86 |
local sudo_db="${EROOT}/var/db/sudo" |
87 |
if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then |
88 |
|
89 |
diff --git a/app-admin/sudo/sudo-1.8.24.ebuild b/app-admin/sudo/sudo-1.8.24.ebuild |
90 |
index 8e7d28d69bd..f4ab4527b4f 100644 |
91 |
--- a/app-admin/sudo/sudo-1.8.24.ebuild |
92 |
+++ b/app-admin/sudo/sudo-1.8.24.ebuild |
93 |
@@ -3,7 +3,11 @@ |
94 |
|
95 |
EAPI=6 |
96 |
|
97 |
-inherit eutils pam multilib libtool |
98 |
+inherit eutils pam multilib libtool tmpfiles |
99 |
+if [[ ${PV} == "9999" ]] ; then |
100 |
+ EHG_REPO_URI="https://www.sudo.ws/repos/sudo" |
101 |
+ inherit mercurial |
102 |
+fi |
103 |
|
104 |
MY_P=${P/_/} |
105 |
MY_P=${MY_P/beta/b} |
106 |
@@ -15,37 +19,39 @@ esac |
107 |
|
108 |
DESCRIPTION="Allows users or groups to run commands as other users" |
109 |
HOMEPAGE="https://www.sudo.ws/" |
110 |
-SRC_URI="https://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz |
111 |
- ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz" |
112 |
+if [[ ${PV} != "9999" ]] ; then |
113 |
+ SRC_URI="https://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz |
114 |
+ ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz" |
115 |
+ if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then |
116 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~sparc-solaris" |
117 |
+ fi |
118 |
+fi |
119 |
|
120 |
# Basic license is ISC-style as-is, some files are released under |
121 |
# 3-clause BSD license |
122 |
LICENSE="ISC BSD" |
123 |
SLOT="0" |
124 |
-if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then |
125 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~sparc-solaris" |
126 |
-fi |
127 |
-IUSE="gcrypt ldap nls pam offensive openssl sasl selinux +sendmail skey" |
128 |
+IUSE="gcrypt ldap nls offensive openssl pam sasl selinux +sendmail skey" |
129 |
|
130 |
CDEPEND=" |
131 |
+ sys-libs/zlib:= |
132 |
gcrypt? ( dev-libs/libgcrypt:= ) |
133 |
- openssl? ( dev-libs/openssl:0= ) |
134 |
- pam? ( virtual/pam ) |
135 |
- sasl? ( dev-libs/cyrus-sasl ) |
136 |
- skey? ( >=sys-auth/skey-1.1.5-r1 ) |
137 |
ldap? ( |
138 |
>=net-nds/openldap-2.1.30-r1 |
139 |
dev-libs/cyrus-sasl |
140 |
) |
141 |
- sys-libs/zlib |
142 |
+ openssl? ( dev-libs/openssl:0= ) |
143 |
+ pam? ( virtual/pam ) |
144 |
+ sasl? ( dev-libs/cyrus-sasl ) |
145 |
+ skey? ( >=sys-auth/skey-1.1.5-r1 ) |
146 |
" |
147 |
RDEPEND=" |
148 |
${CDEPEND} |
149 |
- selinux? ( sec-policy/selinux-sudo ) |
150 |
- ldap? ( dev-lang/perl ) |
151 |
- pam? ( sys-auth/pambase ) |
152 |
>=app-misc/editor-wrapper-3 |
153 |
virtual/editor |
154 |
+ ldap? ( dev-lang/perl ) |
155 |
+ pam? ( sys-auth/pambase ) |
156 |
+ selinux? ( sec-policy/selinux-sudo ) |
157 |
sendmail? ( virtual/mta ) |
158 |
" |
159 |
DEPEND=" |
160 |
@@ -126,10 +132,11 @@ src_configure() { |
161 |
# basing off other values. |
162 |
myeconfargs=( |
163 |
--enable-zlib=system |
164 |
+ --enable-tmpfiles.d="${EPREFIX}"/usr/lib/tmpfiles.d |
165 |
--with-editor="${EPREFIX}"/usr/libexec/editor |
166 |
--with-env-editor |
167 |
--with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo |
168 |
- --with-rundir="${EPREFIX}"/var/run/sudo |
169 |
+ --with-rundir="${EPREFIX}"/run/sudo |
170 |
--with-secure-path="${SECURE_PATH}" |
171 |
--with-vardir="${EPREFIX}"/var/db/sudo |
172 |
--without-linux-audit |
173 |
@@ -179,12 +186,14 @@ src_install() { |
174 |
fperms 0700 /var/db/sudo/lectured |
175 |
fperms 0711 /var/db/sudo #652958 |
176 |
|
177 |
- # Don't install into /var/run as that is a tmpfs most of the time |
178 |
+ # Don't install into /run as that is a tmpfs most of the time |
179 |
# (bug #504854) |
180 |
- rm -rf "${ED}"/var/run |
181 |
+ rm -rf "${ED%/}"/run |
182 |
} |
183 |
|
184 |
pkg_postinst() { |
185 |
+ tmpfiles_process sudo.conf |
186 |
+ |
187 |
#652958 |
188 |
local sudo_db="${EROOT}/var/db/sudo" |
189 |
if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then |
190 |
|
191 |
diff --git a/app-admin/sudo/sudo-9999.ebuild b/app-admin/sudo/sudo-9999.ebuild |
192 |
index bfac67e52ac..f4ab4527b4f 100644 |
193 |
--- a/app-admin/sudo/sudo-9999.ebuild |
194 |
+++ b/app-admin/sudo/sudo-9999.ebuild |
195 |
@@ -3,7 +3,7 @@ |
196 |
|
197 |
EAPI=6 |
198 |
|
199 |
-inherit eutils pam multilib libtool |
200 |
+inherit eutils pam multilib libtool tmpfiles |
201 |
if [[ ${PV} == "9999" ]] ; then |
202 |
EHG_REPO_URI="https://www.sudo.ws/repos/sudo" |
203 |
inherit mercurial |
204 |
@@ -31,15 +31,15 @@ fi |
205 |
# 3-clause BSD license |
206 |
LICENSE="ISC BSD" |
207 |
SLOT="0" |
208 |
-IUSE="gcrypt ldap nls openssl offensive pam sasl selinux +sendmail skey" |
209 |
+IUSE="gcrypt ldap nls offensive openssl pam sasl selinux +sendmail skey" |
210 |
|
211 |
CDEPEND=" |
212 |
- sys-libs/zlib |
213 |
+ sys-libs/zlib:= |
214 |
+ gcrypt? ( dev-libs/libgcrypt:= ) |
215 |
ldap? ( |
216 |
>=net-nds/openldap-2.1.30-r1 |
217 |
dev-libs/cyrus-sasl |
218 |
) |
219 |
- gcrypt? ( dev-libs/libgcrypt:= ) |
220 |
openssl? ( dev-libs/openssl:0= ) |
221 |
pam? ( virtual/pam ) |
222 |
sasl? ( dev-libs/cyrus-sasl ) |
223 |
@@ -132,10 +132,11 @@ src_configure() { |
224 |
# basing off other values. |
225 |
myeconfargs=( |
226 |
--enable-zlib=system |
227 |
+ --enable-tmpfiles.d="${EPREFIX}"/usr/lib/tmpfiles.d |
228 |
--with-editor="${EPREFIX}"/usr/libexec/editor |
229 |
--with-env-editor |
230 |
--with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo |
231 |
- --with-rundir="${EPREFIX}"/var/run/sudo |
232 |
+ --with-rundir="${EPREFIX}"/run/sudo |
233 |
--with-secure-path="${SECURE_PATH}" |
234 |
--with-vardir="${EPREFIX}"/var/db/sudo |
235 |
--without-linux-audit |
236 |
@@ -185,12 +186,14 @@ src_install() { |
237 |
fperms 0700 /var/db/sudo/lectured |
238 |
fperms 0711 /var/db/sudo #652958 |
239 |
|
240 |
- # Don't install into /var/run as that is a tmpfs most of the time |
241 |
+ # Don't install into /run as that is a tmpfs most of the time |
242 |
# (bug #504854) |
243 |
- rm -rf "${ED}"/var/run |
244 |
+ rm -rf "${ED%/}"/run |
245 |
} |
246 |
|
247 |
pkg_postinst() { |
248 |
+ tmpfiles_process sudo.conf |
249 |
+ |
250 |
#652958 |
251 |
local sudo_db="${EROOT}/var/db/sudo" |
252 |
if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then |