krill: Add new pkg
PATCH 1/2 krill: Add new pkg
Signed-off-by Armin Kuster <[email protected]>
--- .../krill/files/panic_workaround.patch | 16 + .../recipes-security/krill/krill.inc | 325 ++++++++++++++++++ .../recipes-security/krill/krill_0.9.1.bb | 39 +++ 3 files changed, 380 insertions(+) create mode 100644 dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch create mode 100644 dynamic-layers/meta-rust/recipes-security/krill/krill.inc create mode 100644 dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb
dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch new file +16 -0
@@ -0,0 +1,16 @@ +Upstream-Status: OE specific +Signed-off-by: Armin Kuster <[email protected]> + +Index: git/Cargo.toml +=================================================================== +--- git.orig/Cargo.toml ++++ git/Cargo.toml +@@ -71,7 +71,7 @@ static-openssl = [ "openssl/vendored" ] + # Make sure that Krill crashes on panics, rather than losing threads and + # limping on in a bad state. + [profile.release] +-panic = "abort" ++#panic = "abort" + + [dev-dependencies] + # for user management
dynamic-layers/meta-rust/recipes-security/krill/krill.inc new file +325 -0
325 lines not on this page · raw message
dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb new file +39 -0
@@ -0,0 +1,39 @@ +SUMMARY = "Resource Public Key Infrastructure (RPKI) daemon" +HOMEPAGE = "https://www.nlnetlabs.nl/projects/rpki/krill/" +LICENSE = "MPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3" + +DEPENDS = "openssl" + +include krill.inc + +# SRC_URI += "crate://crates.io/krill/0.9.1" +SRC_URI += "git://github.com/NLnetLabs/krill.git;protocol=https;nobranch=1;branch=main" +SRCREV = "d6c03b6f0199b1d10d252750a19a92b84576eb30" + +SRC_URI += "file://panic_workaround.patch" + +S = "${WORKDIR}/git" +CARGO_SRC_DIR = "" + +inherit pkgconfig useradd systemd cargo + + +do_install_append () { + install -d ${D}${sysconfdir} + install -d ${D}${datadir}/krill + + install -m 664 ${S}/defaults/krill.conf ${D}${sysconfdir}/. + install ${S}/defaults/* ${D}${datadir}/krill/. +} + +KRILL_UID ?= "krill" +KRILL_GID ?= "krill" + +USERADD_PACKAGES = "${PN}" +GROUPADD_PARAM_${PN} = "--system ${KRILL_UID}" +USERADD_PARAM_${PN} = "--system -g ${KRILL_GID} --home-dir \ + /var/lib/krill/ --no-create-home \ + --shell /sbin/nologin ${BPN}" + +FILES_${PN} += "{sysconfdir}/defaults ${datadir}"
Signature · 1 line
2.25.1
PATCH 2/2 clamav: fix branch name and update
They dropped the dev branch for rel. Update to tip. Refresh patches
Signed-off-by Armin Kuster <[email protected]>
--- recipes-scanners/clamav/clamav_0.104.0.bb | 6 +++--- recipes-scanners/clamav/files/fix_systemd_socket.patch | 4 ++-- recipes-scanners/clamav/files/headers_fixup.patch | 8 ++++---- recipes-scanners/clamav/files/oe_cmake_fixup.patch | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-)
recipes-scanners/clamav/clamav_0.104.0.bb +3 -3
@@ -8,10 +8,10 @@ DEPENDS = "glibc llvm libtool db openssl zlib curl libxml2 bison pcre2 json-c li LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=2;endline=3;md5=f7029fbbc5898b273d5902896f7bbe17" -# May 15th -SRCREV = "fe96de86bb90c489aa509ee9135f776b7a2a7eb4" +# July 27th +SRCREV = "c389dfa4c3af92b006ada4f7595bbc3e6df3f356" -SRC_URI = "git://github.com/vrtadmin/clamav-devel;branch=dev/0.104 \ +SRC_URI = "git://github.com/vrtadmin/clamav-devel;branch=rel/0.104 \ file://clamd.conf \ file://freshclam.conf \ file://volatiles.03_clamav \
recipes-scanners/clamav/files/fix_systemd_socket.patch +2 -2
@@ -12,9 +12,9 @@ Index: git/clamd/CMakeLists.txt =================================================================== --- git.orig/clamd/CMakeLists.txt +++ git/clamd/CMakeLists.txt -@@ -54,4 +54,10 @@ if(SYSTEMD_FOUND) +@@ -60,4 +60,10 @@ if(SYSTEMD_FOUND) install( - FILES ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.service + FILES ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.socket DESTINATION ${SYSTEMD_UNIT_DIR}) + configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/clamav-daemon.socket.in
recipes-scanners/clamav/files/headers_fixup.patch +4 -4
@@ -7,7 +7,7 @@ Index: git/CMakeLists.txt =================================================================== --- git.orig/CMakeLists.txt +++ git/CMakeLists.txt -@@ -374,8 +373,6 @@ check_include_file("stdlib.h" +@@ -443,8 +443,6 @@ check_include_file("stdlib.h" check_include_file("string.h" HAVE_STRING_H) check_include_file("strings.h" HAVE_STRINGS_H) check_include_file("sys/cdefs.h" HAVE_SYS_CDEFS_H)
@@ -16,7 +16,7 @@ Index: git/CMakeLists.txt check_include_file("sys/mman.h" HAVE_SYS_MMAN_H) check_include_file("sys/param.h" HAVE_SYS_PARAM_H) check_include_file("sys/queue.h" HAVE_SYS_QUEUE_H) -@@ -410,8 +407,6 @@ endif() +@@ -479,8 +477,6 @@ endif() # int-types variants check_include_file("inttypes.h" HAVE_INTTYPES_H)
@@ -25,7 +25,7 @@ Index: git/CMakeLists.txt check_include_file("stdint.h" HAVE_STDINT_H) # this hack required to silence warnings on systems with inttypes.h -@@ -539,17 +528,11 @@ check_type_size("time_t" SIZEOF_TIME_T) +@@ -608,17 +604,11 @@ check_type_size("time_t" SIZEOF_TIME_T) # Checks for library functions. include(CheckSymbolExists) check_symbol_exists(_Exit "stdlib.h" HAVE__EXIT)
@@ -44,7 +44,7 @@ Index: git/CMakeLists.txt check_symbol_exists(timegm "time.h" HAVE_TIMEGM) check_symbol_exists(vsnprintf "stdio.h" HAVE_VSNPRINTF) -@@ -563,10 +546,9 @@ else() +@@ -632,10 +622,9 @@ else() check_symbol_exists(fseeko "stdio.h" HAVE_FSEEKO) check_symbol_exists(getaddrinfo "netdb.h" HAVE_GETADDRINFO) check_symbol_exists(getpagesize "unistd.h" HAVE_GETPAGESIZE)
recipes-scanners/clamav/files/oe_cmake_fixup.patch +1 -1
@@ -22,7 +22,7 @@ Index: git/CMakeLists.txt if(C_LINUX) if(CMAKE_COMPILER_IS_GNUCXX) # Set _GNU_SOURCE for O_LARGEFILE, O_CLOEXEC, O_DIRECTORY, O_NOFOLLOW, etc flags on older systems -@@ -512,14 +506,8 @@ include(TestInline) +@@ -581,14 +575,8 @@ include(TestInline) include(CheckFileOffsetBits) # Determine how to pack structs on this platform. include(CheckStructPacking)
Signature · 1 line
2.25.1