summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/ca-certificates-java/PKGBUILD46
-rw-r--r--abs/extra/ca-certificates-java/ca-certificates-java.install18
-rw-r--r--abs/extra/ca-certificates-java/init-jks-keystore10
-rw-r--r--abs/extra/ca-certificates-java/jks-keystore.hook15
4 files changed, 0 insertions, 89 deletions
diff --git a/abs/extra/ca-certificates-java/PKGBUILD b/abs/extra/ca-certificates-java/PKGBUILD
deleted file mode 100644
index cafb68d..0000000
--- a/abs/extra/ca-certificates-java/PKGBUILD
+++ /dev/null
@@ -1,46 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc@archlinux.org>
-
-pkgname=ca-certificates-java
-pkgver=20130815
-pkgrel=1
-pkgdesc='Common CA certificates (JKS keystore)'
-arch=('any')
-url='http://packages.qa.debian.org/c/ca-certificates-java.html'
-license=('GPL')
-depends=('ca-certificates')
-makedepends=('jdk7-openjdk')
-checkdepends=('junit')
-install='ca-certificates-java.install'
-backup=('etc/default/cacerts')
-source=("http://ftp.debian.org/debian/pool/main/c/${pkgname}/${pkgname}_${pkgver}.tar.gz"
- 'init-jks-keystore' 'jks-keystore.hook')
-md5sums=('f93e4762800515d6f12ceb397e80a150'
- '75eeca3f443f4b5a17ed5ac81875f1e9'
- '6dd4f915aee0df51260083e00b7fa012')
-
-build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- javac -target 1.6 -source 1.6 UpdateCertificates.java
- jar cfe ca-certificates-java.jar UpdateCertificates *.class
-}
-
-check() {
- cd ${srcdir}/${pkgname}-${pkgver}
-
- javac -cp /usr/share/java/junit.jar:/usr/share/ca-certificates-java/ca-certificates-java.jar \
- UpdateCertificatesTest.java Exceptions.java
- java -cp /usr/share/java/junit.jar:/usr/share/ca-certificates-java/ca-certificates-java.jar:. \
- org.junit.runner.JUnitCore \
- UpdateCertificatesTest
-}
-
-package() {
- cd ${srcdir}/${pkgname}-${pkgver}
-
- install -d -m755 ${pkgdir}/etc/ssl/certs/java
- install -D -m600 debian/default ${pkgdir}/etc/default/cacerts
- install -D -m644 ca-certificates-java.jar ${pkgdir}/usr/share/ca-certificates-java/ca-certificates-java.jar
- install -D -m755 ${srcdir}/init-jks-keystore ${pkgdir}/usr/bin/init-jks-keystore
- install -D -m755 ${srcdir}/jks-keystore.hook ${pkgdir}/etc/ca-certificates/update.d/jks-keystore
-}
diff --git a/abs/extra/ca-certificates-java/ca-certificates-java.install b/abs/extra/ca-certificates-java/ca-certificates-java.install
deleted file mode 100644
index 3cbcb16..0000000
--- a/abs/extra/ca-certificates-java/ca-certificates-java.install
+++ /dev/null
@@ -1,18 +0,0 @@
-post_install() {
- if [ ! -f etc/ssl/certs/java/cacerts ]; then
- if which java >/dev/null 2>&1; then
- usr/bin/init-jks-keystore
- fi
- fi
-}
-
-post_upgrade() {
- if [ $(vercmp $2 20110426-2) -lt 0 ]; then
- mv etc/ssl/certs/java/cacerts etc/ssl/certs/java/cacerts.pacsave
- fi
- post_install
-}
-
-post_remove() {
- rm -rf etc/ssl/certs/java
-}
diff --git a/abs/extra/ca-certificates-java/init-jks-keystore b/abs/extra/ca-certificates-java/init-jks-keystore
deleted file mode 100644
index 0758420..0000000
--- a/abs/extra/ca-certificates-java/init-jks-keystore
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-storepass='changeit'
-. /etc/default/cacerts
-
-JAR=/usr/share/ca-certificates-java/ca-certificates-java.jar
-
-find /etc/ssl/certs -name '*.pem' -printf "+%p\n" | \
- java -jar $JAR -storepass "$storepass" >/dev/null
-echo "done."
diff --git a/abs/extra/ca-certificates-java/jks-keystore.hook b/abs/extra/ca-certificates-java/jks-keystore.hook
deleted file mode 100644
index 67d9eda..0000000
--- a/abs/extra/ca-certificates-java/jks-keystore.hook
+++ /dev/null
@@ -1,15 +0,0 @@
-#! /bin/sh
-
-storepass='changeit'
-. /etc/default/cacerts
-
-echo ""
-if [ "$cacerts_updates" != yes ] || [ "$CACERT_UPDATES" = disabled ]; then
- echo "updates of cacerts keystore disabled."
- exit 0
-fi
-
-JAR=/usr/share/ca-certificates-java/ca-certificates-java.jar
-
-java -jar $JAR -storepass "$storepass"
-echo "done."