# Maintainer: Erich Eckner pkgbase=simple-pki pkgname=(simple-pki-ca simple-pki-cb) pkgver=0.0.5 pkgrel=1 arch=('any') url="https://git.eckner.net/Erich/${pkgname}" license=('GPL') makedepends=() source=( "https://git.eckner.net/Erich/${pkgbase}/snapshot/${pkgbase}-${pkgver}.tar.xz" ) sha512sums=('b1567826b3c322635abfd4eb4cd79e0fd1314679a86f12f421586d6f163db0610c3aca148c8e8f6d80f4c9104b5314b6e2136ccf9e827eb0e30796e6e3cc880a') build() { cd ${pkgbase}-${pkgver} make } package_simple-pki-ca() { backup=( "etc/${pkgbase}/ca.conf" "etc/${pkgbase}/ca-ssl.conf" ) for suffix in '.crl.srl' '.crt.srl' '.db' '.db.attr'; do backup+=( "etc/${pkgbase}/ca/root-ca/db/root-ca${suffix}" "etc/${pkgbase}/ca/signing-ca/db/signing-ca${suffix}" ) done pkgdesc="Scripts to manage a simple pki ca - including automatic renewal" depends=('openssl' 'rsync') cd ${pkgbase}-${pkgver} make DESTDIR=${pkgdir} install-ca } package_simple-pki-cb() { backup=( "etc/${pkgbase}/cb.conf" "etc/${pkgbase}/server-ssl.conf" ) pkgdesc="Scripts to manage simple pki clients - including automatic renewal" depends=('openssl' 'nginx') cd ${pkgbase}-${pkgver} make DESTDIR=${pkgdir} install-cb }