void-packages/srcpkgs/lightdm/template

73 lines
2.3 KiB
Plaintext
Raw Normal View History

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
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"
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"
system_accounts="lightdm"
lightdm_homedir="/var/cache/lightdm"
systemd_services="lightdm.service off"
2011-11-09 17:04:52 +01:00
make_dirs="/var/cache/lightdm 0755 lightdm lightdm"
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
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
Add_dependency build vala-devel
2011-02-16 14:27:20 +01:00
Add_dependency full gnome-icon-theme
2011-02-16 14:27:20 +01:00
Add_dependency full dbus
post_install()
{
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
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.
2011-11-09 08:41:52 +01:00
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}|" \
2011-11-09 08:41:52 +01:00
${DESTDIR}/etc/lightdm/lightdm.conf
2011-02-16 14:27:20 +01:00
}