diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-08-20 18:00:51 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-08-20 18:01:41 +0200 |
commit | e4fbb2d676e441d5b121752b1e06558d4c970bd7 (patch) | |
tree | b4545721585dbaec785cc420793cdddb5a508aea /app-admin/sudo/sudo-9999.ebuild | |
parent | app-admin/sudo: drop old (diff) | |
download | gentoo-e4fbb2d676e441d5b121752b1e06558d4c970bd7.tar.gz gentoo-e4fbb2d676e441d5b121752b1e06558d4c970bd7.tar.bz2 gentoo-e4fbb2d676e441d5b121752b1e06558d4c970bd7.zip |
app-admin/sudo: always install tmpfiles
- We now always install tmpfiles, even for non-systemd users.
This should help some SELinux users.
- rundir changed from /var/run to just /run [Bug 66104]
Closes: https://bugs.gentoo.org/661004
Package-Manager: Portage-2.3.47, Repoman-2.3.10
Diffstat (limited to 'app-admin/sudo/sudo-9999.ebuild')
-rw-r--r-- | app-admin/sudo/sudo-9999.ebuild | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/app-admin/sudo/sudo-9999.ebuild b/app-admin/sudo/sudo-9999.ebuild index bfac67e52acd..f4ab4527b4fc 100644 --- a/app-admin/sudo/sudo-9999.ebuild +++ b/app-admin/sudo/sudo-9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit eutils pam multilib libtool +inherit eutils pam multilib libtool tmpfiles if [[ ${PV} == "9999" ]] ; then EHG_REPO_URI="https://www.sudo.ws/repos/sudo" inherit mercurial @@ -31,15 +31,15 @@ fi # 3-clause BSD license LICENSE="ISC BSD" SLOT="0" -IUSE="gcrypt ldap nls openssl offensive pam sasl selinux +sendmail skey" +IUSE="gcrypt ldap nls offensive openssl pam sasl selinux +sendmail skey" CDEPEND=" - sys-libs/zlib + sys-libs/zlib:= + gcrypt? ( dev-libs/libgcrypt:= ) ldap? ( >=net-nds/openldap-2.1.30-r1 dev-libs/cyrus-sasl ) - gcrypt? ( dev-libs/libgcrypt:= ) openssl? ( dev-libs/openssl:0= ) pam? ( virtual/pam ) sasl? ( dev-libs/cyrus-sasl ) @@ -132,10 +132,11 @@ src_configure() { # basing off other values. myeconfargs=( --enable-zlib=system + --enable-tmpfiles.d="${EPREFIX}"/usr/lib/tmpfiles.d --with-editor="${EPREFIX}"/usr/libexec/editor --with-env-editor --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo - --with-rundir="${EPREFIX}"/var/run/sudo + --with-rundir="${EPREFIX}"/run/sudo --with-secure-path="${SECURE_PATH}" --with-vardir="${EPREFIX}"/var/db/sudo --without-linux-audit @@ -185,12 +186,14 @@ src_install() { fperms 0700 /var/db/sudo/lectured fperms 0711 /var/db/sudo #652958 - # Don't install into /var/run as that is a tmpfs most of the time + # Don't install into /run as that is a tmpfs most of the time # (bug #504854) - rm -rf "${ED}"/var/run + rm -rf "${ED%/}"/run } pkg_postinst() { + tmpfiles_process sudo.conf + #652958 local sudo_db="${EROOT}/var/db/sudo" if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then |