2011-02-16 13:27:20 +00:00
|
|
|
# Template file for 'lightdm'
|
|
|
|
pkgname=lightdm
|
2012-04-20 07:08:39 +00:00
|
|
|
version=1.2.2
|
2012-07-09 21:05:03 +00:00
|
|
|
revision=6
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-04-20 08:22:48 +00:00
|
|
|
configure_args="--with-greeter-session=lightdm-gtk-greeter
|
|
|
|
--with-greeter-user=lightdm --disable-static --disable-tests"
|
2012-05-23 16:26:56 +00:00
|
|
|
depends="accountsservice"
|
2012-07-09 21:05:03 +00:00
|
|
|
makedepends="pkg-config intltool dbus-glib-devel libxklavier-devel libxml2-devel
|
|
|
|
qt-devel gtk+3-devel libxcb-devel libXdmcp-devel pam-devel vala-devel
|
|
|
|
gobject-introspection"
|
2012-05-23 16:26:56 +00:00
|
|
|
fulldepends="gnome-icon-theme dbus"
|
2011-02-16 13:27:20 +00:00
|
|
|
short_desc="Light Display Manager"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-11-09 07:41:52 +00:00
|
|
|
license="GPL-3, LGPL-3"
|
2012-07-09 21:05:03 +00:00
|
|
|
homepage="https://launchpad.net/lightdm"
|
|
|
|
distfiles="https://launchpad.net/lightdm/1.2/$version/+download/$pkgname-$version.tar.gz"
|
2012-04-20 07:08:39 +00:00
|
|
|
checksum=772cc6a4e7da670352f6a38c05470b8fcfe50a2c1d3d424be1c9309afb0c541b
|
2011-02-16 13:27:20 +00: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 07:41:52 +00:00
|
|
|
conf_files="
|
|
|
|
/etc/lightdm/keys.conf
|
|
|
|
/etc/lightdm/lightdm.conf
|
2012-04-20 08:22:48 +00:00
|
|
|
/etc/lightdm/users.conf
|
|
|
|
/etc/pam.d/lightdm
|
|
|
|
/etc/pam.d/lightdm-autologin"
|
2011-11-09 07:41:52 +00:00
|
|
|
|
2012-04-20 07:08:39 +00:00
|
|
|
provides="display-manager-1"
|
|
|
|
replaces="display-manager>=0"
|
2011-02-16 18:22:21 +00:00
|
|
|
system_accounts="lightdm"
|
|
|
|
lightdm_homedir="/var/cache/lightdm"
|
2011-11-10 12:02:50 +00:00
|
|
|
systemd_services="lightdm.service off"
|
2011-11-09 16:04:52 +00:00
|
|
|
make_dirs="/var/cache/lightdm 0755 lightdm lightdm"
|
2012-04-20 07:08:39 +00:00
|
|
|
subpackages="liblightdm-gobject liblightdm-qt lightdm-devel"
|
2011-02-16 13:27:20 +00:00
|
|
|
|
2012-04-20 08:22:48 +00:00
|
|
|
post_install() {
|
2011-05-18 10:25:00 +00:00
|
|
|
# Remove provided init file and use our own.
|
2011-02-16 13:27:20 +00:00
|
|
|
rm -rf ${DESTDIR}/etc/init
|
2012-07-09 21:05:03 +00:00
|
|
|
vinstall ${FILESDIR}/lightdm.service 644 usr/lib/systemd/system
|
2011-10-11 03:22:40 +00:00
|
|
|
vinstall ${FILESDIR}/lightdm.pam 644 etc/pam.d lightdm
|
2012-04-20 08:22:48 +00:00
|
|
|
vinstall ${FILESDIR}/lightdm-autologin.pam 644 etc/pam.d lightdm-autologin
|
|
|
|
vinstall ${FILESDIR}/xsession 755 etc/lightdm
|
2011-02-16 14:36:12 +00:00
|
|
|
|
|
|
|
# Minimum UID shall be 1000 for ordinary users.
|
2012-04-20 07:08:39 +00:00
|
|
|
sed -i -e "s|^\(minimum-uid=\).*|\11000|" \
|
2011-11-09 07:41:52 +00:00
|
|
|
${DESTDIR}/etc/lightdm/users.conf
|
2012-04-20 08:22:48 +00:00
|
|
|
# Fix path to nologin.
|
|
|
|
sed -i -e "s|/usr/sbin/nologin|/sbin/nologin|g" \
|
|
|
|
${DESTDIR}/etc/lightdm/users.conf
|
2011-02-16 15:47:29 +00:00
|
|
|
# Provide a working session wrapper.
|
2012-04-20 08:22:48 +00: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 07:41:52 +00:00
|
|
|
${DESTDIR}/etc/lightdm/lightdm.conf
|
2011-02-16 13:27:20 +00:00
|
|
|
}
|