wok view slim-pam/receipt @ rev 25341
amule: update to new libupnp API
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 24 16:17:15 2022 +0000 (2022-07-24) |
parents | 3105f866bc3e |
children | ca6fa52862c9 |
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://sourceforge.net/projects/slim.berlios/"
10 REPOLOGY="slim-login-manager"
12 SOURCE="slim"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://downloads.sourceforge.net/project/slim.berlios/$TARBALL"
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 # Configuration file and 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 local USER
70 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
71 [ -n "$USER" ] &&
72 sed -i s/"default_user .*"/"default_user $USER"/ "$1/etc/slim.conf"
74 # In order to update the SLiM, we need to restart it.
75 # We can't just "/etc/init.d/slim restart" because it momentarily interrupts
76 # X session and the user will get a terrible console with strange letters.
77 printf '%40s\n' | tr ' ' '='
78 echo "In order to update the SLiM,"
79 echo "please, reboot your system!"
80 }
82 pre_remove()
83 {
84 tazpkg get-install ${PACKAGE%-pam}
85 }
87 testsuite()
88 {
89 ldd $install/usr/bin/slim
90 }