wok-current view tinc/receipt @ rev 24507
updated easy-rsa (3.0.6 -> 3.0.8)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 20 16:37:53 2022 +0100 (2022-02-20) |
parents | 026f210c4201 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tinc"
4 VERSION="1.0.36"
5 CATEGORY="network"
6 TAGS="vpn tunnel"
7 SHORT_DESC="Virtual Private Network daemon with pseudo STUN support."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.tinc-vpn.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}packages/$TARBALL"
15 BUILD_DEPENDS="openssl-dev zlib-dev lzo-dev"
16 DEPENDS="libcrypto zlib lzo"
18 CONFIG_FILES="/etc/tinc"
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/version: /!d;s|.*">\(.*\)</a.*|\1|'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --localstatedir=/var \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $stuff/* $fs
46 }
48 post_install()
49 {
50 grep -q'^tinc\b' $1/etc/services || cat >> $1/etc/services <<EOT
51 tinc 655/tcp TINC
52 tinc 655/udp TINC
53 EOT
54 }