diff options
| -rw-r--r-- | meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb b/meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb index b860c34e88..97d3597cff 100644 --- a/meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb +++ b/meta-networking/recipes-protocols/mdns/mdns_2559.60.39.0.1.bb | |||
| @@ -112,7 +112,7 @@ do_install () { | |||
| 112 | install mdnsd.sh ${D}${INIT_D_DIR}/mdns | 112 | install mdnsd.sh ${D}${INIT_D_DIR}/mdns |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | pkg_postinst:${PN} () { | 115 | pkg_postinst:${PN}-libnss-mdns () { |
| 116 | if [ -r $D${sysconfdir}/nsswitch.conf ]; then | 116 | if [ -r $D${sysconfdir}/nsswitch.conf ]; then |
| 117 | sed -e '/^hosts:/s/\s*\<mdns\>//' \ | 117 | sed -e '/^hosts:/s/\s*\<mdns\>//' \ |
| 118 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns\3\4\5/' \ | 118 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns\3\4\5/' \ |
| @@ -120,7 +120,7 @@ pkg_postinst:${PN} () { | |||
| 120 | fi | 120 | fi |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | pkg_prerm:${PN} () { | 123 | pkg_prerm:${PN}-libnss-mdns () { |
| 124 | if [ -r $D${sysconfdir}/nsswitch.conf ]; then | 124 | if [ -r $D${sysconfdir}/nsswitch.conf ]; then |
| 125 | sed -e '/^hosts:/s/\s*\<mdns\>//' \ | 125 | sed -e '/^hosts:/s/\s*\<mdns\>//' \ |
| 126 | -e '/^hosts:/s/\s*mdns//' \ | 126 | -e '/^hosts:/s/\s*mdns//' \ |
| @@ -131,7 +131,12 @@ pkg_prerm:${PN} () { | |||
| 131 | SYSTEMD_SERVICE:${PN} = "mdns.service" | 131 | SYSTEMD_SERVICE:${PN} = "mdns.service" |
| 132 | INITSCRIPT_NAME = "mdns" | 132 | INITSCRIPT_NAME = "mdns" |
| 133 | 133 | ||
| 134 | PACKAGE_BEFORE_PN = "${PN}-libnss-mdns" | ||
| 135 | |||
| 136 | RRECOMMENDS:${PN}:append:libc-glibc = " ${PN}-libnss-mdns" | ||
| 137 | |||
| 134 | FILES_SOLIBSDEV = "${libdir}/libdns_sd.so" | 138 | FILES_SOLIBSDEV = "${libdir}/libdns_sd.so" |
| 135 | FILES:${PN} += "${libdir}/libnss_mdns-0.2.so" | 139 | FILES:${PN}-libnss-mdns = "${sysconfdir}/nss_mdns.conf ${libdir}/libnss_mdns*.so*" |
| 140 | RPROVIDES:${PN}-libnss-mdns = "libnss-mdns" | ||
| 136 | 141 | ||
| 137 | RPROVIDES:${PN} += "libdns-sd" | 142 | RPROVIDES:${PN} += "libdns-sd" |
