wok-current view slim-pam/receipt @ rev 25449
BootProg/boot32.asm: floppy chs support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 12 16:35:46 2022 +0000 (23 months ago) |
parents | 9c874a5c3b17 |
children | 3ad63c8fc2f9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim-pam"
4 VERSION="1.3.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Desktop-independent graphical login manager for X11 (PAM enabled)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.berlios.de/software/slim/"
10 REPOLOGY="slim-login-manager"
12 SOURCE="slim"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/iwamatsu/$SOURCE/archive/refs/tags/v$VERSION.tar.gz"
16 PROVIDE="slim:pam"
17 RELATED="slim slim-theme-default"
18 SUGGESTED="slim-theme-default slitaz-configs"
19 DEPENDS="gcc-lib-base libjpeg libpng pam xorg-libXft xorg-libXmu"
20 BUILD_DEPENDS="cmake freetype-dev jpeg-dev libpng-dev pam-dev xorg-libXft-dev
21 xorg-libXmu-dev"
23 CONFIG_FILES="/etc/slim.conf"
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - https://sourceforge.net/projects/slim.berlios/files/ 2>/dev/null | \
29 sed '/scope="row/!d;/slim-/!d;s|.*/slim-||;s|.tar.*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 patch --input=$WOK/$SOURCE/stuff/patches/app.cpp-$VERSION || return 1
36 patch --input=$WOK/$SOURCE/stuff/patches/cfg.cpp-$VERSION || return 1
37 patch --input=$WOK/$SOURCE/stuff/patches/slim.conf-$VERSION || return 1
39 mkdir _build &&
40 cd _build &&
41 cmake .. \
42 -D CMAKE_INSTALL_PREFIX=/usr \
43 -D X11_Xmu_LIB=-lXmu \
44 -D USE_PAM=yes &&
45 make &&
46 make install DESTDIR=$DESTDIR
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/share/slim
54 cp -a $install/etc $fs
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/lib $fs/usr
57 cp -a $WOK/$SOURCE/stuff/themes $fs/usr/share/slim
59 # rc script.
60 cp -a $WOK/$SOURCE/stuff/etc $fs
61 chown -R root.root $fs
63 # slim-theme manager
64 install -m755 $WOK/$SOURCE/stuff/slim-theme $fs/usr/bin/slim-theme
65 }
67 post_install()
68 {
69 # replace default user tux by user with userid 1000 in slim.conf
70 local USER
71 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
72 [ -n "$USER" ] &&
73 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
75 # In order to update the SLiM, we need to restart it.
76 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts
77 # X session and the user will get a terrible console with strange letters.
78 printf '\n%40s\n' | tr ' ' '='
79 echo "In order to update the SLiM,"
80 echo "please, reboot your system!"
81 }
83 pre_remove()
84 {
85 tazpkg get-install ${PACKAGE%-pam}
86 }
88 testsuite()
89 {
90 readelf -h $install/usr/bin/slim
91 }