Annotation of /trunk/extras/slim/slim-1.3.6-r7.smage2
Parent Directory | Revision Log
Revision 29213 -
(hide annotations)
(download)
Mon May 29 16:02:50 2017 UTC (7 years, 3 months ago) by niro
File size: 3364 byte(s)
Mon May 29 16:02:50 2017 UTC (7 years, 3 months ago) by niro
File size: 3364 byte(s)
-rebuild against libjpeg-turbo
1 | niro | 29213 | # $Id$ |
2 | |||
3 | PNAME="slim" | ||
4 | PVER="1.3.6" | ||
5 | PBUILD="r7" | ||
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.6 | ||
14 | >= x11-libs/libXpm-3.5 | ||
15 | >= x11-libs/libXft-2.2 | ||
16 | >= x11-libs/libXrandr-1.5 | ||
17 | >= media-libs/libpng-1.5 | ||
18 | >= virtual/libjpeg | ||
19 | >= sys-libs/pam-1.1 | ||
20 | >= sys-libs/libstdc++-6.3 | ||
21 | >= app-crypt/libgcrypt-1.7" | ||
22 | |||
23 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
24 | >= x11-proto/xproto-7 | ||
25 | >= virtual/sed" | ||
26 | |||
27 | PROVIDE="virtual/graphical-login" | ||
28 | |||
29 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
30 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
31 | |||
32 | SVC_REV=1.4 | ||
33 | TMPFILES_REV=1.2 | ||
34 | PAMD_REV=1.3 | ||
35 | |||
36 | sminclude mtools cmake systemd | ||
37 | |||
38 | SRC_URI=( | ||
39 | http://download.berlios.de/${PNAME}/${SRCFILE} | ||
40 | mirror://${PNAME}/${SRCFILE} | ||
41 | mirror://${PNAME}/slim.service-${SVC_REV} | ||
42 | mirror://${PNAME}/slim.tmpfiles-${TMPFILES_REV} | ||
43 | mirror://${PNAME}/slim.logrotate | ||
44 | mirror://${PNAME}/slim.pamd-${PAMD_REV} | ||
45 | mirror://${PNAME}/magellan-slim.theme | ||
46 | mirror://${PNAME}/magellan-panel.png | ||
47 | mirror://${PNAME}/magellan-wallpaper.png | ||
48 | mirror://${PNAME}/${PNAME}-${PVER}-add-sessiondir.patch | ||
49 | mirror://${PNAME}/${PNAME}-${PVER}-fix-libslim-libraries.patch | ||
50 | mirror://${PNAME}/${PNAME}-${PVER}-only-build-slimlock-with-pam.patch | ||
51 | ) | ||
52 | |||
53 | UP2DATE="updatecmd_berlios ${PNAME}" | ||
54 | |||
55 | src_prepare() | ||
56 | { | ||
57 | munpack ${SRCFILE} || die | ||
58 | cd ${SRCDIR} | ||
59 | |||
60 | # fix linking | ||
61 | mpatch ${PNAME}-${PVER}-fix-libslim-libraries.patch || die | ||
62 | # enable the new session dir support | ||
63 | mpatch ${PNAME}-${PVER}-add-sessiondir.patch || die | ||
64 | # fix build without pam enabled | ||
65 | mpatch ${PNAME}-${PVER}-only-build-slimlock-with-pam.patch || die | ||
66 | |||
67 | # fix location of systemd services and libslim | ||
68 | sed -i -e 's:set(LIBDIR "/lib"):set(LIBDIR "/usr/lib"):' \ | ||
69 | -e "s:LIBRARY DESTINATION lib:LIBRARY DESTINATION $(mlibdir):" \ | ||
70 | -e "s:ARCHIVE DESTINATION lib:ARCHIVE DESTINATION $(mlibdir):" \ | ||
71 | CMakeLists.txt || die | ||
72 | |||
73 | # rename sim.lock to sim.pid and enable daemon mode by default | ||
74 | # fix the shutdown and reboot commands to match busybox | ||
75 | # secure x11 with -nolisten tcp | ||
76 | # and usr /run instead of /var/run | ||
77 | sed -i -e "s:/var/run/slim.lock:/run/slim.pid:" \ | ||
78 | -e "s:/var/run/slim.auth:/run/slim.auth:" \ | ||
79 | -e "s:# daemon.*:daemon\tyes:" \ | ||
80 | -e "s:^\(halt_cmd.*\):\1\t/sbin/halt:" \ | ||
81 | -e "s:^\(reboot_cmd.*\):\1\t/sbin/reboot:" \ | ||
82 | -e "s:#xserver_arguments.*:xserver_arguments\t-nolisten tcp vt01:" \ | ||
83 | slim.conf || die | ||
84 | } | ||
85 | |||
86 | src_compile() | ||
87 | { | ||
88 | cd ${SRCDIR} | ||
89 | cmake_configure $(cmake_opt USE_PAM yes) $(cmake_opt USE_CONSOLEKIT no) || die | ||
90 | mmake || die | ||
91 | } | ||
92 | |||
93 | src_install() | ||
94 | { | ||
95 | cd ${SRCDIR} | ||
96 | mmake DESTDIR=${BINDIR} install || die | ||
97 | |||
98 | # we use our own service file to honor plymouth and tty1 X11 | ||
99 | minstallunit slim.service-${SVC_REV} slim.service || die | ||
100 | minstalltmp slim.tmpfiles-${TMPFILES_REV} slim.conf || die | ||
101 | minstallpam slim.pamd-${PAMD_REV} slim || die | ||
102 | minstalllog slim.logrotate slim || die | ||
103 | |||
104 | # theme | ||
105 | minstallfile -s magellan-slim.theme /usr/share/slim/themes/default/slim.theme || die | ||
106 | minstallfile -s magellan-panel.png /usr/share/slim/themes/default/panel.png || die | ||
107 | minstallfile -s magellan-wallpaper.png /usr/share/slim/themes/default/background.png || die | ||
108 | if [ -f ${BINDIR}/usr/share/slim/themes/default/background.jpg ] | ||
109 | then | ||
110 | rm ${BINDIR}/usr/share/slim/themes/default/background.jpg || die | ||
111 | fi | ||
112 | } | ||
113 | |||
114 | postinstall() | ||
115 | { | ||
116 | mstartunit slim.service | ||
117 | } | ||
118 | |||
119 | postremove() | ||
120 | { | ||
121 | mstopunit slim.service | ||
122 | } |