# Maintainer: Erich Eckner pkgbase=simple-pki pkgname=(simple-pki-ca simple-pki-cb) pkgver=0.1 pkgrel=3 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=('de39775f50f5ff0bacd18ae3acfcccae5408efe6f384a9a8c7413ed8cf4c1682fd3111dc459a281ad5ba162cee76e6f97293f1d388e37119f20f76ce3d53d947') 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 }