mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
nss*: Replace hardcoded "/etc" with "${sysconfdir}"
(From OE-Core rev: 1c44e057c66fe20d491fcb3ae45defe0a300b256) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ce7b1b07f7
commit
aa87eade2b
@@ -16,11 +16,11 @@ inherit autotools
|
|||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
sed -e '/^hosts:/s/\s*\<myhostname\>//' \
|
sed -e '/^hosts:/s/\s*\<myhostname\>//' \
|
||||||
-e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
|
-e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \
|
||||||
-i $D/etc/nsswitch.conf
|
-i ${D}${sysconfdir}/nsswitch.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_prerm_${PN} () {
|
pkg_prerm_${PN} () {
|
||||||
sed -e '/^hosts:/s/\s*\<myhostname\>//' \
|
sed -e '/^hosts:/s/\s*\<myhostname\>//' \
|
||||||
-e '/^hosts:/s/\s*myhostname//' \
|
-e '/^hosts:/s/\s*myhostname//' \
|
||||||
-i $D/etc/nsswitch.conf
|
-i ${D}${sysconfdir}/nsswitch.conf
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,10 +169,10 @@ do_install_append_class-target() {
|
|||||||
sed -i s:OEINCDIR:${includedir}/nss3:g ${D}${libdir}/pkgconfig/nss.pc
|
sed -i s:OEINCDIR:${includedir}/nss3:g ${D}${libdir}/pkgconfig/nss.pc
|
||||||
|
|
||||||
# Create a blank certificate
|
# Create a blank certificate
|
||||||
mkdir -p ${D}/etc/pki/nssdb/
|
mkdir -p ${D}${sysconfdir}/pki/nssdb/
|
||||||
touch ./empty_password
|
touch ./empty_password
|
||||||
certutil -N -d ${D}/etc/pki/nssdb/ -f ./empty_password
|
certutil -N -d ${D}${sysconfdir}/pki/nssdb/ -f ./empty_password
|
||||||
chmod 644 ${D}/etc/pki/nssdb/*.db
|
chmod 644 ${D}${sysconfdir}/pki/nssdb/*.db
|
||||||
rm ./empty_password
|
rm ./empty_password
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user