diff options
Diffstat (limited to 'meta-networking/recipes-daemons/radvd')
-rw-r--r-- | meta-networking/recipes-daemons/radvd/files/0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch | 32 | ||||
-rw-r--r--[-rwxr-xr-x] | meta-networking/recipes-daemons/radvd/files/radvd.init | 0 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/radvd/files/radvd.service | 7 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/radvd/radvd_2.20.bb (renamed from meta-networking/recipes-daemons/radvd/radvd_2.19.bb) | 48 |
4 files changed, 30 insertions, 57 deletions
diff --git a/meta-networking/recipes-daemons/radvd/files/0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch b/meta-networking/recipes-daemons/radvd/files/0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch deleted file mode 100644 index 57338d4713..0000000000 --- a/meta-networking/recipes-daemons/radvd/files/0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 15f439c555289f900eb33111b010bf1266f97edb Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Davies <jpds@protonmail.com> | ||
3 | Date: Thu, 25 Nov 2021 15:29:18 +0000 | ||
4 | Subject: [PATCH] Reverts the include.h change in | ||
5 | 46883f8a1a02fe42040dd8e48aec0ed871545d4d | ||
6 | |||
7 | Closes: #158 | ||
8 | |||
9 | Upstream-Status: Backport [https://github.com/radvd-project/radvd/commit/06689f8c06f44c7e87f7ff1d814428f88375b53f] | ||
10 | Signed-off-by: Jonathan Davies <jpds@protonmail.com> | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | includes.h | 5 ----- | ||
14 | 1 file changed, 5 deletions(-) | ||
15 | |||
16 | diff --git a/includes.h b/includes.h | ||
17 | index ef30b10..c528c86 100644 | ||
18 | --- a/includes.h | ||
19 | +++ b/includes.h | ||
20 | @@ -76,12 +76,7 @@ | ||
21 | #include <sys/sysctl.h> | ||
22 | #endif | ||
23 | |||
24 | -#if !defined(__GLIBC__) && defined(linux) | ||
25 | -#include <linux/if.h> | ||
26 | -#define IF_NAMESIZE IFNAMSIZ | ||
27 | -#else | ||
28 | #include <net/if.h> | ||
29 | -#endif | ||
30 | |||
31 | #ifdef HAVE_NET_IF_DL_H | ||
32 | #include <net/if_dl.h> | ||
diff --git a/meta-networking/recipes-daemons/radvd/files/radvd.init b/meta-networking/recipes-daemons/radvd/files/radvd.init index 8b26317ee6..8b26317ee6 100755..100644 --- a/meta-networking/recipes-daemons/radvd/files/radvd.init +++ b/meta-networking/recipes-daemons/radvd/files/radvd.init | |||
diff --git a/meta-networking/recipes-daemons/radvd/files/radvd.service b/meta-networking/recipes-daemons/radvd/files/radvd.service index e60798a6b3..9230543c48 100644 --- a/meta-networking/recipes-daemons/radvd/files/radvd.service +++ b/meta-networking/recipes-daemons/radvd/files/radvd.service | |||
@@ -4,8 +4,11 @@ After=network.target | |||
4 | ConditionPathExists=@SYSCONFDIR@/radvd.conf | 4 | ConditionPathExists=@SYSCONFDIR@/radvd.conf |
5 | 5 | ||
6 | [Service] | 6 | [Service] |
7 | EnvironmentFile=-@SYSCONFDIR@/default/radvd | 7 | Type=forking |
8 | ExecStart=@SBINDIR@/radvd -n $OPTIONS | 8 | EnvironmentFile=@SYSCONFDIR@/default/radvd |
9 | ExecStart=@SBINDIR@/radvd $OPTIONS | ||
10 | PIDFile=/run/radvd.pid | ||
11 | ExecReload=/bin/kill -HUP $MAINPID | ||
9 | 12 | ||
10 | [Install] | 13 | [Install] |
11 | WantedBy=multi-user.target | 14 | WantedBy=multi-user.target |
diff --git a/meta-networking/recipes-daemons/radvd/radvd_2.19.bb b/meta-networking/recipes-daemons/radvd/radvd_2.20.bb index a8a116cbe5..e2d606823b 100644 --- a/meta-networking/recipes-daemons/radvd/radvd_2.19.bb +++ b/meta-networking/recipes-daemons/radvd/radvd_2.20.bb | |||
@@ -8,7 +8,7 @@ addresses and some other parameters. They also can \ | |||
8 | choose a default router based on these advertisements." | 8 | choose a default router based on these advertisements." |
9 | HOMEPAGE = "http://www.litech.org/radvd/" | 9 | HOMEPAGE = "http://www.litech.org/radvd/" |
10 | SECTION = "net" | 10 | SECTION = "net" |
11 | DEPENDS = "flex-native bison-native libdaemon " | 11 | DEPENDS = "flex-native bison-native libdaemon libbsd" |
12 | 12 | ||
13 | # License is BSD-Style (with advertising clause) but also has an additional 0th clause | 13 | # License is BSD-Style (with advertising clause) but also has an additional 0th clause |
14 | LICENSE = "radvd" | 14 | LICENSE = "radvd" |
@@ -20,9 +20,8 @@ SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \ | |||
20 | file://volatiles.03_radvd \ | 20 | file://volatiles.03_radvd \ |
21 | file://radvd.default \ | 21 | file://radvd.default \ |
22 | file://radvd.conf \ | 22 | file://radvd.conf \ |
23 | file://0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch \ | ||
24 | " | 23 | " |
25 | SRC_URI[sha256sum] = "c36470706fec3a9e6bed394ffea08acaff5dac647848d26b96bb9b9c65d58da0" | 24 | SRC_URI[sha256sum] = "af37c5a81d59f3bdc00d83056606ffa1810d4550beed6caa4f81181246494220" |
26 | 25 | ||
27 | inherit autotools useradd pkgconfig systemd | 26 | inherit autotools useradd pkgconfig systemd |
28 | 27 | ||
@@ -30,34 +29,37 @@ SYSTEMD_SERVICE:${PN} = "radvd.service" | |||
30 | SYSTEMD_AUTO_ENABLE = "disable" | 29 | SYSTEMD_AUTO_ENABLE = "disable" |
31 | 30 | ||
32 | do_install:append () { | 31 | do_install:append () { |
33 | install -m 0755 -d ${D}${sysconfdir}/init.d \ | 32 | install -m 0755 -d ${D}${sysconfdir}/default |
34 | ${D}${sysconfdir}/default/volatiles \ | 33 | install -m 0644 ${UNPACKDIR}/radvd.conf ${D}${sysconfdir}/radvd.conf |
35 | ${D}${docdir}/radvd | 34 | install -m 0644 ${UNPACKDIR}/radvd.default ${D}${sysconfdir}/default/radvd |
36 | # Install init script and volatiles | ||
37 | install -m 0755 ${UNPACKDIR}/radvd.init ${D}${sysconfdir}/init.d/radvd | ||
38 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/radvd | ||
39 | sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd | ||
40 | sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/radvd | ||
41 | sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/radvd | ||
42 | 35 | ||
43 | install -m 0644 ${UNPACKDIR}/volatiles.03_radvd ${D}${sysconfdir}/default/volatiles/03_radvd | 36 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
37 | install -m 0755 -d ${D}${sysconfdir}/init.d \ | ||
38 | ${D}${sysconfdir}/default/volatiles | ||
44 | 39 | ||
45 | # Install systemd service files | 40 | install -m 0755 ${UNPACKDIR}/radvd.init ${D}${sysconfdir}/init.d/radvd |
46 | install -d ${D}${systemd_unitdir}/system | 41 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/radvd |
47 | install -m 0644 ${UNPACKDIR}/radvd.service ${D}${systemd_unitdir}/system | 42 | sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd |
48 | sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' \ | 43 | sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/radvd |
49 | -e 's#@SBINDIR@#${sbindir}#g' \ | 44 | sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/radvd |
50 | -e 's#@BASE_BINDIR@#${base_bindir}#g' ${D}${systemd_unitdir}/system/radvd.service | ||
51 | 45 | ||
52 | # Install default environment file | 46 | install -m 0644 ${UNPACKDIR}/volatiles.03_radvd ${D}${sysconfdir}/default/volatiles/03_radvd |
53 | install -m 0644 ${UNPACKDIR}/radvd.default ${D}${sysconfdir}/default/radvd | 47 | fi |
48 | |||
49 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
50 | install -m 0755 -d ${D}${systemd_unitdir}/system | ||
51 | |||
52 | install -m 0644 ${UNPACKDIR}/radvd.service ${D}${systemd_unitdir}/system | ||
53 | sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' \ | ||
54 | -e 's#@SBINDIR@#${sbindir}#g' \ | ||
55 | ${D}${systemd_unitdir}/system/radvd.service | ||
56 | fi | ||
54 | 57 | ||
55 | # Documentation | 58 | # Documentation |
59 | install -m 0755 -d ${D}${docdir}/radvd | ||
56 | for i in radvd.conf.example README; do \ | 60 | for i in radvd.conf.example README; do \ |
57 | install -m 0644 ${S}/$i ${D}${docdir}/radvd; \ | 61 | install -m 0644 ${S}/$i ${D}${docdir}/radvd; \ |
58 | done | 62 | done |
59 | |||
60 | install -m 0644 ${UNPACKDIR}/radvd.conf ${D}${sysconfdir}/radvd.conf | ||
61 | } | 63 | } |
62 | 64 | ||
63 | USERADD_PACKAGES = "${PN}" | 65 | USERADD_PACKAGES = "${PN}" |