Date: Sunday, May 14, 2023 @ 08:34:51
  Author: foutrelis
Revision: 477783

upgpkg: slim 1.4.0-1: switch to fork

Added:
  slim/trunk/default-path.patch
Modified:
  slim/trunk/PKGBUILD
Deleted:
  slim/trunk/slim-1.3.6-add-sessiondir.patch
  slim/trunk/slim-1.3.6-default-path.patch
  slim/trunk/slim-1.3.6-fix-libslim-libraries.patch
  slim/trunk/slim-1.3.6-gcc11.patch
  slim/trunk/slim-1.3.6-systemd-session.patch

----------------------------------------+
 PKGBUILD                               |   67 +++++++++++--------------------
 default-path.patch                     |   12 +++++
 slim-1.3.6-add-sessiondir.patch        |   28 ------------
 slim-1.3.6-default-path.patch          |   11 -----
 slim-1.3.6-fix-libslim-libraries.patch |   20 ---------
 slim-1.3.6-gcc11.patch                 |   12 -----
 slim-1.3.6-systemd-session.patch       |   29 -------------
 7 files changed, 37 insertions(+), 142 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-14 05:07:37 UTC (rev 477782)
+++ PKGBUILD    2023-05-14 08:34:51 UTC (rev 477783)
@@ -5,47 +5,33 @@
 # Contributor: Hugo Ideler <[email protected]>
 
 pkgname=slim
-pkgver=1.3.6
-pkgrel=10
-pkgdesc="Desktop-independent graphical login manager for X11"
+pkgver=1.4.0
+pkgrel=1
+pkgdesc="Simple Login Manager resurrected"
 arch=('x86_64')
-url="https://sourceforge.net/projects/slim.berlios/";
+url="https://slim-fork.sourceforge.io/";
 license=('GPL2')
-depends=('pam' 'libxmu' 'libpng' 'libjpeg' 'libxft' 'libxrandr' 'xorg-xauth'
-         'ttf-font')
-makedepends=('cmake' 'freeglut')
-backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim'
+depends=('gcc-libs' 'libjpeg' 'libpng' 'libx11' 'libxext' 'libxft' 'libxmu'
+         'libxrandr' 'pam' 'ttf-font' 'xorg-sessreg' 'xorg-xauth')
+makedepends=('cmake')
+backup=('etc/logrotate.d/slim'
+        'etc/pam.d/slim'
+        'etc/slim.conf'
         'etc/slimlock.conf')
-source=(https://downloads.sourceforge.net/project/slim.berlios/$pkgname-$pkgver.tar.gz
-        slim-1.3.6-fix-libslim-libraries.patch
-        slim-1.3.6-add-sessiondir.patch
-        slim-1.3.6-systemd-session.patch
-        slim-1.3.6-default-path.patch
-        slim-1.3.6-gcc11.patch
+source=(https://downloads.sourceforge.net/project/slim-fork/$pkgname-$pkgver.tar.gz
         slim.pam
         slimlock.pam
-        slim.logrotate)
-sha256sums=('21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df'
-            '3dfa697f8c058390c7e02e7aba769475057ef8ddde945dc43b8cb7f9724dbda0'
-            '0dffd53a69eb9033a67fad964df6fc150ee7a483e29d8eb8b559010fbd14e5fd'
-            '900b7ffe723b741c05bcc0ca857f300a2131a0029c6532eb17be935451bf2c70'
-            '1e303eda65a06edc8c2d938ab0751ae7744effae48cc185fd27d3cc5b2561522'
-            'bd20c7e4e7dd3e2ffb27d2d60d182c843d6c1aa5a39ad9814509286635674346'
+        slim.logrotate
+        default-path.patch)
+sha256sums=('350b31d5070002e9729ea63e1d62f97596ba0062151c0f3ee16f02af67753204'
             'b9a77a614c451287b574c33d41e28b5b149c6d2464bdb3a5274799842bca51a4'
             'dfe35488b50f19fd96526374edc16850ed37dac919834dd579392b1a7518f2ab'
-            '5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def')
+            '5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def'
+            '408337b006760b8029b1aeec37b103b1d02a23a85328cf9e2ac9c1a89faab279')
 
 prepare() {
   cd $pkgname-$pkgver
-
-  # Fix installation path of slim.service
-  sed -i 's|set(LIBDIR "/lib")|set(LIBDIR "/usr/lib")|' CMakeLists.txt
-
-  patch -Np1 -i ../slim-1.3.6-fix-libslim-libraries.patch
-  patch -Np1 -i ../slim-1.3.6-add-sessiondir.patch
-  patch -Np1 -i ../slim-1.3.6-systemd-session.patch
-  patch -Np1 -i ../slim-1.3.6-default-path.patch
-  patch -Np1 -i ../slim-1.3.6-gcc11.patch
+  patch -Np1 -i ../default-path.patch
 }
 
 build() {
@@ -55,8 +41,9 @@
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_SKIP_RPATH=ON \
-    -DUSE_PAM=yes \
-    -DUSE_CONSOLEKIT=no
+    -DBUILD_SLIMLOCK=ON \
+    -DUSE_CONSOLEKIT=OFF \
+    -DUSE_PAM=ON
   make
 }
 
@@ -64,16 +51,12 @@
   cd $pkgname-$pkgver
 
   make DESTDIR="$pkgdir" install
+  install -Dm644 slim.service -t "$pkgdir/usr/lib/systemd/system"
+  install -Dm644 slimlock.conf -t "$pkgdir/etc"
 
-  install -Dm644 "$srcdir/slim.pam" "$pkgdir/etc/pam.d/slim"
-  install -Dm644 "$srcdir/slimlock.pam" "$pkgdir/etc/pam.d/slimlock"
-  install -Dm644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim"
-  install -Dm644 slimlock.conf "$pkgdir/etc/slimlock.conf"
-
-  # Provide sane defaults
-  sed -i -e 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' \
-         -e 's|/var/run/slim.lock|/var/lock/slim.lock|' \
-    "$pkgdir/etc/slim.conf"
+  install -Dm644 ../slim.pam "$pkgdir/etc/pam.d/slim"
+  install -Dm644 ../slimlock.pam "$pkgdir/etc/pam.d/slimlock"
+  install -Dm644 ../slim.logrotate "$pkgdir/etc/logrotate.d/slim"
 }
 
 # vim:set ts=2 sw=2 et:

Added: default-path.patch
===================================================================
--- default-path.patch                          (rev 0)
+++ default-path.patch  2023-05-14 08:34:51 UTC (rev 477783)
@@ -0,0 +1,12 @@
+diff -upr slim-1.4.0.orig/slim.conf slim-1.4.0/slim.conf
+--- slim-1.4.0.orig/slim.conf  2023-01-14 13:47:23.000000000 +0200
++++ slim-1.4.0/slim.conf       2023-05-14 11:09:38.095795009 +0300
+@@ -1,7 +1,7 @@
+ # Path, X server and arguments (if needed)
+ # Note: -xauth $authfile is automatically appended, vt07 appended if no
+ # vtxx argument given.
+-default_path        /bin:/usr/bin:/usr/local/bin
++default_path        /usr/local/sbin:/usr/local/bin:/usr/bin
+ default_xserver     /usr/bin/X
+ #xserver_arguments   -dpi 75
+ xserver_arguments   -nolisten tcp -deferglyphs 16

Deleted: slim-1.3.6-add-sessiondir.patch
===================================================================
--- slim-1.3.6-add-sessiondir.patch     2023-05-14 05:07:37 UTC (rev 477782)
+++ slim-1.3.6-add-sessiondir.patch     2023-05-14 08:34:51 UTC (rev 477783)
@@ -1,28 +0,0 @@
-From 741e43960a4ea3a8bc230b1f599311d800c2cc83 Mon Sep 17 00:00:00 2001
-From: Nobuhiro Iwamatsu <[email protected]>
-Date: Wed, 02 Oct 2013 23:23:24 +0000
-Subject: Update slim.conf. Add sessiondir.
-
-Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
----
-diff --git a/slim.conf b/slim.conf
-index a8e2e1c..c5f1d38 100644
---- a/slim.conf
-+++ b/slim.conf
-@@ -47,11 +47,9 @@ login_cmd           exec /bin/bash -login ~/.xinitrc 
%session
- # options "-d" and "-nodaemon"
- # daemon      yes
- 
--# Available sessions (first one is the default).
--# The current chosen session name is replaced in the login_cmd
--# above, so your login command can handle different sessions.
--# see the xinitrc.sample file shipped with slim sources
--sessions            xfce4,icewm-session,wmaker,blackbox
-+# Set directory that contains the xsessions.
-+# slim reads xsesion from this directory, and be able to select.
-+sessiondir            /usr/share/xsessions/
- 
- # Executed when pressing F11 (requires imagemagick)
- screenshot_cmd      import -window root /slim.png
---
-cgit v0.9.2

Deleted: slim-1.3.6-default-path.patch
===================================================================
--- slim-1.3.6-default-path.patch       2023-05-14 05:07:37 UTC (rev 477782)
+++ slim-1.3.6-default-path.patch       2023-05-14 08:34:51 UTC (rev 477783)
@@ -1,11 +0,0 @@
-diff -uprw slim-1.3.6.orig/slim.conf slim-1.3.6/slim.conf
---- slim-1.3.6.orig/slim.conf  2017-11-26 09:54:56.774671269 +0200
-+++ slim-1.3.6/slim.conf       2017-11-26 10:10:15.520730363 +0200
-@@ -1,6 +1,6 @@
- # Path, X server and arguments (if needed)
- # Note: -xauth $authfile is automatically appended
--default_path        /bin:/usr/bin:/usr/local/bin
-+default_path        /usr/local/bin:/usr/local/sbin:/usr/bin
- default_xserver     /usr/bin/X
- #xserver_arguments   -dpi 75
- 

Deleted: slim-1.3.6-fix-libslim-libraries.patch
===================================================================
--- slim-1.3.6-fix-libslim-libraries.patch      2023-05-14 05:07:37 UTC (rev 
477782)
+++ slim-1.3.6-fix-libslim-libraries.patch      2023-05-14 08:34:51 UTC (rev 
477783)
@@ -1,20 +0,0 @@
-diff -upr slim-1.3.6.orig/CMakeLists.txt slim-1.3.6/CMakeLists.txt
---- slim-1.3.6.orig/CMakeLists.txt     2013-10-02 16:16:22.000000000 +0300
-+++ slim-1.3.6/CMakeLists.txt  2013-10-02 16:19:57.000000000 +0300
-@@ -119,6 +119,7 @@ if(USE_PAM)
-       if(PAM_FOUND)
-               message("\tPAM Found")
-               set(SLIM_DEFINITIONS ${SLIM_DEFINITIONS} "-DUSE_PAM")
-+              target_link_libraries(libslim ${PAM_LIBRARY})
-               target_link_libraries(${PROJECT_NAME} ${PAM_LIBRARY})
-               target_link_libraries(slimlock ${PAM_LIBRARY})
-               include_directories(${PAM_INCLUDE_DIR})
-@@ -178,6 +179,8 @@ include_directories(
- )
- 
- target_link_libraries(libslim
-+      ${X11_Xft_LIB}
-+      ${X11_Xrandr_LIB}
-     ${JPEG_LIBRARIES}
-       ${PNG_LIBRARIES}
- )

Deleted: slim-1.3.6-gcc11.patch
===================================================================
--- slim-1.3.6-gcc11.patch      2023-05-14 05:07:37 UTC (rev 477782)
+++ slim-1.3.6-gcc11.patch      2023-05-14 08:34:51 UTC (rev 477783)
@@ -1,12 +0,0 @@
-https://bugs.gentoo.org/786498
---- a/panel.cpp
-+++ b/panel.cpp
-@@ -48,7 +48,7 @@
-               gcm = GCGraphicsExposures;
-               gcv.graphics_exposures = False;
-               WinGC = XCreateGC(Dpy, Win, gcm, &gcv);
--              if (WinGC < 0) {
-+              if (WinGC == 0) {
-                       cerr << APPNAME
-                               << ": failed to create pixmap\n.";
-                       exit(ERR_EXIT);

Deleted: slim-1.3.6-systemd-session.patch
===================================================================
--- slim-1.3.6-systemd-session.patch    2023-05-14 05:07:37 UTC (rev 477782)
+++ slim-1.3.6-systemd-session.patch    2023-05-14 08:34:51 UTC (rev 477783)
@@ -1,29 +0,0 @@
---- a/app.cpp  2013-10-23 16:19:57.074100282 -0400
-+++ b/app.cpp  2013-10-23 16:33:13.302122574 -0400
-@@ -829,8 +829,13 @@
- 
-       StopServer();
-       RemoveLock();
--      while (waitpid(-1, NULL, WNOHANG) > 0); /* Collects all dead childrens 
*/
--      Run();
-+      if (force_nodaemon) {
-+              delete LoginPanel;
-+              exit(ERR_EXIT); /* use ERR_EXIT so that systemd's 
RESTART=on-failure works */
-+      } else {
-+              while (waitpid(-1, NULL, WNOHANG) > 0); /* Collects all dead 
childrens */
-+              Run();
-+      }
- }
- 
- void App::KillAllClients(Bool top) {
---- a/slim.service     2013-10-23 16:19:57.074100282 -0400
-+++ b/slim.service     2013-10-23 16:45:14.901142776 -0400
-@@ -4,6 +4,7 @@
- 
- [Service]
- ExecStart=/usr/bin/slim -nodaemon
-+Restart=on-failure
- 
- [Install]
- Alias=display-manager.service
-Common subdirectories: slim-1.3.6/themes and slim-1.3.6.new/themes

Reply via email to