47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'lxdm'
|
|
pkgname=lxdm
|
|
version=0.5.1
|
|
revision=5
|
|
build_style=gnu-configure
|
|
build_options="systemd"
|
|
configure_args="--sbindir=/usr/bin $(vopt_if systemd --disable-consolekit --enable-consolekit) --with-pam"
|
|
hostmakedepends="automake gettext-devel libtool pkg-config intltool"
|
|
makedepends="pam-devel gtk+-devel iso-codes $(vopt_if systemd '' ConsoleKit2-devel)"
|
|
conf_files="
|
|
/etc/lxdm/LoginReady
|
|
/etc/lxdm/PostLogin
|
|
/etc/lxdm/PostLogout
|
|
/etc/lxdm/PreLogin
|
|
/etc/lxdm/PreReboot
|
|
/etc/lxdm/PreShutdown
|
|
/etc/lxdm/Xsession
|
|
/etc/lxdm/lxdm.conf
|
|
/etc/pam.d/lxdm"
|
|
system_groups="lxdm"
|
|
short_desc="GUI login manager for LXDE"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-3"
|
|
homepage="http://www.lxde.org"
|
|
distfiles="${SOURCEFORGE_SITE}/lxdm/lxdm-${version}.tar.xz"
|
|
checksum=2b20ef475b409d0bbea8309181abd23fad5d6240d53b84d7f60fe1a0f6f3e506
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
pre_build() {
|
|
sed -i 's,@DATADIRNAME@,share,g' -i po/Makefile
|
|
}
|
|
post_install() {
|
|
vsv lxdm
|
|
# Use our own pam file.
|
|
rm -f ${DESTDIR}/etc/pam.d/lxdm
|
|
vinstall ${FILESDIR}/lxdm.pam 644 etc/pam.d lxdm
|
|
# use tty7 for X without systemd
|
|
if [ -z "$build_option_systemd" ]; then
|
|
sed -i 's,vt1,vt7,g' ${DESTDIR}/etc/lxdm/lxdm.conf
|
|
fi
|
|
sed -i 's,/usr/sbin,/usr/bin,g' ${DESTDIR}/usr/bin/lxdm
|
|
vmkdir var/lib/lxdm
|
|
echo 'GDK_CORE_DEVICE_EVENTS=true' > ${DESTDIR}/var/lib/lxdm/.pam_environment
|
|
}
|