🔒 Repository is read-only – file editing is disabled.

recipes/core/make-ca/PAGBUILD.yaml main

44 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435363738394041424344
pkgname: 'make-ca'
pkgver: '1.16.1'
pkgrel: '3'
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': |
    name=make-ca
    version=1.16.1
    release=3
    INFO="\033[1;36m"
    NORMAL="\033[0;39m"
    printf "${INFO}run regularly the command: make-ca -g -f${NORMAL}\n"

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