mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
dev-libs/openssl: Clean slate to reapply our changes
This commit is contained in:
parent
e8c04ce6c4
commit
f6983eb7b2
@ -1,3 +0,0 @@
|
|||||||
d /etc/ssl - - - - -
|
|
||||||
d /etc/ssl/private 0700 - - - -
|
|
||||||
L /etc/ssl/openssl.cnf - - - - ../../usr/share/ssl/openssl.cnf
|
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI="7"
|
EAPI="7"
|
||||||
|
|
||||||
inherit flag-o-matic linux-info toolchain-funcs multilib-minimal systemd
|
inherit flag-o-matic linux-info toolchain-funcs multilib-minimal
|
||||||
|
|
||||||
MY_P=${P/_/-}
|
MY_P=${P/_/-}
|
||||||
|
|
||||||
@ -248,6 +248,9 @@ multilib_src_install_all() {
|
|||||||
|
|
||||||
dodoc {AUTHORS,CHANGES,NEWS,README,README-PROVIDERS}.md doc/*.txt doc/${PN}-c-indent.el
|
dodoc {AUTHORS,CHANGES,NEWS,README,README-PROVIDERS}.md doc/*.txt doc/${PN}-c-indent.el
|
||||||
|
|
||||||
|
# create the certs directory
|
||||||
|
keepdir ${SSL_CNF_DIR}/certs
|
||||||
|
|
||||||
# Namespace openssl programs to prevent conflicts with other man pages
|
# Namespace openssl programs to prevent conflicts with other man pages
|
||||||
cd "${ED}"/usr/share/man || die
|
cd "${ED}"/usr/share/man || die
|
||||||
local m d s
|
local m d s
|
||||||
@ -279,15 +282,12 @@ multilib_src_install_all() {
|
|||||||
dodir /etc/sandbox.d #254521
|
dodir /etc/sandbox.d #254521
|
||||||
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
|
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
|
||||||
|
|
||||||
# flatcar changes: do not keep the sample CA files in `/etc`
|
diropts -m0700
|
||||||
rm -rf "${ED}"${SSL_CNF_DIR}
|
keepdir ${SSL_CNF_DIR}/private
|
||||||
|
}
|
||||||
# flatcar changes: save the default `openssl.cnf` in `/usr`
|
|
||||||
dodir /usr/share/ssl
|
pkg_postinst() {
|
||||||
insinto /usr/share/ssl
|
ebegin "Running 'c_rehash ${EROOT}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
|
||||||
doins "${S}"/apps/openssl.cnf
|
c_rehash "${EROOT}${SSL_CNF_DIR}/certs" >/dev/null
|
||||||
systemd_dotmpfilesd "${FILESDIR}"/openssl.conf
|
eend $?
|
||||||
|
|
||||||
# flatcar changes: package `tmpfiles.d` setup for SDK bootstrapping.
|
|
||||||
systemd-tmpfiles --create --root="${ED}" "${FILESDIR}"/openssl.conf
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user