Annotation of /smage/trunk/core/slim/slim-1.3.2-r1.smage2
Parent Directory | Revision Log
Revision 1323 -
(hide annotations)
(download)
Mon Feb 7 15:50:25 2011 UTC (13 years, 3 months ago) by niro
File size: 2854 byte(s)
Mon Feb 7 15:50:25 2011 UTC (13 years, 3 months ago) by niro
File size: 2854 byte(s)
-fixed a typo
1 | niro | 1103 | # $Id$ |
2 | |||
3 | PNAME="slim" | ||
4 | PVER="1.3.2" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="x11-misc" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="SLiM is a Desktop-independent graphical login manager for X11." | ||
11 | HOMEPAGE="http://slim.berlios.de/" | ||
12 | |||
13 | niro | 1157 | DEPEND=">= x11-libs/libXmu-1.1 |
14 | >= x11-libs/libX11-1.4 | ||
15 | >= x11-libs/libXpm-3.9 | ||
16 | >= x11-libs/libXft-2.2 | ||
17 | >= media-libs/libpng-1.4 | ||
18 | >= media-libs/libjpeg-8 | ||
19 | >= x11-apps/xauth-1.0.5" | ||
20 | niro | 1103 | |
21 | niro | 1157 | SDEPEND=">= dev-util/pkgconfig-0.25 |
22 | >= x11-proto/xproto-7.0.20 | ||
23 | niro | 1103 | >= sys-apps/sed-4" |
24 | |||
25 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
27 | |||
28 | niro | 1272 | MCORE_ONLY_KEEP="etc/slim.conf etc/rc.d/init.d/slim usr/bin/slim usr/share/slim/themes/default" |
29 | niro | 1173 | sminclude mtools mcore-split |
30 | niro | 1103 | |
31 | SRC_URI=( | ||
32 | http://download.berlios.de/${PNAME}/${SRCFILE} | ||
33 | mirror://${PNAME}/${SRCFILE} | ||
34 | niro | 1165 | mirror://${PNAME}/${PNAME}-${PVER}-restart-xserver-if-killed.patch |
35 | mirror://${PNAME}/${PNAME}-${PVER}-fix-keyboard-in-tty-from-which-slim-is-lauched.patch | ||
36 | mirror://${PNAME}/${PNAME}-${PVER}-fix-SIGTERM-freeze.patch | ||
37 | niro | 1103 | ) |
38 | |||
39 | UP2DATE="updatecmd_berlios ${PNAME}" | ||
40 | |||
41 | src_prepare() | ||
42 | { | ||
43 | munpack ${SRCFILE} || die | ||
44 | cd ${SRCDIR} | ||
45 | |||
46 | niro | 1165 | # restart the xserver |
47 | mpatch ${PNAME}-${PVER}-restart-xserver-if-killed.patch || die | ||
48 | |||
49 | # fix keyboard issues | ||
50 | mpatch ${PNAME}-${PVER}-fix-keyboard-in-tty-from-which-slim-is-lauched.patch || die | ||
51 | |||
52 | # fix a sigterm segfault | ||
53 | mpatch ${PNAME}-${PVER}-fix-SIGTERM-freeze.patch || die | ||
54 | |||
55 | niro | 1103 | # fix cflags and ldflags |
56 | sed -i \ | ||
57 | -e "s:^\(CFLAGS=\).*:\1-I. $(pkg-config --cflags freetype2 libpng x11):" \ | ||
58 | -e "s:^\(LDFLAGS=\).*:\1$(pkg-config --libs xft freetype2 libpng xmu) -ljpeg -lz -lm -lcrypt -lrt:" \ | ||
59 | -e "s:^\(MANDIR=\).*:\1/usr/share/man:" \ | ||
60 | Makefile || die | ||
61 | niro | 1165 | |
62 | # rename sim.lock to sim.pid and enable daemon mode by default | ||
63 | niro | 1202 | # fix the shutdown and reboot commands to match busybox |
64 | niro | 1269 | # secure x11 with -nolisten tcp |
65 | niro | 1165 | sed -i -e "s:/var/run/slim.lock:/var/run/slim.pid:" \ |
66 | -e "s:# daemon.*:daemon\tyes:" \ | ||
67 | niro | 1203 | -e "s:^\(halt_cmd.*\):\1\t/sbin/halt:" \ |
68 | -e "s:^\(reboot_cmd.*\):\1\t/sbin/reboot:" \ | ||
69 | niro | 1269 | -e "s:# xserver_arguments.*:xserver_arguments\t-nolisten tcp:" \ |
70 | niro | 1165 | slim.conf || die |
71 | niro | 1103 | } |
72 | |||
73 | src_compile() | ||
74 | { | ||
75 | cd ${SRCDIR} | ||
76 | mmake || die | ||
77 | } | ||
78 | |||
79 | niro | 1162 | mcore_generic_src_install() |
80 | niro | 1103 | { |
81 | cd ${SRCDIR} | ||
82 | mmake DESTDIR=${BINDIR} install || die | ||
83 | niro | 1162 | |
84 | # install a custom slim.conf | ||
85 | echo -e ${COLGREEN}" injecting custom slim-configs"${COLDEFAULT} | ||
86 | niro | 1163 | mcinjectfile slim.conf /etc || die |
87 | niro | 1173 | minstalldir /etc/rc.d/init.d || die |
88 | mcinjectexec slim.rc /etc/rc.d/init.d/slim || die | ||
89 | niro | 1185 | mcinjectfile slim.theme /usr/share/slim/themes/default/slim.theme || die |
90 | mcinjectfile panel.png /usr/share/slim/themes/default/panel.png || die | ||
91 | mcinjectfile mcore2.png /usr/share/slim/themes/default/background.png || die | ||
92 | niro | 1176 | if [ -f ${BINDIR}/usr/share/slim/themes/default/background.jpg ] |
93 | then | ||
94 | niro | 1323 | rm ${BINDIR}/usr/share/slim/themes/default/background.jpg || die |
95 | niro | 1176 | fi |
96 | niro | 1103 | } |
97 | niro | 1290 | |
98 | postinstall() | ||
99 | { | ||
100 | mstartservice slim | ||
101 | } | ||
102 | |||
103 | postremove() | ||
104 | { | ||
105 | mstopservice slim | ||
106 | } |