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