summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2021-05-03 23:31:40 +0000
committergutteridge <gutteridge@pkgsrc.org>2021-05-03 23:31:40 +0000
commit6472d3d766e03b404e43ec701292446a8430bbdd (patch)
treebda0b79aa8e1c95f2e9ca9b6432813f775cd8dbf /x11
parent5992c20f6f8403cd2962b69d1794610fde1a7ae8 (diff)
downloadpkgsrc-6472d3d766e03b404e43ec701292446a8430bbdd.tar.gz
xscreensaver: adjust some documentation
Move the existing MESSAGE content to README.pkgsrc, as much of it pertains to a non-default option that most users don't need to consider, and otherwise is not a call to action for a user to do anything. While here, restructure it a bit. Also remove the sample NetBSD PAM configration file here, as the security/pam-pwauth_suid package provides its own (slightly newer) version of the same, and has its own MESSAGE that references its version and its distinct installation location (and is a call to action that users very much need to know about, as otherwise they'll end up with an X session they can't unlock). There's no point possibly confusing people with different example files. This addresses PR pkg/50622.
Diffstat (limited to 'x11')
-rw-r--r--x11/xscreensaver/MESSAGE17
-rw-r--r--x11/xscreensaver/Makefile12
-rw-r--r--x11/xscreensaver/PLIST4
-rw-r--r--x11/xscreensaver/files/README.pkgsrc15
-rw-r--r--x11/xscreensaver/files/pam-xscreensaver-NetBSD17
5 files changed, 21 insertions, 44 deletions
diff --git a/x11/xscreensaver/MESSAGE b/x11/xscreensaver/MESSAGE
deleted file mode 100644
index 7b20edc31ad..00000000000
--- a/x11/xscreensaver/MESSAGE
+++ /dev/null
@@ -1,17 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.2 2008/04/08 09:36:23 gson Exp $
-
-If xscreensaver is built with the "pam" option:
-In order to make unlocking work , you need to add an
-xscreensaver file to your pam configuration directory (usually
-/etc/pam.d). You can find a sample file in:
- ${EGDIR}/pam.d/xscreensaver-NetBSD
-On NetBSD, the "pam_pwauth_suid.so" module can be used to authenticate
-against a shadow password database. Note that use of this module might
-allow programs with your privileges to get a copy of your plaintext
-password as typed in for unlocking.
-Alternatively, you might set the
- ${PREFIX}/bin/xscreensaver
-executable setuid root. Since this is a relatively complex program,
-there is the risk of other exploits.
-===========================================================================
diff --git a/x11/xscreensaver/Makefile b/x11/xscreensaver/Makefile
index f2c82acddd1..c5ea7341ea4 100644
--- a/x11/xscreensaver/Makefile
+++ b/x11/xscreensaver/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.128 2021/04/21 11:40:53 adam Exp $
+# $NetBSD: Makefile,v 1.129 2021/05/03 23:31:40 gutteridge Exp $
COMMENT= Screen saver and locker for the X window system
-PKGREVISION= 1
+PKGREVISION= 2
CONFLICTS+= xscreensaver-gnome<4.14
@@ -13,14 +13,10 @@ CONFIGURE_ARGS+= --without-gtk
#CONFIGURE_ARGS+= --with-xml=${BUILDLINK_PREFIX.libxml2}
CONFIGURE_ARGS+= --with-configdir=${PREFIX}/libexec/xscreensaver/config
-EGDIR= ${PREFIX}/share/examples/xscreensaver
-MESSAGE_SUBST+= EGDIR=${EGDIR:Q}
-
-INSTALLATION_DIRS= ${EGDIR}/pam.d
+INSTALLATION_DIRS= share/doc/${PKGBASE}
post-install:
- ${INSTALL_DATA} ${FILESDIR}/pam-xscreensaver-NetBSD \
- ${DESTDIR}${EGDIR}/pam.d/xscreensaver-NetBSD
+ ${INSTALL_DATA} ${FILESDIR}/README.pkgsrc ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXScrnSaver/buildlink3.mk"
diff --git a/x11/xscreensaver/PLIST b/x11/xscreensaver/PLIST
index ad22f1da171..8572f505193 100644
--- a/x11/xscreensaver/PLIST
+++ b/x11/xscreensaver/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.51 2020/04/05 17:30:36 gutteridge Exp $
+@comment $NetBSD: PLIST,v 1.52 2021/05/03 23:31:40 gutteridge Exp $
bin/xscreensaver
bin/xscreensaver-command
bin/xscreensaver-getimage
@@ -374,7 +374,7 @@ man/man6/xmatrix.6
man/man6/xrayswarm.6
man/man6/xspirograph.6
man/man6/zoom.6
-share/examples/xscreensaver/pam.d/xscreensaver-NetBSD
+share/doc/xscreensaver/README.pkgsrc
share/locale/da/LC_MESSAGES/xscreensaver.mo
share/locale/de/LC_MESSAGES/xscreensaver.mo
share/locale/es/LC_MESSAGES/xscreensaver.mo
diff --git a/x11/xscreensaver/files/README.pkgsrc b/x11/xscreensaver/files/README.pkgsrc
new file mode 100644
index 00000000000..83c52a0d465
--- /dev/null
+++ b/x11/xscreensaver/files/README.pkgsrc
@@ -0,0 +1,15 @@
+$NetBSD: README.pkgsrc,v 1.1 2021/05/03 23:31:40 gutteridge Exp $
+
+If xscreensaver is built with the non-default "pam" option, on NetBSD, the
+"pam_pwauth_suid.so" module will be used to authenticate against a shadow
+password database. Note that use of this module might allow programs with
+your privileges to get a copy of your plaintext password as typed in for
+unlocking. In order to make unlocking work, you need to add an xscreensaver
+file to your PAM configuration directory (usually /etc/pam.d). On NetBSD,
+you can find a sample pam.d file for xscreensaver in:
+ ${PREFIX}/share/examples/pam-pwauth_suid
+
+By default (if the "pam" option isn't set), pkgsrc will set the
+ ${PREFIX}/bin/xscreensaver
+executable setuid root. Since this is a relatively complex program,
+there is the risk of other exploits.
diff --git a/x11/xscreensaver/files/pam-xscreensaver-NetBSD b/x11/xscreensaver/files/pam-xscreensaver-NetBSD
deleted file mode 100644
index d8be609ee46..00000000000
--- a/x11/xscreensaver/files/pam-xscreensaver-NetBSD
+++ /dev/null
@@ -1,17 +0,0 @@
-# $NetBSD: pam-xscreensaver-NetBSD,v 1.1 2007/01/08 21:45:10 drochner Exp $
-#
-# PAM configuration for the "xscreensaver" service
-#
-
-# auth
-auth sufficient pam_pwauth_suid.so
-auth include system
-
-# account
-account include system
-
-# session
-session include system
-
-# password
-password include system