diff options
Diffstat (limited to 'abs/core/ca-certificates/PKGBUILD')
-rw-r--r-- | abs/core/ca-certificates/PKGBUILD | 49 |
1 files changed, 21 insertions, 28 deletions
diff --git a/abs/core/ca-certificates/PKGBUILD b/abs/core/ca-certificates/PKGBUILD index a5edf22..f377a79 100644 --- a/abs/core/ca-certificates/PKGBUILD +++ b/abs/core/ca-certificates/PKGBUILD @@ -1,52 +1,45 @@ # $Id$ -# Maintainer: Pierre Schmitz <pierre@archlinux.de> +# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Contributor: Pierre Schmitz <pierre@archlinux.de> pkgbase=ca-certificates pkgname=(ca-certificates-utils ca-certificates) -pkgver=20140923 -pkgrel=2 +pkgver=20150402 +pkgrel=1 pkgdesc='Common CA certificates' arch=('any') url='http://pkgs.fedoraproject.org/cgit/ca-certificates.git' license=('GPL2') -depends=('sh' 'p11-kit') -makedepends=('asciidoc') -_commit=f81c301 -source=("update-ca-trust::$url/plain/update-ca-trust?id=$_commit" - "update-ca-trust.8.txt::$url/plain/update-ca-trust.8.txt?id=$_commit") -sha256sums=('75ef2f4b0fddd2ca3c69b234a6abb66fd732e4af96814b65dcedb0dd52018381' - 'd31ac2bb5f1941aea0ac1e51861af7be224b6bb85820e30bb30793112aa785ba') - -_confdir=/etc/$pkgbase -_datadir=/usr/share/$pkgbase - -prepare() { - sed -i "s:/etc/pki/ca-trust:${_confdir}:g" update-ca-trust +makedepends=('asciidoc' 'p11-kit') +source=(update-ca-trust update-ca-trust.8.txt) +sha256sums=('746d2cce8ec107fa3b7aaa246d69a7e238c3d2ac5cd82c5aeed996fe9cb0a874' + '38c10446738c1e99bc95e42fe844a9e95ea106795059fa769f3b4ba82b395929') + +build() { + asciidoc.py -v -d manpage -b docbook update-ca-trust.8.txt + xsltproc --nonet -o update-ca-trust.8 /etc/asciidoc/docbook-xsl/manpage.xsl update-ca-trust.8.xml } package_ca-certificates-utils() { pkgdesc+=" (utilities)" + depends=('bash' 'coreutils' 'findutils' 'p11-kit>=0.23.1') install=ca-certificates-utils.install provides=(ca-certificates ca-certificates-java) conflicts=(ca-certificates-java) replaces=(ca-certificates-java) - asciidoc.py -v -d manpage -b docbook update-ca-trust.8.txt - xsltproc --nonet -o update-ca-trust.8 /etc/asciidoc/docbook-xsl/manpage.xsl update-ca-trust.8.xml - install -D update-ca-trust "${pkgdir}/usr/bin/update-ca-trust" install -Dm644 update-ca-trust.8 "${pkgdir}/usr/share/man/man8/update-ca-trust.8" - install -d "${pkgdir}"{${_confdir},${_datadir}}/trust-source/{anchors,blacklist} + # Trust source directories + install -d "${pkgdir}"/{etc,usr/share}/${pkgbase}/trust-source/{anchors,blacklist} - _extractdir="${pkgdir}${_confdir}/extracted" - _ssldir="${pkgdir}/etc/ssl" + # Directories used by update-ca-trust (aka "trust extract-compat") + install -d "${pkgdir}"/etc/{ssl/certs/java,${pkgbase}/extracted} - install -d "${_ssldir}/certs/java" "${_extractdir}"/{openssl,pem,java} - ln -sr "${_extractdir}/openssl/ca-bundle.trust.crt" "${_ssldir}/certs/ca-bundle.trust.crt" - ln -sr "${_extractdir}/pem/tls-ca-bundle.pem" "${_ssldir}/certs/ca-bundle.crt" - ln -sr "${_extractdir}/pem/tls-ca-bundle.pem" "${_ssldir}/cert.pem" - ln -sr "${_extractdir}/java/cacerts" "${_ssldir}/certs/java/cacerts" + # Compatibility link for OpenSSL using /etc/ssl as CAdir + # Used in preference to the individual links in /etc/ssl/certs + ln -s ../${pkgbase}/extracted/tls-ca-bundle.pem "${pkgdir}/etc/ssl/cert.pem" } package_ca-certificates() { @@ -54,4 +47,4 @@ package_ca-certificates() { depends=(ca-certificates-{mozilla,cacert}) } -# vim:set noet ts=8 sw=8: +# vim:set noet ts=8 sw=8 sts=0: |