wok-next view lxdm/receipt @ rev 19889
dropbear, openssh: add ecdsa key & brute force filter
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 10 08:54:54 2017 +0200 (2017-10-10) |
parents | c9e270dd464f |
children | 757d032c55c7 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxdm"
4 VERSION="0.5.3"
5 CATEGORY="x-window"
6 SHORT_DESC="GUI login manager for LXDE"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://wiki.lxde.org/en/LXDM"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
14 BUILD_DEPENDS="xorg-dev gtk+-dev"
15 BUILD_DEPENDS="intltool xorg-libX11-dev gtk+-dev iso-codes" # + consolekit2-dev
16 SPLIT="lxdm-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --sbindir=/usr/bin \
23 --libexecdir=/usr/lib/lxdm \
24 --sysconfdir=/etc \
25 --localstatedir=/var \
26 --enable-password \
27 --without-pam \
28 $CONFIGURE_ARGS &&
29 make && make install || return 1
31 # lxdm daemon
32 cp -a $stuff/init.d/ $install/etc/
34 cp -af $stuff/Xsession $install/etc/lxdm
35 cp -af $stuff/PostLogout $install/etc/lxdm
36 chown -R root:root $install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 lxdm)
44 copy @std
45 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango \
46 xorg-libX11 xorg-libxcb"
47 SUGGESTED="iso-codes"
48 CONFIG_FILES="/etc/lxdm/LoginReady /etc/lxdm/PostLogin \
49 /etc/lxdm/PostLogout /etc/lxdm/PreLogin /etc/lxdm/PreReboot \
50 /etc/lxdm/PreShutdown /etc/lxdm/Xsession /etc/lxdm/lxdm.conf"
51 TAGS="LXDE"
52 ;;
53 *-dev)
54 copy @dev
55 DEPENDS="lxdm atk-dev cairo-dev fontconfig-dev freetype-dev \
56 gdk-pixbuf-dev glib-dev gtk+-dev pango-dev"
57 ;;
58 esac
59 }
61 post_install_lxdm() {
62 grep -q '^lxdm' "$1/etc/passwd" && return 0
63 chroot "$1/" adduser \
64 -h /var/lib/lxdm \
65 -g 'LXDE login manager' \
66 -s /bin/false \
67 -S lxdm
68 chroot "$1/" chown lxdm:lxdm /var/lib/lxdm
69 chroot "$1/" chmod 700 /var/lib/lxdm
70 }