diff options
Diffstat (limited to 'meta')
15 files changed, 22 insertions, 22 deletions
diff --git a/meta/recipes-bsp/hostap/hostap-conf_1.0.bb b/meta/recipes-bsp/hostap/hostap-conf_1.0.bb index fa29470485..de72b769a9 100644 --- a/meta/recipes-bsp/hostap/hostap-conf_1.0.bb +++ b/meta/recipes-bsp/hostap/hostap-conf_1.0.bb | |||
@@ -19,13 +19,13 @@ do_install() { | |||
19 | install -m 0644 ${WORKDIR}/hostap_cs.modalias ${D}${sysconfdir}/modutils/hostap_cs.conf | 19 | install -m 0644 ${WORKDIR}/hostap_cs.modalias ${D}${sysconfdir}/modutils/hostap_cs.conf |
20 | } | 20 | } |
21 | 21 | ||
22 | pkg_postinst () { | 22 | pkg_postinst_${PN} () { |
23 | if [ -n "$D" ]; then | 23 | if [ -n "$D" ]; then |
24 | exit 1 | 24 | exit 1 |
25 | fi | 25 | fi |
26 | update-modules || true | 26 | update-modules || true |
27 | } | 27 | } |
28 | 28 | ||
29 | pkg_postrm () { | 29 | pkg_postrm_${PN} () { |
30 | update-modules || true | 30 | update-modules || true |
31 | } | 31 | } |
diff --git a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb index 6d08084b19..4cefdb7966 100644 --- a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb +++ b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb | |||
@@ -28,13 +28,13 @@ do_install() { | |||
28 | install -m 0755 src/lrz src/lsz ${D}${bindir}/ | 28 | install -m 0755 src/lrz src/lsz ${D}${bindir}/ |
29 | } | 29 | } |
30 | 30 | ||
31 | pkg_postinst() { | 31 | pkg_postinst_${PN}() { |
32 | for util in rz rx rb sz sx sb; do | 32 | for util in rz rx rb sz sx sb; do |
33 | update-alternatives --install ${bindir}/$util $util lrz 100 | 33 | update-alternatives --install ${bindir}/$util $util lrz 100 |
34 | done | 34 | done |
35 | } | 35 | } |
36 | 36 | ||
37 | pkg_postrm() { | 37 | pkg_postrm_${PN}() { |
38 | for util in rz rx rb sz sx sb; do | 38 | for util in rz rx rb sz sx sb; do |
39 | update-alternatives --remove $util ${bindir}/lrz | 39 | update-alternatives --remove $util ${bindir}/lrz |
40 | done | 40 | done |
diff --git a/meta/recipes-bsp/orinoco/orinoco-conf_1.0.bb b/meta/recipes-bsp/orinoco/orinoco-conf_1.0.bb index a24d004adb..1c25e02dcc 100644 --- a/meta/recipes-bsp/orinoco/orinoco-conf_1.0.bb +++ b/meta/recipes-bsp/orinoco/orinoco-conf_1.0.bb | |||
@@ -15,13 +15,13 @@ do_install() { | |||
15 | install -m 0644 ${WORKDIR}/orinoco_cs.conf ${D}${sysconfdir}/modutils/ | 15 | install -m 0644 ${WORKDIR}/orinoco_cs.conf ${D}${sysconfdir}/modutils/ |
16 | } | 16 | } |
17 | 17 | ||
18 | pkg_postinst () { | 18 | pkg_postinst_${PN} () { |
19 | if [ -n "$D" ]; then | 19 | if [ -n "$D" ]; then |
20 | exit 1 | 20 | exit 1 |
21 | fi | 21 | fi |
22 | update-modules || true | 22 | update-modules || true |
23 | } | 23 | } |
24 | 24 | ||
25 | pkg_postrm () { | 25 | pkg_postrm_${PN} () { |
26 | update-modules || true | 26 | update-modules || true |
27 | } | 27 | } |
diff --git a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb index 4c94d2aeaf..b04b20abee 100644 --- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb +++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | |||
@@ -25,14 +25,14 @@ DEBIANNAME_${PN} = "libnss-mdns" | |||
25 | EXTRA_OECONF = "--libdir=/lib --disable-lynx --enable-avahi" | 25 | EXTRA_OECONF = "--libdir=/lib --disable-lynx --enable-avahi" |
26 | 26 | ||
27 | # TODO: pattern based configuration update | 27 | # TODO: pattern based configuration update |
28 | pkg_postinst () { | 28 | pkg_postinst_${PN} () { |
29 | cat /etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && { | 29 | cat /etc/nsswitch.conf | grep "hosts:\s*files dns$" > /dev/null && { |
30 | cat /etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns4/' > /tmp/nsswitch.conf | 30 | cat /etc/nsswitch.conf | sed 's/hosts:\s*files dns/& mdns4/' > /tmp/nsswitch.conf |
31 | mv /tmp/nsswitch.conf /etc/nsswitch.conf | 31 | mv /tmp/nsswitch.conf /etc/nsswitch.conf |
32 | } | 32 | } |
33 | } | 33 | } |
34 | 34 | ||
35 | pkg_prerm () { | 35 | pkg_prerm_${PN} () { |
36 | cat /etc/nsswitch.conf | grep "hosts:\s*files dns mdns4$" > /dev/null && { | 36 | cat /etc/nsswitch.conf | grep "hosts:\s*files dns mdns4$" > /dev/null && { |
37 | cat /etc/nsswitch.conf | sed 's/\(hosts:\s*files dns\) mdns4*/\1/' > /tmp/nsswitch.conf | 37 | cat /etc/nsswitch.conf | sed 's/\(hosts:\s*files dns\) mdns4*/\1/' > /tmp/nsswitch.conf |
38 | mv /tmp/nsswitch.conf /etc/nsswitch.conf | 38 | mv /tmp/nsswitch.conf /etc/nsswitch.conf |
diff --git a/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb b/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb index aa3684a440..f57597d80c 100644 --- a/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb +++ b/meta/recipes-connectivity/ppp-dialin/ppp-dialin_0.1.bb | |||
@@ -20,7 +20,7 @@ do_install() { | |||
20 | 20 | ||
21 | PACKAGE_ARCH = "all" | 21 | PACKAGE_ARCH = "all" |
22 | 22 | ||
23 | pkg_postinst() { | 23 | pkg_postinst_${PN} () { |
24 | if test "x$D" != "x"; then | 24 | if test "x$D" != "x"; then |
25 | exit 1 | 25 | exit 1 |
26 | else | 26 | else |
@@ -28,7 +28,7 @@ else | |||
28 | fi | 28 | fi |
29 | } | 29 | } |
30 | 30 | ||
31 | pkg_postrm() { | 31 | pkg_postrm_${PN} () { |
32 | if test "x$D" != "x"; then | 32 | if test "x$D" != "x"; then |
33 | exit 1 | 33 | exit 1 |
34 | else | 34 | else |
diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb index b8263671de..aed84914bf 100644 --- a/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb +++ b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb | |||
@@ -40,7 +40,7 @@ do_install_append_openmn() { | |||
40 | } | 40 | } |
41 | 41 | ||
42 | 42 | ||
43 | pkg_postinst () { | 43 | pkg_postinst_${PN} () { |
44 | set -e | 44 | set -e |
45 | 45 | ||
46 | if [ ! -e $D${sysconfdir}/passwd ] ; then | 46 | if [ ! -e $D${sysconfdir}/passwd ] ; then |
diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc index dd2f0c5b53..ab7719c469 100644 --- a/meta/recipes-core/dropbear/dropbear.inc +++ b/meta/recipes-core/dropbear/dropbear.inc | |||
@@ -63,12 +63,12 @@ do_install() { | |||
63 | chmod 755 ${D}${sysconfdir}/init.d/dropbear | 63 | chmod 755 ${D}${sysconfdir}/init.d/dropbear |
64 | } | 64 | } |
65 | 65 | ||
66 | pkg_postinst () { | 66 | pkg_postinst_${PN} () { |
67 | update-alternatives --install ${bindir}/scp scp ${sbindir}/dropbearmulti 20 | 67 | update-alternatives --install ${bindir}/scp scp ${sbindir}/dropbearmulti 20 |
68 | update-alternatives --install ${bindir}/ssh ssh ${sbindir}/dropbearmulti 20 | 68 | update-alternatives --install ${bindir}/ssh ssh ${sbindir}/dropbearmulti 20 |
69 | } | 69 | } |
70 | 70 | ||
71 | pkg_postrm_append () { | 71 | pkg_postrm_append_${PN} () { |
72 | if [ -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then | 72 | if [ -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then |
73 | rm ${sysconfdir}/dropbear/dropbear_rsa_host_key | 73 | rm ${sysconfdir}/dropbear/dropbear_rsa_host_key |
74 | fi | 74 | fi |
diff --git a/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb b/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb index 92014a80ee..63e0acdba7 100644 --- a/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb +++ b/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb | |||
@@ -31,7 +31,7 @@ do_compile_append() { | |||
31 | 31 | ||
32 | FILES_sgml-common_append = " ${datadir}/sgml" | 32 | FILES_sgml-common_append = " ${datadir}/sgml" |
33 | 33 | ||
34 | pkg_postinst() { | 34 | pkg_postinst_${PN}() { |
35 | install-catalog \ | 35 | install-catalog \ |
36 | --add ${sysconfdir}/sgml/sgml-ent.cat \ | 36 | --add ${sysconfdir}/sgml/sgml-ent.cat \ |
37 | ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog | 37 | ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog |
@@ -41,7 +41,7 @@ pkg_postinst() { | |||
41 | ${sysconfdir}/sgml/sgml-ent.cat | 41 | ${sysconfdir}/sgml/sgml-ent.cat |
42 | } | 42 | } |
43 | 43 | ||
44 | pkg_postrm() { | 44 | pkg_postrm_${PN}() { |
45 | install-catalog \ | 45 | install-catalog \ |
46 | --remove ${sysconfdir}/sgml/sgml-ent.cat \ | 46 | --remove ${sysconfdir}/sgml/sgml-ent.cat \ |
47 | ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog | 47 | ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog |
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc index a87b87ff4b..ecbd75dadd 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc | |||
@@ -27,7 +27,7 @@ do_configure () { | |||
27 | oe_runconf | 27 | oe_runconf |
28 | } | 28 | } |
29 | 29 | ||
30 | pkg_postinst () { | 30 | pkg_postinst_${PN} () { |
31 | touch $D${sysconfdir}/shells | 31 | touch $D${sysconfdir}/shells |
32 | grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells | 32 | grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells |
33 | grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells | 33 | grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells |
diff --git a/meta/recipes-extended/bash/bash_3.2.48.bb b/meta/recipes-extended/bash/bash_3.2.48.bb index e5a3e3643d..0912ad6aa8 100644 --- a/meta/recipes-extended/bash/bash_3.2.48.bb +++ b/meta/recipes-extended/bash/bash_3.2.48.bb | |||
@@ -28,7 +28,7 @@ do_configure () { | |||
28 | oe_runconf | 28 | oe_runconf |
29 | } | 29 | } |
30 | 30 | ||
31 | pkg_postinst () { | 31 | pkg_postinst_${PN} () { |
32 | touch $D${sysconfdir}/shells | 32 | touch $D${sysconfdir}/shells |
33 | grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells | 33 | grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells |
34 | grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells | 34 | grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells |
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc index 1407bf10c5..6a04a9c0b0 100644 --- a/meta/recipes-extended/sudo/sudo.inc +++ b/meta/recipes-extended/sudo/sudo.inc | |||
@@ -23,7 +23,7 @@ do_configure_prepend () { | |||
23 | fi | 23 | fi |
24 | } | 24 | } |
25 | 25 | ||
26 | pkg_postinst() { | 26 | pkg_postinst_${PN} () { |
27 | if [ "x$D" != "x" ]; then | 27 | if [ "x$D" != "x" ]; then |
28 | exit 1 | 28 | exit 1 |
29 | fi | 29 | fi |
diff --git a/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb b/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb index 12d9d86721..c50d6eb3ff 100644 --- a/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb +++ b/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb | |||
@@ -32,7 +32,7 @@ do_install () { | |||
32 | install -m 0644 License.txt ${D}${datadir}/doc/${PN}/ | 32 | install -m 0644 License.txt ${D}${datadir}/doc/${PN}/ |
33 | } | 33 | } |
34 | 34 | ||
35 | pkg_postinst () { | 35 | pkg_postinst_${PN} () { |
36 | #!/bin/sh | 36 | #!/bin/sh |
37 | fc-cache | 37 | fc-cache |
38 | } | 38 | } |
diff --git a/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.06.bb b/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.06.bb index 887536a4f0..f6bf0ce66f 100644 --- a/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.06.bb +++ b/meta/recipes-graphics/ttf-fonts/liberation-fonts_1.06.bb | |||
@@ -33,7 +33,7 @@ do_install () { | |||
33 | install -m 0644 License.txt ${D}${datadir}/doc/${PN}/ | 33 | install -m 0644 License.txt ${D}${datadir}/doc/${PN}/ |
34 | } | 34 | } |
35 | 35 | ||
36 | pkg_postinst () { | 36 | pkg_postinst_${PN} () { |
37 | #!/bin/sh | 37 | #!/bin/sh |
38 | fc-cache | 38 | fc-cache |
39 | } | 39 | } |
diff --git a/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb b/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb index b9a75a77bb..bdeb4c19b5 100644 --- a/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb +++ b/meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb | |||
@@ -31,7 +31,7 @@ do_install () { | |||
31 | done | 31 | done |
32 | } | 32 | } |
33 | 33 | ||
34 | pkg_postinst () { | 34 | pkg_postinst_${PN} () { |
35 | #!/bin/sh | 35 | #!/bin/sh |
36 | fc-cache | 36 | fc-cache |
37 | } | 37 | } |
diff --git a/meta/recipes-kernel/update-modules/update-modules_1.0.bb b/meta/recipes-kernel/update-modules/update-modules_1.0.bb index a473bb58c7..a8ebbdaebd 100644 --- a/meta/recipes-kernel/update-modules/update-modules_1.0.bb +++ b/meta/recipes-kernel/update-modules/update-modules_1.0.bb | |||
@@ -10,7 +10,7 @@ PR = "r8" | |||
10 | SRC_URI = "file://update-modules \ | 10 | SRC_URI = "file://update-modules \ |
11 | file://COPYING.GPL" | 11 | file://COPYING.GPL" |
12 | 12 | ||
13 | pkg_postinst() { | 13 | pkg_postinst_${PN} () { |
14 | if [ "x$D" != "x" ]; then | 14 | if [ "x$D" != "x" ]; then |
15 | exit 1 | 15 | exit 1 |
16 | fi | 16 | fi |