pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/opendoas



Module Name:    pkgsrc
Committed By:   vins
Date:           Thu Dec 22 09:24:38 UTC 2022

Modified Files:
        pkgsrc/security/opendoas: Makefile
Added Files:
        pkgsrc/security/opendoas: options.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/security/opendoas/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/security/opendoas/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/opendoas/Makefile
diff -u pkgsrc/security/opendoas/Makefile:1.5 pkgsrc/security/opendoas/Makefile:1.6
--- pkgsrc/security/opendoas/Makefile:1.5       Mon Jul  4 08:25:58 2022
+++ pkgsrc/security/opendoas/Makefile   Thu Dec 22 09:24:38 2022
@@ -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+=     --prefix=${PREFIX}
 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

Added files:

Index: pkgsrc/security/opendoas/options.mk
diff -u /dev/null pkgsrc/security/opendoas/options.mk:1.1
--- /dev/null   Thu Dec 22 09:24:38 2022
+++ pkgsrc/security/opendoas/options.mk Thu Dec 22 09:24:38 2022
@@ -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