summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/radvd/radvd.inc
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-networking/recipes-daemons/radvd/radvd.inc
downloadmeta-openembedded-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-daemons/radvd/radvd.inc')
-rw-r--r--meta-networking/recipes-daemons/radvd/radvd.inc51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/radvd/radvd.inc b/meta-networking/recipes-daemons/radvd/radvd.inc
new file mode 100644
index 0000000000..9e194012c0
--- /dev/null
+++ b/meta-networking/recipes-daemons/radvd/radvd.inc
@@ -0,0 +1,51 @@
1SUMMARY = "IPv6 router advertisement daemon"
2DESCRIPTION = "radvd is the router advertisement daemon for IPv6. It \
3listens to router solicitations and sends router \
4advertisements as described in RFC 2461, Neighbor \
5Discovery for IP Version 6 (IPv6). With these \
6advertisements hosts can automatically configure their \
7addresses and some other parameters. They also can \
8choose a default router based on these advertisements."
9HOMEPAGE = "http://www.litech.org/radvd/"
10SECTION = "console/network"
11DEPENDS = "flex-native libdaemon"
12
13# License is BSD-Style (with advertising clause) but also has an additional 0th clause
14LICENSE = "radvd"
15LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=73ebbf7182ae996e65e8fadc9a8c45db"
16
17SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \
18 file://radvd.init \
19 file://volatiles.03_radvd"
20
21inherit autotools update-rc.d useradd
22
23do_install_append () {
24 install -m 0755 -d ${D}${sysconfdir}/init.d \
25 ${D}${sysconfdir}/default/volatiles \
26 ${D}${docdir}/radvd
27 # Install init script and volatiles
28 install -m 0755 ${WORKDIR}/radvd.init ${D}${sysconfdir}/init.d/radvd
29 sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/radvd
30 sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd
31 sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/radvd
32 sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/radvd
33
34 install -m 0644 ${WORKDIR}/volatiles.03_radvd ${D}${sysconfdir}/default/volatiles/volatiles.03_radvd
35 # Documentation
36 for i in radvd.conf.example README; do \
37 install -m 0644 $i ${D}${docdir}/radvd; \
38 done
39}
40
41INITSCRIPT_NAME = "radvd"
42INITSCRIPT_PARAMS = "defaults 20 80"
43
44USERADD_PACKAGES = "${PN}"
45USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd"
46
47pkg_postinst_${PN} () {
48 if [ -z "$D" -a -x /etc/init.d/populate-volatile.sh ]; then
49 /etc/init.d/populate-volatile.sh update
50 fi
51}