blob: ee959c2e4710dc745a63580b8af8aad4e87dace1 [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"
Andrew Geissler2daf84b2023-03-31 09:57:23 -050010SRCREV = "e92098419c7ad82939e0483bc76df21eff705b80"
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050011SRC_URI += "file://panic_workaround.patch"
12
Patrick Williams8e7b46e2023-05-01 14:19:06 -050013include krill-crates.inc
Patrick Williams213cb262021-08-07 19:21:33 -050014
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
Patrick Williams8e7b46e2023-05-01 14:19:06 -050021inherit pkgconfig useradd systemd cargo cargo-update-recipe-crates
Patrick Williams213cb262021-08-07 19:21:33 -050022
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"