summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD30
2 files changed, 18 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 24194046fa6..cd9e3c1f266 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Wed Mar 30 16:40:55 UTC 2016
+# Wed Mar 30 18:06:29 UTC 2016
pkgbase = ca-certificates-icp_br
pkgdesc = Brazilian government Certification Authorities
pkgver = 20160406
- pkgrel = 1
+ pkgrel = 2
url = http://www.iti.gov.br/icp-brasil/certificados/188-atualizacao/4530-ac-raiz
install = ca-certificates-icp_br.install
arch = any
@@ -11,7 +11,7 @@ pkgbase = ca-certificates-icp_br
makedepends = unzip
makedepends = openssl
depends = ca-certificates-utils
- source = http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip
+ source = icpbr_certs-20160406.zip::http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip
sha512sums = 8b3a70888cc64802dce82998303ee78803c8e276de5f2056bbdd0ef2855654e342fd11efcea5d65dbc2ed671afd834ead58ef2ad8aadd9a73fa6fe46b4ed3581
pkgname = ca-certificates-icp_br
diff --git a/PKGBUILD b/PKGBUILD
index a5157c50f7b..e48b5f19c33 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
# Maintainer: Tiago Brait <tiagobrait AT gmail DOT com>
-#2014 tiagobrait
pkgname=ca-certificates-icp_br
pkgver=20160406
-pkgrel=1
+pkgrel=2
pkgdesc="Brazilian government Certification Authorities"
arch=('any')
url="http://www.iti.gov.br/icp-brasil/certificados/188-atualizacao/4530-ac-raiz"
@@ -12,7 +11,7 @@ depends=('ca-certificates-utils')
makedepends=('unzip' 'openssl')
install='ca-certificates-icp_br.install'
source=(
- 'http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip'
+ "icpbr_certs-${pkgver}.zip::http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip"
)
sha512sums=(
@@ -23,18 +22,19 @@ package() {
local cert_tag='icp_br'
cd ${srcdir}
find * -print0 | while read -d $'\0' cert; do
- #some certificates have a .crt extension but come in DER format.
- #convert them
- if [[ "$(file $cert | cut -f2 -d\: | tr -d ' ')" = "data" ]]; then
- msg2 "converting $cert from DER to PEM..."
- cert_der="${cert}.der"
- mv $cert $cert_der
- /usr/bin/openssl x509 -in ${cert_der} -inform der -out $cert
- rm "$cert_der"
- fi
- #some of the cert files have spaces in their names, so just remove the spaces
- #when 'tagging' the certificates
- mv "$cert" "${cert_tag}.${cert//' '/'_'}"; done
+ #some certificates have a .crt extension but come in DER format.
+ #convert them
+ if [[ "$(file $cert | cut -f2 -d\: | tr -d ' ')" = "data" ]]; then
+ msg2 "converting $cert from DER to PEM..."
+ cert_der="${cert}.der"
+ mv $cert $cert_der
+ /usr/bin/openssl x509 -in ${cert_der} -inform der -out $cert
+ rm "$cert_der"
+ fi
+ #some of the cert files have spaces in their names, so just remove the spaces
+ #when 'tagging' the certificates
+ mv "$cert" "${cert_tag}.${cert//' '/'_'}"
+ done
install -d -m0755 $pkgdir/etc/ca-certificates/trust-source/anchors
install -m0644 *.crt $pkgdir/etc/ca-certificates/trust-source/anchors
}