diff options
author | Vlad Glagolev | 2021-01-30 03:04:48 +0000 |
---|---|---|
committer | Vlad Glagolev | 2021-01-30 03:04:48 +0000 |
commit | 7f3166e9998f7d222acf8b9a16b6a53452a34976 (patch) | |
tree | decbbc254ae32dbe6b29f20e46772f317d70515c /security | |
parent | 0dadf726fa7a2b53e4df019c78eab0156fe687da (diff) |
opendoas: new spell, portable fork of the OpenBSD doas command
Diffstat (limited to 'security')
-rwxr-xr-x | security/opendoas/BUILD | 3 | ||||
-rwxr-xr-x | security/opendoas/CONFIGURE | 3 | ||||
-rwxr-xr-x | security/opendoas/DEPENDS | 6 | ||||
-rwxr-xr-x | security/opendoas/DETAILS | 17 | ||||
-rw-r--r-- | security/opendoas/HISTORY | 3 | ||||
-rwxr-xr-x | security/opendoas/INSTALL | 4 | ||||
-rwxr-xr-x | security/opendoas/PRE_BUILD | 6 | ||||
-rw-r--r-- | security/opendoas/configs | 1 | ||||
-rw-r--r-- | security/opendoas/doas.example.conf | 5 | ||||
-rw-r--r-- | security/opendoas/opendoas.gpg | bin | 0 -> 4017 bytes |
10 files changed, 48 insertions, 0 deletions
diff --git a/security/opendoas/BUILD b/security/opendoas/BUILD new file mode 100755 index 0000000000..a37a9e9d2b --- /dev/null +++ b/security/opendoas/BUILD @@ -0,0 +1,3 @@ +OPTS="${OPENDOAS_OPTS} ${OPTS}" && + +default_build diff --git a/security/opendoas/CONFIGURE b/security/opendoas/CONFIGURE new file mode 100755 index 0000000000..bd13cb24f5 --- /dev/null +++ b/security/opendoas/CONFIGURE @@ -0,0 +1,3 @@ +config_query_option OPENDOAS_OPTS "Enable timestamp (persist feature) support?" n \ + "--with-timestamp" \ + "--without-timestamp" diff --git a/security/opendoas/DEPENDS b/security/opendoas/DEPENDS new file mode 100755 index 0000000000..e4893bdf10 --- /dev/null +++ b/security/opendoas/DEPENDS @@ -0,0 +1,6 @@ +depends shadow && + +optional_depends linux-pam \ + "--with-pam" \ + "--without-pam" \ + "for PAM support" diff --git a/security/opendoas/DETAILS b/security/opendoas/DETAILS new file mode 100755 index 0000000000..1bbced2b1d --- /dev/null +++ b/security/opendoas/DETAILS @@ -0,0 +1,17 @@ + SPELL=opendoas + VERSION=6.8.1 + SOURCE=${SPELL}-${VERSION}.tar.gz + SOURCE2=${SOURCE}.sig + SOURCE_URL[0]=https://github.com/Duncaen/OpenDoas/releases/download/v${VERSION}/${SOURCE} + SOURCE2_URL[0]=${SOURCE_URL}.sig + SOURCE_GPG=opendoas.gpg:${SOURCE2}:UPSTREAM_KEY +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}" + WEB_SITE=https://github.com/Duncaen/OpenDoas + LICENSE[0]=ISC + ENTERED=20210129 + SHORT="portable fork of the OpenBSD doas command" +cat << EOF +doas is a minimal replacement for the venerable sudo. It was initially written +by Ted Unangst of the OpenBSD project to provide 95% of the features of sudo +with a fraction of the codebase. +EOF diff --git a/security/opendoas/HISTORY b/security/opendoas/HISTORY new file mode 100644 index 0000000000..f0c327d6f8 --- /dev/null +++ b/security/opendoas/HISTORY @@ -0,0 +1,3 @@ +2021-01-29 Vlad Glagolev <stealth@sourcemage.org> + * DEPENDS, DETAILS, {PRE_,}BUILD, CONFIGURE, INSTALL, configs, + opendoas.gpg, doas.example.conf: created spell, version 6.8.1 diff --git a/security/opendoas/INSTALL b/security/opendoas/INSTALL new file mode 100755 index 0000000000..4d3f2f34d2 --- /dev/null +++ b/security/opendoas/INSTALL @@ -0,0 +1,4 @@ +default_install && + +install -vm 0440 -g wheel "${SPELL_DIRECTORY}/doas.example.conf" \ + "${INSTALL_ROOT}/etc/doas.example.conf" diff --git a/security/opendoas/PRE_BUILD b/security/opendoas/PRE_BUILD new file mode 100755 index 0000000000..31895cbf88 --- /dev/null +++ b/security/opendoas/PRE_BUILD @@ -0,0 +1,6 @@ +default_pre_build && +cd "${SOURCE_DIRECTORY}" && + +sedit "/--help|/ a\ --infodir) : ;;" configure && +sedit "/--help|/ a\ --localstatedir) : ;;" configure && +sedit "s:/etc/examples/doas.conf:/etc/doas.example.conf:" doas.conf.5 diff --git a/security/opendoas/configs b/security/opendoas/configs new file mode 100644 index 0000000000..f30dc9508a --- /dev/null +++ b/security/opendoas/configs @@ -0,0 +1 @@ +^/etc/doas.example.conf$ diff --git a/security/opendoas/doas.example.conf b/security/opendoas/doas.example.conf new file mode 100644 index 0000000000..dc8fa2ef44 --- /dev/null +++ b/security/opendoas/doas.example.conf @@ -0,0 +1,5 @@ +# Configuration sample file for doas(1). +# See doas.conf(5) for syntax and examples. + +# Allow wheel by default +permit keepenv :wheel diff --git a/security/opendoas/opendoas.gpg b/security/opendoas/opendoas.gpg Binary files differnew file mode 100644 index 0000000000..3c199276ef --- /dev/null +++ b/security/opendoas/opendoas.gpg |