blob: b01de744a4a32584fa0cd640c3bb472941cd2c40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
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"
SRC_URI[sha256sum] = "6da058a0e70b7543bc60624389b0b00b686189ec933828c522bf8b2600495a67"
S = "${WORKDIR}/OpenDoas-6.8.2"
DEPENDS = "libbsd bison-native"
do_compile() {
cd ${S}
export CC="${CC}"
export CFLAGS="${CFLAGS} -I${STAGING_INCDIR}"
export LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}"
./configure --prefix=/usr
oe_runmake
}
do_install() {
install -d ${D}${bindir}
install -m 4755 ${S}/doas ${D}${bindir}/doas
install -d ${D}${sysconfdir}
echo "permit :wheel" > ${D}${sysconfdir}/doas.conf
chmod 0640 ${D}${sysconfdir}/doas.conf
}
FILES:${PN} = "\
${bindir}/doas \
${sysconfdir}/doas.conf \
"
pkg_postinst:${PN}() {
chmod 4755 $D${bindir}/doas
}
INSANE_SKIP:${PN} += "ldflags"
|