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