diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | 4 | ||||
-rw-r--r-- | meta/recipes-support/nss/nss.inc | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb index 540f22330a..d8ec863954 100644 --- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb +++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | |||
@@ -16,11 +16,11 @@ inherit autotools | |||
16 | pkg_postinst_${PN} () { | 16 | pkg_postinst_${PN} () { |
17 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ | 17 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ |
18 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \ | 18 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \ |
19 | -i $D/etc/nsswitch.conf | 19 | -i ${D}${sysconfdir}/nsswitch.conf |
20 | } | 20 | } |
21 | 21 | ||
22 | pkg_prerm_${PN} () { | 22 | pkg_prerm_${PN} () { |
23 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ | 23 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ |
24 | -e '/^hosts:/s/\s*myhostname//' \ | 24 | -e '/^hosts:/s/\s*myhostname//' \ |
25 | -i $D/etc/nsswitch.conf | 25 | -i ${D}${sysconfdir}/nsswitch.conf |
26 | } | 26 | } |
diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc index ce7d4a4b27..69f98b58cd 100644 --- a/meta/recipes-support/nss/nss.inc +++ b/meta/recipes-support/nss/nss.inc | |||
@@ -169,10 +169,10 @@ do_install_append_class-target() { | |||
169 | sed -i s:OEINCDIR:${includedir}/nss3:g ${D}${libdir}/pkgconfig/nss.pc | 169 | sed -i s:OEINCDIR:${includedir}/nss3:g ${D}${libdir}/pkgconfig/nss.pc |
170 | 170 | ||
171 | # Create a blank certificate | 171 | # Create a blank certificate |
172 | mkdir -p ${D}/etc/pki/nssdb/ | 172 | mkdir -p ${D}${sysconfdir}/pki/nssdb/ |
173 | touch ./empty_password | 173 | touch ./empty_password |
174 | certutil -N -d ${D}/etc/pki/nssdb/ -f ./empty_password | 174 | certutil -N -d ${D}${sysconfdir}/pki/nssdb/ -f ./empty_password |
175 | chmod 644 ${D}/etc/pki/nssdb/*.db | 175 | chmod 644 ${D}${sysconfdir}/pki/nssdb/*.db |
176 | rm ./empty_password | 176 | rm ./empty_password |
177 | } | 177 | } |
178 | 178 | ||