initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

89
slim/PKGBUILD Normal file
View File

@@ -0,0 +1,89 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=slim
pkgver=1.3.6
_debver=1.3.6
_debrel=5.2
pkgrel=8
pkgdesc="Desktop-independent graphical login manager for X11"
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/slim.berlios/"
license=('GPL-2')
depends=('libxmu' 'libpng' 'libjpeg' 'libxft' 'libxrandr' 'xenocara-xauth' 'ttf-font')
makedepends=('cmake' 'freeglut' 'quilt')
backup=('etc/slim.conf' 'etc/logrotate.d/slim')
source=(https://downloads.sourceforge.net/project/slim.berlios/$pkgname-$pkgver.tar.gz
https://deb.debian.org/debian/pool/main/s/slim/slim_$_debver-$_debrel.debian.tar.xz
slim-1.3.6-fix-libslim-libraries.patch
slim-1.3.6-add-sessiondir.patch
slim.logrotate
slim-1.3.6-remove-systemd-service-file.patch
slim.initd
slim.run)
sha512sums=('345b1dee5d6f0c3716dfa7c5c16274adbf18586bdaaa6af4f310e24c5a61f79a297ffac921a5ba545523317e9fe120916df226c36b9c9b49c2ac9c1ca21dee0c'
'342757a000ba171a467cf47c4f3c30921fbba97593f40286cc4745b51e328f01f8e9e577b25721f72ea17aa84d856840571505182125a5c8e794356784695232'
'0d00362cf28fbcca5cc38e283c649b7f074b53d8b261352f3f2f9d3d730e3841e351b680101c59ef607bdd1993eb5602b0881cde77e887ce8244137372e005c4'
'5bf5862caefddb3877e5a7a11498de59c6c33797e13d205fd58eb91f1514172aa4e50ca637c15c4a8eb2e496ebad084c0f00317ab26bc41d4a7e32a162a044bc'
'e5f398ea58adbedea7ae40c7a907d2f926148ee6f3c51fc5761b84d1d119c091fa0cf34f908cd49300fcddea71c5c9b6f2ac21731808ce5d73ea65a65b19a55b'
'089fd41b18de08acc073d83ee82ac96669ec8e10b047cb8c3c58a4fc515e49c5e62a5c315f80c8b5eca5919542744702c7cf2fe9a370a034e5dc7ef115abff1b'
'65bfe036188b1beea3604ed4aeab4263e5cd48f61619fe213de6434da690ba462c30f1dcaaed46ba3f8093d1e6b0c9451f30f42713812af160845b46540d65fc'
'daddebf5c6c3ada543307839cae711487e3c0ded73281bd4081f214aa0b71c1ef0ea87bb582de06329527672b790e62ae75a5c5a08b1a7ebc62a181f06ac43b7')
prepare() {
cd $pkgname-$pkgver
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
# Doesn't apply and seems unimportant
rm -v debian/patches/fix-missing-plymouth-handling.patch || true
rm -v debian/patches/fix-systemd-service.patch || true
rm -v debian/patches/libslim-cmake-fixes.patch || true
rm -v debian/patches/slim-conf.patch || true
quilt push -av
else
patch -Np1 -i ../slim-1.3.6-add-sessiondir.patch
fi
patch -Np1 -i ../slim-1.3.6-fix-libslim-libraries.patch
patch -Np1 -i ../slim-1.3.6-remove-systemd-service-file.patch
}
build() {
cd $pkgname-$pkgver
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DUSE_PAM=no \
-DUSE_CONSOLEKIT=no \
-DBUILD_SLIMLOCK=no
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim"
# 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 services
install -Dm755 "$srcdir/slim.initd" "$pkgdir/etc/init.d/slim"
install -Dm755 "$srcdir/slim.run" "$pkgdir/etc/sv/slim/run"
# License
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}

View File

@@ -0,0 +1,28 @@
From 741e43960a4ea3a8bc230b1f599311d800c2cc83 Mon Sep 17 00:00:00 2001
From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Date: Wed, 02 Oct 2013 23:23:24 +0000
Subject: Update slim.conf. Add sessiondir.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@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

View File

@@ -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}
)

View File

@@ -0,0 +1,22 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7256bf..b73ed45 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,6 @@ set(SLIM_VERSION "${SLIM_VERSION_MAJOR}.${SLIM_VERSION_MINOR}.${SLIM_VERSION_PAT
set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Directory")
set(PKGDATADIR "${CMAKE_INSTALL_PREFIX}/share/slim")
set(SYSCONFDIR "/etc")
-set(LIBDIR "/lib")
set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man")
set(SLIM_DEFINITIONS)
@@ -239,9 +238,5 @@ install(FILES slim.1 DESTINATION ${MANDIR}/man1/)
install(FILES slimlock.1 DESTINATION ${MANDIR}/man1/)
# configure
install(FILES slim.conf DESTINATION ${SYSCONFDIR})
-# systemd service file
-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- install(FILES slim.service DESTINATION ${LIBDIR}/systemd/system)
-endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# themes directory
subdirs(themes)

19
slim/slim.initd Normal file
View File

@@ -0,0 +1,19 @@
#!/sbin/openrc-run
# Copyright 2018 Hyperbola Project
# Distributed under the terms of the GNU General Public License v2
description="SLiM (Simple Login Manager) service"
command="/usr/bin/slim"
command_args="-nodaemon"
command_background="yes"
pidfile="/var/run/slim.pid"
depend() {
need localmount
after bootmisc consolefont modules netmount
after readahead-list ypbind autofs gpm lircmd
after acpid openvpn
before alsasound
use xfs
}

9
slim/slim.logrotate Normal file
View File

@@ -0,0 +1,9 @@
/var/log/slim.log {
compress
rotate 1
size 1024k
notifempty
missingok
copytruncate
noolddir
}

2
slim/slim.run Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec slim -nodaemon