wok-6.x rev 21888
Add easy-rsa
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 02 21:55:48 2019 +0200 (2019-10-02) |
parents | 91afa79e06ed |
children | 4de7333f0ac9 |
files | easy-rsa/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/easy-rsa/receipt Wed Oct 02 21:55:48 2019 +0200 1.3 @@ -0,0 +1,34 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="easy-rsa" 1.7 +VERSION="3.0.6" 1.8 +CATEGORY="security" 1.9 +SHORT_DESC="A Shell-based CA Utility" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="https://github.com/OpenVPN/easy-rsa" 1.14 +WGET_URL="https://github.com/OpenVPN/easy-rsa/archive/v$VERSION.tar.gz" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $install/usr/share $fs/usr/share/ $fs/usr/bin 1.20 + cp -a $src/doc $install/usr/share 1.21 + cp -a $src/easyrsa${VERSION%%.*} $fs/usr/share/esay-rsa 1.22 + cat > $fs/usr/bin/make-cadir <<EOT 1.23 +#!/bin/sh 1.24 + 1.25 +if [ -z "\$1" ] || [ -e "\$1" ]; then 1.26 + echo "Usage: \$0 DIRECTORY" 1.27 + exit 1 1.28 +fi 1.29 + 1.30 +mkdir -m 700 -p "\$1" 1.31 +ln -s /usr/share/easy-rsa/easyrsa "\$1" 1.32 +ln -s /usr/share/easy-rsa/x509-types "\$1" 1.33 +cp /usr/share/easy-rsa/openssl-easyrsa.cnf "\$1" 1.34 +cp /usr/share/easy-rsa/vars.example "\$1/vars" 1.35 +EOT 1.36 + chmod +x $fs/usr/bin/make-cadir 1.37 +}