diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-11-27 11:25:49 +0000 |
|---|---|---|
| committer | Joe MacDonald <joe.macdonald@windriver.com> | 2012-11-27 14:43:58 -0500 |
| commit | 85c1a1a45409ffa064b5da8c8b00e7a5f7d67b83 (patch) | |
| tree | 41122208e17e86c6364e7c776d1b8296e5f3588f /meta-networking/recipes-daemons/radvd/radvd.inc | |
| parent | e762ce3fc044cc64f473c95e096245e439eb3234 (diff) | |
| download | meta-openembedded-85c1a1a45409ffa064b5da8c8b00e7a5f7d67b83.tar.gz | |
radvd: add from OE-Classic, update and tidy up
* Update to 1.9.1
* Add libdaemon to DEPENDS as needed by 1.9+
* Remove empty config file (not really of much use and there's an
example config in the -doc package anyway)
* Use useradd.bbclass to create user
* Handle hardcoded paths in initscript
* Add LSB headers to initscript (borrowed from openSUSE)
* Set custom LICENSE as it's BSD-Style but not actually one of the
standard BSD variants
* Add LIC_FILES_CHKSUM
* Set SUMMARY (which sets DESCRIPTION)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta-networking/recipes-daemons/radvd/radvd.inc')
| -rw-r--r-- | meta-networking/recipes-daemons/radvd/radvd.inc | 42 |
1 files changed, 42 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..4061279393 --- /dev/null +++ b/meta-networking/recipes-daemons/radvd/radvd.inc | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | SUMMARY = "IPv6 router advertisement daemon" | ||
| 2 | HOMEPAGE = "http://www.litech.org/radvd/" | ||
| 3 | SECTION = "console/network" | ||
| 4 | DEPENDS = "flex-native libdaemon" | ||
| 5 | |||
| 6 | # License is BSD-Style (with advertising clause) but also has an additional 0th clause | ||
| 7 | LICENSE = "radvd" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=73ebbf7182ae996e65e8fadc9a8c45db" | ||
| 9 | |||
| 10 | SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \ | ||
| 11 | file://radvd.init \ | ||
| 12 | file://volatiles.03_radvd" | ||
| 13 | |||
| 14 | inherit autotools update-rc.d useradd | ||
| 15 | |||
| 16 | do_install_append () { | ||
| 17 | install -m 0755 -d ${D}${sysconfdir}/init.d \ | ||
| 18 | ${D}${sysconfdir}/default/volatiles \ | ||
| 19 | ${D}${docdir}/radvd | ||
| 20 | # Install init script and volatiles | ||
| 21 | install -m 0755 ${WORKDIR}/radvd.init ${D}${sysconfdir}/init.d/radvd | ||
| 22 | sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/radvd | ||
| 23 | sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd | ||
| 24 | sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/radvd | ||
| 25 | sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/radvd | ||
| 26 | |||
| 27 | install -m 0644 ${WORKDIR}/volatiles.03_radvd ${D}${sysconfdir}/default/volatiles/volatiles.03_radvd | ||
| 28 | # Documentation | ||
| 29 | for i in radvd.conf.example README; do \ | ||
| 30 | install -m 0644 $i ${D}${docdir}/radvd; \ | ||
| 31 | done | ||
| 32 | } | ||
| 33 | |||
| 34 | INITSCRIPT_NAME = "radvd" | ||
| 35 | INITSCRIPT_PARAMS = "defaults 20 80" | ||
| 36 | |||
| 37 | USERADD_PACKAGES = "${PN}" | ||
| 38 | USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd" | ||
| 39 | |||
| 40 | pkg_postinst_${PN} () { | ||
| 41 | ${sysconfdir}/init.d/populate-volatile.sh update | ||
| 42 | } | ||
