wok-6.x view slim-pam/receipt @ rev 24609
updated gnu-efi (3.0.11 -> 3.0.14)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 04 07:12:36 2022 +0100 (2022-03-04) |
parents | 826c1bab582b |
children | 9c874a5c3b17 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim-pam"
4 VERSION="1.3.5"
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://sourceforge.net/projects/slim.berlios/"
10 SOURCE="slim"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="http://download.berlios.de/slim/$TARBALL"
13 CONFIG_FILES="/etc/slim.conf"
15 PROVIDE="slim:pam"
16 DEPENDS="gcc-lib-base libjpeg libpng pam xorg-libXft xorg-libXmu"
17 SUGGESTED="slim-theme-default slitaz-configs"
18 BUILD_DEPENDS="cmake freetype-dev jpeg-dev libpng-dev xorg-libXft-dev \
19 xorg-libXmu-dev pam-dev"
20 RELATED="slim slim-theme-default"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://sourceforge.net/projects/slim.berlios/files/ 2>/dev/null | \
26 sed '/scope="row/!d;/slim-/!d;s|.*/slim-||;s|.tar.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 patch -p1 < $WOK/$SOURCE/stuff/$SOURCE-$VERSION.patch || return 1
33 mkdir build; cd build
34 cmake \
35 -DCMAKE_INSTALL_PREFIX=/usr \
36 -DX11_Xmu_LIB=-lXmu \
37 -DUSE_PAM=yes \
38 .. &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/slim
47 cp -a $install/etc $fs
48 cp -a $install/usr/bin $fs/usr
49 cp -a $WOK/$SOURCE/stuff/themes $fs/usr/share/slim
51 # Config file and rc script.
52 cp -a $WOK/$SOURCE/stuff/etc $fs
53 chown -R root.root $fs
55 # slim-theme manager
56 install -m755 $WOK/$SOURCE/stuff/slim-theme $fs/usr/bin/slim-theme
57 }
59 post_install()
60 {
61 local USER
62 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
63 [ -n "$USER" ] &&
64 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
66 # In order to update the SLiM, we need to restart it.
67 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts
68 # X session and the user will get a terrible console with strange letters.
69 printf '%40s\n' | tr ' ' '='
70 echo "In order to update the SLiM,"
71 echo "please, reboot your system!"
72 }
74 pre_remove()
75 {
76 tazpkg get-install ${PACKAGE%-pam}
77 }
79 testsuite() { ldd $install/usr/bin/slim; }