pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Add checkpassword-suid option, off by default.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7e8585962096
branches:  trunk
changeset: 356957:7e8585962096
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Jan 09 04:01:32 2017 +0000

description:
Add checkpassword-suid option, off by default.

diffstat:

 mk/defaults/options.description     |   1 +
 sysutils/checkpassword-pam/Makefile |   6 +++++-
 sysutils/checkpassword/Makefile     |   4 +++-
 sysutils/checkpassword/options.mk   |  10 ++++++++++
 4 files changed, 19 insertions(+), 2 deletions(-)

diffs (63 lines):

diff -r 78e19593db9f -r 7e8585962096 mk/defaults/options.description
--- a/mk/defaults/options.description   Sun Jan 08 21:48:55 2017 +0000
+++ b/mk/defaults/options.description   Mon Jan 09 04:01:32 2017 +0000
@@ -83,6 +83,7 @@
 cg                     Add support for the Cg compiler.
 cgi                    Enable CGI support.
 chasen                 Use ChaSen as the Japanese Morphological Analzer.
+checkpassword-suid     Install checkpassword executable setuid root.
 cjk                    Enable Chinese/Japanese/Korean support.
 clamav                 Enable ClamAV support.
 clang-static-analyzer  Install the clang static analyzer.
diff -r 78e19593db9f -r 7e8585962096 sysutils/checkpassword-pam/Makefile
--- a/sysutils/checkpassword-pam/Makefile       Sun Jan 08 21:48:55 2017 +0000
+++ b/sysutils/checkpassword-pam/Makefile       Mon Jan 09 04:01:32 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2014/10/09 14:06:57 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2017/01/09 04:01:32 schmonz Exp $
 #
 
 DISTNAME=              checkpassword-pam-0.99
@@ -12,6 +12,10 @@
 USE_PKGLOCALEDIR=      yes
 GNU_CONFIGURE=         yes
 
+CHECKPASSWORD_BIN=     bin/checkpassword-pam
+
+.include "../../sysutils/checkpassword/options.mk"
+
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man8
 
 .include "../../mk/pam.buildlink3.mk"
diff -r 78e19593db9f -r 7e8585962096 sysutils/checkpassword/Makefile
--- a/sysutils/checkpassword/Makefile   Sun Jan 08 21:48:55 2017 +0000
+++ b/sysutils/checkpassword/Makefile   Mon Jan 09 04:01:32 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2014/10/09 14:06:57 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2017/01/09 04:01:32 schmonz Exp $
 #
 
 DISTNAME=              checkpassword-0.90
@@ -11,6 +11,8 @@
 
 DJB_RESTRICTED=                YES
 
+CHECKPASSWORD_BIN=     bin/checkpassword
+
 INSTALLATION_DIRS=     bin
 
 do-install:
diff -r 78e19593db9f -r 7e8585962096 sysutils/checkpassword/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/checkpassword/options.mk Mon Jan 09 04:01:32 2017 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1 2017/01/09 04:01:32 schmonz Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.checkpassword
+PKG_SUPPORTED_OPTIONS+=                checkpassword-suid
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcheckpassword-suid)
+SPECIAL_PERMS+=                        ${CHECKPASSWORD_BIN} ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 4755
+.endif



Home | Main Index | Thread Index | Old Index