From d203433dc80a344558e4904d4dc849361c4c54ec Mon Sep 17 00:00:00 2001 From: Juan RP <xtraeme@gmail.com> Date: Wed, 9 Nov 2011 16:48:45 +0100 Subject: [PATCH] systemd: use simple .owned files rather than make_dirs, bumprev. --- srcpkgs/systemd/template | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/srcpkgs/systemd/template b/srcpkgs/systemd/template index 641717b3a6..45385501c3 100644 --- a/srcpkgs/systemd/template +++ b/srcpkgs/systemd/template @@ -1,7 +1,7 @@ # Template file for 'systemd' pkgname=systemd version=37 -revision=5 +revision=6 distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu-configure configure_args="--with-distro=other --with-rootdir= @@ -32,23 +32,6 @@ conf_files=" /etc/systemd/user.conf /etc/systemd/systemd-logind.conf" -# Required empty directories at run time. -make_dirs=" -/usr/lib/modules-load.d 0755 0 0 -/usr/lib/sysctl.d 0755 0 0 -/usr/lib/binfmt.d 0755 0 0 -/usr/libexec/systemd/user-generators 0755 0 0 -/lib/systemd/system/graphical.target.wants 0755 0 0 -/lib/systemd/system-shutdown 0755 0 0 -/etc/systemd/system/sysinit.target.wants 0755 0 0 -/etc/systemd/system/local-fs.target.wants 0755 0 0 -/etc/systemd/user 0755 0 0 -/etc/tmpfiles.d 0755 0 0 -/etc/modules-load.d 0755 0 0 -/etc/sysctl.d 0755 0 0 -/etc/binfmt.d 0755 0 0 -" - Add_dependency run glibc Add_dependency run libudev Add_dependency run pam @@ -78,6 +61,17 @@ pre_configure() post_install() { + for f in etc/binfmt.d etc/sysctl.d etc/modules-load.d etc/tmpfiles.d \ + etc/systemd/user etc/systemd/system/local-fs.target.wants \ + etc/systemd/system/sysinit.target.wants \ + lib/systemd/system-shutdown \ + lib/systemd/system/graphical.target.wants \ + usr/libexec/systemd/user-generators \ + usr/lib/binfmt.d usr/lib/sysctl.d usr/lib/modules-load.d; do + vmkdir ${f} + touch ${DESTDIR}/${f}/.owned + done + vinstall ${FILESDIR}/hostname 644 etc vinstall ${FILESDIR}/vconsole.conf 644 etc vinstall ${FILESDIR}/os-release 644 etc