Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: x11-misc/slim/files/, x11-misc/slim/
Date: Sat, 25 Dec 2021 14:32:21
Message-Id: 1640442714.181ad3573cef9756348cacefbc3fe1544f22acff.anarchy@gentoo
1 commit: 181ad3573cef9756348cacefbc3fe1544f22acff
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 25 14:31:54 2021 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 25 14:31:54 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=181ad357
7
8 x11-misc/slim: supported in main tree
9
10 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
11
12 x11-misc/slim/Manifest | 1 -
13 x11-misc/slim/files/Xsession-r3 | 158 ---------------------
14 x11-misc/slim/files/slim-1.3.5-arm.patch | 11 --
15 .../files/slim-1.3.5-disable-ck-for-systemd.patch | 122 ----------------
16 .../files/slim-1.3.6-add-missing-libgen_h.patch | 11 --
17 x11-misc/slim/files/slim-1.3.6-config.diff | 77 ----------
18 x11-misc/slim/files/slim-1.3.6-drop-zlib.patch | 10 --
19 .../slim-1.3.6-envcpy-bad-pointer-arithmetic.patch | 15 --
20 .../files/slim-1.3.6-fix-slimlock-nopam-v2.patch | 26 ----
21 x11-misc/slim/files/slim-1.3.6-freetype.patch | 12 --
22 x11-misc/slim/files/slim-1.3.6-honour-cflags.patch | 14 --
23 .../files/slim-1.3.6-libslim-cmake-fixes.patch | 33 -----
24 .../slim/files/slim-1.3.6-session-chooser.patch | 115 ---------------
25 .../slim-1.3.6-strip-systemd-unit-install.patch | 13 --
26 .../slim/files/slim-1.3.6-systemd-session.patch | 29 ----
27 x11-misc/slim/files/slim.logrotate | 9 --
28 x11-misc/slim/metadata.xml | 14 --
29 x11-misc/slim/slim-1.3.6-r5.ebuild | 138 ------------------
30 18 files changed, 808 deletions(-)
31
32 diff --git a/x11-misc/slim/Manifest b/x11-misc/slim/Manifest
33 deleted file mode 100644
34 index 6de04680..00000000
35 --- a/x11-misc/slim/Manifest
36 +++ /dev/null
37 @@ -1 +0,0 @@
38 -DIST slim-1.3.6.tar.gz 232547 SHA256 21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df SHA512 345b1dee5d6f0c3716dfa7c5c16274adbf18586bdaaa6af4f310e24c5a61f79a297ffac921a5ba545523317e9fe120916df226c36b9c9b49c2ac9c1ca21dee0c WHIRLPOOL 473fa2f3752ec0c1bd2410ff3110649ce792c2e904928694b5fb8a43de619945276282e4a9de86198b9f38cdd74d1f9dc9cbcc754cc97989002b368ef26a8429
39
40 diff --git a/x11-misc/slim/files/Xsession-r3 b/x11-misc/slim/files/Xsession-r3
41 deleted file mode 100644
42 index 237fb363..00000000
43 --- a/x11-misc/slim/files/Xsession-r3
44 +++ /dev/null
45 @@ -1,158 +0,0 @@
46 -#!/bin/sh
47 -#
48 -# Slim login manager Xsession script
49 -#
50 -
51 -command="$@"
52 -
53 -# this will go into slim.log along with all other echo's
54 -# good for debugging where things go wrong
55 -echo "$0: Beginning session setup..."
56 -
57 -# First read /etc/profile and .profile
58 -test -f /etc/profile && . /etc/profile
59 -test -f "$HOME/.profile" && . "$HOME/.profile"
60 -# Second read /etc/xprofile and .xprofile for X specific setup
61 -test -f /etc/xprofile && . /etc/xprofile
62 -test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
63 -
64 -# wrap possible arguments to determine whether to treat special or not
65 -if [ "x$command" = "xcustom" ] || [ "x$command" = "xCustom" ] || [ "x$command" = "xdefault" ] || [ "x$command" = "xDefault" ]; then
66 - command="Xsession"
67 -fi
68 -if [ "x$command" = "x" ]; then
69 - # no default specified, check if Xsession will complete
70 - # and if not then assign XSESSION to command
71 - if [ -x "$HOME/.xsession" ] || [ -x "$HOME/.Xclients" ] || [ -x /etc/X11/xinit/Xclients ] || [ -x /etc/X11/Xclients ]; then
72 - command="Xsession"
73 - else
74 - command=$XSESSION
75 - fi
76 -fi
77 -
78 -# most of this is from /etc/X11/chooser.sh
79 -sessionscript=""
80 -if [ -n "${command}" ]; then
81 - # find a match for $command in /etc/X11/Sessions
82 - for x in /etc/X11/Sessions/* ; do
83 - if [ "`echo ${x##*/} | awk '{ print toupper($1) }'`" = "`echo ${command} | awk '{ print toupper($1) }'`" ]; then
84 - sessionscript=${x}
85 - break
86 - fi
87 - done
88 - if [ -n "${sessionscript}" ]; then
89 - if [ -x "${sessionscript}" ]; then
90 - command="${sessionscript}"
91 - else
92 - command="/bin/sh ${sessionscript}"
93 - fi
94 - else
95 -
96 - # find an executable for $command
97 - x=""
98 - y=""
99 -
100 - for x in "${command}" "`echo ${command} | awk '{ print toupper($1) }'`" "`echo ${command} | awk '{ print tolower($1) }'`"
101 - do
102 - # Fall through ...
103 - if [ -x "`which ${x} 2>/dev/null`" ]; then
104 - y="`which ${x} 2>/dev/null`"
105 - break
106 - fi
107 - done
108 - # note , if the command could not be found then $command will be empty
109 - command="$y"
110 - unset x
111 - unset y
112 - fi
113 -fi
114 -
115 -# call xrdb and xmodmap and such, since $command is not a session script
116 -if [ -z "${sessionscript}" ]; then
117 - userresources="$HOME/.Xresources"
118 - usermodmap="$HOME/.Xmodmap"
119 - userxkbmap="$HOME/.Xkbmap"
120 -
121 - sysresources=/etc/X11/Xresources
122 - sysmodmap=/etc/X11/Xmodmap
123 - sysxkbmap=/etc/X11/Xkbmap
124 -
125 - rh6sysresources=/etc/X11/xinit/Xresources
126 - rh6sysmodmap=/etc/X11/xinit/Xmodmap
127 -
128 - # merge in defaults
129 - if [ -f "$rh6sysresources" ]; then
130 - xrdb -merge "$rh6sysresources"
131 - fi
132 -
133 - if [ -f "$sysresources" ]; then
134 - xrdb -merge "$sysresources"
135 - fi
136 -
137 - if [ -f "$userresources" ]; then
138 - xrdb -merge "$userresources"
139 - fi
140 -
141 - # merge in keymaps
142 - if [ -f "$sysxkbmap" ]; then
143 - setxkbmap `cat "$sysxkbmap"`
144 - XKB_IN_USE=yes
145 - fi
146 -
147 - if [ -f "$userxkbmap" ]; then
148 - setxkbmap `cat "$userxkbmap"`
149 - XKB_IN_USE=yes
150 - fi
151 -
152 - #
153 - # Eeek, this seems like too much magic here
154 - #
155 - if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
156 - if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
157 - xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
158 - if [ -n "$xkbsymbols" ]; then
159 - setxkbmap -symbols "$xkbsymbols"
160 - XKB_IN_USE=yes
161 - fi
162 - fi
163 - fi
164 -
165 - # xkb and xmodmap don't play nice together
166 - if [ -z "$XKB_IN_USE" ]; then
167 - if [ -f "$rh6sysmodmap" ]; then
168 - xmodmap "$rh6sysmodmap"
169 - fi
170 -
171 - if [ -f "$sysmodmap" ]; then
172 - xmodmap "$sysmodmap"
173 - fi
174 -
175 - if [ -f "$usermodmap" ]; then
176 - xmodmap "$usermodmap"
177 - fi
178 - fi
179 -
180 - unset XKB_IN_USE
181 -fi
182 -unset sessionscript
183 -
184 -# start failsafe session
185 -if [ -z "${command}" ]; then
186 - echo "$0: Failed to find a command to start the session, so starting a failsafe xterm."
187 - exec xterm -geometry 80x24+0+0
188 -fi
189 -
190 -# run all system xinitrc shell scripts which will update command
191 -if [ -d /etc/X11/xinit/xinitrc.d ]; then
192 - for i in /etc/X11/xinit/xinitrc.d/* ; do
193 - if [ -x "$i" ]; then
194 - . "$i"
195 - fi
196 - done
197 - unset i
198 -fi
199 -
200 -echo "$0: Setup done, will execute: $command"
201 -exec $command
202 -
203 -# vim:ts=4
204
205 diff --git a/x11-misc/slim/files/slim-1.3.5-arm.patch b/x11-misc/slim/files/slim-1.3.5-arm.patch
206 deleted file mode 100644
207 index 9438ce4a..00000000
208 --- a/x11-misc/slim/files/slim-1.3.5-arm.patch
209 +++ /dev/null
210 @@ -1,11 +0,0 @@
211 ---- a/Ck.cpp 2012-06-26 04:20:14.000000000 -0400
212 -+++ b/Ck.cpp 2012-10-05 13:25:29.000000000 -0400
213 -@@ -91,7 +91,7 @@
214 -
215 - vt = *((long *)return_value);
216 -
217 -- std::snprintf(device, 32, "/dev/tty%ld", vt);
218 -+ std::sprintf(device, "/dev/tty%ld", vt);
219 -
220 - if(return_value)
221 - XFree(return_value);
222
223 diff --git a/x11-misc/slim/files/slim-1.3.5-disable-ck-for-systemd.patch b/x11-misc/slim/files/slim-1.3.5-disable-ck-for-systemd.patch
224 deleted file mode 100644
225 index f7e36176..00000000
226 --- a/x11-misc/slim/files/slim-1.3.5-disable-ck-for-systemd.patch
227 +++ /dev/null
228 @@ -1,122 +0,0 @@
229 -diff -Naur slim-1.3.5/app.cpp slim-1.3.5.new/app.cpp
230 ---- slim-1.3.5/app.cpp 2012-12-31 08:03:42.000000000 -0500
231 -+++ slim-1.3.5.new/app.cpp 2013-08-22 14:16:37.994854259 -0400
232 -@@ -138,11 +138,14 @@
233 - daemonmode = false;
234 - force_nodaemon = false;
235 - firstlogin = true;
236 -+#ifdef USE_CONSOLEKIT
237 -+ consolekit_support_enabled = true;
238 -+#endif
239 - Dpy = NULL;
240 -
241 - /* Parse command line
242 - Note: we force a option for nodaemon switch to handle "-nodaemon" */
243 -- while((tmp = getopt(argc, argv, "vhp:n:d?")) != EOF) {
244 -+ while((tmp = getopt(argc, argv, "vhsp:n:d?")) != EOF) {
245 - switch (tmp) {
246 - case 'p': /* Test theme */
247 - testtheme = optarg;
248 -@@ -163,6 +166,11 @@
249 - std::cout << APPNAME << " version " << VERSION << endl;
250 - exit(OK_EXIT);
251 - break;
252 -+#ifdef USE_CONSOLEKIT
253 -+ case 's': /* Disable consolekit support */
254 -+ consolekit_support_enabled = false;
255 -+ break;
256 -+#endif
257 - case '?': /* Illegal */
258 - logStream << endl;
259 - case 'h': /* Help */
260 -@@ -171,6 +179,9 @@
261 - << " -d: daemon mode" << endl
262 - << " -nodaemon: no-daemon mode" << endl
263 - << " -v: show version" << endl
264 -+#ifdef USE_CONSOLEKIT
265 -+ << " -s: start for systemd, disable consolekit support" << endl
266 -+#endif
267 - << " -p /path/to/theme/dir: preview theme" << endl;
268 - exit(OK_EXIT);
269 - break;
270 -@@ -559,6 +570,7 @@
271 - #endif
272 -
273 - #ifdef USE_CONSOLEKIT
274 -+ if (consolekit_support_enabled) {
275 - /* Setup the ConsoleKit session */
276 - try {
277 - ck.open_session(DisplayName, pw->pw_uid);
278 -@@ -567,6 +579,7 @@
279 - logStream << APPNAME << ": " << e << endl;
280 - exit(ERR_EXIT);
281 - }
282 -+ }
283 - #endif
284 -
285 - /* Create new process */
286 -@@ -578,6 +591,7 @@
287 - char** child_env = pam.getenvlist();
288 -
289 - # ifdef USE_CONSOLEKIT
290 -+ if (consolekit_support_enabled) {
291 - char** old_env = child_env;
292 -
293 - /* Grow the copy of the environment for the session cookie */
294 -@@ -590,6 +604,7 @@
295 - memcpy(child_env, old_env, sizeof(char*)*n+1);
296 - child_env[n - 1] = StrConcat("XDG_SESSION_COOKIE=", ck.get_xdg_session_cookie());
297 - child_env[n] = NULL;
298 -+ }
299 - # endif /* USE_CONSOLEKIT */
300 - #else
301 -
302 -@@ -611,6 +626,7 @@
303 - child_env[n++]=StrConcat("MAIL=", maildir.c_str());
304 - child_env[n++]=StrConcat("XAUTHORITY=", xauthority.c_str());
305 - # ifdef USE_CONSOLEKIT
306 -+ if (consolekit_support_enabled)
307 - child_env[n++]=StrConcat("XDG_SESSION_COOKIE=", ck.get_xdg_session_cookie());
308 - # endif /* USE_CONSOLEKIT */
309 - child_env[n++]=0;
310 -@@ -656,12 +672,14 @@
311 - }
312 -
313 - #ifdef USE_CONSOLEKIT
314 -+ if (consolekit_support_enabled) {
315 - try {
316 - ck.close_session();
317 - }
318 - catch(Ck::Exception &e) {
319 - logStream << APPNAME << ": " << e << endl;
320 - };
321 -+ }
322 - #endif
323 -
324 - #ifdef USE_PAM
325 -diff -Naur slim-1.3.5/app.h slim-1.3.5.new/app.h
326 ---- slim-1.3.5/app.h 2012-12-31 08:03:42.000000000 -0500
327 -+++ slim-1.3.5.new/app.h 2013-08-22 14:12:45.536850016 -0400
328 -@@ -108,6 +108,10 @@
329 - char *testtheme;
330 - bool testing;
331 -
332 -+#ifdef USE_CONSOLEKIT
333 -+ bool consolekit_support_enabled;
334 -+#endif
335 -+
336 - std::string themeName;
337 - std::string mcookie;
338 -
339 -diff -Naur slim-1.3.5/slim.service slim-1.3.5.new/slim.service
340 ---- slim-1.3.5/slim.service 2012-12-31 08:03:42.000000000 -0500
341 -+++ slim-1.3.5.new/slim.service 2013-08-22 14:15:39.186853186 -0400
342 -@@ -3,7 +3,7 @@
343 - After=systemd-user-sessions.service
344 -
345 - [Service]
346 --ExecStart=/usr/bin/slim -nodaemon
347 -+ExecStart=/usr/bin/slim -nodaemon -s
348 -
349 - [Install]
350 - Alias=display-manager.service
351
352 diff --git a/x11-misc/slim/files/slim-1.3.6-add-missing-libgen_h.patch b/x11-misc/slim/files/slim-1.3.6-add-missing-libgen_h.patch
353 deleted file mode 100644
354 index f137d94e..00000000
355 --- a/x11-misc/slim/files/slim-1.3.6-add-missing-libgen_h.patch
356 +++ /dev/null
357 @@ -1,11 +0,0 @@
358 -diff -Naur slim-1.3.6.orig/panel.cpp slim-1.3.6/panel.cpp
359 ---- slim-1.3.6.orig/panel.cpp 2014-06-18 11:04:57.958630814 -0400
360 -+++ slim-1.3.6/panel.cpp 2014-06-18 11:05:10.675631393 -0400
361 -@@ -11,6 +11,7 @@
362 -
363 - #include <sstream>
364 - #include <poll.h>
365 -+#include <libgen.h>
366 - #include <X11/extensions/Xrandr.h>
367 - #include "panel.h"
368 -
369
370 diff --git a/x11-misc/slim/files/slim-1.3.6-config.diff b/x11-misc/slim/files/slim-1.3.6-config.diff
371 deleted file mode 100644
372 index 9da6795c..00000000
373 --- a/x11-misc/slim/files/slim-1.3.6-config.diff
374 +++ /dev/null
375 @@ -1,77 +0,0 @@
376 ---- slim.conf.orig 2010-08-25 11:52:23.000000000 -0400
377 -+++ slim.conf 2010-08-25 11:58:58.000000000 -0400
378 -@@ -2,7 +2,7 @@
379 - # Note: -xauth $authfile is automatically appended
380 - default_path /bin:/usr/bin:/usr/local/bin
381 - default_xserver /usr/bin/X
382 --#xserver_arguments -dpi 75
383 -+xserver_arguments -nolisten tcp -br -deferglyphs 16 vt07
384 -
385 - # Commands for halt, login, etc.
386 - halt_cmd /sbin/shutdown -h now
387 -@@ -18,7 +18,7 @@
388 -
389 -
390 - # Activate numlock when slim starts. Valid values: on|off
391 --# numlock on
392 -+numlock on
393 -
394 - # Hide the mouse cursor (note: does not work with some WMs).
395 - # Valid values: true|false
396 -@@ -33,7 +33,8 @@
397 - # to adjust the command according to your preferred shell,
398 - # i.e. for freebsd use:
399 - # login_cmd exec /bin/sh - ~/.xinitrc %session
400 --login_cmd exec /bin/bash -login ~/.xinitrc %session
401 -+# login_cmd exec /bin/bash -login ~/.xinitrc %session
402 -+login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session
403 -
404 - # Commands executed when starting and exiting a session.
405 - # They can be used for registering a X11 session with
406 -@@ -41,20 +42,30 @@
407 - #
408 - # sessionstart_cmd some command
409 - # sessionstop_cmd some command
410 -+sessionstart_cmd /usr/bin/sessreg -a -l :0.0 %user
411 -+sessionstop_cmd /usr/bin/sessreg -d -l :0.0 %user
412 -
413 - # Start in daemon mode. Valid values: yes | no
414 - # Note that this can be overriden by the command line
415 - # options "-d" and "-nodaemon"
416 --# daemon yes
417 -+daemon yes
418 -
419 --# Available sessions (first one is the default).
420 --# The current chosen session name is replaced in the login_cmd
421 -+# Available sessions:
422 -+# The current chosen session name replaces %session in the login_cmd
423 - # above, so your login command can handle different sessions.
424 -+# If no session is chosen (via F1), %session will be an empty string.
425 - # see the xinitrc.sample file shipped with slim sources
426 --sessions xfce4,icewm-session,wmaker,blackbox
427 -+#sessions xfce4,icewm-session,wmaker,blackbox
428 -+# Alternatively, read available sessions from a directory of scripts:
429 -+#sessiondir /etc/X11/Sessions
430 -+# Or, read available sessions from the xsessions desktop files --
431 -+# note that this may provide a full path to the session executable!
432 -+sessiondir /usr/share/xsessions
433 -
434 --# Executed when pressing F11 (requires imagemagick)
435 -+# Executed when pressing F11 (requires media-gfx/imagemagick for import)
436 -+# Alternative is media-gfx/scrot. See Gentoo bug 252241 for more info.
437 - screenshot_cmd import -window root /slim.png
438 -+#screenshot_cmd scrot /root/slim.png
439 -
440 - # welcome message. Available variables: %host, %domain
441 - welcome_msg Welcome to %host
442 -@@ -83,8 +91,8 @@
443 - # randomly choose from
444 - current_theme default
445 -
446 --# Lock file
447 --lockfile /var/run/slim.lock
448 -+# Lock file, /etc/init.d/xdm expects slim.pid
449 -+lockfile /run/slim.pid
450 -
451 - # Log file
452 - logfile /var/log/slim.log
453
454 diff --git a/x11-misc/slim/files/slim-1.3.6-drop-zlib.patch b/x11-misc/slim/files/slim-1.3.6-drop-zlib.patch
455 deleted file mode 100644
456 index cf2106a8..00000000
457 --- a/x11-misc/slim/files/slim-1.3.6-drop-zlib.patch
458 +++ /dev/null
459 @@ -1,10 +0,0 @@
460 ---- a/CMakeLists.txt 2014-02-28 10:38:48.655262163 -0500
461 -+++ b/CMakeLists.txt 2014-02-28 10:47:01.671271162 -0500
462 -@@ -96,7 +96,6 @@
463 - find_package(Freetype REQUIRED)
464 - find_package(JPEG REQUIRED)
465 - find_package(PNG REQUIRED)
466 --find_package(ZLIB REQUIRED)
467 -
468 - # Fontconfig
469 - set(FONTCONFIG_DIR ${CMAKE_MODULE_PATH})
470
471 diff --git a/x11-misc/slim/files/slim-1.3.6-envcpy-bad-pointer-arithmetic.patch b/x11-misc/slim/files/slim-1.3.6-envcpy-bad-pointer-arithmetic.patch
472 deleted file mode 100644
473 index b3787dd5..00000000
474 --- a/x11-misc/slim/files/slim-1.3.6-envcpy-bad-pointer-arithmetic.patch
475 +++ /dev/null
476 @@ -1,15 +0,0 @@
477 ---- a/app.cpp 2015-09-14 12:00:00.460481656 -0400
478 -+++ b/app.cpp 2015-09-14 14:41:10.970536588 -0400
479 -@@ -606,9 +606,9 @@
480 -
481 - n++;
482 -
483 -- child_env = static_cast<char**>(malloc(sizeof(char*)*n));
484 -- memcpy(child_env, old_env, sizeof(char*)*n+1);
485 -- child_env[n - 1] = StrConcat("XDG_SESSION_COOKIE=", ck.get_xdg_session_cookie());
486 -+ child_env = static_cast<char**>(malloc(sizeof(char*)*(n+1)));
487 -+ memcpy(child_env, old_env, sizeof(char*)*n);
488 -+ child_env[n-1] = StrConcat("XDG_SESSION_COOKIE=", ck.get_xdg_session_cookie());
489 - child_env[n] = NULL;
490 - }
491 - # endif /* USE_CONSOLEKIT */
492
493 diff --git a/x11-misc/slim/files/slim-1.3.6-fix-slimlock-nopam-v2.patch b/x11-misc/slim/files/slim-1.3.6-fix-slimlock-nopam-v2.patch
494 deleted file mode 100644
495 index d5fc4db4..00000000
496 --- a/x11-misc/slim/files/slim-1.3.6-fix-slimlock-nopam-v2.patch
497 +++ /dev/null
498 @@ -1,26 +0,0 @@
499 ---- a/CMakeLists.txt 2013-10-27 21:24:21.193802669 -0400
500 -+++ b/CMakeLists.txt 2013-10-27 21:26:54.127806951 -0400
501 -@@ -220,7 +220,6 @@
502 - ####### install
503 - # slim
504 - install(TARGETS slim RUNTIME DESTINATION bin)
505 --install(TARGETS slimlock RUNTIME DESTINATION bin)
506 -
507 - if (BUILD_SHARED_LIBS)
508 - set_target_properties(libslim PROPERTIES
509 -@@ -235,8 +234,14 @@
510 -
511 - # man file
512 - install(FILES slim.1 DESTINATION ${MANDIR}/man1/)
513 --install(FILES slimlock.1 DESTINATION ${MANDIR}/man1/)
514 - # configure
515 - install(FILES slim.conf DESTINATION ${SYSCONFDIR})
516 -+
517 -+#slimlock
518 -+if(BUILD_SLIMLOCK)
519 -+install(TARGETS slimlock RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE SETUID)
520 -+install(FILES slimlock.1 DESTINATION ${MANDIR}/man1/)
521 -+endif(BUILD_SLIMLOCK)
522 -+
523 - # themes directory
524 - subdirs(themes)
525
526 diff --git a/x11-misc/slim/files/slim-1.3.6-freetype.patch b/x11-misc/slim/files/slim-1.3.6-freetype.patch
527 deleted file mode 100644
528 index 8cefc0bf..00000000
529 --- a/x11-misc/slim/files/slim-1.3.6-freetype.patch
530 +++ /dev/null
531 @@ -1,12 +0,0 @@
532 -diff -up ./CMakeLists.txt.orig ./CMakeLists.txt
533 ---- ./CMakeLists.txt.orig 2014-11-11 20:38:40.706121207 +0100
534 -+++ ./CMakeLists.txt 2014-11-11 20:39:34.206120264 +0100
535 -@@ -165,7 +165,7 @@ include_directories(
536 - ${X11_Xft_INCLUDE_PATH}
537 - ${X11_Xrender_INCLUDE_PATH}
538 - ${X11_Xrandr_INCLUDE_PATH}
539 -- ${FREETYPE_INCLUDE_DIR_freetype2}
540 -+ ${FREETYPE_INCLUDE_DIRS}
541 - ${X11_Xmu_INCLUDE_PATH}
542 - ${ZLIB_INCLUDE_DIR}
543 - ${JPEG_INCLUDE_DIR}
544
545 diff --git a/x11-misc/slim/files/slim-1.3.6-honour-cflags.patch b/x11-misc/slim/files/slim-1.3.6-honour-cflags.patch
546 deleted file mode 100644
547 index 8335e0fe..00000000
548 --- a/x11-misc/slim/files/slim-1.3.6-honour-cflags.patch
549 +++ /dev/null
550 @@ -1,14 +0,0 @@
551 ---- CMakeLists.txt 2013-10-01 18:38:05.000000000 -0400
552 -+++ CMakeLists.txt.new 2013-10-15 11:33:18.975741094 -0400
553 -@@ -42,11 +42,6 @@
554 - set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DPKGDATADIR=\"${PKGDATADIR}\"")
555 - set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DSYSCONFDIR=\"${SYSCONFDIR}\"")
556 -
557 --# Flags
558 --set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g -O2")
559 --set(CMAKE_CPP_FLAGS "${CMAKE_CPP_FLAGS} -Wall -g -O2")
560 --set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -O2")
561 --
562 - # source
563 - set(slim_srcs
564 - main.cpp
565
566 diff --git a/x11-misc/slim/files/slim-1.3.6-libslim-cmake-fixes.patch b/x11-misc/slim/files/slim-1.3.6-libslim-cmake-fixes.patch
567 deleted file mode 100644
568 index 11e39dc9..00000000
569 --- a/x11-misc/slim/files/slim-1.3.6-libslim-cmake-fixes.patch
570 +++ /dev/null
571 @@ -1,33 +0,0 @@
572 ---- a/CMakeLists.txt 2013-10-15 11:35:16.688739802 -0400
573 -+++ b/CMakeLists.txt 2013-10-15 11:53:46.185727620 -0400
574 -@@ -115,6 +115,7 @@
575 - message("\tPAM Found")
576 - set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DUSE_PAM")
577 - target_link_libraries(${PROJECT_NAME} ${PAM_LIBRARY})
578 -+ target_link_libraries(libslim ${PAM_LIBRARY})
579 - target_link_libraries(slimlock ${PAM_LIBRARY})
580 - include_directories(${PAM_INCLUDE_DIR})
581 - else(PAM_FOUND)
582 -@@ -173,7 +174,10 @@
583 - )
584 -
585 - target_link_libraries(libslim
586 -- ${JPEG_LIBRARIES}
587 -+ ${RT_LIB}
588 -+ ${X11_Xft_LIB}
589 -+ ${X11_Xrandr_LIB}
590 -+ ${JPEG_LIBRARIES}
591 - ${PNG_LIBRARIES}
592 - )
593 -
594 -@@ -228,8 +228,8 @@
595 - SOVERSION ${SLIM_VERSION})
596 -
597 - install(TARGETS libslim
598 -- LIBRARY DESTINATION lib
599 -- ARCHIVE DESTINATION lib
600 -+ LIBRARY DESTINATION lib${LIB_SUFFIX}
601 -+ ARCHIVE DESTINATION lib${LIB_SIFFUX}
602 - )
603 - endif (BUILD_SHARED_LIBS)
604 -
605
606 diff --git a/x11-misc/slim/files/slim-1.3.6-session-chooser.patch b/x11-misc/slim/files/slim-1.3.6-session-chooser.patch
607 deleted file mode 100644
608 index b43c9a30..00000000
609 --- a/x11-misc/slim/files/slim-1.3.6-session-chooser.patch
610 +++ /dev/null
611 @@ -1,115 +0,0 @@
612 ---- a/cfg.cpp 2013-10-01 18:38:05.000000000 -0400
613 -+++ b/cfg.cpp 2013-10-24 12:12:20.584103253 -0400
614 -@@ -274,14 +274,14 @@
615 - while (true) {
616 - string::const_iterator begin = s;
617 - while (*s != c && s != str.end()) { ++s; }
618 -- tmp = string(begin, s);
619 -- if (useEmpty || tmp.size() > 0)
620 -+ tmp = string(begin, s);
621 -+ if (useEmpty || tmp.size() > 0)
622 - v.push_back(tmp);
623 - if (s == str.end()) {
624 - break;
625 - }
626 - if (++s == str.end()) {
627 -- if (useEmpty)
628 -+ if (useEmpty)
629 - v.push_back("");
630 - break;
631 - }
632 -@@ -289,6 +289,7 @@
633 - }
634 -
635 - void Cfg::fillSessionList(){
636 -+ string strSessionList = getOption("sessions");
637 - string strSessionDir = getOption("sessiondir");
638 -
639 - sessions.clear();
640 -@@ -307,29 +308,29 @@
641 - struct stat oFileStat;
642 -
643 - if (stat(strFile.c_str(), &oFileStat) == 0) {
644 -- if (S_ISREG(oFileStat.st_mode) &&
645 -- access(strFile.c_str(), R_OK) == 0){
646 -- ifstream desktop_file( strFile.c_str() );
647 -- if (desktop_file){
648 -- string line, session_name = "", session_exec = "";
649 -- while (getline( desktop_file, line )) {
650 -- if (line.substr(0, 5) == "Name=") {
651 -- session_name = line.substr(5);
652 -- if (!session_exec.empty())
653 -- break;
654 -- } else
655 -- if (line.substr(0, 5) == "Exec=") {
656 -- session_exec = line.substr(5);
657 -- if (!session_name.empty())
658 -- break;
659 -- }
660 -- }
661 -- desktop_file.close();
662 -- pair<string,string> session(session_name,session_exec);
663 -- sessions.push_back(session);
664 -- cout << session_exec << " - " << session_name << endl;
665 -- }
666 --
667 -+ if (S_ISREG(oFileStat.st_mode) &&
668 -+ access(strFile.c_str(), R_OK) == 0){
669 -+ ifstream desktop_file( strFile.c_str() );
670 -+ if (desktop_file){
671 -+ string line, session_name = "", session_exec = "";
672 -+ while (getline( desktop_file, line )) {
673 -+ if (line.substr(0, 5) == "Name=") {
674 -+ session_name = line.substr(5);
675 -+ if (!session_exec.empty()) break;
676 -+ } else if (line.substr(0, 5) == "Exec=") {
677 -+ session_exec = line.substr(5);
678 -+ if (!session_name.empty()) break;
679 -+ }
680 -+ }
681 -+ desktop_file.close();
682 -+ if (!session_name.empty() && !session_exec.empty()) {
683 -+ pair<string,string> session(session_name,session_exec);
684 -+ sessions.push_back(session);
685 -+ } else if (access(strFile.c_str(), X_OK) == 0) {
686 -+ pair<string,string> session(string(pDirent->d_name),strFile);
687 -+ sessions.push_back(session);
688 -+ }
689 -+ }
690 - }
691 - }
692 - }
693 -@@ -338,8 +339,18 @@
694 - }
695 -
696 - if (sessions.empty()){
697 -- pair<string,string> session("","");
698 -- sessions.push_back(session);
699 -+ if (strSessionList.empty()) {
700 -+ pair<string,string> session("","");
701 -+ sessions.push_back(session);
702 -+ } else {
703 -+ // iterate through the split of the session list
704 -+ vector<string> sessit;
705 -+ split(sessit,strSessionList,',',false);
706 -+ for (vector<string>::iterator it = sessit.begin(); it != sessit.end(); ++it) {
707 -+ pair<string,string> session(*it,*it);
708 -+ sessions.push_back(session);
709 -+ }
710 -+ }
711 - }
712 - }
713 -
714 ---- a/app.cpp 2013-10-24 12:16:59.870111072 -0400
715 -+++ b/app.cpp 2013-10-24 12:29:59.899132910 -0400
716 -@@ -377,10 +377,6 @@
717 - LoginPanel->SetName(cfg->getOption("default_user") );
718 - }
719 -
720 -- if (firstloop) {
721 -- LoginPanel->SwitchSession();
722 -- }
723 --
724 - if (!AuthenticateUser(focuspass && firstloop)){
725 - panelclosed = 0;
726 - firstloop = false;
727
728 diff --git a/x11-misc/slim/files/slim-1.3.6-strip-systemd-unit-install.patch b/x11-misc/slim/files/slim-1.3.6-strip-systemd-unit-install.patch
729 deleted file mode 100644
730 index f116c5eb..00000000
731 --- a/x11-misc/slim/files/slim-1.3.6-strip-systemd-unit-install.patch
732 +++ /dev/null
733 @@ -1,13 +0,0 @@
734 ---- CMakeLists.txt 2013-10-15 12:02:13.463722050 -0400
735 -+++ CMakeLists.txt.new 2013-10-17 09:41:41.602917345 -0400
736 -@@ -238,10 +238,6 @@
737 - install(FILES slimlock.1 DESTINATION ${MANDIR}/man1/)
738 - # configure
739 - install(FILES slim.conf DESTINATION ${SYSCONFDIR})
740 --# systemd service file
741 --if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
742 -- install(FILES slim.service DESTINATION ${LIBDIR}/systemd/system)
743 --endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
744 - # themes directory
745 - subdirs(themes)
746 -
747
748 diff --git a/x11-misc/slim/files/slim-1.3.6-systemd-session.patch b/x11-misc/slim/files/slim-1.3.6-systemd-session.patch
749 deleted file mode 100644
750 index 0639aeb5..00000000
751 --- a/x11-misc/slim/files/slim-1.3.6-systemd-session.patch
752 +++ /dev/null
753 @@ -1,29 +0,0 @@
754 ---- a/app.cpp 2013-10-23 16:19:57.074100282 -0400
755 -+++ b/app.cpp 2013-10-23 16:33:13.302122574 -0400
756 -@@ -829,8 +829,13 @@
757 -
758 - StopServer();
759 - RemoveLock();
760 -- while (waitpid(-1, NULL, WNOHANG) > 0); /* Collects all dead childrens */
761 -- Run();
762 -+ if (force_nodaemon) {
763 -+ delete LoginPanel;
764 -+ exit(ERR_EXIT); /* use ERR_EXIT so that systemd's RESTART=on-failure works */
765 -+ } else {
766 -+ while (waitpid(-1, NULL, WNOHANG) > 0); /* Collects all dead childrens */
767 -+ Run();
768 -+ }
769 - }
770 -
771 - void App::KillAllClients(Bool top) {
772 ---- a/slim.service 2013-10-23 16:19:57.074100282 -0400
773 -+++ b/slim.service 2013-10-23 16:45:14.901142776 -0400
774 -@@ -4,6 +4,7 @@
775 -
776 - [Service]
777 - ExecStart=/usr/bin/slim -nodaemon -s
778 -+Restart=on-failure
779 -
780 - [Install]
781 - Alias=display-manager.service
782 -Common subdirectories: slim-1.3.6/themes and slim-1.3.6.new/themes
783
784 diff --git a/x11-misc/slim/files/slim.logrotate b/x11-misc/slim/files/slim.logrotate
785 deleted file mode 100644
786 index 89015306..00000000
787 --- a/x11-misc/slim/files/slim.logrotate
788 +++ /dev/null
789 @@ -1,9 +0,0 @@
790 -/var/log/slim.log {
791 - compress
792 - rotate 4
793 - weekly
794 - delaycompress
795 - copytruncate
796 - missingok
797 - notifempty
798 -}
799
800 diff --git a/x11-misc/slim/metadata.xml b/x11-misc/slim/metadata.xml
801 deleted file mode 100644
802 index 0d0cf35b..00000000
803 --- a/x11-misc/slim/metadata.xml
804 +++ /dev/null
805 @@ -1,14 +0,0 @@
806 -<?xml version="1.0" encoding="UTF-8"?>
807 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
808 -<pkgmetadata>
809 - <maintainer type="person">
810 - <email>axs@g.o</email>
811 - </maintainer>
812 - <maintainer type="project">
813 - <email>desktop-misc@g.o</email>
814 - <name>Gentoo Desktop Miscellaneous Project</name>
815 - </maintainer>
816 - <upstream>
817 - <remote-id type="sourceforge">slim.berlios</remote-id>
818 - </upstream>
819 -</pkgmetadata>
820
821 diff --git a/x11-misc/slim/slim-1.3.6-r5.ebuild b/x11-misc/slim/slim-1.3.6-r5.ebuild
822 deleted file mode 100644
823 index c8299c80..00000000
824 --- a/x11-misc/slim/slim-1.3.6-r5.ebuild
825 +++ /dev/null
826 @@ -1,138 +0,0 @@
827 -# Copyright 1999-2021 Gentoo Authors
828 -# Distributed under the terms of the GNU General Public License v2
829 -
830 -EAPI=5
831 -
832 -inherit cmake-utils pam eutils systemd versionator
833 -
834 -DESCRIPTION="Simple Login Manager"
835 -HOMEPAGE="https://sourceforge.net/projects/slim.berlios/"
836 -SRC_URI="mirror://sourceforge/project/${PN}.berlios/${P}.tar.gz"
837 -
838 -LICENSE="GPL-2"
839 -SLOT="0"
840 -KEYWORDS="amd64 arm ~arm64 ~mips ppc x86"
841 -IUSE="branding pam"
842 -
843 -RDEPEND="x11-libs/libXmu
844 - x11-libs/libX11
845 - x11-libs/libXpm
846 - x11-libs/libXft
847 - x11-libs/libXrandr
848 - media-libs/libpng:0=
849 - virtual/jpeg:=
850 - x11-apps/sessreg
851 - pam? ( sys-libs/pam
852 - !x11-misc/slimlock )"
853 -DEPEND="${RDEPEND}
854 - virtual/pkgconfig
855 - x11-base/xorg-proto"
856 -PDEPEND="branding? ( >=x11-themes/slim-themes-1.2.3a-r3 )"
857 -
858 -PATCHES=(
859 - # Our Gentoo-specific config changes
860 - "${FILESDIR}"/${P}-config.diff
861 - "${FILESDIR}"/${PN}-1.3.5-arm.patch
862 - "${FILESDIR}"/${P}-honour-cflags.patch
863 - "${FILESDIR}"/${P}-libslim-cmake-fixes.patch
864 - "${FILESDIR}"/${PN}-1.3.5-disable-ck-for-systemd.patch
865 - "${FILESDIR}"/${P}-strip-systemd-unit-install.patch
866 - "${FILESDIR}"/${P}-systemd-session.patch
867 - "${FILESDIR}"/${P}-session-chooser.patch
868 - "${FILESDIR}"/${P}-fix-slimlock-nopam-v2.patch
869 - "${FILESDIR}"/${P}-drop-zlib.patch
870 - "${FILESDIR}"/${P}-freetype.patch
871 - "${FILESDIR}"/${P}-envcpy-bad-pointer-arithmetic.patch
872 - "${FILESDIR}"/${P}-add-missing-libgen_h.patch
873 -)
874 -
875 -src_prepare() {
876 - cmake-utils_src_prepare
877 -
878 - if use elibc_FreeBSD; then
879 - sed -i -e 's/"-DHAVE_SHADOW"/"-DNEEDS_BASENAME"/' CMakeLists.txt \
880 - || die
881 - fi
882 -
883 - if use branding; then
884 - sed -i -e 's/ default/ slim-gentoo-simple/' slim.conf || die
885 - fi
886 -
887 - epatch_user
888 -}
889 -
890 -src_configure() {
891 - local mycmakeargs=(
892 - $(cmake-utils_use pam USE_PAM)
893 - -DUSE_CONSOLEKIT=OFF
894 - )
895 -
896 - cmake-utils_src_configure
897 -}
898 -
899 -src_install() {
900 - cmake-utils_src_install
901 -
902 - if use pam ; then
903 - pamd_mimic system-local-login slim auth account session
904 - pamd_mimic system-local-login slimlock auth
905 - fi
906 -
907 - systemd_dounit slim.service
908 -
909 - insinto /usr/share/slim
910 - newins "${FILESDIR}/Xsession-r3" Xsession
911 -
912 - insinto /etc/logrotate.d
913 - newins "${FILESDIR}/slim.logrotate" slim
914 -
915 - dodoc xinitrc.sample ChangeLog README TODO THEMES
916 -}
917 -
918 -pkg_postinst() {
919 - # massage ${REPLACING_VERSIONS} to come up with whether or not it's a new install
920 - # or if it's older than 1.3.2-r7
921 - # Note - there should only ever be zero or one version as this package isn't slotted,
922 - # so the logic doesn't worry about what happens if there's two, due to the case where
923 - # a previous emerge attempt failed in the middle of qmerge.
924 - local rv=none
925 - for rv in ${REPLACING_VERSIONS} ; do
926 - if version_is_at_least "1.3.2-r7" "${rv}" ; then
927 - rv=newer
928 - break;
929 - fi
930 - if version_is_at_least "1.0" "${rv}" ; then
931 - rv=older
932 - break;
933 - fi
934 - done
935 -
936 - if [[ ${rv} == none ]]; then
937 - elog
938 - elog "The configuration file is located at /etc/slim.conf."
939 - elog
940 - elog "If you wish ${PN} to start automatically, set DISPLAYMANAGER=\"${PN}\" "
941 - elog "in /etc/conf.d/xdm and run \"rc-update add xdm default\"."
942 - fi
943 - if [[ ${rv} != newer ]]; then
944 - elog
945 - elog "By default, ${PN} is set up to do proper X session selection, including ~/.xsession"
946 - elog "support, as well as selection between sessions available in"
947 - elog "/etc/X11/Sessions/ at login by pressing [F1]."
948 - elog
949 - elog "The XSESSION environment variable is still supported as a default"
950 - elog "if no session has been specified by the user."
951 - elog
952 - elog "If you want to use .xinitrc in the user's home directory for session"
953 - elog "management instead, see README and xinitrc.sample in"
954 - elog "/usr/share/doc/${PF} and change your login_cmd in /etc/slim.conf"
955 - elog "accordingly."
956 - elog
957 - fi
958 - if ! use pam; then
959 - elog "You have merged ${PN} without USE=\"pam\", this will cause ${PN} to fall back to"
960 - elog "the console when restarting your window manager. If this is not desired, then"
961 - elog "please remerge ${PN} with USE=\"pam\""
962 - elog
963 - fi
964 -}