72 lines
2.3 KiB
Text
72 lines
2.3 KiB
Text
# Template file for 'lightdm'
|
|
pkgname=lightdm
|
|
version=1.0.6
|
|
revision=3
|
|
homepage="https://launchpad.net/lightdm"
|
|
distfiles="http://launchpad.net/lightdm/trunk/$version/+download/lightdm-$version.tar.gz"
|
|
build_style=gnu-configure
|
|
configure_args="--with-greeter-user=lightdm --enable-gtk-greeter"
|
|
short_desc="Light Display Manager"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-3, LGPL-3"
|
|
checksum=745f2ffe58f90ffb318527d20520e1e8f04a36dfa2ac9cc00140857ef57284ae
|
|
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)"
|
|
|
|
conf_files="
|
|
/etc/lightdm/keys.conf
|
|
/etc/lightdm/lightdm.conf
|
|
/etc/lightdm/users.conf"
|
|
|
|
system_accounts="lightdm"
|
|
lightdm_homedir="/var/cache/lightdm"
|
|
systemd_services="lightdm.service off"
|
|
make_dirs="/var/cache/lightdm 0755 lightdm lightdm"
|
|
|
|
subpackages="liblightdm-gobject liblightdm-qt lightdm-qt-greeter"
|
|
subpackages="${subpackages} lightdm-gtk-greeter lightdm-devel"
|
|
|
|
|
|
Add_dependency build pkg-config
|
|
Add_dependency build intltool
|
|
Add_dependency build glib-devel
|
|
Add_dependency build dbus-devel
|
|
Add_dependency build dbus-glib-devel
|
|
Add_dependency build libxklavier-devel
|
|
Add_dependency build libxml2-devel
|
|
Add_dependency build libX11-devel
|
|
Add_dependency build qt-devel
|
|
Add_dependency build gtk+3-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
|
|
Add_dependency build vala-devel
|
|
|
|
Add_dependency full gnome-icon-theme
|
|
Add_dependency full dbus
|
|
|
|
post_install()
|
|
{
|
|
local xs="/usr/share/lightdm/Xsession"
|
|
|
|
# Remove provided init file and use our own.
|
|
rm -rf ${DESTDIR}/etc/init
|
|
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
|
|
|
|
# Minimum UID shall be 1000 for ordinary users.
|
|
sed -i -e "s|^\#\(minimum-uid=\).*|\11000|" \
|
|
${DESTDIR}/etc/lightdm/users.conf
|
|
# Provide a working session wrapper.
|
|
sed -i -e "s|^\#\(session-wrapper=\).*|\1${xs}|" \
|
|
${DESTDIR}/etc/lightdm/lightdm.conf
|
|
}
|