ca-certificates: avoid mktemp(1) in REMOVE, use full depends.

This commit is contained in:
Juan RP 2011-07-01 21:36:27 +02:00
parent 5d7873a5b2
commit f33efd6ea5
2 changed files with 8 additions and 8 deletions

View File

@ -1,11 +1,11 @@
case ${ACTION} in
pre)
# clean up certificates
_backup=$(mktemp)
mv etc/ca-certificates.conf ${_backup}
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
mv ${_backup} etc/ca-certificates.conf
mv $backup etc/ca-certificates.conf
;;
post)
[ -s etc/ssl/certs/ca-certificates.crt ] || \

View File

@ -1,7 +1,7 @@
# Template file for 'ca-certificates'
pkgname=ca-certificates
version=20110421
revision=2
revision=3
distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version}.tar.gz"
build_style=custom-install
short_desc="Common CA certificates"
@ -15,10 +15,10 @@ long_desc="
noarch=yes
Add_dependency run findutils
Add_dependency run sed
Add_dependency run openssl
Add_dependency run run-parts
Add_dependency full findutils
Add_dependency full sed
Add_dependency full openssl
Add_dependency full run-parts
Add_dependency build python
do_build() {