wok-current view easy-rsa/receipt @ rev 22852
updated glances (3.1.0 -> 3.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 17 14:07:08 2020 +0100 (2020-02-17) |
parents | 8c7a00fa1a66 |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="easy-rsa"
4 VERSION="3.0.6"
5 CATEGORY="security"
6 SHORT_DESC="A Shell-based CA Utility"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/OpenVPN/easy-rsa"
11 WGET_URL="https://github.com/OpenVPN/easy-rsa/archive/v$VERSION.tar.gz"
13 DEPENDS="openssl"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $install/usr/share $fs/usr/share $fs/usr/bin
19 cp -a $src/doc $install/usr/share
20 cp -a $src/easyrsa${VERSION%%.*} $fs/usr/share/easy-rsa
21 cat > $fs/usr/bin/make-cadir <<EOT
22 #!/bin/sh
24 [ -e "\${1:-.}" ] && echo "Usage: \$0 DIRECTORY_TO_CREATE" && exit 1
26 mkdir -m 700 -p "\$1"
27 ln -s /usr/share/easy-rsa/easyrsa "\$1"
28 ln -s /usr/share/easy-rsa/x509-types "\$1"
29 cp /usr/share/easy-rsa/openssl-easyrsa.cnf "\$1"
30 cp /usr/share/easy-rsa/vars.example "\$1/vars"
31 EOT
32 chmod +x $fs/usr/bin/make-cadir
33 }