Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 1 | SUMMARY = "Resource Public Key Infrastructure (RPKI) daemon" |
| 2 | HOMEPAGE = "https://www.nlnetlabs.nl/projects/rpki/krill/" |
| 3 | LICENSE = "MPL-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3" |
| 5 | |
| 6 | DEPENDS = "openssl" |
| 7 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 8 | # SRC_URI += "crate://crates.io/krill/0.9.1" |
| 9 | SRC_URI = "git://github.com/NLnetLabs/krill.git;protocol=https;branch=main" |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 10 | SRCREV = "e92098419c7ad82939e0483bc76df21eff705b80" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 11 | SRC_URI += "file://panic_workaround.patch" |
| 12 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 13 | include krill-crates.inc |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 14 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 15 | UPSTREAM_CHECK_URI = "https://github.com/NLnetLabs/${BPN}/releases" |
| 16 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | CARGO_SRC_DIR = "" |
| 20 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 21 | inherit pkgconfig useradd systemd cargo cargo-update-recipe-crates |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 23 | do_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 | |
| 31 | KRILL_UID ?= "krill" |
| 32 | KRILL_GID ?= "krill" |
| 33 | |
| 34 | USERADD_PACKAGES = "${PN}" |
| 35 | GROUPADD_PARAM:${PN} = "--system ${KRILL_UID}" |
| 36 | USERADD_PARAM:${PN} = "--system -g ${KRILL_GID} --home-dir \ |
| 37 | /var/lib/krill/ --no-create-home \ |
| 38 | --shell /sbin/nologin ${BPN}" |
| 39 | |
| 40 | FILES:${PN} += "{sysconfdir}/defaults ${datadir}" |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 41 | |
| 42 | COMPATIBLE_HOST = "(i.86|x86_64|aarch64).*-linux" |