summaryrefslogtreecommitdiff
path: root/libre/cacert-dot-org
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-05 03:51:26 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-05 03:55:53 -0300
commitf23dfdc81b1c993520a9ab7cc12263efa31cd9bc (patch)
tree58bbaaddbffc625d760688fa54454f53ffcb186a /libre/cacert-dot-org
parentdc3844d0ed5d92fbcd919eced9f275cab3de14a7 (diff)
rename cacert-dot-org to ca-certificates-cacert and keep it on [libre] temporally because there is a Arch official package but on [testing] only, add cacert-dot-org in conflicts and replaces array of pacman package to begin use ca-certificates-cacert
Diffstat (limited to 'libre/cacert-dot-org')
-rw-r--r--libre/cacert-dot-org/PKGBUILD20
-rw-r--r--libre/cacert-dot-org/cacert-dot-org.install26
2 files changed, 0 insertions, 46 deletions
diff --git a/libre/cacert-dot-org/PKGBUILD b/libre/cacert-dot-org/PKGBUILD
deleted file mode 100644
index c55ddf9a4..000000000
--- a/libre/cacert-dot-org/PKGBUILD
+++ /dev/null
@@ -1,20 +0,0 @@
-# Maintainer (Arch): Prurigro
-# Contributor (Arch): Neal <neal.oakey-at-oakey-dev.de>
-
-pkgname=cacert-dot-org
-pkgver=20140223
-pkgrel=5
-pkgdesc='CAcert.org is a community-driven Certificate Authority that issues certificates to the public at large for free'
-arch=('any')
-url='http://www.cacert.org'
-license=('GPL')
-source=("http://www.cacert.org/certs/root.crt"
- "http://www.cacert.org/certs/class3.crt")
-depends=('ca-certificates')
-install="${pkgname}.install"
-sha512sums=('7350f2604e9839f1c2d02926fd4299468ffe2c456ba57a396575cfbb5b2b91fa3cb0e049f6cf3e1406d02014e420e263d6b0c4a59c51d0f03a735bfaa56ec7cc'
- '416ceb36aa399f5116c617d470545a04e56bba2282e18fa7c1cc68271d8ac2e7b5787c7ea0f759794351f6e1ad77c76301664db10587046b2b269b274098845c')
-package() {
- [[ "$(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"
-}
diff --git a/libre/cacert-dot-org/cacert-dot-org.install b/libre/cacert-dot-org/cacert-dot-org.install
deleted file mode 100644
index eb11f6607..000000000
--- a/libre/cacert-dot-org/cacert-dot-org.install
+++ /dev/null
@@ -1,26 +0,0 @@
-post_install() {
- #UPDATE FILE NAMES IN ca-certificates.conf IF THEY'RE OUT OF DATE
- [[ `grep -c "mozilla/cacert.org" /etc/ca-certificates.conf` -gt 0 ]] && sed -i 's/mozilla\/cacert\.org/cacert\.org\/cacert\.org/g' /etc/ca-certificates.conf
- [[ `grep -c "cacert.org/cacert.org-" /etc/ca-certificates.conf` -gt 0 ]] && sed -i 's/cacert\.org\/cacert\.org-/cacert\.org\/cacert\.org_/g' /etc/ca-certificates.conf
-
- #ADD THE CERTIFICATES TO ca-certificates.conf IF THEY'RE MISSING
- [[ `grep -c "cacert.org/cacert.org_root.crt" /etc/ca-certificates.conf` -eq 0 ]] && echo "cacert.org/cacert.org_root.crt" >> /etc/ca-certificates.conf
- [[ `grep -c "cacert.org/cacert.org_class3.crt" /etc/ca-certificates.conf` -eq 0 ]] && echo "cacert.org/cacert.org_class3.crt" >> /etc/ca-certificates.conf
-
- #UPDATE THE CERTIFICATES BASED ON ca-certificates.conf
- update-ca-certificates --fresh
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- grep -v "cacert.org" /etc/ca-certificates.conf > /dev/shm/ca-certificates.conf.tmp
- if [[ -s /dev/shm/ca-certificates.conf.tmp ]]; then
- mv /dev/shm/ca-certificates.conf.tmp /etc/ca-certificates.conf
- update-ca-certificates --fresh
- else
- echo "An error occurred that prevented the cacert.org certificates from being removed from /etc/ca-certificates.conf, please remove them manually, then run update-ca-certificates --fresh"
- fi
-}