void-packages/srcpkgs/lightdm/template

63 lines
2.4 KiB
Plaintext
Raw Normal View History

2011-02-16 14:27:20 +01:00
# Template file for 'lightdm'
pkgname=lightdm
2012-10-15 23:30:02 +02:00
version=1.4.0
revision=2
build_style=gnu-configure
2012-04-20 10:22:48 +02:00
configure_args="--with-greeter-session=lightdm-gtk-greeter
2012-10-15 23:30:02 +02:00
--with-greeter-user=lightdm --disable-static --disable-tests"
depends="accountsservice"
2012-07-09 23:05:03 +02:00
makedepends="pkg-config intltool dbus-glib-devel libxklavier-devel libxml2-devel
2012-10-15 23:30:02 +02:00
qt-devel gtk+3-devel libxcb-devel libXdmcp-devel pam-devel vala-devel
gobject-introspection itstool"
fulldepends="gnome-icon-theme dbus"
2011-02-16 14:27:20 +01:00
short_desc="Light Display Manager"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-11-09 08:41:52 +01:00
license="GPL-3, LGPL-3"
2012-07-09 23:05:03 +02:00
homepage="https://launchpad.net/lightdm"
2012-10-15 23:30:02 +02:00
distfiles="https://launchpad.net/lightdm/1.4/$version/+download/$pkgname-$version.tar.gz"
checksum=3486a9f828864a78d452696cf6fef6e1dec2f4ef92a72e90ab37edf9a0824c43
2011-02-16 14:27:20 +01:00
long_desc="
An X display manager that:
* Has a lightweight codebase
* Is standards compliant (PAM, ConsoleKit, etc)
* Has a well defined interface between the server and user interface
* Fully themeable (easiest with the webkit interface)
* Cross-desktop (greeters can be written in any toolkit)"
2011-11-09 08:41:52 +01:00
conf_files="
/etc/lightdm/keys.conf
/etc/lightdm/lightdm.conf
2012-04-20 10:22:48 +02:00
/etc/lightdm/users.conf
/etc/pam.d/lightdm
/etc/pam.d/lightdm-autologin"
2011-11-09 08:41:52 +01:00
system_accounts="lightdm"
lightdm_homedir="/var/cache/lightdm"
systemd_services="lightdm.service off"
2011-11-09 17:04:52 +01:00
make_dirs="/var/cache/lightdm 0755 lightdm lightdm"
subpackages="liblightdm-gobject liblightdm-qt lightdm-devel"
2011-02-16 14:27:20 +01:00
2012-04-20 10:22:48 +02:00
post_install() {
2011-05-18 12:25:00 +02:00
# Remove provided init file and use our own.
2011-02-16 14:27:20 +01:00
rm -rf ${DESTDIR}/etc/init
2012-07-09 23:05:03 +02:00
vinstall ${FILESDIR}/lightdm.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/lightdm.pam 644 etc/pam.d lightdm
2012-04-20 10:22:48 +02:00
vinstall ${FILESDIR}/lightdm-autologin.pam 644 etc/pam.d lightdm-autologin
vinstall ${FILESDIR}/xsession 755 etc/lightdm
vinstall ${FILESDIR}/lightdm.rules 644 usr/share/polkit-1/rules.d
# Minimum UID shall be 1000 for ordinary users.
sed -i -e "s|^\(minimum-uid=\).*|\11000|" \
2011-11-09 08:41:52 +01:00
${DESTDIR}/etc/lightdm/users.conf
2012-04-20 10:22:48 +02:00
# Fix path to nologin.
sed -i -e "s|/usr/sbin/nologin|/sbin/nologin|g" \
${DESTDIR}/etc/lightdm/users.conf
# Provide a working session wrapper.
2012-04-20 10:22:48 +02:00
sed -i -e "s|#session-wrapper=lightdm-session|session-wrapper=/etc/lightdm/xsession|g" \
${DESTDIR}/etc/lightdm/lightdm.conf
# Provide a working PAM autologin service.
sed -i -e "s|#autologin-session=UNIMPLEMENTED|#autologin-session=UNIMPLEMENTED\n#pam-service=lightdm-autologin|g" \
2011-11-09 08:41:52 +01:00
${DESTDIR}/etc/lightdm/lightdm.conf
2011-02-16 14:27:20 +01:00
}