2011-02-16 14:27:20 +01:00
|
|
|
# Template file for 'lightdm'
|
|
|
|
pkgname=lightdm
|
2011-05-18 12:25:00 +02:00
|
|
|
version=0.3.3
|
2011-02-16 14:27:20 +01:00
|
|
|
distfiles="http://launchpad.net/lightdm/trunk/$version/+download/lightdm-$version.tar.gz"
|
|
|
|
build_style=gnu_configure
|
2011-02-16 19:22:21 +01:00
|
|
|
configure_args="--localstatedir=/var --with-greeter-user=lightdm"
|
2011-02-16 14:27:20 +01:00
|
|
|
short_desc="Light Display Manager"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-18 12:25:00 +02:00
|
|
|
checksum=fa615276ad9d8068ac199e064a9d366f9d42f0b092e832a9a5a5717f8c2b8174
|
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-02-16 19:22:21 +01:00
|
|
|
system_accounts="lightdm"
|
|
|
|
lightdm_homedir="/var/cache/lightdm"
|
2011-02-16 14:27:20 +01:00
|
|
|
openrc_services="lightdm default true"
|
2011-02-16 19:22:21 +01:00
|
|
|
keep_empty_dirs=yes
|
|
|
|
|
2011-05-18 12:25:00 +02:00
|
|
|
subpackages="liblightdm-gobject liblightdm-qt lightdm-qt"
|
|
|
|
subpackages="${subpackages} lightdm-pygtk lightdm-vala lightdm-devel"
|
2011-02-16 14:27:20 +01:00
|
|
|
|
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run dbus-libs
|
|
|
|
Add_dependency run cairo
|
|
|
|
Add_dependency run libXdmcp
|
|
|
|
Add_dependency run libxcb
|
|
|
|
Add_dependency run pam
|
|
|
|
Add_dependency run gdk-pixbuf
|
|
|
|
Add_dependency run gtk+
|
|
|
|
Add_dependency run liblightdm-gobject
|
|
|
|
|
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-glib-devel
|
|
|
|
Add_dependency build dbus-devel
|
|
|
|
Add_dependency build glibc-devel
|
|
|
|
Add_dependency build libxklavier-devel
|
|
|
|
Add_dependency build libxml2-devel
|
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build qt-devel
|
|
|
|
Add_dependency build libstdc++-devel
|
|
|
|
Add_dependency build gtk+-devel
|
|
|
|
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
|
|
|
|
install -D -m755 ${FILESDIR}/lightdm.rc ${DESTDIR}/etc/init.d/lightdm
|
2011-02-16 15:36:12 +01:00
|
|
|
install -D -m644 ${FILESDIR}/lightdm.pam ${DESTDIR}/etc/pam.d/lightdm
|
2011-02-16 16:47:29 +01:00
|
|
|
install -D -m755 ${FILESDIR}/Xsession ${DESTDIR}/${xs}
|
2011-02-16 15:36:12 +01:00
|
|
|
|
|
|
|
# Minimum UID shall be 1000 for ordinary users.
|
|
|
|
sed -i -e "s|^\#\(minimum-uid=\).*|\11000|" ${DESTDIR}/etc/lightdm.conf
|
2011-02-16 16:47:29 +01:00
|
|
|
# Provide a working session wrapper.
|
|
|
|
sed -i -e "s|^\#\(session-wrapper=\).*|\1${xs}|" \
|
|
|
|
${DESTDIR}/etc/lightdm.conf
|
2011-02-16 19:22:21 +01:00
|
|
|
install -d ${DESTDIR}/var/cache/lightdm
|
2011-02-16 14:27:20 +01:00
|
|
|
}
|