diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-05 06:32:31 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-05 06:32:31 -0300 |
commit | 4719a6a01138563c83081cb2f8d21a9d239b06a0 (patch) | |
tree | 77edda1291ea30998b2d93565bb7400ddf897695 /libre/ca-certificates-cacert/PKGBUILD | |
parent | fa21f5102185bb1ef8bcb29e3619b8b58dc71884 (diff) |
ca-certificates-cacert: add changes based on cacert-dot-org for the current ca-certificates compatibility
Diffstat (limited to 'libre/ca-certificates-cacert/PKGBUILD')
-rw-r--r-- | libre/ca-certificates-cacert/PKGBUILD | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/libre/ca-certificates-cacert/PKGBUILD b/libre/ca-certificates-cacert/PKGBUILD index 444cded6f..324aae0d1 100644 --- a/libre/ca-certificates-cacert/PKGBUILD +++ b/libre/ca-certificates-cacert/PKGBUILD @@ -1,32 +1,26 @@ # $Id: PKGBUILD 220625 2014-08-24 14:47:59Z heftig $ # Maintainer (Arch): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Maintainer: André Silva <emulatorman@parabola.nu> pkgname=ca-certificates-cacert pkgver=20140824 -pkgrel=0.1.parabola1 # build with 0.x only and keep this package on [libre] temporally until which Arch official package be moved from [testing] to some stable repo +pkgrel=0.1.parabola2 # build with 0.x only and keep this package on [libre] temporally until which Arch official package be moved from [testing] to some stable repo pkgdesc="CAcert.org root certificates" arch=(any) url="https://www.cacert.org/index.php?id=3" license=('custom:RDL') depends=(ca-certificates) install=ca-certificates-cacert.install -source=(CAcert.org_root.crt::http://www.cacert.org/certs/root.crt - CAcert.org_class3.crt::http://www.cacert.org/certs/class3.crt +source=(http://www.cacert.org/certs/root.crt + http://www.cacert.org/certs/class3.crt LICENSE) sha256sums=('c0e0773a79dceb622ef6410577c19c1e177fb2eb9c623a49340de3c9f1de2560' 'f5badaa5da1cc05b110a9492455a2c2790d00c7175dcf3a7bcb5441af71bf84f' '2d9007a467e72d437ecfa13cc605c371e98a469f1aac4c890be74f953559833c') -build() { - printf "cacert/%s\n" *.crt > cacert.conf -} - package() { - local _certdir="$pkgdir/usr/share/ca-certificates/cacert" - install -d "$_certdir" - install -t "$_certdir" -m644 *.crt - - install -Dm644 cacert.conf "$pkgdir/etc/ca-certificates/conf.d/cacert.conf" + [[ "$(openssl x509 -noout -fingerprint -in root.crt)" == "SHA1 Fingerprint=13:5C:EC:36:F4:9C:B8:E9:3B:1A:B2:70:CD:80:88:46:76:CE:8F:33" ]] && install -Dm644 root.crt "${pkgdir}/usr/share/ca-certificates/cacert.org/cacert.org_root.crt" + [[ "$(openssl verify -CAfile root.crt -verbose class3.crt)" == "class3.crt: OK" ]] && install -Dm644 class3.crt "${pkgdir}/usr/share/ca-certificates/cacert.org/cacert.org_class3.crt" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |