Add opendoas

This commit is contained in:
fosslinux 2024-01-27 11:18:32 +11:00
parent 75772adb91
commit 2188e8182a
7 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1 @@
permit nopass :wheel

View file

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 fosslinux <fosslinux@aussies.space>
SPDX-License-Identifier: GPL-3.0-or-later

View file

@ -0,0 +1,20 @@
# SPDX-FileCopyrightText: 2024 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_configure() {
./configure --prefix="${PREFIX}" \
--without-pam
}
src_compile() {
make -f GNUmakefile "${MAKEJOBS}" PREFIX="${PREFIX}"
}
src_install() {
make -f GNUmakefile install PREFIX="${PREFIX}" DESTDIR="${DESTDIR}"
ln -s doas "${DESTDIR}${PREFIX}/bin/sudo"
install -D -m 400 ../../files/doas.conf "${DESTDIR}/etc/doas.conf"
}

View file

@ -0,0 +1 @@
https://github.com/Duncaen/OpenDoas/releases/download/v6.8.2/opendoas-6.8.2.tar.xz 4e98828056d6266bd8f2c93e6ecf12a63a71dbfd70a5ea99ccd4ab6d0745adf0