Magellan Linux

Contents of /trunk/extras/slim/slim-1.3.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13167 - (show annotations) (download)
Thu Aug 30 13:02:43 2012 UTC (11 years, 9 months ago) by niro
File size: 2397 byte(s)
auto added: ver bump to 1.3.4-r1
1 # $Id$
2
3 PNAME="slim"
4 PVER="1.3.4"
5 PBUILD="r1"
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 SRCFILE="${PNAME}-${PVER}.tar.gz"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27
28 TMPFILES_REV=1.2
29
30 sminclude mtools cmake
31
32 SRC_URI=(
33 http://download.berlios.de/${PNAME}/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 mirror://${PNAME}/slim.service
36 mirror://${PNAME}/slim.tmpfiles-${TMPFILES_REV}
37 mirror://${PNAME}/slim.logrotate
38 mirror://${PNAME}/slim.pamd
39 mirror://${PNAME}/magellan-slim.theme
40 mirror://${PNAME}/magellan-panel.png
41 mirror://${PNAME}/magellan-wallpaper.png
42 )
43
44 UP2DATE="updatecmd_berlios ${PNAME}"
45
46 src_prepare()
47 {
48 munpack ${SRCFILE} || die
49 cd ${SRCDIR}
50
51 # rename sim.lock to sim.pid and enable daemon mode by default
52 # fix the shutdown and reboot commands to match busybox
53 # secure x11 with -nolisten tcp
54 # and usr /run instead of /var/run
55 sed -i -e "s:/var/run/slim.lock:/run/slim.pid:" \
56 -e "s:/var/run/slim.auth:/run/slim.auth:" \
57 -e "s:# daemon.*:daemon\tyes:" \
58 -e "s:^\(halt_cmd.*\):\1\t/sbin/halt:" \
59 -e "s:^\(reboot_cmd.*\):\1\t/sbin/reboot:" \
60 -e "s:#xserver_arguments.*:xserver_arguments\t-nolisten tcp vt07:" \
61 slim.conf || die
62 }
63
64 src_compile()
65 {
66 cd ${SRCDIR}
67 cmake_configure $(cmake_opt USE_PAM yes) || die
68 mmake || die
69 }
70
71 src_install()
72 {
73 cd ${SRCDIR}
74 mmake DESTDIR=${BINDIR} install || die
75
76 minstallunit slim.service slim@.service || die
77 minstalltmp slim.tmpfiles-${TMPFILES_REV} slim.conf || die
78 minstallpam slim.pamd slim || die
79 minstalllog slim.logrotate slim || die
80
81 # theme
82 minstallfile -s magellan-slim.theme /usr/share/slim/themes/default/slim.theme || die
83 minstallfile -s magellan-panel.png /usr/share/slim/themes/default/panel.png || die
84 minstallfile -s magellan-wallpaper.png /usr/share/slim/themes/default/background.png || die
85 if [ -f ${BINDIR}/usr/share/slim/themes/default/background.jpg ]
86 then
87 rm ${BINDIR}/usr/share/slim/themes/default/background.jpg || die
88 fi
89 }
90
91 postinstall()
92 {
93 mstartunit slim@.service slim
94 }
95
96 postremove()
97 {
98 mstopunit slim@.service slim
99 }