summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/radvd
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-13 22:49:41 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-15 16:23:17 +0200
commita45830a39bb47a9eab27980d52966226c9504ea4 (patch)
tree001209d9740e8668b2eeeac4212b3561aecebf29 /meta-networking/recipes-daemons/radvd
parent6f48cf899aed0622f8fb26ffa144656a1143c9c5 (diff)
downloadmeta-openembedded-a45830a39bb47a9eab27980d52966226c9504ea4.tar.gz
recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python tasks). * Some recipes were using tabs. * Some were using 8 spaces. * Some were using mix or different number of spaces. * Make them consistently use 4 spaces everywhere. * Yocto styleguide advises to use tabs (but the only reason to keep tabs is the need to update a lot of recipes). Lately this advice was also merged into the styleguide on the OE wiki. * Using 4 spaces in both types of tasks is better because it's less error prone when someone is not sure if e.g. do_generate_toolchain_file() is Python or shell task and also allows to highlight every tab used in .bb, .inc, .bbappend, .bbclass as potentially bad (shouldn't be used for indenting of multiline variable assignments and cannot be used for Python tasks). * Don't indent closing quote on multiline variables we're quite inconsistent wheater it's first character on line under opening quote or under first non-whitespace character in previous line. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-networking/recipes-daemons/radvd')
-rw-r--r--meta-networking/recipes-daemons/radvd/radvd.inc32
-rw-r--r--meta-networking/recipes-daemons/radvd/radvd_1.9.1.bb2
2 files changed, 17 insertions, 17 deletions
diff --git a/meta-networking/recipes-daemons/radvd/radvd.inc b/meta-networking/recipes-daemons/radvd/radvd.inc
index 406127939..89669f7a6 100644
--- a/meta-networking/recipes-daemons/radvd/radvd.inc
+++ b/meta-networking/recipes-daemons/radvd/radvd.inc
@@ -14,21 +14,21 @@ SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \
14inherit autotools update-rc.d useradd 14inherit autotools update-rc.d useradd
15 15
16do_install_append () { 16do_install_append () {
17 install -m 0755 -d ${D}${sysconfdir}/init.d \ 17 install -m 0755 -d ${D}${sysconfdir}/init.d \
18 ${D}${sysconfdir}/default/volatiles \ 18 ${D}${sysconfdir}/default/volatiles \
19 ${D}${docdir}/radvd 19 ${D}${docdir}/radvd
20 # Install init script and volatiles 20 # Install init script and volatiles
21 install -m 0755 ${WORKDIR}/radvd.init ${D}${sysconfdir}/init.d/radvd 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 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 23 sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd
24 sed -i 's!/var/!${localstatedir}/!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 25 sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/radvd
26 26
27 install -m 0644 ${WORKDIR}/volatiles.03_radvd ${D}${sysconfdir}/default/volatiles/volatiles.03_radvd 27 install -m 0644 ${WORKDIR}/volatiles.03_radvd ${D}${sysconfdir}/default/volatiles/volatiles.03_radvd
28 # Documentation 28 # Documentation
29 for i in radvd.conf.example README; do \ 29 for i in radvd.conf.example README; do \
30 install -m 0644 $i ${D}${docdir}/radvd; \ 30 install -m 0644 $i ${D}${docdir}/radvd; \
31 done 31 done
32} 32}
33 33
34INITSCRIPT_NAME = "radvd" 34INITSCRIPT_NAME = "radvd"
@@ -38,5 +38,5 @@ USERADD_PACKAGES = "${PN}"
38USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd" 38USERADD_PARAM_${PN} = "--system --home ${localstatedir}/run/radvd/ -M -g nogroup radvd"
39 39
40pkg_postinst_${PN} () { 40pkg_postinst_${PN} () {
41 ${sysconfdir}/init.d/populate-volatile.sh update 41 ${sysconfdir}/init.d/populate-volatile.sh update
42} 42}
diff --git a/meta-networking/recipes-daemons/radvd/radvd_1.9.1.bb b/meta-networking/recipes-daemons/radvd/radvd_1.9.1.bb
index 37c224b19..0dccdeddd 100644
--- a/meta-networking/recipes-daemons/radvd/radvd_1.9.1.bb
+++ b/meta-networking/recipes-daemons/radvd/radvd_1.9.1.bb
@@ -6,4 +6,4 @@ SRC_URI[md5sum] = "e807ad7e9a76d46b6133df391385cd31"
6SRC_URI[sha256sum] = "54eb5704a2b710ba946fa30d2bca811fa23b1b3bfab322c38cb0c2a9619aa933" 6SRC_URI[sha256sum] = "54eb5704a2b710ba946fa30d2bca811fa23b1b3bfab322c38cb0c2a9619aa933"
7 7
8SRC_URI += "\ 8SRC_URI += "\
9 file://change-scanner-dependency.patch" 9 file://change-scanner-dependency.patch"