head	1.14;
access;
symbols
	pkgsrc-2026Q2:1.14.0.6
	pkgsrc-2026Q2-base:1.14
	pkgsrc-2026Q1:1.14.0.4
	pkgsrc-2026Q1-base:1.14
	pkgsrc-2025Q4:1.14.0.2
	pkgsrc-2025Q4-base:1.14
	pkgsrc-2025Q3:1.13.0.2
	pkgsrc-2025Q3-base:1.13
	pkgsrc-2025Q2:1.12.0.22
	pkgsrc-2025Q2-base:1.12
	pkgsrc-2025Q1:1.12.0.20
	pkgsrc-2025Q1-base:1.12
	pkgsrc-2024Q4:1.12.0.18
	pkgsrc-2024Q4-base:1.12
	pkgsrc-2024Q3:1.12.0.16
	pkgsrc-2024Q3-base:1.12
	pkgsrc-2024Q2:1.12.0.14
	pkgsrc-2024Q2-base:1.12
	pkgsrc-2024Q1:1.12.0.12
	pkgsrc-2024Q1-base:1.12
	pkgsrc-2023Q4:1.12.0.10
	pkgsrc-2023Q4-base:1.12
	pkgsrc-2023Q3:1.12.0.8
	pkgsrc-2023Q3-base:1.12
	pkgsrc-2023Q2:1.12.0.6
	pkgsrc-2023Q2-base:1.12
	pkgsrc-2023Q1:1.12.0.4
	pkgsrc-2023Q1-base:1.12
	pkgsrc-2022Q4:1.12.0.2
	pkgsrc-2022Q4-base:1.12
	pkgsrc-2022Q3:1.11.0.48
	pkgsrc-2022Q3-base:1.11
	pkgsrc-2022Q2:1.11.0.46
	pkgsrc-2022Q2-base:1.11
	pkgsrc-2022Q1:1.11.0.44
	pkgsrc-2022Q1-base:1.11
	pkgsrc-2021Q4:1.11.0.42
	pkgsrc-2021Q4-base:1.11
	pkgsrc-2021Q3:1.11.0.40
	pkgsrc-2021Q3-base:1.11
	pkgsrc-2021Q2:1.11.0.38
	pkgsrc-2021Q2-base:1.11
	pkgsrc-2021Q1:1.11.0.36
	pkgsrc-2021Q1-base:1.11
	pkgsrc-2020Q4:1.11.0.34
	pkgsrc-2020Q4-base:1.11
	pkgsrc-2020Q3:1.11.0.32
	pkgsrc-2020Q3-base:1.11
	pkgsrc-2020Q2:1.11.0.28
	pkgsrc-2020Q2-base:1.11
	pkgsrc-2020Q1:1.11.0.8
	pkgsrc-2020Q1-base:1.11
	pkgsrc-2019Q4:1.11.0.30
	pkgsrc-2019Q4-base:1.11
	pkgsrc-2019Q3:1.11.0.26
	pkgsrc-2019Q3-base:1.11
	pkgsrc-2019Q2:1.11.0.24
	pkgsrc-2019Q2-base:1.11
	pkgsrc-2019Q1:1.11.0.22
	pkgsrc-2019Q1-base:1.11
	pkgsrc-2018Q4:1.11.0.20
	pkgsrc-2018Q4-base:1.11
	pkgsrc-2018Q3:1.11.0.18
	pkgsrc-2018Q3-base:1.11
	pkgsrc-2018Q2:1.11.0.16
	pkgsrc-2018Q2-base:1.11
	pkgsrc-2018Q1:1.11.0.14
	pkgsrc-2018Q1-base:1.11
	pkgsrc-2017Q4:1.11.0.12
	pkgsrc-2017Q4-base:1.11
	pkgsrc-2017Q3:1.11.0.10
	pkgsrc-2017Q3-base:1.11
	pkgsrc-2017Q2:1.11.0.6
	pkgsrc-2017Q2-base:1.11
	pkgsrc-2017Q1:1.11.0.4
	pkgsrc-2017Q1-base:1.11
	pkgsrc-2016Q4:1.11.0.2
	pkgsrc-2016Q4-base:1.11
	pkgsrc-2016Q3:1.10.0.6
	pkgsrc-2016Q3-base:1.10
	pkgsrc-2016Q2:1.10.0.4
	pkgsrc-2016Q2-base:1.10
	pkgsrc-2016Q1:1.10.0.2
	pkgsrc-2016Q1-base:1.10
	pkgsrc-2015Q4:1.7.0.8
	pkgsrc-2015Q4-base:1.7
	pkgsrc-2015Q3:1.7.0.6
	pkgsrc-2015Q3-base:1.7
	pkgsrc-2015Q2:1.7.0.4
	pkgsrc-2015Q2-base:1.7
	pkgsrc-2015Q1:1.7.0.2
	pkgsrc-2015Q1-base:1.7
	pkgsrc-2014Q4:1.5.0.18
	pkgsrc-2014Q4-base:1.5
	pkgsrc-2014Q3:1.5.0.16
	pkgsrc-2014Q3-base:1.5
	pkgsrc-2014Q2:1.5.0.14
	pkgsrc-2014Q2-base:1.5
	pkgsrc-2014Q1:1.5.0.12
	pkgsrc-2014Q1-base:1.5
	pkgsrc-2013Q4:1.5.0.10
	pkgsrc-2013Q4-base:1.5
	pkgsrc-2013Q3:1.5.0.8
	pkgsrc-2013Q3-base:1.5
	pkgsrc-2013Q2:1.5.0.6
	pkgsrc-2013Q2-base:1.5
	pkgsrc-2013Q1:1.5.0.4
	pkgsrc-2013Q1-base:1.5
	pkgsrc-2012Q4:1.5.0.2
	pkgsrc-2012Q4-base:1.5
	pkgsrc-2012Q3:1.4.0.4
	pkgsrc-2012Q3-base:1.4
	pkgsrc-2012Q2:1.4.0.2
	pkgsrc-2012Q2-base:1.4
	pkgsrc-2012Q1:1.3.0.18
	pkgsrc-2012Q1-base:1.3
	pkgsrc-2011Q4:1.3.0.16
	pkgsrc-2011Q4-base:1.3
	pkgsrc-2011Q3:1.3.0.14
	pkgsrc-2011Q3-base:1.3
	pkgsrc-2011Q2:1.3.0.12
	pkgsrc-2011Q2-base:1.3
	pkgsrc-2011Q1:1.3.0.10
	pkgsrc-2011Q1-base:1.3
	pkgsrc-2010Q4:1.3.0.8
	pkgsrc-2010Q4-base:1.3
	pkgsrc-2010Q3:1.3.0.6
	pkgsrc-2010Q3-base:1.3
	pkgsrc-2010Q2:1.3.0.4
	pkgsrc-2010Q2-base:1.3
	pkgsrc-2010Q1:1.3.0.2
	pkgsrc-2010Q1-base:1.3
	pkgsrc-2009Q4:1.2.0.4
	pkgsrc-2009Q4-base:1.2
	pkgsrc-2009Q3:1.2.0.2
	pkgsrc-2009Q3-base:1.2
	pkgsrc-2009Q2:1.1.1.1.0.16
	pkgsrc-2009Q2-base:1.1.1.1
	pkgsrc-2009Q1:1.1.1.1.0.14
	pkgsrc-2009Q1-base:1.1.1.1
	pkgsrc-2008Q4:1.1.1.1.0.12
	pkgsrc-2008Q4-base:1.1.1.1
	pkgsrc-2008Q3:1.1.1.1.0.10
	pkgsrc-2008Q3-base:1.1.1.1
	cube-native-xorg:1.1.1.1.0.8
	cube-native-xorg-base:1.1.1.1
	pkgsrc-2008Q2:1.1.1.1.0.6
	pkgsrc-2008Q2-base:1.1.1.1
	cwrapper:1.1.1.1.0.4
	pkgsrc-2008Q1:1.1.1.1.0.2
	pkgsrc-2008Q1-base:1.1.1.1
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.14
date	2025.12.18.09.15.10;	author nia;	state Exp;
branches;
next	1.13;
commitid	lp4Ia2t43gEy3SmG;

1.13
date	2025.08.09.15.41.34;	author leot;	state Exp;
branches;
next	1.12;
commitid	T8NMfswJGb98p46G;

1.12
date	2022.10.09.12.52.21;	author leot;	state Exp;
branches;
next	1.11;
commitid	mYVxp7sZUUzKJ2XD;

1.11
date	2016.11.23.08.20.21;	author leot;	state Exp;
branches;
next	1.10;
commitid	kIXFeGmIBNqUcevz;

1.10
date	2016.02.28.19.49.06;	author joerg;	state Exp;
branches;
next	1.9;
commitid	jzX8g2MtcMYtFIWy;

1.9
date	2016.02.18.18.52.54;	author leot;	state Exp;
branches;
next	1.8;
commitid	xM1hAgYHvowKEqVy;

1.8
date	2016.02.16.17.47.19;	author leot;	state Exp;
branches;
next	1.7;
commitid	ErGCGwC7Ny5rnaVy;

1.7
date	2015.01.09.14.34.54;	author joerg;	state Exp;
branches;
next	1.6;
commitid	CH25Zk0jDQBSgm5y;

1.6
date	2015.01.06.13.32.25;	author mef;	state Exp;
branches;
next	1.5;
commitid	945UoJY3pjgz0Y4y;

1.5
date	2012.10.29.05.06.52;	author asau;	state Exp;
branches;
next	1.4;

1.4
date	2012.05.23.17.10.50;	author reed;	state Exp;
branches;
next	1.3;

1.3
date	2010.04.05.00.06.24;	author asau;	state Exp;
branches
	1.3.18.1;
next	1.2;

1.2
date	2009.07.07.18.14.15;	author joerg;	state Exp;
branches;
next	1.1;

1.1
date	2008.02.11.22.48.17;	author reed;	state Exp;
branches
	1.1.1.1;
next	;

1.3.18.1
date	2012.05.23.17.53.33;	author tron;	state Exp;
branches;
next	;

1.1.1.1
date	2008.02.11.22.48.17;	author reed;	state Exp;
branches;
next	;


desc
@@


1.14
log
@slock: Fix build on SunOS.
@
text
@# $NetBSD: Makefile,v 1.13 2025/08/09 15:41:34 leot Exp $

DISTNAME=		slock-1.6
CATEGORIES=		x11
MASTER_SITES=		https://dl.suckless.org/tools/

MAINTAINER=		reed@@reedmedia.net
HOMEPAGE=		https://tools.suckless.org/slock
COMMENT=		Simple X11 screen locker
LICENSE=		mit

MAKE_JOBS_SAFE=	no

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

SUBST_CLASSES+=		makefile
SUBST_STAGE.makefile=	pre-configure
SUBST_MESSAGE.makefile=	Adjust config.mk
SUBST_FILES.makefile=	config.mk
SUBST_SED.makefile+=	-e 's,/usr/local,${PREFIX},g'
SUBST_SED.makefile+=	-e 's,share/man,${PKGMANDIR},g'
SUBST_SED.makefile+=	-e 's,/usr/X11R6,${X11BASE},'
SUBST_SED.makefile+=	-e '/^CPPFLAGS/ s,-DHAVE_SHADOW_H,,'
SUBST_SED.makefile+=	-e 's,^CFLAGS *= ,CFLAGS += ,'
SUBST_SED.makefile+=	-e 's,^CPPFLAGS *= ,CPPFLAGS += ,'
SUBST_SED.makefile+=	-e 's,^LDFLAGS *= ,LDFLAGS += ,'
.if ${OPSYS} == "OpenBSD"
SUBST_SED.makefile+=	-e 's,^COMPATSRC *=.*$$,COMPATSRC = ,'
.endif
SUBST_SED.makefile+=	-e 's/cc/${CC:Q}/'

# Bump _XOPEN_SOURCE version to 600 in order to avoid "Compiler or options
# invalid for pre-UNIX 03 X/Open applications" error on SunOS.
SUBST_CLASSES+=		slock
SUBST_STAGE.slock=	pre-configure
SUBST_MESSAGE.slock=	Bump _XOPEN_SOURCE version
SUBST_FILES.slock=	slock.c
SUBST_SED.slock+=	-e '/_XOPEN_SOURCE/ s/500/600/'

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

.if !(${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly")
CPPFLAGS+=		-DHAVE_SHADOW_H
.endif

.if !(${OPSYS} == "OpenBSD" || ${OPSYS} == "Darwin")
LIBS+=	-lcrypt
.endif

CPPFLAGS.SunOS+=	-D__EXTENSIONS__
CPPFLAGS.NetBSD+=	-D_NETBSD_SOURCE	# needed for setgroups(2)

SPECIAL_PERMS+=	bin/slock ${SETUID_ROOT_PERMS}

.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.13
log
@slock: Update to 1.6

Changes:
Bug fixes and improvements.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2022/10/09 12:52:21 leot Exp $
d50 1
@


1.12
log
@slock: Update to 1.5

pkgsrc changes:
 - Switch to https:// MASTER_SITES and HOMEPAGE

1.5
---
 - Bug fixes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2016/11/23 08:20:21 leot Exp $
d3 1
a3 1
DISTNAME=		slock-1.5
@


1.11
log
@Update x11/slock to slock-1.4

Changes:
1.4
---
- fix CVE-2016-6866
- add proper priviledge dropping
- use explicit_bzero from OpenBSD to clear password from memory
- major code audit and rewrite of some parts (thanks, Laslo!)

Approved by <reed>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2016/02/28 19:49:06 joerg Exp $
d3 1
a3 1
DISTNAME=		slock-1.4
d5 1
a5 1
MASTER_SITES=		http://dl.suckless.org/tools/
d8 1
a8 1
HOMEPAGE=		http://tools.suckless.org/slock
@


1.10
log
@Needs libXrandr.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2016/02/18 18:52:54 leot Exp $
d3 1
a3 1
DISTNAME=		slock-1.3
d14 2
d27 3
a41 2
.include "../../mk/bsd.prefs.mk"

d43 1
a43 1
CFLAGS+=		-DHAVE_SHADOW_H
d48 1
d50 1
a50 1
.endif
@


1.9
log
@Various minor fixes.

o slock also needs x11/libXinerama
o Bump _XOPEN_SOURCE version to 600 in order to avoid build issues on SunOS.
o While here also fix some cosmetical issues providing a better SUBST_MESSAGE
  for "makefile" class and also accept possible user-defined CPPFLAGS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2016/02/16 17:47:19 leot Exp $
d53 1
@


1.8
log
@Update x11/slock to 1.3.

pkgsrc changes:
- Delete NO_CONFIGURE (it is not needed and sometimes can be harmful)

Changes:
The changes since version 1.2 are:
- bugfix: The cover window now resizes correctly when new screens are added or
  the resolution is changed while the lock is active.
- new: slock now has a third color. The three colors are used for startup,
  typing and failed login attempt.
- new: slock now allows to run any command after the screen has been locked, for
  example suspending to ram.
- slock now has a man page.
- a few small fixes and code style updates to make it more consistent with the
  rest of the suckless projects.

ok reed@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2015/01/09 14:34:54 joerg Exp $
a13 1
# Adjust config.mk
d16 1
a16 1
SUBST_MESSAGE.makefile=	Fixing config.mk
d23 1
d27 8
d52 1
@


1.7
log
@Fix dependencies.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2015/01/06 13:32:25 mef Exp $
d3 1
a3 1
DISTNAME=		slock-1.2
a13 2
NO_CONFIGURE=		yes

d16 1
a16 1
SUBST_STAGE.makefile=	pre-build
d20 1
d27 1
a27 1
INSTALLATION_DIRS=	bin share/doc/slock
@


1.6
log
@Update 1.0 to 1.2 based on PR pkg/49063 by Leonardo Taccari.
(pkgsrc)
  - Instead of using do-* in Makefile adjust config.mk and use the
    official Makefile like other suckless.org packages (e.g. x11/dmenu).
  - Do not install README: the only useful information for the user was:
    Simply invoke the 'slock' command. To get out of it, enter your
    password. The user can read that in x11/slock/DESCR by
    pkg_info slock.
(upstream)
  * slock-1.2:
    - Colors are now specified via config.h
    - Minor bug fixes

  * slock-1.1:
    - Eckhards dualcolor patch
    - Minor bug fixes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2012/10/29 05:06:52 asau Exp $
d44 1
@


1.5
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2012/05/23 17:10:50 reed Exp $
d3 1
a3 1
DISTNAME=		slock-1.0
d12 2
d15 13
d33 1
a33 1
CFLAGS+=-DHAVE_SHADOW_H
d36 1
a36 1
# TODO: handle -lcrypt too
d39 1
a39 3
do-build:
	cd ${WRKSRC} && ${CC} -c -DVERSION=\"1.0\" ${CFLAGS} slock.c && \
		${CC} -o slock slock.o -lc ${LIBS} ${X11_LDFLAGS} -lX11
a42 4
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/slock ${DESTDIR}${PREFIX}/bin/
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/slock/

@


1.4
log
@Upgrade slock to 1.0

Add license and change homepage.

No changes file included in source distribution.
Changes can be seen at http://hg.suckless.org/slock/ (see changelog
for last few versions).

One important fix is:
added XRaiseWindow workaround when new clients are launched

See http://secunia.com/advisories/48700/ for the security issue.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2010/04/05 00:06:24 asau Exp $
a11 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.3
log
@Build fix: treat DragonFly as other BSDs.
From Alexander Polakov, PR pkg/43118
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2009/07/07 18:14:15 joerg Exp $
d3 1
a3 1
DISTNAME=		slock-0.7
d5 1
a5 1
MASTER_SITES=		http://suckless.org/download/
d8 1
a8 1
HOMEPAGE=		http://www.suckless.org/wiki/tools/xlib
d10 1
d27 1
a27 1
	cd ${WRKSRC} && ${CC} -c -DVERSION=\"0.7\" ${CFLAGS} slock.c && \
@


1.3.18.1
log
@Pullup ticket #3802 - requested by reed
x11/slock: security update

Revisions pulled up:
- x11/slock/Makefile                                            1.4
- x11/slock/distinfo                                            1.2

---
   Module Name:    pkgsrc
   Committed By:   reed
   Date:           Wed May 23 17:10:50 UTC 2012

   Modified Files:
           pkgsrc/doc: CHANGES-2012
           pkgsrc/x11/slock: Makefile distinfo

   Log Message:
   Upgrade slock to 1.0

   Add license and change homepage.

   No changes file included in source distribution.
   Changes can be seen at http://hg.suckless.org/slock/ (see changelog
   for last few versions).

   One important fix is:
   added XRaiseWindow workaround when new clients are launched

   See http://secunia.com/advisories/48700/ for the security issue.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=		slock-1.0
d5 1
a5 1
MASTER_SITES=		http://dl.suckless.org/tools/
d8 1
a8 1
HOMEPAGE=		http://tools.suckless.org/slock
a9 1
LICENSE=		mit
d26 1
a26 1
	cd ${WRKSRC} && ${CC} -c -DVERSION=\"1.0\" ${CFLAGS} slock.c && \
@


1.2
log
@user-destdir support
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2008/02/11 22:48:17 reed Exp $
d18 1
a18 1
.if !(${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin")
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d11 2
d29 2
d32 2
a33 4
	${INSTALL_PROGRAM} ${WRKSRC}/slock ${PREFIX}/bin/
	${CHMOD} 555 ${PREFIX}/bin/slock
	${CHMOD} u+s ${PREFIX}/bin/slock
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/slock/
@


1.1.1.1
log
@New package.

Based on package from pkgsrc-wip, but updated. I changed
the maintainer because I didn't hear back about my changes.

From description:

Simple screen locker for X.

It blanks the screen and hides the pointer.  To unlock, type in
your password and press Enter.  The Escape key resets input and it
beeps on wrong password.
@
text
@@
