Use the tmpfiles mechanism from systemd to proper
recreate the /run/sudo directory.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
name = sudo
version = 1.9.12p1
-release = 1
+release = 2
groups = Applications/System
url = https://www.sudo.ws/
--with-ignore-dot \
--with-tty-tickets \
--with-ldap \
- --with-passprompt="[sudo] password for %p: "
+ --with-passprompt="[sudo] password for %p: " \
+ --enable-tmpfiles.d=%{tmpfilesdir}
prepare_cmds
# The tarball contains files owned by a stange uid:gid which will let
install_cmds
mkdir -pv %{BUILDROOT}%{sysconfdir}
cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers
+
+ # Do not ship /run
+ rm -rvf %{BUILDROOT}/run
end
end