wok view tinc/receipt @ rev 25430
Up os-prober (1.81)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 19 06:26:39 2022 +0000 (2022-08-19) |
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 }