wok view easy-rsa/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 26ddfb7b3611
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $install/usr/share
27 mkdir -p $fs/usr/share
28 mkdir -p $fs/usr/bin
30 cp -a $src/doc $install/usr/share
31 cp -a $src/easyrsa${VERSION%%.*} $fs/usr/share/easy-rsa
33 cat > $fs/usr/bin/make-cadir <<EOT
34 #!/bin/sh
36 [ -e "\${1:-.}" ] && echo "Usage: \$0 DIRECTORY_TO_CREATE" && exit 1
38 mkdir -m 700 -p "\$1"
39 ln -s /usr/share/easy-rsa/easyrsa "\$1"
40 ln -s /usr/share/easy-rsa/x509-types "\$1"
41 cp /usr/share/easy-rsa/openssl-easyrsa.cnf "\$1"
42 cp /usr/share/easy-rsa/vars.example "\$1/vars"
43 EOT
45 chmod +x $fs/usr/bin/make-cadir
46 }