ca-certificate: finish pkg integration.

This commit is contained in:
Juan RP 2011-06-22 21:48:55 +02:00
parent 8b55b1bdba
commit 6d9cc2a9ce
3 changed files with 25 additions and 3 deletions

View File

@ -0,0 +1,7 @@
case ${ACTION} in
post)
[ ! -d etc/ca-certificates/update.d ] && \
install -d etc/ca-certificates/update.d
usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
;;
esac

View File

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

View File

@ -1,18 +1,19 @@
# Template file for 'ca-certificates'
pkgname=ca-certificates
version=20110421
revision=1
distfiles="http://ftp.debian.org/debian/pool/main/c/${pkgname}/${pkgname}_${version}.tar.gz"
distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version}.tar.gz"
build_style=custom-install
short_desc="Common CA certificates"
maintainer="Mike Rosset <mike.rosset@gmail.com>"
homepage="http://packages.qa.debian.org/c/ca-certificates.html"
license="GPL"
license="GPL-2"
conf_files="/etc/ca-certificates.conf"
checksum=30069a2a39ddd0cda32851a8292d2f489e0bed40a64a19e6e384d4d37d9fc418
long_desc="
Common CA certificates"
noarch=yes
Add_dependency run findutils
Add_dependency run sed
Add_dependency run openssl