blob: fd86c4bbb480534ff34a110311a1cb86884584b3 [file] [log] [blame]
Patrick Williams213cb262021-08-07 19:21:33 -05001SUMMARY = "Resource Public Key Infrastructure (RPKI) daemon"
2HOMEPAGE = "https://www.nlnetlabs.nl/projects/rpki/krill/"
3LICENSE = "MPL-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
5
6DEPENDS = "openssl"
7
Patrick Williamsdb4c27e2022-08-05 08:10:29 -05008# SRC_URI += "crate://crates.io/krill/0.9.1"
9SRC_URI = "git://github.com/NLnetLabs/krill.git;protocol=https;branch=main"
10SRCREV = "95e6681d5b4024cac7a1892d47fb76abc68f34fb"
11SRC_URI += "file://panic_workaround.patch"
12
Patrick Williams213cb262021-08-07 19:21:33 -050013include krill.inc
14
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050015UPSTREAM_CHECK_URI = "https://github.com/NLnetLabs/${BPN}/releases"
16UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
Patrick Williams213cb262021-08-07 19:21:33 -050017
18S = "${WORKDIR}/git"
19CARGO_SRC_DIR = ""
20
21inherit pkgconfig useradd systemd cargo
22
Patrick Williams213cb262021-08-07 19:21:33 -050023do_install:append () {
24 install -d ${D}${sysconfdir}
25 install -d ${D}${datadir}/krill
26
27 install -m 664 ${S}/defaults/krill.conf ${D}${sysconfdir}/.
28 install ${S}/defaults/* ${D}${datadir}/krill/.
29}
30
31KRILL_UID ?= "krill"
32KRILL_GID ?= "krill"
33
34USERADD_PACKAGES = "${PN}"
35GROUPADD_PARAM:${PN} = "--system ${KRILL_UID}"
36USERADD_PARAM:${PN} = "--system -g ${KRILL_GID} --home-dir \
37 /var/lib/krill/ --no-create-home \
38 --shell /sbin/nologin ${BPN}"
39
40FILES:${PN} += "{sysconfdir}/defaults ${datadir}"
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050041
42COMPATIBLE_HOST = "(i.86|x86_64|aarch64).*-linux"