wok-current annotate easy-rsa/receipt @ rev 21893

easy-rsa: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 03 15:08:00 2019 +0200 (2019-10-03)
parents f2da28eeed34
children 2ba7edb00cce
rev   line source
pascal@21888 1 # SliTaz package receipt.
pascal@21888 2
pascal@21888 3 PACKAGE="easy-rsa"
pascal@21888 4 VERSION="3.0.6"
pascal@21888 5 CATEGORY="security"
pascal@21888 6 SHORT_DESC="A Shell-based CA Utility"
pascal@21888 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@21888 8 LICENSE="GPL2"
pascal@21888 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21888 10 WEB_SITE="https://github.com/OpenVPN/easy-rsa"
pascal@21888 11 WGET_URL="https://github.com/OpenVPN/easy-rsa/archive/v$VERSION.tar.gz"
pascal@21888 12
pascal@21893 13 DEPENDS="openssl"
pascal@21893 14
pascal@21888 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21888 16 genpkg_rules()
pascal@21888 17 {
pascal@21888 18 mkdir -p $install/usr/share $fs/usr/share/ $fs/usr/bin
pascal@21888 19 cp -a $src/doc $install/usr/share
pascal@21893 20 cp -a $src/easyrsa${VERSION%%.*} $fs/usr/share/easy-rsa
pascal@21888 21 cat > $fs/usr/bin/make-cadir <<EOT
pascal@21888 22 #!/bin/sh
pascal@21888 23
pascal@21893 24 [ -e "\${1:-.}" ] && echo "Usage: \$0 DIRECTORY" && exit 1
pascal@21888 25
pascal@21888 26 mkdir -m 700 -p "\$1"
pascal@21888 27 ln -s /usr/share/easy-rsa/easyrsa "\$1"
pascal@21888 28 ln -s /usr/share/easy-rsa/x509-types "\$1"
pascal@21888 29 cp /usr/share/easy-rsa/openssl-easyrsa.cnf "\$1"
pascal@21888 30 cp /usr/share/easy-rsa/vars.example "\$1/vars"
pascal@21888 31 EOT
pascal@21888 32 chmod +x $fs/usr/bin/make-cadir
pascal@21888 33 }