head	1.3;
access;
symbols
	pkgsrc-2026Q1:1.3.0.24
	pkgsrc-2026Q1-base:1.3
	pkgsrc-2025Q4:1.3.0.22
	pkgsrc-2025Q4-base:1.3
	pkgsrc-2025Q3:1.3.0.20
	pkgsrc-2025Q3-base:1.3
	pkgsrc-2025Q2:1.3.0.18
	pkgsrc-2025Q2-base:1.3
	pkgsrc-2025Q1:1.3.0.16
	pkgsrc-2025Q1-base:1.3
	pkgsrc-2024Q4:1.3.0.14
	pkgsrc-2024Q4-base:1.3
	pkgsrc-2024Q3:1.3.0.12
	pkgsrc-2024Q3-base:1.3
	pkgsrc-2024Q2:1.3.0.10
	pkgsrc-2024Q2-base:1.3
	pkgsrc-2024Q1:1.3.0.8
	pkgsrc-2024Q1-base:1.3
	pkgsrc-2023Q4:1.3.0.6
	pkgsrc-2023Q4-base:1.3
	pkgsrc-2023Q3:1.3.0.4
	pkgsrc-2023Q3-base:1.3
	pkgsrc-2023Q2:1.3.0.2
	pkgsrc-2023Q2-base:1.3
	pkgsrc-2023Q1:1.2.0.36
	pkgsrc-2023Q1-base:1.2
	pkgsrc-2022Q4:1.2.0.34
	pkgsrc-2022Q4-base:1.2
	pkgsrc-2022Q3:1.2.0.32
	pkgsrc-2022Q3-base:1.2
	pkgsrc-2022Q2:1.2.0.30
	pkgsrc-2022Q2-base:1.2
	pkgsrc-2022Q1:1.2.0.28
	pkgsrc-2022Q1-base:1.2
	pkgsrc-2021Q4:1.2.0.26
	pkgsrc-2021Q4-base:1.2
	pkgsrc-2021Q3:1.2.0.24
	pkgsrc-2021Q3-base:1.2
	pkgsrc-2021Q2:1.2.0.22
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.2.0.20
	pkgsrc-2021Q1-base:1.2
	pkgsrc-2020Q4:1.2.0.18
	pkgsrc-2020Q4-base:1.2
	pkgsrc-2020Q3:1.2.0.16
	pkgsrc-2020Q3-base:1.2
	pkgsrc-2020Q2:1.2.0.14
	pkgsrc-2020Q2-base:1.2
	pkgsrc-2020Q1:1.2.0.10
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.12
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.2.0.8
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.6
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.4
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.2.0.2
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.1.0.4
	pkgsrc-2018Q3-base:1.1
	pkgsrc-2018Q2:1.1.0.2
	pkgsrc-2018Q2-base:1.1;
locks; strict;
comment	@# @;


1.3
date	2023.06.14.09.43.50;	author abs;	state Exp;
branches;
next	1.2;
commitid	4k0MdQOf1v2OITsE;

1.2
date	2018.10.08.17.46.07;	author abs;	state Exp;
branches;
next	1.1;
commitid	O4yZYQTyxMT8mbVA;

1.1
date	2018.05.18.14.51.17;	author youri;	state Exp;
branches;
next	;
commitid	zSIylwBWnAldZMCA;


desc
@@


1.3
log
@Updated x11/slim to 1.4.0

1.4.0 - 2023.01.21
  * - BREAKING CONFIG CHANGE - the position of the passwd_feedback in slim
    is now relative to the screen, not the panel. This is now consistent
    with slimlock and with the session and other messages.
  * The selected session is now preserved over failed logins
  * When testing themes with the -p option, the size of the window can now
    be specified, and the theme is previewed correctly for that size.
  * On exit from theme test, the "test message" now reports user and session
  * Failed login feedback is now disabled by default or if position negative
  * Applied some Devuan patches
    - Set the XDG_SESSION_CLASS. This fixes Gentoo bug #727544 - failure to
      register sessions with elogind in some instances. The (incorrect) bug
      note in the man page has therefore been removed again.
    - Use $DISPLAY instead of hardcoding :0.0 in sessionstart/stop commands
    - No longer always builds slimlock if using PAM - it must be explicitly
      enabled
    - Fixed formatting in slimlock man page
    - A couple of typos fixed in strings
  * Updated the README and encoded in UTF-8
  * Corrected the handling of the -n / -nodaemon option so that it doesn't
    swallow the next option if given as -n
  * Bug fixes in slimlock
    - The active entry is for password, so show the password prompt, not the
      username one
    - Don't react to F1, as it isn't appropriate and used to blank the
      screen
    - Keep it all on one screen even when the WM hasn't set a "primary" for
      RandR purposes
  * Fix ticket #4 - the config parser now works properly. Previously it got
    confused by option names that were substrings of other option names
  * Themes with "background_style color" no longer need a redundant image
    file to make them work.
    - This needed a bit of a re-write of the image handling, which also
      improves efficiency
  * New default theme - the old one is retained as "original"
  * Some general documentation improvements (man pages, comments in example
    files)

1.3.9 - 2022.11.18
* Changed the handling of the "auth failed" message in DM mode so that it
remains on display until a key is pressed.
* Added a command line option to specify the configuration file
* Allow the logfile to be specified as "stderr" to write to stderr
Also now writes all log messages to stderr if they are printed before
the log file is open, including when using the -p option.
* Added a configuration option to retain the user name if authentication
fails (which is probably more helpful if you just mistype your password)
* Applied a modified version of the "wait for the X server" patch from guix
* No longer unnecessarily re-opens an already open X display interface.
Similarly removed a redundant "get root window" call
* Deleted some unused member variables and methods. Various other internal
clean-up
* Reverted the install location definition for the configuration file, as
the CMAKE_INSTALL_SYSCONFDIR wasn't right
* Added a "bug" note to the man page, for the reliance on sessreg, which
causes occasional misbehaviour for some people.

1.3.8 - 2022.03.01
  * Fixed some bugs listed on bugs.gentoo.org:
      832303 - failed to build with clang, Invalid suffix on string literal
      580458 - open fd on /var/log/slim.log passed to session
  * Fixed handling of log stream so that all the code uses the same instance
  * Handle return values from calls, to clean up warn-unused-result warnings
  * Fixed "sessions" config option (the earlier patch was incomplete)
  * Several QA improvements
  * Updated cmake config - use standard install paths, don't force options

1.3.7 - 2022.01.30
  * Imported several bug fixes from the Gentoo package:
          libslim-cmake-fixes
          disable-ck-for-systemd
          reinstate sessions config option as an alternative to sessiondir
          systemd session compatibility
          remove zlib dependency
          envcpy-bad-pointer-arithmetic patch
          add-missing-libgen_h
          wrong comparison for XCreateGC error return (GCC11 needs it fixed!)
  * Fixed a bug in handling expired user accounts with PAM
  * Show a message on login failure (using the same method as slimlock)
@
text
@$NetBSD: patch-CMakeLists.txt,v 1.2 2018/10/08 17:46:07 abs Exp $

Fix build.

--- CMakeLists.txt.orig	2023-01-21 19:54:32.000000000 +0000
+++ CMakeLists.txt
@@@@ -23,7 +23,7 @@@@ set(SLIM_VERSION_PATCH "0")
 set(SLIM_VERSION "${SLIM_VERSION_MAJOR}.${SLIM_VERSION_MINOR}.${SLIM_VERSION_PATCH}")
 
 set(PKGDATADIR "${CMAKE_INSTALL_FULL_DATADIR}/slim")
-set(SYSCONFDIR "/etc")
+set(SYSCONFDIR "@@PKG_SYSCONFDIR@@")
 
 set(SLIM_DEFINITIONS)
 if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
@@@@ -96,13 +96,13 @@@@ find_package(JPEG REQUIRED)
 find_package(PNG REQUIRED)
 
 # Fontconfig
-set(FONTCONFIG_DIR ${CMAKE_MODULE_PATH})
-find_package(FONTCONFIG REQUIRED)
-if(FONTCONFIG_FOUND)
-	message("\tFontConfig Found")
-	target_link_libraries(slim ${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(slim ${FONTCONFIG_LIBRARY})
+#	include_directories(${FONTCONFIG_INCLUDE_DIR})
+#endif(FONTCONFIG_FOUND)
 
 # PAM
 if(USE_PAM)
@@@@ -235,7 +235,7 @@@@ endif (BUILD_SHARED_LIBS)
 install(FILES slim.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
 
 # configure - in theory we should use CMAKE_INSTALL_SYSCONFDIR but that doesn't work
-install(FILES slim.conf DESTINATION ${SYSCONFDIR})
+install(FILES slim.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/share/examples/slim/)
 
 # systemd service file - commented out as broken - not all Linux uses systemd!
 #if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
@


1.2
log
@Honour PKG_SYSCONFDIR. Bump PKGREVISION
@
text
@d1 1
a1 1
$NetBSD: patch-CMakeLists.txt,v 1.1 2018/05/18 14:51:17 youri Exp $
d5 1
a5 1
--- CMakeLists.txt.orig	2013-10-01 22:38:05.000000000 +0000
d7 1
a7 2
@@@@ -21,11 +21,11 @@@@ set(SLIM_VERSION_MINOR "3")
 set(SLIM_VERSION_PATCH "6")
d10 1
a10 3
-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")
a12 3
 set(LIBDIR "/lib")
-set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man")
+set(MANDIR "${CMAKE_INSTALL_PREFIX}/man")
d16 2
a17 2
@@@@ -104,13 +104,13 @@@@ find_package(PNG REQUIRED)
 find_package(ZLIB REQUIRED)
d24 1
a24 1
-	target_link_libraries(${PROJECT_NAME} ${FONTCONFIG_LIBRARY})
d30 3
a32 3
+	#message("\tFontConfig Found")
+	#target_link_libraries(${PROJECT_NAME} ${FONTCONFIG_LIBRARY})
+	#include_directories(${FONTCONFIG_INCLUDE_DIR})
d37 4
a40 14
@@@@ -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
d43 3
a45 3
 # systemd service file
 if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 	install(FILES slim.service DESTINATION ${LIBDIR}/systemd/system)
@


1.1
log
@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.
@
text
@d1 1
a1 1
$NetBSD$
d15 1
a15 1
+set(SYSCONFDIR "@@PREFIX@@/etc")
@

