systemd: use simple .owned files rather than make_dirs, bumprev.

This commit is contained in:
Juan RP 2011-11-09 16:48:45 +01:00
parent 4baf76b8e5
commit d203433dc8

View file

@ -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