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 ] && \
|
||||
install -d etc/ca-certificates/update.d
|
||||
[ ! -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
|
||||
|
|
|
@ -4,7 +4,7 @@ pre)
|
|||
backup=etc/ca-certificates.conf.tmp
|
||||
mv etc/ca-certificates.conf $backup
|
||||
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
|
||||
;;
|
||||
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'
|
||||
pkgname=ca-certificates
|
||||
version=20121105
|
||||
revision=2
|
||||
revision=3
|
||||
noarch=yes
|
||||
makedepends="python"
|
||||
fulldepends="openssl run-parts"
|
||||
|
|
Loading…
Reference in a new issue