mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-23 12:15:11 +02:00
ca-certificates: make update-ca-certificates use DESTDIR envvar if set.
This commit is contained in:
parent
09b70873ba
commit
69592748ad
4 changed files with 32 additions and 3 deletions
|
@ -3,6 +3,6 @@ post)
|
||||||
[ ! -d etc/ca-certificates/update.d ] && \
|
[ ! -d etc/ca-certificates/update.d ] && \
|
||||||
install -d etc/ca-certificates/update.d
|
install -d etc/ca-certificates/update.d
|
||||||
[ ! -d etc/ssl/certs ] && install -d etc/ssl/certs
|
[ ! -d etc/ssl/certs ] && install -d etc/ssl/certs
|
||||||
usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
|
env DESTDIR=. usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -4,7 +4,7 @@ pre)
|
||||||
backup=etc/ca-certificates.conf.tmp
|
backup=etc/ca-certificates.conf.tmp
|
||||||
mv etc/ca-certificates.conf $backup
|
mv etc/ca-certificates.conf $backup
|
||||||
echo > etc/ca-certificates.conf
|
echo > etc/ca-certificates.conf
|
||||||
usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
|
env DESTDIR=. usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
|
||||||
mv $backup etc/ca-certificates.conf
|
mv $backup etc/ca-certificates.conf
|
||||||
;;
|
;;
|
||||||
post)
|
post)
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
Use $DESTDIR to override some paths.
|
||||||
|
|
||||||
|
--- sbin/update-ca-certificates.orig 2012-12-12 04:37:18.204915114 +0100
|
||||||
|
+++ sbin/update-ca-certificates 2012-12-12 04:38:15.068574773 +0100
|
||||||
|
@@ -37,11 +37,11 @@ do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
-CERTSCONF=/etc/ca-certificates.conf
|
||||||
|
-CERTSDIR=/usr/share/ca-certificates
|
||||||
|
-LOCALCERTSDIR=/usr/local/share/ca-certificates
|
||||||
|
+CERTSCONF=$DESTDIR/etc/ca-certificates.conf
|
||||||
|
+CERTSDIR=$DESTDIR/usr/share/ca-certificates
|
||||||
|
+LOCALCERTSDIR=$DESTDIR/usr/local/share/ca-certificates
|
||||||
|
CERTBUNDLE=ca-certificates.crt
|
||||||
|
-ETCCERTSDIR=/etc/ssl/certs
|
||||||
|
+ETCCERTSDIR=$DESTDIR/etc/ssl/certs
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
rm -f "$TEMPBUNDLE"
|
||||||
|
@@ -148,7 +148,7 @@ mv -f "$TEMPBUNDLE" "$CERTBUNDLE"
|
||||||
|
|
||||||
|
echo "$ADDED_CNT added, $REMOVED_CNT removed; done."
|
||||||
|
|
||||||
|
-HOOKSDIR=/etc/ca-certificates/update.d
|
||||||
|
+HOOKSDIR=$DESTDIR/etc/ca-certificates/update.d
|
||||||
|
echo -n "Running hooks in $HOOKSDIR...."
|
||||||
|
VERBOSE_ARG=
|
||||||
|
[ "$verbose" = 0 ] || VERBOSE_ARG=--verbose
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ca-certificates'
|
# Template file for 'ca-certificates'
|
||||||
pkgname=ca-certificates
|
pkgname=ca-certificates
|
||||||
version=20121105
|
version=20121105
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
makedepends="python"
|
makedepends="python"
|
||||||
fulldepends="openssl run-parts"
|
fulldepends="openssl run-parts"
|
||||||
|
|
Loading…
Add table
Reference in a new issue