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

updated davfs2 (1.5.6 -> 1.6.1)
author Hans-G?nter Theisgen
date Thu Feb 17 14:10:04 2022 +0100 (2022-02-17)
parents 2ba7edb00cce
children 26ddfb7b3611
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@24055 15 current_version()
pascal@24055 16 {
pascal@24055 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 19 }
pascal@24055 20
pascal@21888 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21888 22 genpkg_rules()
pascal@21888 23 {
pascal@21917 24 mkdir -p $install/usr/share $fs/usr/share $fs/usr/bin
pascal@21888 25 cp -a $src/doc $install/usr/share
pascal@21893 26 cp -a $src/easyrsa${VERSION%%.*} $fs/usr/share/easy-rsa
pascal@21888 27 cat > $fs/usr/bin/make-cadir <<EOT
pascal@21888 28 #!/bin/sh
pascal@21888 29
pascal@21917 30 [ -e "\${1:-.}" ] && echo "Usage: \$0 DIRECTORY_TO_CREATE" && exit 1
pascal@21888 31
pascal@21888 32 mkdir -m 700 -p "\$1"
pascal@21888 33 ln -s /usr/share/easy-rsa/easyrsa "\$1"
pascal@21888 34 ln -s /usr/share/easy-rsa/x509-types "\$1"
pascal@21888 35 cp /usr/share/easy-rsa/openssl-easyrsa.cnf "\$1"
pascal@21888 36 cp /usr/share/easy-rsa/vars.example "\$1/vars"
pascal@21888 37 EOT
pascal@21888 38 chmod +x $fs/usr/bin/make-cadir
pascal@21888 39 }