diff options
Diffstat (limited to 'meta-yerba/recipes-support/doas')
| -rw-r--r-- | meta-yerba/recipes-support/doas/doas_6.8.2.bb | 44 | ||||
| -rw-r--r-- | meta-yerba/recipes-support/doas/files/doas.conf | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/meta-yerba/recipes-support/doas/doas_6.8.2.bb b/meta-yerba/recipes-support/doas/doas_6.8.2.bb new file mode 100644 index 0000000..82a1e42 --- /dev/null +++ b/meta-yerba/recipes-support/doas/doas_6.8.2.bb @@ -0,0 +1,44 @@ +SUMMARY = "doas - a minimal replacement for sudo" +DESCRIPTION = "doas is a program originally from OpenBSD that allows users to run commands as other users with a simple configuration." +HOMEPAGE = "https://github.com/Duncaen/OpenDoas" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=04e889a3020fba01897448b98f439baf" + +SRC_URI = "https://github.com/Duncaen/OpenDoas/archive/refs/tags/v6.8.2.tar.gz\ + file://doas.conf" +SRC_URI[sha256sum] = "6da058a0e70b7543bc60624389b0b00b686189ec933828c522bf8b2600495a67" + +S = "${WORKDIR}/OpenDoas-6.8.2" + +DEPENDS = "libbsd bison-native" + +do_configure() { + cd ${S} + export CC="${CC}" + export CFLAGS="${CFLAGS} -I${STAGING_INCDIR}" + export LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" + ./configure --prefix=/usr +} + +do_compile() { + cd ${S} + oe_runmake +} + +do_install() { + install -d ${D}${bindir} ${D}${sysconfdir} + install -m 4755 ${S}/doas ${D}${bindir}/doas + + install -m 0640 ${WORKDIR}/doas.conf ${D}${sysconfdir} +} + +FILES:${PN} = "\ + ${bindir}/doas \ + ${sysconfdir}/doas.conf \ +" + +pkg_postinst:${PN}() { + chmod 4755 $D${bindir}/doas +} + +INSANE_SKIP:${PN} += "ldflags" diff --git a/meta-yerba/recipes-support/doas/files/doas.conf b/meta-yerba/recipes-support/doas/files/doas.conf new file mode 100644 index 0000000..11e9586 --- /dev/null +++ b/meta-yerba/recipes-support/doas/files/doas.conf @@ -0,0 +1 @@ +permit :wheel |
