ConsoleKit: use simple .owned files for required runtime dirs, bumprev.

This commit is contained in:
Juan RP 2011-11-09 16:59:19 +01:00
parent f75f98bd99
commit 837769bf96

View file

@ -1,7 +1,7 @@
# Template file for 'ConsoleKit'
pkgname=ConsoleKit
version=0.4.5
revision=2
revision=3
distfiles="http://www.freedesktop.org/software/$pkgname/dist/$pkgname-$version.tar.bz2"
build_style=gnu-configure
configure_args="--enable-docbook-docs --enable-pam-module
@ -19,7 +19,6 @@ long_desc="
systemd_services="console-kit-daemon.service"
conf_files="/etc/logrotate.d/ConsoleKit"
keep_empty_dirs=yes
subpackages="$pkgname-devel $pkgname-x11"
Add_dependency run glibc
@ -42,13 +41,13 @@ Add_dependency build zlib-devel
post_install()
{
install -d ${DESTDIR}/usr/lib/ConsoleKit/run-session.d
install -m755 ${FILESDIR}/pam-foreground-compat.ck \
${DESTDIR}/usr/lib/ConsoleKit/run-session.d
install -d ${DESTDIR}/etc/ConsoleKit/run-seat.d
install -d ${DESTDIR}/etc/ConsoleKit/run-session.d
install -D -m644 ${FILESDIR}/ck.logrotate \
${DESTDIR}/etc/logrotate.d/ConsoleKit
rm -rf ${DESTDIR}/var/run
vinstall ${FILESDIR}/pam-foreground-compat.ck 755 \
usr/lib/${pkgname}/run-session.d
for f in seat session; do
vmkdir etc/${pkgname}/run-${f}.d
touch ${DESTDIR}/etc/${pkgname}/run-${f}.d/.owned
done
vmkdir usr/lib/${pkgname}/run-seat.d
touch ${DESTDIR}/usr/lib/${pkgname}/run-seat.d/.owned
vinstall ${FILESDIR}/ck.logrotate 644 etc/logrotate.d ConsoleKit
}