void-packages/srcpkgs/ca-certificates/template

31 lines
960 B
Text

# Template file for 'ca-certificates'
pkgname=ca-certificates
version=20140325
revision=2
wrksrc="${pkgname}"
noarch="yes"
hostmakedepends="python openssl run-parts"
makedepends="openssl openssl-crehash run-parts"
depends="${makedepends}"
conf_files="/etc/ca-certificates.conf"
short_desc="Common CA certificates"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://packages.qa.debian.org/c/ca-certificates.html"
license="GPL-2"
distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version}.tar.xz"
checksum=c0e3d8c517995db2737f7f1a9b69d654b8823fa6d337871c6ce111fcf083454a
do_build() {
make ${makejobs}
}
do_install() {
vmkdir usr/share/${pkgname}
vmkdir usr/sbin
vmkdir etc/ssl/certs
make install DESTDIR=${DESTDIR}
install -Dm644 sbin/update-ca-certificates.8 \
${DESTDIR}/usr/share/man/man8/update-ca-certificates.8
cd ${DESTDIR}/usr/share/ca-certificates
find . -name '*.crt' | sort | cut -b3- > ${DESTDIR}/etc/ca-certificates.conf
}