[arch-commits] Commit in slim/repos (14 files)

Antonio Rojas arojas at archlinux.org
Sun Dec 6 19:21:18 UTC 2015


    Date: Sunday, December 6, 2015 @ 20:21:17
  Author: arojas
Revision: 252963

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  slim/repos/staging-i686/
  slim/repos/staging-i686/PKGBUILD
    (from rev 252962, slim/trunk/PKGBUILD)
  slim/repos/staging-i686/slim-1.3.6-add-sessiondir.patch
    (from rev 252962, slim/trunk/slim-1.3.6-add-sessiondir.patch)
  slim/repos/staging-i686/slim-1.3.6-fix-libslim-libraries.patch
    (from rev 252962, slim/trunk/slim-1.3.6-fix-libslim-libraries.patch)
  slim/repos/staging-i686/slim-1.3.6-systemd-session.patch
    (from rev 252962, slim/trunk/slim-1.3.6-systemd-session.patch)
  slim/repos/staging-i686/slim.logrotate
    (from rev 252962, slim/trunk/slim.logrotate)
  slim/repos/staging-i686/slim.pam
    (from rev 252962, slim/trunk/slim.pam)
  slim/repos/staging-x86_64/
  slim/repos/staging-x86_64/PKGBUILD
    (from rev 252962, slim/trunk/PKGBUILD)
  slim/repos/staging-x86_64/slim-1.3.6-add-sessiondir.patch
    (from rev 252962, slim/trunk/slim-1.3.6-add-sessiondir.patch)
  slim/repos/staging-x86_64/slim-1.3.6-fix-libslim-libraries.patch
    (from rev 252962, slim/trunk/slim-1.3.6-fix-libslim-libraries.patch)
  slim/repos/staging-x86_64/slim-1.3.6-systemd-session.patch
    (from rev 252962, slim/trunk/slim-1.3.6-systemd-session.patch)
  slim/repos/staging-x86_64/slim.logrotate
    (from rev 252962, slim/trunk/slim.logrotate)
  slim/repos/staging-x86_64/slim.pam
    (from rev 252962, slim/trunk/slim.pam)

-------------------------------------------------------+
 staging-i686/PKGBUILD                                 |   71 ++++++++++++++++
 staging-i686/slim-1.3.6-add-sessiondir.patch          |   28 ++++++
 staging-i686/slim-1.3.6-fix-libslim-libraries.patch   |   20 ++++
 staging-i686/slim-1.3.6-systemd-session.patch         |   29 ++++++
 staging-i686/slim.logrotate                           |    9 ++
 staging-i686/slim.pam                                 |    7 +
 staging-x86_64/PKGBUILD                               |   71 ++++++++++++++++
 staging-x86_64/slim-1.3.6-add-sessiondir.patch        |   28 ++++++
 staging-x86_64/slim-1.3.6-fix-libslim-libraries.patch |   20 ++++
 staging-x86_64/slim-1.3.6-systemd-session.patch       |   29 ++++++
 staging-x86_64/slim.logrotate                         |    9 ++
 staging-x86_64/slim.pam                               |    7 +
 12 files changed, 328 insertions(+)

Copied: slim/repos/staging-i686/PKGBUILD (from rev 252962, slim/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Thayer Williams <thayer at archlinux.org>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+# Contributor: Hugo Ideler <hugoideler at dse.nl>
+
+pkgname=slim
+pkgver=1.3.6
+pkgrel=6
+pkgdesc="Desktop-independent graphical login manager for X11"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/slim.berlios/"
+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'
+        '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.pam
+        slim.logrotate)
+sha256sums=('21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df'
+            '3dfa697f8c058390c7e02e7aba769475057ef8ddde945dc43b8cb7f9724dbda0'
+            '0dffd53a69eb9033a67fad964df6fc150ee7a483e29d8eb8b559010fbd14e5fd'
+            '900b7ffe723b741c05bcc0ca857f300a2131a0029c6532eb17be935451bf2c70'
+            'b9a77a614c451287b574c33d41e28b5b149c6d2464bdb3a5274799842bca51a4'
+            '5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def')
+
+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
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DUSE_PAM=yes \
+    -DUSE_CONSOLEKIT=no
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "$srcdir/slim.pam" "$pkgdir/etc/pam.d/slim"
+  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"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: slim/repos/staging-i686/slim-1.3.6-add-sessiondir.patch (from rev 252962, slim/trunk/slim-1.3.6-add-sessiondir.patch)
===================================================================
--- staging-i686/slim-1.3.6-add-sessiondir.patch	                        (rev 0)
+++ staging-i686/slim-1.3.6-add-sessiondir.patch	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,28 @@
+From 741e43960a4ea3a8bc230b1f599311d800c2cc83 Mon Sep 17 00:00:00 2001
+From: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
+Date: Wed, 02 Oct 2013 23:23:24 +0000
+Subject: Update slim.conf. Add sessiondir.
+
+Signed-off-by: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
+---
+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

Copied: slim/repos/staging-i686/slim-1.3.6-fix-libslim-libraries.patch (from rev 252962, slim/trunk/slim-1.3.6-fix-libslim-libraries.patch)
===================================================================
--- staging-i686/slim-1.3.6-fix-libslim-libraries.patch	                        (rev 0)
+++ staging-i686/slim-1.3.6-fix-libslim-libraries.patch	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,20 @@
+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}
+ )

Copied: slim/repos/staging-i686/slim-1.3.6-systemd-session.patch (from rev 252962, slim/trunk/slim-1.3.6-systemd-session.patch)
===================================================================
--- staging-i686/slim-1.3.6-systemd-session.patch	                        (rev 0)
+++ staging-i686/slim-1.3.6-systemd-session.patch	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,29 @@
+--- 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

Copied: slim/repos/staging-i686/slim.logrotate (from rev 252962, slim/trunk/slim.logrotate)
===================================================================
--- staging-i686/slim.logrotate	                        (rev 0)
+++ staging-i686/slim.logrotate	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,9 @@
+/var/log/slim.log {
+    compress
+    rotate 1
+    size 1024k
+    notifempty
+    missingok
+    copytruncate
+    noolddir
+}

Copied: slim/repos/staging-i686/slim.pam (from rev 252962, slim/trunk/slim.pam)
===================================================================
--- staging-i686/slim.pam	                        (rev 0)
+++ staging-i686/slim.pam	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,7 @@
+#%PAM-1.0
+
+auth        include     system-local-login
+-auth       optional    pam_gnome_keyring.so
+account     include     system-local-login
+session     include     system-local-login
+-session    optional    pam_gnome_keyring.so auto_start

Copied: slim/repos/staging-x86_64/PKGBUILD (from rev 252962, slim/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Thayer Williams <thayer at archlinux.org>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+# Contributor: Hugo Ideler <hugoideler at dse.nl>
+
+pkgname=slim
+pkgver=1.3.6
+pkgrel=6
+pkgdesc="Desktop-independent graphical login manager for X11"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/slim.berlios/"
+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'
+        '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.pam
+        slim.logrotate)
+sha256sums=('21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df'
+            '3dfa697f8c058390c7e02e7aba769475057ef8ddde945dc43b8cb7f9724dbda0'
+            '0dffd53a69eb9033a67fad964df6fc150ee7a483e29d8eb8b559010fbd14e5fd'
+            '900b7ffe723b741c05bcc0ca857f300a2131a0029c6532eb17be935451bf2c70'
+            'b9a77a614c451287b574c33d41e28b5b149c6d2464bdb3a5274799842bca51a4'
+            '5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def')
+
+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
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DUSE_PAM=yes \
+    -DUSE_CONSOLEKIT=no
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "$srcdir/slim.pam" "$pkgdir/etc/pam.d/slim"
+  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"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: slim/repos/staging-x86_64/slim-1.3.6-add-sessiondir.patch (from rev 252962, slim/trunk/slim-1.3.6-add-sessiondir.patch)
===================================================================
--- staging-x86_64/slim-1.3.6-add-sessiondir.patch	                        (rev 0)
+++ staging-x86_64/slim-1.3.6-add-sessiondir.patch	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,28 @@
+From 741e43960a4ea3a8bc230b1f599311d800c2cc83 Mon Sep 17 00:00:00 2001
+From: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
+Date: Wed, 02 Oct 2013 23:23:24 +0000
+Subject: Update slim.conf. Add sessiondir.
+
+Signed-off-by: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
+---
+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

Copied: slim/repos/staging-x86_64/slim-1.3.6-fix-libslim-libraries.patch (from rev 252962, slim/trunk/slim-1.3.6-fix-libslim-libraries.patch)
===================================================================
--- staging-x86_64/slim-1.3.6-fix-libslim-libraries.patch	                        (rev 0)
+++ staging-x86_64/slim-1.3.6-fix-libslim-libraries.patch	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,20 @@
+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}
+ )

Copied: slim/repos/staging-x86_64/slim-1.3.6-systemd-session.patch (from rev 252962, slim/trunk/slim-1.3.6-systemd-session.patch)
===================================================================
--- staging-x86_64/slim-1.3.6-systemd-session.patch	                        (rev 0)
+++ staging-x86_64/slim-1.3.6-systemd-session.patch	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,29 @@
+--- 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

Copied: slim/repos/staging-x86_64/slim.logrotate (from rev 252962, slim/trunk/slim.logrotate)
===================================================================
--- staging-x86_64/slim.logrotate	                        (rev 0)
+++ staging-x86_64/slim.logrotate	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,9 @@
+/var/log/slim.log {
+    compress
+    rotate 1
+    size 1024k
+    notifempty
+    missingok
+    copytruncate
+    noolddir
+}

Copied: slim/repos/staging-x86_64/slim.pam (from rev 252962, slim/trunk/slim.pam)
===================================================================
--- staging-x86_64/slim.pam	                        (rev 0)
+++ staging-x86_64/slim.pam	2015-12-06 19:21:17 UTC (rev 252963)
@@ -0,0 +1,7 @@
+#%PAM-1.0
+
+auth        include     system-local-login
+-auth       optional    pam_gnome_keyring.so
+account     include     system-local-login
+session     include     system-local-login
+-session    optional    pam_gnome_keyring.so auto_start



More information about the arch-commits mailing list