lightdm: added runit service.
This commit is contained in:
parent
af9520a4d9
commit
8d663c15c0
2 changed files with 13 additions and 6 deletions
6
srcpkgs/lightdm/files/lightdm/run
Executable file
6
srcpkgs/lightdm/files/lightdm/run
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
sv check dbus >/dev/null || exit 1
|
||||||
|
[ ! -d /run/lightdm ] && mkdir -p /run/lightdm
|
||||||
|
chmod 0711 /run/lightdm
|
||||||
|
chown lightdm:lightdm /run/lightdm
|
||||||
|
exec lightdm
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'lightdm'
|
# Template file for 'lightdm'
|
||||||
pkgname=lightdm
|
pkgname=lightdm
|
||||||
version=1.10.1
|
version=1.10.1
|
||||||
revision=5
|
revision=6
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-greeter-session=lightdm-gtk-greeter
|
configure_args="--with-greeter-session=lightdm-gtk-greeter
|
||||||
--with-greeter-user=lightdm --disable-static --disable-tests"
|
--with-greeter-user=lightdm --disable-static --disable-tests"
|
||||||
|
@ -24,9 +24,9 @@ conf_files="
|
||||||
/etc/pam.d/lightdm
|
/etc/pam.d/lightdm
|
||||||
/etc/pam.d/lightdm-greeter
|
/etc/pam.d/lightdm-greeter
|
||||||
/etc/pam.d/lightdm-autologin"
|
/etc/pam.d/lightdm-autologin"
|
||||||
|
replaces="runit-void<20141013_2"
|
||||||
system_accounts="lightdm"
|
system_accounts="lightdm"
|
||||||
lightdm_homedir="/var/lib/lightdm"
|
lightdm_homedir="/var/lib/lightdm"
|
||||||
systemd_services="lightdm.service off"
|
|
||||||
make_dirs="
|
make_dirs="
|
||||||
/var/lib/lightdm 0755 lightdm lightdm
|
/var/lib/lightdm 0755 lightdm lightdm
|
||||||
/var/lib/lightdm-data 0755 lightdm lightdm"
|
/var/lib/lightdm-data 0755 lightdm lightdm"
|
||||||
|
@ -37,8 +37,11 @@ build_options_default="upower"
|
||||||
post_install() {
|
post_install() {
|
||||||
# Remove provided init file and use our own.
|
# Remove provided init file and use our own.
|
||||||
rm -rf ${DESTDIR}/etc/init
|
rm -rf ${DESTDIR}/etc/init
|
||||||
vinstall ${FILESDIR}/lightdm.service 644 usr/lib/systemd/system
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall ${FILESDIR}/lightdm.tmpfiles 644 usr/lib/tmpfiles.d lightdm.conf
|
vinstall ${FILESDIR}/lightdm.service 644 usr/lib/systemd/system
|
||||||
|
vinstall ${FILESDIR}/lightdm.tmpfiles 644 usr/lib/tmpfiles.d lightdm.conf
|
||||||
|
fi
|
||||||
|
vsv lightdm
|
||||||
vinstall ${FILESDIR}/lightdm.rules 644 usr/share/polkit-1/rules.d
|
vinstall ${FILESDIR}/lightdm.rules 644 usr/share/polkit-1/rules.d
|
||||||
vinstall ${FILESDIR}/xsession 755 etc/lightdm Xsession
|
vinstall ${FILESDIR}/xsession 755 etc/lightdm Xsession
|
||||||
# make pam_systemd optional
|
# make pam_systemd optional
|
||||||
|
@ -55,14 +58,12 @@ liblightdm-gobject_package() {
|
||||||
vmove usr/lib/girepository-1.0
|
vmove usr/lib/girepository-1.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
liblightdm-qt_package() {
|
liblightdm-qt_package() {
|
||||||
short_desc+=" - QT support library"
|
short_desc+=" - QT support library"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/liblightdm-qt*.so.*"
|
vmove "usr/lib/liblightdm-qt*.so.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lightdm-devel_package() {
|
lightdm-devel_package() {
|
||||||
depends="libglib-devel liblightdm-gobject>=${version}_${revision}
|
depends="libglib-devel liblightdm-gobject>=${version}_${revision}
|
||||||
liblightdm-qt>=${version}_${revision}"
|
liblightdm-qt>=${version}_${revision}"
|
||||||
|
|
Loading…
Reference in a new issue