From b83ba0e3e6ab6dad181c0e6b8cbcf9b5d785185f Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 23 Sep 2014 00:39:12 +0000
Subject: ca-certificates-cacert: dep of ca-certificates

---
 abs/core/ca-certificates-cacert/LICENSE            | 34 ++++++++++++++++++++++
 abs/core/ca-certificates-cacert/PKGBUILD           | 26 +++++++++++++++++
 .../ca-certificates-cacert.install                 | 11 +++++++
 3 files changed, 71 insertions(+)
 create mode 100644 abs/core/ca-certificates-cacert/LICENSE
 create mode 100644 abs/core/ca-certificates-cacert/PKGBUILD
 create mode 100644 abs/core/ca-certificates-cacert/ca-certificates-cacert.install

diff --git a/abs/core/ca-certificates-cacert/LICENSE b/abs/core/ca-certificates-cacert/LICENSE
new file mode 100644
index 0000000..d62429c
--- /dev/null
+++ b/abs/core/ca-certificates-cacert/LICENSE
@@ -0,0 +1,34 @@
+Root Distribution License
+
+1. Terms
+
+"CAcert Inc" means CAcert Incorporated, a non-profit association incorporated in New South Wales, Australia.
+"CAcert Community Agreement" means the agreement entered into by each person wishing to RELY.
+"Member" means a natural or legal person who has agreed to the CAcert Community Agreement.
+"Certificate" means any certificate or like device to which CAcert Inc's digital signature has been affixed.
+"CAcert Root Certificates" means any certificate issued by CAcert Inc to itself for the purposes of signing further CAcert Roots or for signing certificates of Members.
+"RELY" means the human act in taking on a risk or liability on the basis of the claim(s) bound within a certificate issued by CAcert.
+"Embedded" means a certificate that is contained within a software application or hardware system, when and only when, that software application or system is distributed in binary form only.
+
+2. Copyright
+
+CAcert Root Certificates are Copyright CAcert Incorporated. All rights reserved.
+
+3. License
+
+You may copy and distribute CAcert Root Certificates only in accordance with this license.
+
+CAcert Inc grants you a free, non-exclusive license to copy and distribute CAcert Root Certificates in any medium, with or without modification, provided that the following conditions are met:
+
+ - Redistributions of Embedded CAcert Root Certificates must take reasonable steps to inform the recipient of the disclaimer in section 4 or reproduce this license and copyright notice in full in the documentation provided with the distribution.
+ - Redistributions in all other forms must reproduce this license and copyright notice in full. 
+
+4. Disclaimer
+
+THE CACERT ROOT CERTIFICATES ARE PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED TO THE MAXIMUM EXTENT PERMITTED BY LAW. IN NO EVENT SHALL CACERT INC, ITS MEMBERS, AGENTS, SUBSIDIARIES OR RELATED PARTIES BE LIABLE TO THE LICENSEE OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THESE CERTIFICATES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. IN ANY EVENT, CACERT'S LIABILITY SHALL NOT EXCEED $1,000.00 AUSTRALIAN DOLLARS.
+
+THIS LICENSE SPECIFICALLY DOES NOT PERMIT YOU TO RELY UPON ANY CERTIFICATES ISSUED BY CACERT INC. IF YOU WISH TO RELY ON CERTIFICATES ISSUED BY CACERT INC, YOU MUST ENTER INTO A SEPARATE AGREEMENT WITH CACERT INC.
+
+5. Statutory Rights
+
+Nothing in this license affects any statutory rights that cannot be waived or limited by contract. In the event that any provision of this license is held to be invalid or unenforceable, the remaining provisions of this license remain in full force and effect. 
diff --git a/abs/core/ca-certificates-cacert/PKGBUILD b/abs/core/ca-certificates-cacert/PKGBUILD
new file mode 100644
index 0000000..f8bfeff
--- /dev/null
+++ b/abs/core/ca-certificates-cacert/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+
+pkgname=ca-certificates-cacert
+pkgver=20140824
+pkgrel=2
+pkgdesc="CAcert.org root certificates"
+arch=(any)
+url="https://www.cacert.org/index.php?id=3"
+license=('custom:RDL')
+depends=(ca-certificates-utils)
+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
+        LICENSE)
+sha256sums=('c0e0773a79dceb622ef6410577c19c1e177fb2eb9c623a49340de3c9f1de2560'
+            'f5badaa5da1cc05b110a9492455a2c2790d00c7175dcf3a7bcb5441af71bf84f'
+            '2d9007a467e72d437ecfa13cc605c371e98a469f1aac4c890be74f953559833c')
+
+package() {
+  local _certdir="$pkgdir/usr/share/ca-certificates/trust-source/anchors"
+  install -d "$_certdir"
+  install -t "$_certdir" -m644 *.crt
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/abs/core/ca-certificates-cacert/ca-certificates-cacert.install b/abs/core/ca-certificates-cacert/ca-certificates-cacert.install
new file mode 100644
index 0000000..433c35a
--- /dev/null
+++ b/abs/core/ca-certificates-cacert/ca-certificates-cacert.install
@@ -0,0 +1,11 @@
+post_install() {
+  usr/bin/update-ca-trust
+}
+
+post_upgrade() {
+  post_install
+}
+
+pre_remove() {
+  post_install
+}
-- 
cgit v0.12

