2011-02-16 14:27:20 +01:00
|
|
|
# Template file for 'lightdm'
|
|
|
|
pkgname=lightdm
|
2011-11-09 08:41:52 +01:00
|
|
|
version=1.0.6
|
2011-11-14 18:12:47 +01:00
|
|
|
revision=3
|
2011-11-09 08:41:52 +01:00
|
|
|
homepage="https://launchpad.net/lightdm"
|
2011-02-16 14:27:20 +01:00
|
|
|
distfiles="http://launchpad.net/lightdm/trunk/$version/+download/lightdm-$version.tar.gz"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-11-09 08:41:52 +01:00
|
|
|
configure_args="--with-greeter-user=lightdm --enable-gtk-greeter"
|
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"
|
|
|
|
checksum=745f2ffe58f90ffb318527d20520e1e8f04a36dfa2ac9cc00140857ef57284ae
|
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
|
|
|
|
/etc/lightdm/users.conf"
|
|
|
|
|
2011-02-16 19:22:21 +01:00
|
|
|
system_accounts="lightdm"
|
|
|
|
lightdm_homedir="/var/cache/lightdm"
|
2011-11-10 13:02:50 +01:00
|
|
|
systemd_services="lightdm.service off"
|
2011-11-09 17:04:52 +01:00
|
|
|
make_dirs="/var/cache/lightdm 0755 lightdm lightdm"
|
2011-02-16 19:22:21 +01:00
|
|
|
|
2011-11-09 08:41:52 +01:00
|
|
|
subpackages="liblightdm-gobject liblightdm-qt lightdm-qt-greeter"
|
|
|
|
subpackages="${subpackages} lightdm-gtk-greeter lightdm-devel"
|
2011-02-16 14:27:20 +01:00
|
|
|
|
|
|
|
|
2011-02-16 16:47:29 +01:00
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build intltool
|
2011-02-16 14:27:20 +01:00
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build dbus-devel
|
2011-11-09 08:41:52 +01:00
|
|
|
Add_dependency build dbus-glib-devel
|
2011-02-16 14:27:20 +01:00
|
|
|
Add_dependency build libxklavier-devel
|
|
|
|
Add_dependency build libxml2-devel
|
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build qt-devel
|
2011-11-09 08:41:52 +01:00
|
|
|
Add_dependency build gtk+3-devel
|
2011-02-16 14:27:20 +01:00
|
|
|
Add_dependency build gdk-pixbuf-devel
|
|
|
|
Add_dependency build cairo-devel
|
|
|
|
Add_dependency build libxcb-devel
|
|
|
|
Add_dependency build libXdmcp-devel
|
|
|
|
Add_dependency build pam-devel
|
2011-02-16 16:47:29 +01:00
|
|
|
Add_dependency build vala-devel
|
2011-02-16 14:27:20 +01:00
|
|
|
|
2011-02-16 15:36:12 +01:00
|
|
|
Add_dependency full gnome-icon-theme
|
2011-02-16 14:27:20 +01:00
|
|
|
Add_dependency full dbus
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2011-02-16 16:47:29 +01:00
|
|
|
local xs="/usr/share/lightdm/Xsession"
|
|
|
|
|
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
|
2011-10-11 05:22:40 +02:00
|
|
|
vinstall ${FILESDIR}/lightdm.service 644 lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/lightdm.pam 644 etc/pam.d lightdm
|
|
|
|
vinstall ${FILESDIR}/Xsession 755 usr/share/lightdm
|
|
|
|
vmkdir var/cache/lightdm
|
2011-02-16 15:36:12 +01:00
|
|
|
|
|
|
|
# Minimum UID shall be 1000 for ordinary users.
|
2011-11-09 08:41:52 +01:00
|
|
|
sed -i -e "s|^\#\(minimum-uid=\).*|\11000|" \
|
|
|
|
${DESTDIR}/etc/lightdm/users.conf
|
2011-02-16 16:47:29 +01:00
|
|
|
# Provide a working session wrapper.
|
|
|
|
sed -i -e "s|^\#\(session-wrapper=\).*|\1${xs}|" \
|
2011-11-09 08:41:52 +01:00
|
|
|
${DESTDIR}/etc/lightdm/lightdm.conf
|
2011-02-16 14:27:20 +01:00
|
|
|
}
|