summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-03-07 17:41:52 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-03-07 17:41:52 (GMT)
commit0230fddb88133838d0d50d8a6a49eef3510f1080 (patch)
tree7ccccb94dd7a01f101f6c3f29f99b1929c1bed53
parent5b05d269d795e1734f3f1b0ca08edc91ff372576 (diff)
downloadlinhes_pkgbuild-0230fddb88133838d0d50d8a6a49eef3510f1080.zip
linhes_pkgbuild-0230fddb88133838d0d50d8a6a49eef3510f1080.tar.gz
linhes_pkgbuild-0230fddb88133838d0d50d8a6a49eef3510f1080.tar.bz2
ca-certificates-java: update to 20130815. refs #961
-rw-r--r--abs/extra/ca-certificates-java/PKGBUILD23
-rw-r--r--abs/extra/ca-certificates-java/ca-certificates-java.install2
-rw-r--r--[-rwxr-xr-x]abs/extra/ca-certificates-java/init-jks-keystore0
3 files changed, 18 insertions, 7 deletions
diff --git a/abs/extra/ca-certificates-java/PKGBUILD b/abs/extra/ca-certificates-java/PKGBUILD
index ff1a341..cafb68d 100644
--- a/abs/extra/ca-certificates-java/PKGBUILD
+++ b/abs/extra/ca-certificates-java/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 162732 2012-06-29 08:16:24Z pierre $
+# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=ca-certificates-java
-pkgver=20120721
+pkgver=20130815
pkgrel=1
pkgdesc='Common CA certificates (JKS keystore)'
arch=('any')
@@ -10,10 +10,14 @@ 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}
@@ -21,15 +25,22 @@ build() {
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/sbin/init-jks-keystore
+ 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
}
-md5sums=('a4c17590cc91a498b611c2dc62795273'
- '75eeca3f443f4b5a17ed5ac81875f1e9'
- '6dd4f915aee0df51260083e00b7fa012')
diff --git a/abs/extra/ca-certificates-java/ca-certificates-java.install b/abs/extra/ca-certificates-java/ca-certificates-java.install
index f5ce35e..3cbcb16 100644
--- a/abs/extra/ca-certificates-java/ca-certificates-java.install
+++ b/abs/extra/ca-certificates-java/ca-certificates-java.install
@@ -1,7 +1,7 @@
post_install() {
if [ ! -f etc/ssl/certs/java/cacerts ]; then
if which java >/dev/null 2>&1; then
- usr/sbin/init-jks-keystore
+ usr/bin/init-jks-keystore
fi
fi
}
diff --git a/abs/extra/ca-certificates-java/init-jks-keystore b/abs/extra/ca-certificates-java/init-jks-keystore
index 0758420..0758420 100755..100644
--- a/abs/extra/ca-certificates-java/init-jks-keystore
+++ b/abs/extra/ca-certificates-java/init-jks-keystore