# Maintainer: Natanael Copa pkgname=ca-certificates pkgver=20141019 _date=${pkgver%_p*} _nmu="+nmu${pkgver#*_p}" [ "$_nmu" = "+nmu${pkgver}" ] && _nmu="" _ver=${pkgver} pkgrel=1 pkgdesc="Common CA certificates PEM files" url="http://packages.debian.org/sid/ca-certificates" arch="noarch" license="MPL 2.0 GPL2+" depends="run-parts openssl lua5.2 lua5.2-posix" makedepends="python" subpackages="$pkgname-doc" options="!fhs" triggers="ca-certificates.trigger=/usr/share/ca-certificates:/usr/local/share/ca-certificates:/etc/ssl/certs" source="http://ftp.no.debian.org/debian/pool/main/c/$pkgname/${pkgname}_${_ver}.tar.xz update-ca-certificates " _builddir="$srcdir"/$pkgname-$_ver build () { cd "$_builddir" make || return 1 } package() { cd "$_builddir" install -d -m755 "$pkgdir"/etc/ca-certificates/update.d \ "$pkgdir"/usr/sbin \ "$pkgdir"/usr/share/ca-certificates \ "$pkgdir"/usr/local/share/ca-certificates \ "$pkgdir"/etc/ssl/certs \ || return 1 make DESTDIR="$pkgdir" install || return 1 install -D -m644 sbin/update-ca-certificates.8 \ "$pkgdir"/usr/share/man/man8/update-ca-certificates.8 \ || return 1 ( echo "# Automatically generated by ${pkgname}-${pkgver}-${pkgrel}" echo "# $(date -u)" echo "# Do not edit." cd "$pkgdir"/usr/share/ca-certificates find . -name '*.crt' | sort | cut -b3- ) > "$pkgdir"/etc/ca-certificates.conf # http://bugs.alpinelinux.org/issues/2715 # http://bugs.alpinelinux.org/issues/2846 install -m755 "$srcdir"/update-ca-certificates "$pkgdir"/usr/sbin \ || return 1 mkdir -p "$pkgdir"/etc/apk/protected_paths.d cat < "$pkgdir"/etc/apk/protected_paths.d/ca-certificates.list -etc/ssl/certs/ca-certificates.crt -etc/ssl/certs/ca-cert-*.pem -etc/ssl/certs/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].[r0-9]* EOF } md5sums="f619282081c8bfc65ea64c37fa5285ed ca-certificates_20141019.tar.xz bb24a9e2caf6150053a981e617a209a9 update-ca-certificates" sha256sums="684902d3f4e9ad27829f4af0d9d2d588afed03667997579b9c2be86fcd1eb73a ca-certificates_20141019.tar.xz 4f109a22d74ef36f691933716a83c015b8475ed4e47d21bd0d7f8baef4de046b update-ca-certificates" sha512sums="5b0e8fb917f5642a5a2b4fde46a706db0c652ff3fb31a5053d9123a5b670b50c6e3cf2496915cc01c613dcbe964d6432f393c12d8a697baedfad58f9d13e568b ca-certificates_20141019.tar.xz dadf046999f226cef0b14bd9014e59f04fa05a984339ff84940a2beb0f33f70bc921233d22291a294f9366c67989f5d337febd1832574c2e28317c14de84ff00 update-ca-certificates"