wok annotate easy-rsa/receipt @ rev 24987

grub: add gpt support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 12 07:08:39 2022 +0000 (2022-05-12)
parents 5ea0ce1cecc0
children 20ad21d5532c
rev   line source
pascal@21888 1 # SliTaz package receipt.
pascal@21888 2
pascal@21888 3 PACKAGE="easy-rsa"
Hans-G?nter@24507 4 VERSION="3.0.8"
pascal@21888 5 CATEGORY="security"
Hans-G?nter@24507 6 SHORT_DESC="A Shell-based CA Utility."
pascal@21888 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@21888 8 LICENSE="GPL2"
Hans-G?nter@24507 9 WEB_SITE="https://github.com/OpenVPN/easy-rsa"
Hans-G?nter@24507 10
pascal@21888 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21888 12 WGET_URL="https://github.com/OpenVPN/easy-rsa/archive/v$VERSION.tar.gz"
pascal@21888 13
pascal@21893 14 DEPENDS="openssl"
pascal@21893 15
pascal@24055 16 current_version()
pascal@24055 17 {
pascal@24055 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 20 }
pascal@24055 21
pascal@21888 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21888 23 genpkg_rules()
pascal@21888 24 {
Hans-G?nter@24507 25 mkdir -p $install/usr/share
Hans-G?nter@24507 26 mkdir -p $fs/usr/share
Hans-G?nter@24507 27 mkdir -p $fs/usr/bin
Hans-G?nter@24507 28
Hans-G?nter@24507 29 cp -a $src/doc $install/usr/share
Hans-G?nter@24507 30 cp -a $src/easyrsa${VERSION%%.*} $fs/usr/share/easy-rsa
Hans-G?nter@24507 31
pascal@21888 32 cat > $fs/usr/bin/make-cadir <<EOT
pascal@21888 33 #!/bin/sh
pascal@21888 34
pascal@21917 35 [ -e "\${1:-.}" ] && echo "Usage: \$0 DIRECTORY_TO_CREATE" && exit 1
pascal@21888 36
pascal@21888 37 mkdir -m 700 -p "\$1"
pascal@21888 38 ln -s /usr/share/easy-rsa/easyrsa "\$1"
pascal@21888 39 ln -s /usr/share/easy-rsa/x509-types "\$1"
pascal@21888 40 cp /usr/share/easy-rsa/openssl-easyrsa.cnf "\$1"
pascal@21888 41 cp /usr/share/easy-rsa/vars.example "\$1/vars"
pascal@21888 42 EOT
Hans-G?nter@24507 43
Hans-G?nter@24507 44 chmod +x $fs/usr/bin/make-cadir
pascal@21888 45 }