wok view easy-rsa/receipt @ rev 24086
libtorrent needs atomic memory access
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 10 17:20:34 2021 +0000 (2021-07-10) |
parents | 2ba7edb00cce |
children | 26ddfb7b3611 |
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 current_version()
16 {
17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $install/usr/share $fs/usr/share $fs/usr/bin
25 cp -a $src/doc $install/usr/share
26 cp -a $src/easyrsa${VERSION%%.*} $fs/usr/share/easy-rsa
27 cat > $fs/usr/bin/make-cadir <<EOT
28 #!/bin/sh
30 [ -e "\${1:-.}" ] && echo "Usage: \$0 DIRECTORY_TO_CREATE" && exit 1
32 mkdir -m 700 -p "\$1"
33 ln -s /usr/share/easy-rsa/easyrsa "\$1"
34 ln -s /usr/share/easy-rsa/x509-types "\$1"
35 cp /usr/share/easy-rsa/openssl-easyrsa.cnf "\$1"
36 cp /usr/share/easy-rsa/vars.example "\$1/vars"
37 EOT
38 chmod +x $fs/usr/bin/make-cadir
39 }