Magellan Linux

Contents of /branches/R11-stable/extras/slim/slim-1.3.5-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15853 - (show annotations) (download)
Fri Jan 11 11:56:58 2013 UTC (11 years, 4 months ago) by niro
File size: 2521 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="slim"
4 PVER="1.3.5"
5 PBUILD="r3"
6
7 PCAT="x11-misc"
8
9 DESCRIPTION="SLiM is a Desktop-independent graphical login manager for X11."
10 HOMEPAGE="http://slim.berlios.de/"
11
12 DEPEND=">= x11-libs/libXmu-1.1
13 >= x11-libs/libX11-1.4
14 >= x11-libs/libXpm-3.5
15 >= x11-libs/libXft-2.2
16 >= media-libs/libpng-1.5
17 >= media-libs/libjpeg-8
18 >= sys-libs/pam-1.1
19 >= sys-libs/libstdc++-4.6"
20
21 SDEPEND=">= dev-util/pkgconfig-0.25
22 >= x11-proto/xproto-7
23 >= sys-apps/sed-4"
24
25 PROVIDE="virtual/graphical-login"
26
27 SRCFILE="${PNAME}-${PVER}.tar.gz"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 SVC_REV=1.4
31 TMPFILES_REV=1.2
32 PAMD_REV=1.3
33
34 sminclude mtools cmake
35
36 SRC_URI=(
37 http://download.berlios.de/${PNAME}/${SRCFILE}
38 mirror://${PNAME}/${SRCFILE}
39 mirror://${PNAME}/slim.service-${SVC_REV}
40 mirror://${PNAME}/slim.tmpfiles-${TMPFILES_REV}
41 mirror://${PNAME}/slim.logrotate
42 mirror://${PNAME}/slim.pamd-${PAMD_REV}
43 mirror://${PNAME}/magellan-slim.theme
44 mirror://${PNAME}/magellan-panel.png
45 mirror://${PNAME}/magellan-wallpaper.png
46 )
47
48 UP2DATE="updatecmd_berlios ${PNAME}"
49
50 src_prepare()
51 {
52 munpack ${SRCFILE} || die
53 cd ${SRCDIR}
54
55 # rename sim.lock to sim.pid and enable daemon mode by default
56 # fix the shutdown and reboot commands to match busybox
57 # secure x11 with -nolisten tcp
58 # and usr /run instead of /var/run
59 sed -i -e "s:/var/run/slim.lock:/run/slim.pid:" \
60 -e "s:/var/run/slim.auth:/run/slim.auth:" \
61 -e "s:# daemon.*:daemon\tyes:" \
62 -e "s:^\(halt_cmd.*\):\1\t/sbin/halt:" \
63 -e "s:^\(reboot_cmd.*\):\1\t/sbin/reboot:" \
64 -e "s:#xserver_arguments.*:xserver_arguments\t-nolisten tcp vt01:" \
65 slim.conf || die
66 }
67
68 src_compile()
69 {
70 cd ${SRCDIR}
71 cmake_configure $(cmake_opt USE_PAM yes) $(cmake_opt USE_CONSOLEKIT no) || die
72 mmake || die
73 }
74
75 src_install()
76 {
77 cd ${SRCDIR}
78 mmake DESTDIR=${BINDIR} install || die
79
80 minstallunit slim.service-${SVC_REV} slim.service || die
81 minstalltmp slim.tmpfiles-${TMPFILES_REV} slim.conf || die
82 minstallpam slim.pamd-${PAMD_REV} slim || die
83 minstalllog slim.logrotate slim || die
84
85 # theme
86 minstallfile -s magellan-slim.theme /usr/share/slim/themes/default/slim.theme || die
87 minstallfile -s magellan-panel.png /usr/share/slim/themes/default/panel.png || die
88 minstallfile -s magellan-wallpaper.png /usr/share/slim/themes/default/background.png || die
89 if [ -f ${BINDIR}/usr/share/slim/themes/default/background.jpg ]
90 then
91 rm ${BINDIR}/usr/share/slim/themes/default/background.jpg || die
92 fi
93 }
94
95 postinstall()
96 {
97 mstartunit slim.service
98 }
99
100 postremove()
101 {
102 mstopunit slim.service
103 }