🔒 Repository is read-only – file editing is disabled.
1234567891011121314151617181920212223242526272829303132333435363738394041424344
pkgname: 'make-ca'
pkgver: '1.16.1'
pkgrel: '5'
pkgdesc: 'Utility to deliver and manage a complete PKI configuration'
url: 'https://github.com/djlucas/make-ca/'
arch: x86_64
depends:
- gawk
- nss
- 'p11-kit'
makedepends: []
source:
- 'https://hg-edge.mozilla.org/projects/nss/raw-file/tip/lib/ckfw/builtins/certdata.txt'
- 'https://github.com/lfs-book/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz'
sha256sums:
- beb7e6dfe6499926e52c075c27bcfbe4c957f8609c575b3860273ae2806f63eb
- 98c7e6fded1938b972d0177b5d5e925d318be87f84ee9e4cad680656a8c29414
hooks:
'post-install': |
# Wygeneruj magazyn PKI teraz (p11-kit/GnuTLS czyta /etc/pki/anchors).
# Bez tego /etc/pki/anchors jest pusty -> GnuTLS widzi 0 certyfikatow,
# a TLS pada (np. bazaar nie laczy sie z Flathubem).
/usr/sbin/make-ca -g -f >/dev/null 2>&1 || true
# Odswiezaj tez automatycznie (timer jest domyslnie wylaczony).
systemctl enable update-pki.timer >/dev/null 2>&1 || true
build: |
install -vdm755 ${PKGDIR}/etc/ssl
install -m644 certdata.txt ${PKGDIR}/etc/ssl/certdata.txt
cd ${pkgname}-${pkgver}
make DESTDIR=${PKGDIR} SBINDIR=/usr/bin install
# Generate all the certificates a first time
${PKGDIR}/usr/bin/make-ca -r -D ${PKGDIR}
# And refresh it .. don't ask me
# ${PKGDIR}/usr/bin/make-ca -g -D ${PKGDIR}
package: |
true