Contents of /branches/magellan-next/extras/slim/slim-1.3.2-r1.smage2
Parent Directory | Revision Log
Revision 9282 -
(show annotations)
(download)
Thu Nov 24 20:25:18 2011 UTC (12 years, 7 months ago) by niro
File size: 2973 byte(s)
Thu Nov 24 20:25:18 2011 UTC (12 years, 7 months ago) by niro
File size: 2973 byte(s)
auto added: ver bump to 1.3.2-r1
1 | # $Id$ |
2 | |
3 | PNAME="slim" |
4 | PVER="1.3.2" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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 | |
20 | SDEPEND=">= dev-util/pkgconfig-0.25 |
21 | >= x11-proto/xproto-7 |
22 | >= sys-apps/sed-4" |
23 | |
24 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
25 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
26 | |
27 | sminclude mtools |
28 | |
29 | SRC_URI=( |
30 | http://download.berlios.de/${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${PNAME}-${PVER}-restart-xserver-if-killed.patch |
33 | mirror://${PNAME}/${PNAME}-${PVER}-fix-keyboard-in-tty-from-which-slim-is-lauched.patch |
34 | mirror://${PNAME}/${PNAME}-${PVER}-fix-SIGTERM-freeze.patch |
35 | mirror://${PNAME}/${PNAME}-${PVER}-libpng15.patch |
36 | mirror://${PNAME}/slim.service |
37 | mirror://${PNAME}/slim.tmpfile |
38 | mirror://${PNAME}/slim.logrotate |
39 | mirror://${PNAME}/slim.pamd |
40 | ) |
41 | |
42 | UP2DATE="updatecmd_berlios ${PNAME}" |
43 | |
44 | src_prepare() |
45 | { |
46 | munpack ${SRCFILE} || die |
47 | cd ${SRCDIR} |
48 | |
49 | # restart the xserver |
50 | mpatch ${PNAME}-${PVER}-restart-xserver-if-killed.patch || die |
51 | |
52 | # fix keyboard issues |
53 | mpatch ${PNAME}-${PVER}-fix-keyboard-in-tty-from-which-slim-is-lauched.patch || die |
54 | |
55 | # fix a sigterm segfault |
56 | mpatch ${PNAME}-${PVER}-fix-SIGTERM-freeze.patch || die |
57 | |
58 | # fix build against libpng-1.5.x |
59 | mpatch ${PNAME}-${PVER}-libpng15.patch || die |
60 | |
61 | # fix cflags and ldflags |
62 | sed -i \ |
63 | -e "s:^\(CFLAGS=\).*:\1-I. $(pkg-config --cflags freetype2 libpng x11):" \ |
64 | -e "s:^\(LDFLAGS=\).*:\1$(pkg-config --libs xft freetype2 libpng xmu) -ljpeg -lz -lm -lcrypt -lrt:" \ |
65 | -e "s:^\(MANDIR=\).*:\1/usr/share/man:" \ |
66 | Makefile || die |
67 | |
68 | # rename sim.lock to sim.pid and enable daemon mode by default |
69 | # fix the shutdown and reboot commands to match busybox |
70 | # secure x11 with -nolisten tcp |
71 | sed -i -e "s:/var/run/slim.lock:/var/run/slim.pid:" \ |
72 | -e "s:# daemon.*:daemon\tyes:" \ |
73 | -e "s:^\(halt_cmd.*\):\1\t/sbin/halt:" \ |
74 | -e "s:^\(reboot_cmd.*\):\1\t/sbin/reboot:" \ |
75 | -e "s:# xserver_arguments.*:xserver_arguments\t-nolisten tcp:" \ |
76 | slim.conf || die |
77 | } |
78 | |
79 | src_compile() |
80 | { |
81 | cd ${SRCDIR} |
82 | mmake || die |
83 | } |
84 | |
85 | src_install() |
86 | { |
87 | cd ${SRCDIR} |
88 | mmake DESTDIR=${BINDIR} install || die |
89 | |
90 | minstallunit slim.service slim@.service || die |
91 | minstalltemp slim.tmpfiles slim.conf || die |
92 | minstallpam slim.pamd slim || die |
93 | minstalllog slim.logrotate slim || die |
94 | |
95 | # theme |
96 | minstallfile magellan-slim.theme /usr/share/slim/themes/default/slim.theme || die |
97 | minstallfile magellan-panel.png /usr/share/slim/themes/default/panel.png || die |
98 | minstallfile magellan-wallpaper.png /usr/share/slim/themes/default/background.png || die |
99 | if [ -f ${BINDIR}/usr/share/slim/themes/default/background.jpg ] |
100 | then |
101 | rm ${BINDIR}/usr/share/slim/themes/default/background.jpg || die |
102 | fi |
103 | } |
104 | |
105 | postinstall() |
106 | { |
107 | mstartunit slim@.service slim |
108 | } |
109 | |
110 | postremove() |
111 | { |
112 | mstopunit slim@.service slim |
113 | } |