[arch-commits] Commit in ca-certificates/repos (3 files)

Pierre Schmitz pierre at nymeria.archlinux.org
Sun May 12 06:43:12 EDT 2013


    Date: Sunday, May 12, 2013 @ 12:43:11
  Author: pierre
Revision: 185236

archrelease: copy trunk to testing-any

Added:
  ca-certificates/repos/testing-any/
  ca-certificates/repos/testing-any/PKGBUILD
    (from rev 185235, ca-certificates/trunk/PKGBUILD)
  ca-certificates/repos/testing-any/ca-certificates.install
    (from rev 185235, ca-certificates/trunk/ca-certificates.install)

-------------------------+
 PKGBUILD                |   39 +++++++++++++++++++++++++++++++++++++++
 ca-certificates.install |   26 ++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

Copied: ca-certificates/repos/testing-any/PKGBUILD (from rev 185235, ca-certificates/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2013-05-12 10:43:11 UTC (rev 185236)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=ca-certificates
+pkgver=20130119
+pkgrel=2
+pkgdesc='Common CA certificates'
+arch=('any')
+url='http://packages.qa.debian.org/c/ca-certificates.html'
+license=('MPL' 'GPL')
+source=("http://ftp.debian.org/debian/pool/main/c/${pkgname}/${pkgname}_${pkgver}.tar.gz")
+depends=('bash' 'run-parts' 'openssl' 'findutils' 'coreutils' 'sed')
+makedepends=('python2')
+install='ca-certificates.install'
+backup=('etc/ca-certificates.conf')
+sha256sums=('fb51ec9a2c551838cc1646a0b3c9e6bea5c1bb20ff5d71c542451fac4b191c22')
+
+build() {
+	cd ${srcdir}/${pkgname}-${pkgver}
+	sed 's|/usr/bin/python|/usr/bin/python2|g' -i mozilla/certdata2pem.py
+	sed 's|python|python2|g' -i mozilla/Makefile
+	make
+}
+
+package() {
+	cd ${srcdir}/${pkgname}-${pkgver}
+	install -d -m755 ${pkgdir}/{etc/ca-certificates/update.d,usr/{sbin,share/ca-certificates},etc/ssl/certs}
+	make install DESTDIR=${pkgdir}
+	mv ${pkgdir}/usr/sbin ${pkgdir}/usr/bin
+	install -D -m644 sbin/update-ca-certificates.8 ${pkgdir}/usr/share/man/man8/update-ca-certificates.8
+
+	(
+	echo "# Automatically generated by ${pkgname}-${pkgver}-${pkgrel}"
+	echo "# see update-ca-certificates man page"
+	echo "# "
+	cd ${pkgdir}/usr/share/ca-certificates
+	find . -name '*.crt' | sort | cut -b3-
+	) > ${pkgdir}/etc/ca-certificates.conf
+}

Copied: ca-certificates/repos/testing-any/ca-certificates.install (from rev 185235, ca-certificates/trunk/ca-certificates.install)
===================================================================
--- testing-any/ca-certificates.install	                        (rev 0)
+++ testing-any/ca-certificates.install	2013-05-12 10:43:11 UTC (rev 185236)
@@ -0,0 +1,26 @@
+export LC_ALL=C
+
+post_install() {
+	usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
+}
+
+post_upgrade() {
+	if [ $(vercmp $2 20110421-1) -lt 0 ]; then
+		echo 'Updating certificates. This might take a while...'
+	fi
+	usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
+}
+
+pre_remove() {
+	# clean up certificates
+	local _backup=$(mktemp)
+	mv etc/ca-certificates.conf ${_backup}
+	echo > etc/ca-certificates.conf
+	usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
+	mv ${_backup} etc/ca-certificates.conf
+}
+
+post_remove() {
+	# remove the cert file if it is empty
+	[[ -s etc/ssl/certs/ca-certificates.crt ]] || rm -f etc/ssl/certs/ca-certificates.crt
+}



More information about the arch-commits mailing list