summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryouri <youri@pkgsrc.org>2018-05-18 14:51:17 +0000
committeryouri <youri@pkgsrc.org>2018-05-18 14:51:17 +0000
commit7798989b08957b4c1d7e7dda138bbee99b1e2687 (patch)
treed875077a37a581bb8ebb05895f091bf021f3d618
parenta25cebeb53daba6cbd55c298ac9d6050fd486b90 (diff)
downloadpkgsrc-7798989b08957b4c1d7e7dda138bbee99b1e2687.tar.gz
x11/slim: import slim-1.3.6
SLiM (Simple Login Manager) is a graphical login manager for X11. It aims to be simple, fast and independent from the various desktop environments. SLiM is based on latest stable release of Login.app by Per Liden.
-rw-r--r--x11/slim/DESCR4
-rw-r--r--x11/slim/Makefile42
-rw-r--r--x11/slim/PLIST10
-rw-r--r--x11/slim/distinfo8
-rw-r--r--x11/slim/files/slim.sh27
-rw-r--r--x11/slim/patches/patch-CMakeLists.txt61
-rw-r--r--x11/slim/patches/patch-slim.conf47
7 files changed, 199 insertions, 0 deletions
diff --git a/x11/slim/DESCR b/x11/slim/DESCR
new file mode 100644
index 00000000000..37f8ba6a98d
--- /dev/null
+++ b/x11/slim/DESCR
@@ -0,0 +1,4 @@
+SLiM (Simple Login Manager) is a graphical login manager for X11.
+It aims to be simple, fast and independent from the various
+desktop environments.
+SLiM is based on latest stable release of Login.app by Per Liden.
diff --git a/x11/slim/Makefile b/x11/slim/Makefile
new file mode 100644
index 00000000000..5ec2287e25d
--- /dev/null
+++ b/x11/slim/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2018/05/18 14:51:17 youri Exp $
+
+DISTNAME= slim-1.3.6
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=slim.berlios/}
+
+MAINTAINER= youri@NetBSD.org
+HOMEPAGE= https://github.com/iwamatsu/slim
+COMMENT= Simple login manager
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+
+USE_CMAKE= yes
+CMAKE_ARGS= -DUSE_CONSOLEKIT:Bool=Yes
+
+AUTO_MKDIRS= yes
+RCD_SCRIPTS+= slim
+
+DEPENDS+= bash-[0-9]*:../../shells/bash
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= CMakeLists.txt slim.conf
+SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},'
+SUBST_SED.paths+= -e 's,@X11BASE@,${X11BASE},'
+
+CONF_FILES+= share/examples/slim/slim.conf \
+ ${PKG_SYSCONFDIR}/slim.conf
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../x11/libXmu/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXrender/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../sysutils/consolekit/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/slim/PLIST b/x11/slim/PLIST
new file mode 100644
index 00000000000..1975020303d
--- /dev/null
+++ b/x11/slim/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2018/05/18 14:51:17 youri Exp $
+bin/slim
+lib/libslim.so
+lib/libslim.so.${PKGVERSION}
+man/man1/slim.1
+man/man1/slimlock.1
+share/examples/slim/slim.conf
+share/slim/themes/default/background.jpg
+share/slim/themes/default/panel.png
+share/slim/themes/default/slim.theme
diff --git a/x11/slim/distinfo b/x11/slim/distinfo
new file mode 100644
index 00000000000..f86be27503e
--- /dev/null
+++ b/x11/slim/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2018/05/18 14:51:17 youri Exp $
+
+SHA1 (slim-1.3.6.tar.gz) = 9407ea2ee7b2ed649f17a8ddbf1f7b26a7c7b9fb
+RMD160 (slim-1.3.6.tar.gz) = 1bf3269b23275c50b67ada8cb5709e093eb6764f
+SHA512 (slim-1.3.6.tar.gz) = 345b1dee5d6f0c3716dfa7c5c16274adbf18586bdaaa6af4f310e24c5a61f79a297ffac921a5ba545523317e9fe120916df226c36b9c9b49c2ac9c1ca21dee0c
+Size (slim-1.3.6.tar.gz) = 232547 bytes
+SHA1 (patch-CMakeLists.txt) = 27f0222a206465e12f22f78e418b1615f7825cd4
+SHA1 (patch-slim.conf) = 374bd751be43a0c04e70f38adc34ddbc03370cf4
diff --git a/x11/slim/files/slim.sh b/x11/slim/files/slim.sh
new file mode 100644
index 00000000000..7c77ee56c6f
--- /dev/null
+++ b/x11/slim/files/slim.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $NetBSD: slim.sh,v 1.1 2018/05/18 14:51:17 youri Exp $
+#
+
+# PROVIDE: slim
+# REQUIRE: DAEMON LOGIN wscons
+# KEYWORD: shutdown
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="slim"
+rcvar=${name}
+command="@PREFIX@/bin/${name}"
+command_args="-d"
+pidfile="/var/run/${name}.lock"
+required_files="@PKG_SYSCONFDIR@/slim.conf"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config ${name}
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${slim_flags} ${command_args}
+fi
diff --git a/x11/slim/patches/patch-CMakeLists.txt b/x11/slim/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..d2ffe095bb4
--- /dev/null
+++ b/x11/slim/patches/patch-CMakeLists.txt
@@ -0,0 +1,61 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2018/05/18 14:51:17 youri Exp $
+
+Fix build.
+
+--- CMakeLists.txt.orig 2013-10-01 22:38:05.000000000 +0000
++++ CMakeLists.txt
+@@ -21,11 +21,11 @@ set(SLIM_VERSION_MINOR "3")
+ set(SLIM_VERSION_PATCH "6")
+ set(SLIM_VERSION "${SLIM_VERSION_MAJOR}.${SLIM_VERSION_MINOR}.${SLIM_VERSION_PATCH}")
+
+-set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Directory")
++set(CMAKE_INSTALL_PREFIX "@PREFIX@" CACHE PATH "Installation Directory")
+ set(PKGDATADIR "${CMAKE_INSTALL_PREFIX}/share/slim")
+-set(SYSCONFDIR "/etc")
++set(SYSCONFDIR "@PREFIX@/etc")
+ set(LIBDIR "/lib")
+-set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man")
++set(MANDIR "${CMAKE_INSTALL_PREFIX}/man")
+
+ set(SLIM_DEFINITIONS)
+ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
+@@ -104,13 +104,13 @@ find_package(PNG REQUIRED)
+ find_package(ZLIB REQUIRED)
+
+ # Fontconfig
+-set(FONTCONFIG_DIR ${CMAKE_MODULE_PATH})
+-find_package(FONTCONFIG REQUIRED)
+-if(FONTCONFIG_FOUND)
+- message("\tFontConfig Found")
+- target_link_libraries(${PROJECT_NAME} ${FONTCONFIG_LIBRARY})
+- include_directories(${FONTCONFIG_INCLUDE_DIR})
+-endif(FONTCONFIG_FOUND)
++#set(FONTCONFIG_DIR ${CMAKE_MODULE_PATH})
++#find_package(FONTCONFIG REQUIRED)
++#if(FONTCONFIG_FOUND)
++ #message("\tFontConfig Found")
++ #target_link_libraries(${PROJECT_NAME} ${FONTCONFIG_LIBRARY})
++ #include_directories(${FONTCONFIG_INCLUDE_DIR})
++#endif(FONTCONFIG_FOUND)
+
+ # PAM
+ if(USE_PAM)
+@@ -221,7 +221,9 @@ endif(BUILD_SLIMLOCK)
+ ####### install
+ # slim
+ install(TARGETS slim RUNTIME DESTINATION bin)
++if(BUILD_SLIMLOCK)
+ install(TARGETS slimlock RUNTIME DESTINATION bin)
++endif(BUILD_SLIMLOCK)
+
+ if (BUILD_SHARED_LIBS)
+ set_target_properties(libslim PROPERTIES
+@@ -238,7 +240,7 @@ endif (BUILD_SHARED_LIBS)
+ install(FILES slim.1 DESTINATION ${MANDIR}/man1/)
+ install(FILES slimlock.1 DESTINATION ${MANDIR}/man1/)
+ # configure
+-install(FILES slim.conf DESTINATION ${SYSCONFDIR})
++install(FILES slim.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/share/examples/slim/)
+ # systemd service file
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+ install(FILES slim.service DESTINATION ${LIBDIR}/systemd/system)
diff --git a/x11/slim/patches/patch-slim.conf b/x11/slim/patches/patch-slim.conf
new file mode 100644
index 00000000000..85f6ada706a
--- /dev/null
+++ b/x11/slim/patches/patch-slim.conf
@@ -0,0 +1,47 @@
+$NetBSD: patch-slim.conf,v 1.1 2018/05/18 14:51:17 youri Exp $
+
+Adjust for NetBSD
+
+--- slim.conf.orig 2013-10-01 22:38:05.000000000 +0000
++++ slim.conf
+@@ -1,17 +1,18 @@
+ # Path, X server and arguments (if needed)
+ # Note: -xauth $authfile is automatically appended
+-default_path /bin:/usr/bin:/usr/local/bin
+-default_xserver /usr/bin/X
++default_path /bin:/usr/bin:@X11BASE@/bin:
++default_xserver @X11BASE@/bin/X
+ #xserver_arguments -dpi 75
++xserver_arguments vt05
+
+ # Commands for halt, login, etc.
+ halt_cmd /sbin/shutdown -h now
+ reboot_cmd /sbin/shutdown -r now
+-console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
++console_cmd @X11BASE@/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /usr/bin/login"
+ #suspend_cmd /usr/sbin/suspend
+
+ # Full path to the xauth binary
+-xauth_path /usr/bin/xauth
++xauth_path @X11BASE@/bin/xauth
+
+ # Xauth file for server
+ authfile /var/run/slim.auth
+@@ -33,7 +34,7 @@ authfile /var/run/slim.auth
+ # to adjust the command according to your preferred shell,
+ # i.e. for freebsd use:
+ # login_cmd exec /bin/sh - ~/.xinitrc %session
+-login_cmd exec /bin/bash -login ~/.xinitrc %session
++login_cmd exec @PREFIX@/bin/bash -login ~/.xinitrc %session
+
+ # Commands executed when starting and exiting a session.
+ # They can be used for registering a X11 session with
+@@ -51,7 +52,7 @@ login_cmd exec /bin/bash -logi
+ # 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
++sessions xfce4,mate,icewm-session,wmaker,blackbox
+
+ # Executed when pressing F11 (requires imagemagick)
+ screenshot_cmd import -window root /slim.png