Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=72bd9c241a98ff4e53c0c9dadce029d11536856a
commit 72bd9c241a98ff4e53c0c9dadce029d11536856a Author: DeX77 <[email protected]> Date: Sat Mar 22 19:38:10 2014 +0100 ca-certificates-20140223-1-x86_64 * version bump + add ca-certificates-java subpackage diff --git a/source/base/ca-certificates/FrugalBuild b/source/base/ca-certificates/FrugalBuild index 02e1889..f2fd56d 100644 --- a/source/base/ca-certificates/FrugalBuild +++ b/source/base/ca-certificates/FrugalBuild @@ -2,21 +2,31 @@ # Maintainer: DeX77 <[email protected]> pkgname=ca-certificates -pkgver=20130906 -pkgrel=4 +pkgver=20140223 +pkgrel=1 pkgdesc='Common CA certificates' archs=('i686' 'x86_64' 'arm') groups=('base') depends=('openssl' 'scriptlet-core' 'perl') +makedepends=('openjdk') url='http://packages.qa.debian.org/c/ca-certificates.html' _F_cd_path="$pkgname" Fpkgversep="_" -source=("ftp://ftp.debian.org/debian/pool/main/c/${pkgname}/${pkgname}_${pkgver}.tar.gz" disable-hooks.patch remove-old-certificates.patch) -up2date="Flasttar ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/ .tar.gz" +source=("ftp://ftp.debian.org/debian/pool/main/c/${pkgname}/${pkgname}_${pkgver}.tar.xz" \ + disable-hooks.patch remove-old-certificates.patch updatekeystore) +up2date="Flasttar ftp://ftp.debian.org/debian/pool/main/c/ca-certificates/ .tar.xz" backup=('etc/ca-certificates.conf') -sha1sums=('7f197c1bf7c7fc82e9f8f2fec6d8cc65f6a6187b' \ +sha1sums=('ad57a45f0422fafd78a2e8191e5204f2306cc91b' \ 'b78762f50fd1cb31563c76cef72c1c3d3fa37878' \ - '257345cd41da2ebebf64733a6c0a8c05adf43cc7') + '257345cd41da2ebebf64733a6c0a8c05adf43cc7' \ + '2738372f38c270877e77121329cede3ced5a88db') + +subpkgs=('ca-certificates-java') +subdescs=('Java Keystore of common CA certificates') +subdepends=('') +subgroups=('xapps') +subarchs=('i686 x86_64') + build() { Fmkdir usr/share/ca-certificates @@ -26,4 +36,19 @@ build() { echo "# Automatically generated by ${pkgname}-${pkgver}-${pkgrel}" > $Fdestdir/etc/ca-certificates.conf || Fdie echo "#" >> $Fdestdir/etc/ca-certificates.conf || Fdie find $Fdestdir/usr/share/$pkgname -name '*.crt' | sed "s|^$Fdestdir/usr/share/$pkgname/||" | sort -u >> $Fdestdir/etc/ca-certificates.conf + + KEYSTORE="$Fdestdir/usr/lib/jvm/java-7-openjdk/jre/lib/security/cacerts" + Fmkdir usr/lib/jvm/java-7-openjdk/jre/lib/security + + for i in `find $Fdestdir/usr/share/$pkgname ! -type d` + do + filename=$(basename "$i") + aliasname="${filename%.*}" + /usr/lib/jvm/java-7-openjdk/jre/bin/keytool -import -keystore $KEYSTORE -storepass changeit -noprompt -file $i -alias $aliasname + done + + Finstall 755 updatekeystore /etc/cron.daily/updatekeystore + Fsplit ca-certificates-java /etc/cron.daily/updatekeystore + Fsplit ca-certificates-java /usr/lib/jvm/java-7-openjdk/jre/lib/security/cacerts + } diff --git a/source/base/ca-certificates/updatekeystore b/source/base/ca-certificates/updatekeystore new file mode 100755 index 0000000..cfda85d --- /dev/null +++ b/source/base/ca-certificates/updatekeystore @@ -0,0 +1,10 @@ +#!/bin/sh + +KEYSTORE="/usr/lib/jvm/java-7-openjdk/jre/lib/security/cacerts" + +for i in `find /etc/ssl/certs ! -type d` +do + filename=$(basename "$i") + aliasname="${filename%.*}" + /usr/lib/jvm/java-7-openjdk/jre/bin/keytool -import -keystore $KEYSTORE -storepass changeit -noprompt -file $i -alias $aliasname +done _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
