ca-certificates: Add a sleep 0.5 before cp -f in install
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
_realname=ca-certificates
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=20140325
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc='Common CA certificates'
|
||||
arch=('any')
|
||||
url='http://packages.qa.debian.org/c/ca-certificates.html'
|
||||
@@ -53,6 +53,14 @@ EOF
|
||||
echo '#';
|
||||
) > ${srcdir}/${_realname}/ca-bundle.trust.crt
|
||||
|
||||
# Make sure repeat runs don't accumulate duplicate certs.
|
||||
if [ -f ${srcdir}/${pkgname}/ca-bundle.neutral-trust.crt ]; then
|
||||
rm -f ${srcdir}/${pkgname}/ca-bundle.neutral-trust.crt
|
||||
fi
|
||||
if [ -f ${srcdir}/${pkgname}/ca-bundle.supplement.p11-kit ]; then
|
||||
rm -f ${srcdir}/${pkgname}/ca-bundle.supplement.p11-kit
|
||||
fi
|
||||
|
||||
> info.trust
|
||||
> info.notrust
|
||||
|
||||
@@ -97,7 +105,7 @@ EOF
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${_realname}
|
||||
|
||||
|
||||
mkdir -p ${pkgdir}${MINGW_PREFIX}/{bin,lib,share}
|
||||
mkdir -p ${pkgdir}${MINGW_PREFIX}/etc
|
||||
mkdir -p ${pkgdir}${MINGW_PREFIX}/share/man/man8
|
||||
|
||||
@@ -12,6 +12,8 @@ post_install() {
|
||||
${_mingw_prefix}/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --purpose code-signing $DEST/pem/objsign-ca-bundle.pem
|
||||
${_mingw_prefix}/bin/p11-kit extract --format=java-cacerts --filter=ca-anchors --overwrite --purpose server-auth $DEST/java/cacerts
|
||||
|
||||
# These files end up not being overwritten without a sleep
|
||||
sleep 0.5
|
||||
mkdir -p ${_mingw_prefix}/ssl/certs
|
||||
cp -f $DEST/pem/tls-ca-bundle.pem ${_mingw_prefix}/ssl/certs/ca-bundle.crt
|
||||
cp -f $DEST/pem/tls-ca-bundle.pem ${_mingw_prefix}/ssl/cert.pem
|
||||
|
||||
@@ -12,6 +12,8 @@ post_install() {
|
||||
${_mingw_prefix}/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --purpose code-signing $DEST/pem/objsign-ca-bundle.pem
|
||||
${_mingw_prefix}/bin/p11-kit extract --format=java-cacerts --filter=ca-anchors --overwrite --purpose server-auth $DEST/java/cacerts
|
||||
|
||||
# These files end up not being overwritten without a sleep
|
||||
sleep 0.5
|
||||
mkdir -p ${_mingw_prefix}/ssl/certs
|
||||
cp -f $DEST/pem/tls-ca-bundle.pem ${_mingw_prefix}/ssl/certs/ca-bundle.crt
|
||||
cp -f $DEST/pem/tls-ca-bundle.pem ${_mingw_prefix}/ssl/cert.pem
|
||||
|
||||
Reference in New Issue
Block a user