pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xlockmore xlockmore: add pam-pwauth_suid to pam op...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f831be5e3362
branches:  trunk
changeset: 449234:f831be5e3362
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Mar 22 17:46:06 2021 +0000

description:
xlockmore: add pam-pwauth_suid to pam option on NetBSD

Requested and patch supplied by John D. Baker on pkgsrc-users.

Some pkglint cleanup while here.

Bump PKGREVISION.

diffstat:

 x11/xlockmore/Makefile                         |   4 +-
 x11/xlockmore/Makefile.common                  |  29 +++++++++++++++----------
 x11/xlockmore/PLIST                            |   4 +-
 x11/xlockmore/distinfo                         |   6 ++--
 x11/xlockmore/patches/patch-modes_Makefile.in  |   3 +-
 x11/xlockmore/patches/patch-xglock_Makefile.in |   3 +-
 6 files changed, 28 insertions(+), 21 deletions(-)

diffs (139 lines):

diff -r 70c0e98a788a -r f831be5e3362 x11/xlockmore/Makefile
--- a/x11/xlockmore/Makefile    Mon Mar 22 16:17:32 2021 +0000
+++ b/x11/xlockmore/Makefile    Mon Mar 22 17:46:06 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.148 2020/12/04 04:56:20 riastradh Exp $
+# $NetBSD: Makefile,v 1.149 2021/03/22 17:46:06 wiz Exp $
 
-PKGREVISION= 26
+PKGREVISION= 27
 .include "Makefile.common"
 
 COMMENT=       Like the XLock session-locker/screensaver, but with more
diff -r 70c0e98a788a -r f831be5e3362 x11/xlockmore/Makefile.common
--- a/x11/xlockmore/Makefile.common     Mon Mar 22 16:17:32 2021 +0000
+++ b/x11/xlockmore/Makefile.common     Mon Mar 22 17:46:06 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile.common,v 1.81 2020/01/26 17:32:28 rillig Exp $
+# $NetBSD: Makefile.common,v 1.82 2021/03/22 17:46:06 wiz Exp $
 #
-# used by x11/xlockmore/Makefile
-# used by x11/xlockmore-lite/Makefile
+# used by ../../x11/xlockmore/Makefile
+# used by ../../x11/xlockmore-lite/Makefile
 
 DISTNAME=      xlockmore-5.46
 CATEGORIES=    x11
@@ -11,11 +11,11 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://sillycycle.com/xlockmore.html
 
-DISTINFO_FILE?=                ${.CURDIR}/../xlockmore/distinfo
-PATCHDIR?=             ${.CURDIR}/../xlockmore/patches
-PLIST_SRC?=            ${.CURDIR}/../xlockmore/PLIST
-FILESDIR?=             ${.CURDIR}/../xlockmore/files
-MESSAGE_SRC?=          ${.CURDIR}/../xlockmore/MESSAGE
+DISTINFO_FILE?=                ${.CURDIR}/../../x11/xlockmore/distinfo
+PATCHDIR?=             ${.CURDIR}/../../x11/xlockmore/patches
+PLIST_SRC?=            ${.CURDIR}/../../x11/xlockmore/PLIST
+FILESDIR?=             ${.CURDIR}/../../x11/xlockmore/files
+MESSAGE_SRC?=          ${.CURDIR}/../../x11/xlockmore/MESSAGE
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -51,6 +51,7 @@
 CONFIGURE_ARGS+=       --enable-appdefaultdir=${PREFIX}/lib/X11/app-defaults
 CONFIGURE_ENV+=                ac_cv_x_app_defaults=${PREFIX}/lib/X11/app-defaults/XLock
 
+OWN_DIRS+=             ${PREFIX}/lib/X11/app-defaults
 CONF_FILES+=           ${EGDIR}/app-defaults/XLock ${PREFIX}/lib/X11/app-defaults/XLock
 
 .if ${OPSYS} == "NetBSD"
@@ -75,19 +76,23 @@
 .if !empty(PKG_OPTIONS:Mpam)
 .  include "../../mk/pam.buildlink3.mk"
 CONFIGURE_ARGS+=       --enable-pam --enable-bad-pam
+.  if ${OPSYS} == "NetBSD"
+# needed to read shadow passwords
+DEPENDS+=       pam-pwauth_suid-[0-9]*:../../security/pam-pwauth_suid
+.  endif
 .else
 CONFIGURE_ARGS+=       --disable-pam
-.endif
 
 #
 # Special permissions of bin/xlock if any.
 #
-.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || \
-    ${OPSYS} == "DragonFly" || ${OPSYS} == "SunOS"
+.  if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || \
+      ${OPSYS} == "OpenBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "SunOS"
 SPECIAL_PERMS+=        bin/xlock ${SETUID_ROOT_PERMS}
-.elif ${OPSYS} == "Linux"
+.  elif ${OPSYS} == "Linux"
 # setgid shadow should be enough for modern Linux
 SPECIAL_PERMS+=        bin/xlock ${REAL_ROOT_USER} shadow 2511
+.  endif
 .endif
 
 EGDIR=                 ${PREFIX}/share/examples/xlock
diff -r 70c0e98a788a -r f831be5e3362 x11/xlockmore/PLIST
--- a/x11/xlockmore/PLIST       Mon Mar 22 16:17:32 2021 +0000
+++ b/x11/xlockmore/PLIST       Mon Mar 22 17:46:06 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2012/12/13 14:31:03 is Exp $
+@comment $NetBSD: PLIST,v 1.10 2021/03/22 17:46:06 wiz Exp $
 ${LITE}bin/xglock
 bin/xlock
 lib/X11/xlock/sounds/complete.au
@@ -6,6 +6,6 @@
 lib/X11/xlock/sounds/not-programmed.au
 lib/X11/xlock/sounds/thank-you.au
 man/man1/xlock.1
+share/examples/xlock/app-defaults/XLock
 share/examples/xlock/pam.d/xlock-NetBSD
-share/examples/xlock/app-defaults/XLock
 ${LITE}share/xlock/xglockrc
diff -r 70c0e98a788a -r f831be5e3362 x11/xlockmore/distinfo
--- a/x11/xlockmore/distinfo    Mon Mar 22 16:17:32 2021 +0000
+++ b/x11/xlockmore/distinfo    Mon Mar 22 17:46:06 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.55 2018/02/08 16:03:12 jaapb Exp $
+$NetBSD: distinfo,v 1.56 2021/03/22 17:46:06 wiz Exp $
 
 SHA1 (xlockmore-5.46.tar.xz) = 849ba21a6a82493b0b352d5fbd9212e6d4581752
 RMD160 (xlockmore-5.46.tar.xz) = 978f8119c89c1c954ec5bc5f8cc8d8edea7c8c8e
@@ -8,5 +8,5 @@
 SHA1 (patch-ab) = 918be6904fb2a1b616dfbf7ac3d9759cc39d1608
 SHA1 (patch-ad) = 619c3413ae4bfdb420c77867062670dce336f5d8
 SHA1 (patch-config.cygport) = c120f9b9f9ca6a9ba60f8e46e9c2dd23225079d9
-SHA1 (patch-modes_Makefile.in) = 47236aa529a5324ccd7133da7e25ac96d4b2a60e
-SHA1 (patch-xglock_Makefile.in) = 46a9860c0fac56d6d860adb4ffb0dbff5c79d82c
+SHA1 (patch-modes_Makefile.in) = bb32f1394224f44adbe2c2f4a17e084aa5aa5143
+SHA1 (patch-xglock_Makefile.in) = 697182ddac24cc624b82420c5f6e3d66fd6b0679
diff -r 70c0e98a788a -r f831be5e3362 x11/xlockmore/patches/patch-modes_Makefile.in
--- a/x11/xlockmore/patches/patch-modes_Makefile.in     Mon Mar 22 16:17:32 2021 +0000
+++ b/x11/xlockmore/patches/patch-modes_Makefile.in     Mon Mar 22 17:46:06 2021 +0000
@@ -1,7 +1,8 @@
-$NetBSD: patch-modes_Makefile.in,v 1.1 2018/02/08 16:03:12 jaapb Exp $
+$NetBSD: patch-modes_Makefile.in,v 1.2 2021/03/22 17:46:06 wiz Exp $
 
 Honour LDFLAGS.
 Use INSTALL properly.
+
 --- modes/Makefile.in.orig     2015-02-13 04:24:37.000000000 +0000
 +++ modes/Makefile.in
 @@ -334,7 +334,7 @@ CFLAGS = @CFLAGS@
diff -r 70c0e98a788a -r f831be5e3362 x11/xlockmore/patches/patch-xglock_Makefile.in
--- a/x11/xlockmore/patches/patch-xglock_Makefile.in    Mon Mar 22 16:17:32 2021 +0000
+++ b/x11/xlockmore/patches/patch-xglock_Makefile.in    Mon Mar 22 17:46:06 2021 +0000
@@ -1,7 +1,8 @@
-$NetBSD: patch-xglock_Makefile.in,v 1.1 2018/02/08 16:03:12 jaapb Exp $
+$NetBSD: patch-xglock_Makefile.in,v 1.2 2021/03/22 17:46:06 wiz Exp $
 
 Honour LDFLAGS.
 Use INSTALL properly.
+
 --- xglock/Makefile.in.orig    2010-04-19 13:34:35.000000000 +0000
 +++ xglock/Makefile.in
 @@ -92,7 +92,7 @@ XGLOCKINC = @XGLOCKINC@ -I.. -I$(top_src



Home | Main Index | Thread Index | Old Index