pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/opendoas security/opendoas: allow optional 'p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d1a92bbc4c6
branches:  trunk
changeset: 390550:7d1a92bbc4c6
user:      vins <vins%pkgsrc.org@localhost>
date:      Thu Dec 22 09:24:38 2022 +0000

description:
security/opendoas: allow optional 'persist' support.

Add optional support for a persist argument to enable time-based
credential caching, modeled after the equivalent OpenBSD's doas
behaviour.
Implemented via timestamp records, in lack of a TIOCCHKVERAUTH ioctl.
Marked upstream as experimental and hereby disabled by default.
Available only on Linux.

diffstat:

 security/opendoas/Makefile   |   8 ++++++--
 security/opendoas/options.mk |  15 +++++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 606882d750a8 -r 7d1a92bbc4c6 security/opendoas/Makefile
--- a/security/opendoas/Makefile        Thu Dec 22 06:27:20 2022 +0000
+++ b/security/opendoas/Makefile        Thu Dec 22 09:24:38 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2022/07/04 08:25:58 pin Exp $
+# $NetBSD: Makefile,v 1.6 2022/12/22 09:24:38 vins Exp $
 
 DISTNAME=      opendoas-6.8.2
 CATEGORIES=    security
@@ -32,8 +32,12 @@
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=       --mandir=${PREFIX}/${PKGMANDIR}
 CONFIGURE_ARGS+=       --datadir=${PREFIX}/${EGDIR}
-.if ${OPSYS} == "Linux" && !exists(/usr/include/security/pam_appl.h)
+
+.if ${OPSYS} == "Linux"
+.include "options.mk"
+.  if !exists(/usr/include/security/pam_appl.h)
 CONFIGURE_ARGS+=       --without-pam
+.  endif
 .endif
 
 USE_TOOLS=     gmake yacc
diff -r 606882d750a8 -r 7d1a92bbc4c6 security/opendoas/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/opendoas/options.mk      Thu Dec 22 09:24:38 2022 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2022/12/22 09:24:38 vins Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.opendoas
+
+PKG_SUPPORTED_OPTIONS+=        persist
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+##
+## Enable credential caching.
+##
+.if !empty(PKG_OPTIONS:Mpersist)
+CONFIGURE_ARGS+=       --with-timestamp
+.endif



Home | Main Index | Thread Index | Old Index