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" |
| 10 | SRCREV = "95e6681d5b4024cac7a1892d47fb76abc68f34fb" |
| 11 | SRC_URI += "file://panic_workaround.patch" |
| 12 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 13 | include krill.inc |
| 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 | |
| 21 | inherit pkgconfig useradd systemd cargo |
| 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" |