diff options
| author | Beniamin Sandu <beniaminsandu@gmail.com> | 2023-09-01 12:04:33 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-09-07 08:22:44 -0700 |
| commit | f5d31863c9d7d2b96b2576a153bf7f356f8886af (patch) | |
| tree | b7e341361c1278a98e0a39979d2729c4124bd87e | |
| parent | 7765d0de763f0eeb31b8d79429f8e5b8b017e2ff (diff) | |
| download | meta-openembedded-f5d31863c9d7d2b96b2576a153bf7f356f8886af.tar.gz | |
unbound: upgrade 1.17.1 -> 1.18.0
Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch | 80 | ||||
| -rw-r--r-- | meta-networking/recipes-support/unbound/unbound_1.18.0.bb (renamed from meta-networking/recipes-support/unbound/unbound_1.17.1.bb) | 8 |
2 files changed, 3 insertions, 85 deletions
diff --git a/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch b/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch deleted file mode 100644 index 7bcf972612..0000000000 --- a/meta-networking/recipes-support/unbound/unbound/0001-contrib-add-yocto-compatible-init-script.patch +++ /dev/null | |||
| @@ -1,80 +0,0 @@ | |||
| 1 | From 26614b6578056ec30b95013592e308bf24d924c2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Beniamin Sandu <beniaminsandu@gmail.com> | ||
| 3 | Date: Fri, 20 Nov 2020 23:00:20 +0200 | ||
| 4 | Subject: [PATCH] contrib: add yocto compatible init script | ||
| 5 | |||
| 6 | Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com> | ||
| 7 | --- | ||
| 8 | Upstream-Status: Pending | ||
| 9 | |||
| 10 | contrib/unbound.init | 20 ++++++++++---------- | ||
| 11 | 1 file changed, 10 insertions(+), 10 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/contrib/unbound.init b/contrib/unbound.init | ||
| 14 | index c5bb52bb..4eba752b 100644 | ||
| 15 | --- a/contrib/unbound.init | ||
| 16 | +++ b/contrib/unbound.init | ||
| 17 | @@ -19,11 +19,11 @@ | ||
| 18 | ### END INIT INFO | ||
| 19 | |||
| 20 | # Source function library. | ||
| 21 | -. /etc/rc.d/init.d/functions | ||
| 22 | +. /etc/init.d/functions | ||
| 23 | |||
| 24 | exec="/usr/sbin/unbound" | ||
| 25 | prog="unbound" | ||
| 26 | -config="/var/unbound/unbound.conf" | ||
| 27 | +config="/etc/unbound/unbound.conf" | ||
| 28 | pidfile="/var/unbound/unbound.pid" | ||
| 29 | rootdir="/var/unbound" | ||
| 30 | |||
| 31 | @@ -54,14 +54,14 @@ start() { | ||
| 32 | [ -e ${rootdir}/dev/log ] || touch ${rootdir}/dev/log | ||
| 33 | mount --bind -n /dev/log ${rootdir}/dev/log >/dev/null 2>&1; | ||
| 34 | fi; | ||
| 35 | - if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/urandom' /proc/mounts; then | ||
| 36 | + if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then | ||
| 37 | [ -d ${rootdir}/dev ] || mkdir -p ${rootdir}/dev ; | ||
| 38 | - [ -e ${rootdir}/dev/urandom ] || touch ${rootdir}/dev/urandom | ||
| 39 | - mount --bind -n /dev/urandom ${rootdir}/dev/urandom >/dev/null 2>&1; | ||
| 40 | + [ -e ${rootdir}/dev/random ] || touch ${rootdir}/dev/random | ||
| 41 | + mount --bind -n /dev/random ${rootdir}/dev/random >/dev/null 2>&1; | ||
| 42 | fi; | ||
| 43 | |||
| 44 | # if not running, start it up here | ||
| 45 | - daemon $exec | ||
| 46 | + daemonize $exec | ||
| 47 | retval=$? | ||
| 48 | echo | ||
| 49 | [ $retval -eq 0 ] && touch $lockfile | ||
| 50 | @@ -71,15 +71,15 @@ start() { | ||
| 51 | stop() { | ||
| 52 | echo -n $"Stopping $prog: " | ||
| 53 | # stop it here, often "killproc $prog" | ||
| 54 | - killproc -p $pidfile $prog | ||
| 55 | + killproc $prog | ||
| 56 | retval=$? | ||
| 57 | echo | ||
| 58 | [ $retval -eq 0 ] && rm -f $lockfile | ||
| 59 | if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/log' /proc/mounts; then | ||
| 60 | umount ${rootdir}/dev/log >/dev/null 2>&1 | ||
| 61 | fi; | ||
| 62 | - if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/urandom' /proc/mounts; then | ||
| 63 | - umount ${rootdir}/dev/urandom >/dev/null 2>&1 | ||
| 64 | + if egrep -q '^/[^[:space:]]+[[:space:]]+'${rootdir}'/dev/random' /proc/mounts; then | ||
| 65 | + umount ${rootdir}/dev/random >/dev/null 2>&1 | ||
| 66 | fi; | ||
| 67 | return $retval | ||
| 68 | } | ||
| 69 | @@ -99,7 +99,7 @@ force_reload() { | ||
| 70 | |||
| 71 | rh_status() { | ||
| 72 | # run checks to determine if the service is running or use generic status | ||
| 73 | - status -p $pidfile $prog | ||
| 74 | + status $prog | ||
| 75 | } | ||
| 76 | |||
| 77 | rh_status_q() { | ||
| 78 | -- | ||
| 79 | 2.25.1 | ||
| 80 | |||
diff --git a/meta-networking/recipes-support/unbound/unbound_1.17.1.bb b/meta-networking/recipes-support/unbound/unbound_1.18.0.bb index ff3d879ea9..179af8050a 100644 --- a/meta-networking/recipes-support/unbound/unbound_1.17.1.bb +++ b/meta-networking/recipes-support/unbound/unbound_1.18.0.bb | |||
| @@ -9,10 +9,8 @@ SECTION = "net" | |||
| 9 | LICENSE = "BSD-3-Clause" | 9 | LICENSE = "BSD-3-Clause" |
| 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06" | 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06" |
| 11 | 11 | ||
| 12 | SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master \ | 12 | SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master" |
| 13 | file://0001-contrib-add-yocto-compatible-init-script.patch \ | 13 | SRCREV = "3795e374107ac7a5a977c516e144a3cd9b0da998" |
| 14 | " | ||
| 15 | SRCREV = "90831af981221bbce1cd7b15055562336760e484" | ||
| 16 | 14 | ||
| 17 | inherit autotools pkgconfig systemd update-rc.d | 15 | inherit autotools pkgconfig systemd update-rc.d |
| 18 | 16 | ||
| @@ -39,7 +37,7 @@ do_install:append() { | |||
| 39 | install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system | 37 | install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system |
| 40 | 38 | ||
| 41 | install -d ${D}${sysconfdir}/init.d | 39 | install -d ${D}${sysconfdir}/init.d |
| 42 | install -m 0755 ${S}/contrib/unbound.init ${D}${sysconfdir}/init.d/unbound | 40 | install -m 0755 ${S}/contrib/unbound.init_yocto ${D}${sysconfdir}/init.d/unbound |
| 43 | } | 41 | } |
| 44 | 42 | ||
| 45 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" | 43 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" |
