diff options
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 |