# Maintainer: Erich Eckner pkgbase=simple-pki pkgdesc='Scripts to manage a simple pki' pkgname=(simple-pki-ca simple-pki-cb) pkgver=0.3.2 pkgrel=1 arch=('any') url="https://git.eckner.net/Erich/${pkgname}" license=('GPL') makedepends=('nginx' 'openssl' 'rsync') source=( "https://git.eckner.net/Erich/${pkgbase}/snapshot/${pkgbase}-${pkgver}.tar.xz" ) sha512sums=('6e5565e81df4f290274739b4205a5924870f12c2f20d9b36a86d053872658051591c7522aed1d484e562a3b958fdfce88503a7558daf14db9a02cbed11758559') 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 }