pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/openpam
Module Name: pkgsrc
Committed By: triaxx
Date: Mon Aug 27 08:59:52 UTC 2018
Modified Files:
pkgsrc/security/openpam: Makefile PLIST
Added Files:
pkgsrc/security/openpam/files: other sudo
Log Message:
openpam: add example configuration files
sudo compiled with -pam and PREFER_PKGSRC=yes now works out of the box
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/security/openpam/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/openpam/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/security/openpam/files/other \
pkgsrc/security/openpam/files/sudo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/openpam/Makefile
diff -u pkgsrc/security/openpam/Makefile:1.28 pkgsrc/security/openpam/Makefile:1.29
--- pkgsrc/security/openpam/Makefile:1.28 Wed Aug 22 09:46:19 2018
+++ pkgsrc/security/openpam/Makefile Mon Aug 27 08:59:52 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2018/08/22 09:46:19 wiz Exp $
+# $NetBSD: Makefile,v 1.29 2018/08/27 08:59:52 triaxx Exp $
DISTNAME= openpam-20170430
PKGREVISION= 1
@@ -20,7 +20,12 @@ CONFIGURE_ARGS+= --with-modules-dir=${PR
CPPFLAGS+= -DSYSCONFDIR=\"${PKG_SYSCONFDIR}\"
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES+= ${EGDIR}/pam.d/other ${PKG_SYSCONFDIR}/pam.d/other
+CONF_FILES+= ${EGDIR}/pam.d/sudo ${PKG_SYSCONFDIR}/pam.d/sudo
+
OWN_DIRS= ${PKG_SYSCONFDIR}/pam.d
+INSTALLATION_DIRS+= ${EGDIR}/pam.d
SUBST_CLASSES+= man
SUBST_MESSAGE.man= Fixing hardcoded paths in manpages.
@@ -28,6 +33,15 @@ SUBST_STAGE.man= post-build
SUBST_FILES.man= doc/man/pam.conf.5
SUBST_VARS.man= PKG_SYSCONFDIR PREFIX
+post-extract:
+ ${MKDIR} -p ${WRKSRC}/doc/pam.d
+ ${CP} ${FILESDIR}/other ${WRKSRC}/doc/pam.d/other
+ ${CP} ${FILESDIR}/sudo ${WRKSRC}/doc/pam.d/sudo
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/pam.d/other ${DESTDIR}${EGDIR}/pam.d/other
+ ${INSTALL_DATA} ${WRKSRC}/doc/pam.d/sudo ${DESTDIR}${EGDIR}/pam.d/sudo
+
.include "../../mk/dlopen.buildlink3.mk"
# Create a fake perl binary to avoid recreating the man pages.
Index: pkgsrc/security/openpam/PLIST
diff -u pkgsrc/security/openpam/PLIST:1.9 pkgsrc/security/openpam/PLIST:1.10
--- pkgsrc/security/openpam/PLIST:1.9 Tue May 15 07:57:32 2018
+++ pkgsrc/security/openpam/PLIST Mon Aug 27 08:59:52 2018
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2018/05/15 07:57:32 triaxx Exp $
+@comment $NetBSD: PLIST,v 1.10 2018/08/27 08:59:52 triaxx Exp $
include/security/openpam.h
include/security/openpam_attr.h
include/security/openpam_version.h
@@ -62,3 +62,5 @@ man/man3/pam_verror.3
man/man3/pam_vinfo.3
man/man3/pam_vprompt.3
man/man5/pam.conf.5
+share/examples/openpam/pam.d/other
+share/examples/openpam/pam.d/sudo
Added files:
Index: pkgsrc/security/openpam/files/other
diff -u /dev/null pkgsrc/security/openpam/files/other:1.1
--- /dev/null Mon Aug 27 08:59:52 2018
+++ pkgsrc/security/openpam/files/other Mon Aug 27 08:59:52 2018
@@ -0,0 +1,16 @@
+# $NetBSD: other,v 1.1 2018/08/27 08:59:52 triaxx Exp $
+#
+# PAM configuration for the "other" service
+#
+
+# auth
+auth required pam_unix.so no_warn try_first_pass nullok
+
+# account
+account required pam_unix.so
+
+# session
+session required pam_permit.so
+
+# password
+password required pam_permit.so
Index: pkgsrc/security/openpam/files/sudo
diff -u /dev/null pkgsrc/security/openpam/files/sudo:1.1
--- /dev/null Mon Aug 27 08:59:52 2018
+++ pkgsrc/security/openpam/files/sudo Mon Aug 27 08:59:52 2018
@@ -0,0 +1,13 @@
+# $NetBSD: sudo,v 1.1 2018/08/27 08:59:52 triaxx Exp $
+#
+# PAM configuration for the "sudo" service
+#
+
+# auth
+auth required pam_unix.so no_warn try_first_pass nullok
+
+# account
+account required pam_unix.so
+
+# session
+session required pam_permit.so
Home |
Main Index |
Thread Index |
Old Index