head	1.26;
access;
symbols
	pkgsrc-2026Q1:1.26.0.4
	pkgsrc-2026Q1-base:1.26
	pkgsrc-2025Q4:1.26.0.2
	pkgsrc-2025Q4-base:1.26
	pkgsrc-2025Q3:1.25.0.2
	pkgsrc-2025Q3-base:1.25
	pkgsrc-2025Q2:1.24.0.2
	pkgsrc-2025Q2-base:1.24
	pkgsrc-2025Q1:1.21.0.12
	pkgsrc-2025Q1-base:1.21
	pkgsrc-2024Q4:1.21.0.10
	pkgsrc-2024Q4-base:1.21
	pkgsrc-2024Q3:1.21.0.8
	pkgsrc-2024Q3-base:1.21
	pkgsrc-2024Q2:1.21.0.6
	pkgsrc-2024Q2-base:1.21
	pkgsrc-2024Q1:1.21.0.4
	pkgsrc-2024Q1-base:1.21
	pkgsrc-2023Q4:1.21.0.2
	pkgsrc-2023Q4-base:1.21
	pkgsrc-2023Q3:1.20.0.4
	pkgsrc-2023Q3-base:1.20
	pkgsrc-2023Q2:1.20.0.2
	pkgsrc-2023Q2-base:1.20
	pkgsrc-2023Q1:1.17.0.2
	pkgsrc-2023Q1-base:1.17
	pkgsrc-2022Q4:1.13.0.10
	pkgsrc-2022Q4-base:1.13
	pkgsrc-2022Q3:1.13.0.8
	pkgsrc-2022Q3-base:1.13
	pkgsrc-2022Q2:1.13.0.6
	pkgsrc-2022Q2-base:1.13
	pkgsrc-2022Q1:1.13.0.4
	pkgsrc-2022Q1-base:1.13
	pkgsrc-2021Q4:1.13.0.2
	pkgsrc-2021Q4-base:1.13
	pkgsrc-2021Q3:1.12.0.4
	pkgsrc-2021Q3-base:1.12
	pkgsrc-2021Q2:1.12.0.2
	pkgsrc-2021Q2-base:1.12
	pkgsrc-2021Q1:1.10.0.4
	pkgsrc-2021Q1-base:1.10
	pkgsrc-2020Q4:1.10.0.2
	pkgsrc-2020Q4-base:1.10
	pkgsrc-2020Q3:1.9.0.2
	pkgsrc-2020Q3-base:1.9
	pkgsrc-2020Q2:1.8.0.4
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.8.0.2
	pkgsrc-2020Q1-base:1.8
	pkgsrc-2019Q4:1.5.0.8
	pkgsrc-2019Q4-base:1.5
	pkgsrc-2019Q3:1.5.0.4
	pkgsrc-2019Q3-base:1.5
	pkgsrc-2019Q2:1.5.0.2
	pkgsrc-2019Q2-base:1.5
	pkgsrc-2019Q1:1.3.0.4
	pkgsrc-2019Q1-base:1.3
	pkgsrc-2018Q4:1.3.0.2
	pkgsrc-2018Q4-base:1.3
	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.26
date	2025.10.23.20.40.19;	author wiz;	state Exp;
branches;
next	1.25;
commitid	1V2hBZn9ypXaCJfG;

1.25
date	2025.08.18.06.33.12;	author wiz;	state Exp;
branches;
next	1.24;
commitid	EA6qEPWGyj455b7G;

1.24
date	2025.05.29.14.35.59;	author khorben;	state Exp;
branches;
next	1.23;
commitid	HbPgFERtt5yMlOWF;

1.23
date	2025.05.29.12.53.40;	author khorben;	state Exp;
branches;
next	1.22;
commitid	GNxHujTVswCLMNWF;

1.22
date	2025.04.24.14.16.32;	author wiz;	state Exp;
branches;
next	1.21;
commitid	A3VBjL8Zdd4LljSF;

1.21
date	2023.11.12.13.24.30;	author wiz;	state Exp;
branches;
next	1.20;
commitid	SjpNXQIV5XeZ3kME;

1.20
date	2023.06.24.14.34.52;	author nia;	state Exp;
branches;
next	1.19;
commitid	BeKEiJm2zjRJ0duE;

1.19
date	2023.06.24.08.53.32;	author nia;	state Exp;
branches;
next	1.18;
commitid	144hdO262TqE7buE;

1.18
date	2023.06.14.09.43.50;	author abs;	state Exp;
branches;
next	1.17;
commitid	4k0MdQOf1v2OITsE;

1.17
date	2023.03.25.22.54.22;	author gutteridge;	state Exp;
branches;
next	1.16;
commitid	F42piMoBZwVAGyiE;

1.16
date	2023.03.16.03.25.41;	author gutteridge;	state Exp;
branches;
next	1.15;
commitid	zPf94X2hMoyWvihE;

1.15
date	2023.03.15.13.39.16;	author abs;	state Exp;
branches;
next	1.14;
commitid	iQ8XlzNZ5OkwWdhE;

1.14
date	2023.01.29.21.18.22;	author ryoon;	state Exp;
branches;
next	1.13;
commitid	QL7aBXsBGmQvUtbE;

1.13
date	2021.12.08.16.07.14;	author adam;	state Exp;
branches;
next	1.12;
commitid	2PyWjHx5T8rqARjD;

1.12
date	2021.06.22.08.29.55;	author nia;	state Exp;
branches;
next	1.11;
commitid	7Jcu86LRT2Xpw6YC;

1.11
date	2021.06.11.10.37.12;	author abs;	state Exp;
branches;
next	1.10;
commitid	2PnS7gy0sVyWzHWC;

1.10
date	2020.12.04.04.56.20;	author riastradh;	state Exp;
branches;
next	1.9;
commitid	rml4sqzmdFjgLnyC;

1.9
date	2020.08.17.20.20.36;	author leot;	state Exp;
branches;
next	1.8;
commitid	ybGS4iX9Fz8imskC;

1.8
date	2020.03.08.16.51.50;	author wiz;	state Exp;
branches;
next	1.7;
commitid	rcNYzTQo8icypCZB;

1.7
date	2020.01.10.19.26.31;	author maya;	state Exp;
branches;
next	1.6;
commitid	PPmGv8cdo3LR9bSB;

1.6
date	2020.01.10.19.13.33;	author maya;	state Exp;
branches;
next	1.5;
commitid	SwUS0ErjnGyX4bSB;

1.5
date	2019.06.18.16.54.07;	author nia;	state Exp;
branches;
next	1.4;
commitid	GpFMaziTifc8WGrB;

1.4
date	2019.05.23.19.23.23;	author rillig;	state Exp;
branches;
next	1.3;
commitid	aWlQW8HYUUFCAmoB;

1.3
date	2018.10.15.00.48.47;	author maya;	state Exp;
branches;
next	1.2;
commitid	oSXVgNTCmwRVuZVA;

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.26
log
@*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
@
text
@# $NetBSD: Makefile,v 1.25 2025/08/18 06:33:12 wiz Exp $

DISTNAME=	slim-1.4.0
PKGREVISION=	7
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=slim-fork/}

MAINTAINER=	youri@@NetBSD.org
HOMEPAGE=	https://slim-fork.sourceforge.io/
COMMENT=	Simple login manager
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c c++

CMAKE_CONFIGURE_ARGS+=	-DCMAKE_POLICY_VERSION_MINIMUM=3.5

AUTO_MKDIRS=	yes
RCD_SCRIPTS+=	slim

SUBST_CLASSES+=		options
SUBST_FILES.options=	slim.conf
SUBST_STAGE.options=	pre-configure
SUBST_VARS.options+=	SLIM_LOGIN_CMD SLIM_XSERVER_ARGUMENTS

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	CMakeLists.txt slim.conf
SUBST_VARS.paths=	PREFIX
SUBST_VARS.paths+=	PKG_SYSCONFDIR
SUBST_VARS.paths+=	VARBASE
SUBST_VARS.paths+=	X11BASE

.include "../../devel/cmake/build.mk"

.include "../../mk/bsd.prefs.mk"

# Possible todos
# - Install adjusted xinitrc.sample which uses ~/.xsession if present
# - Adjust CMakeLists.txt to find fontconfig

post-install:
	${INSTALL_DATA} ${WRKSRC}/xinitrc.sample ${DESTDIR}${PREFIX}/share/examples/slim

.if ${OPSYS} == "NetBSD"
# Drops the ability to pass theme as %session param to .xinitrc
SLIM_LOGIN_CMD?=		/bin/sh - /etc/X11/xdm/Xsession
SLIM_XSERVER_ARGUMENTS?=	vt05 -noretro -nolisten tcp
.else
SLIM_LOGIN_CMD?=		${TOOLS_PATH.sh} - ~/.xinitrc %session
SLIM_XSERVER_ARGUMENTS?=	-nolisten tcp
.endif

CONF_FILES+=	share/examples/slim/slim.conf \
		${PKG_SYSCONFDIR}/slim.conf

# XXX the slim.sh file installed for rc.d use specifies dbus as a
# dependency, but this isn't reflected below.
.include "options.mk"
.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 "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.25
log
@slim: fix build with cmake 4

Convert to cmake/build.mk while here.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2025/05/29 14:35:59 khorben Exp $
d4 1
a4 1
PKGREVISION=	6
@


1.24
log
@slim: correct the path to the PID file in the RC script

This fixes obtaining the status or restarting the slim greeter.

Bumps PKGREVISION.

Tested on NetBSD/amd64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2025/05/29 12:53:40 khorben Exp $
d16 1
a16 1
USE_CMAKE=	yes
d34 2
@


1.23
log
@slim: correct some paths in slim.conf

Tested on NetBSD/amd64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2025/04/24 14:16:32 wiz Exp $
d4 1
a4 1
PKGREVISION=	5
@


1.22
log
@*: recursive bump for jpeg -> libjpeg-turbo switch
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2023/11/12 13:24:30 wiz Exp $
d4 1
a4 1
PKGREVISION=	4
d31 1
@


1.21
log
@*: revebump for new brotli option for freetype2

Addresses PR 57693
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2023/06/24 14:34:52 nia Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.20
log
@slim: Correct mistake. -login is a bash extension
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2023/06/24 08:53:32 nia Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.19
log
@slim: Add sbin and games to default path.

Remove pointless mandatory bash dependency.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2023/06/14 09:43:50 abs Exp $
d4 1
a4 1
PKGREVISION=	1
d47 1
a47 1
SLIM_LOGIN_CMD?=		${TOOLS_PATH.sh} -login ~/.xinitrc %session
@


1.18
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
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2023/03/25 22:54:22 gutteridge Exp $
d4 1
d47 1
a47 2
DEPENDS+=			bash-[0-9]*:../../shells/bash
SLIM_LOGIN_CMD?=		@@PREFIX@@/bin/bash -login ~/.xinitrc %session
@


1.17
log
@slim: add a comment noting dbus dependency inconsistency

(I don't have time to investigate/test at the moment, so noting this
for now.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2023/03/16 03:25:41 gutteridge Exp $
d3 1
a3 2
DISTNAME=	slim-1.3.6
PKGREVISION=	11
d5 1
a5 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=slim.berlios/}
d8 1
a8 1
HOMEPAGE=	https://github.com/iwamatsu/slim
d34 7
d43 2
a44 2
SLIM_LOGIN_CMD?=	/bin/sh - /etc/X11/xdm/Xsession
SLIM_XSERVER_ARGUMENTS?=vt05 -noretro
d46 3
a48 3
DEPENDS+=    bash-[0-9]*:../../shells/bash
SLIM_LOGIN_CMD?=	@@PREFIX@@/bin/bash -login ~/.xinitrc %session
SLIM_XSERVER_ARGUMENTS?=	
@


1.16
log
@slim: drop universal bash dependency

The previous commit was intended to contextualize the bash dependency,
so drop the now duplicated universal expression of it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2023/03/15 13:39:16 abs Exp $
d48 2
@


1.15
log
@Adjust slim default config for NetBSD

Add SLIM_LOGIN_CMD and SLIM_XSERVER_ARGUMENTS values which are
substituted into the default slim.conf, and provide more optimal
values for NetBSD

SLIM_XSERVER_ARGUMENTS: "vt05 -noretro"

  This makes the "vt05" NetBSD specific, so no longer affecting
  other platforms, plus hides the default rootweave (which would
  be replaced by a slim image shortly after startup)

SLIM_LOGIN_CMD: "/bin/sh - /etc/X11/xdm/Xsession"

  /etc/X11/xdm/Xsession is the canonical way to start an xsession
  on NetBSD. The slim shipped defaults rely on a user having
  ~/.xinitrc, otherwise the session fails back to login (which is
  a little unfriendly for new users). As a side effect we lose the
  default ability to pass the theme as a %session parameter to
  .xinitrc, but this is probably a reasonable trade off to have a
  working Out Of The Box config. As a benefit we can drop the
  dependency on bash for NetBSD (which is nice for smaller platforms).

For non NetBSD platforms xserver_arguments is now as originally
shipped, and login_cmd is as shipped modulus bash path substitution

Suggestions/adjustments for other platforms encouraged :)

Bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2023/01/29 21:18:22 ryoon Exp $
d4 1
a4 1
PKGREVISION=	10
a20 2
DEPENDS+=	bash-[0-9]*:../../shells/bash

@


1.14
log
@*: Recursive revbup from graphics/freetype2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2021/12/08 16:07:14 adam Exp $
d4 1
a4 1
PKGREVISION=	9
d23 5
d35 12
@


1.13
log
@revbump for icu and libffi
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2021/06/22 08:29:55 nia Exp $
d4 1
a4 1
PKGREVISION=	8
@


1.12
log
@slim: bump for previous default options change
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2021/06/11 10:37:12 abs Exp $
d4 1
a4 1
PKGREVISION=	7
@


1.11
log
@Add option to build slim without consolekit (default unchanged)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2020/12/04 04:56:20 riastradh Exp $
d4 1
a4 1
PKGREVISION=	6
@


1.10
log
@Revbump for openpam cppflags change months ago, belatedly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2020/08/17 20:20:36 leot Exp $
a16 1
CMAKE_ARGS=	-DUSE_CONSOLEKIT:Bool=Yes
d33 1
a42 1
.include "../../sysutils/consolekit/buildlink3.mk"
@


1.9
log
@*: revbump after fontconfig bl3 changes (libuuid removal)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/03/08 16:51:50 wiz Exp $
d4 1
a4 1
PKGREVISION=	5
@


1.8
log
@*: recursive bump for libffi
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2020/01/10 19:26:31 maya Exp $
d4 1
a4 1
PKGREVISION=	4
@


1.7
log
@slim: already depends on dbus, don't add it a second time.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2020/01/10 19:13:33 maya Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.6
log
@slim: seems to require global dbus in order to successfully start things.

Make the rc.d script depend on dbus to have successful startup.
Add PREFIX/bin to path, so it works better with pkgsrc environments even
in the base xsrc case.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2019/06/18 16:54:07 nia Exp $
a22 1
DEPENDS+=	dbus-[0-9]*:../../sysutils/dbus
@


1.5
log
@slim: This needs pkg-config.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/05/23 19:23:23 rillig Exp $
d4 1
a4 1
PKGREVISION=	2
d23 1
@


1.4
log
@all: replace SUBST_SED with the simpler SUBST_VARS

pkglint -Wall -r --only "substitution command" -F

With manual review and indentation fixes since pkglint doesn't get that
part correct in every case.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/10/15 00:48:47 maya Exp $
d13 1
@


1.3
log
@slim: do replace PREFIX (+= vs =) in slim.conf
don't pass -noretro because unmodified xorg doesn't support this and
errors out (this happens with pkgsrc xorg, netbsd base xorg is undoing
a commit to support it)

bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/10/08 17:46:07 abs Exp $
d26 3
a28 3
SUBST_SED.paths=	-e 's,@@PREFIX@@,${PREFIX},'
SUBST_SED.paths+=	-e 's,@@PKG_SYSCONFDIR@@,${PKG_SYSCONFDIR},'
SUBST_SED.paths+=	-e 's,@@X11BASE@@,${X11BASE},'
@


1.2
log
@Honour PKG_SYSCONFDIR. Bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/05/18 14:51:17 youri Exp $
d4 1
a4 1
PKGREVISION=	1
d27 1
a27 1
SUBST_SED.paths=	-e 's,@@PKG_SYSCONFDIR@@,${PKG_SYSCONFDIR},'
@


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$
d4 1
d27 1
@

