# Maintainer: Erich Eckner pkgbase=simple-pki pkgname=(simple-pki-ca simple-pki-cb) pkgver=0.2.4 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=('5c56827b326c4eb4f079eb62c40ed000a54e02a87152fd948fff47209f3da6869f9747adedc089c5a3dce1379ad70ceac2c1fa6aa03e43e0053f49e04ba6ffb0') build() { cd ${pkgbase}-${pkgver} make } package_simple-pki-ca() { backup=( "etc/${pkgbase}/ca.conf" "etc/${pkgbase}/ca-ssl.conf" ) 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 }