wok annotate tinc/receipt @ rev 25672

Up minidlna (1.3.3), phpmyadmin (5.2.1), pidgin (2.14.13), redis (7.2.4), rsync (3.2.7), rust (1.76.0), screen (4.9.1), squashfs (4.6.1), squid (6.7), stunnel (5.72), tcpdump (4.99.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 26 14:07:44 2024 +0000 (10 months ago)
parents 026f210c4201
children
rev   line source
pascal@4917 1 # SliTaz package receipt.
pascal@4917 2
pascal@4917 3 PACKAGE="tinc"
Hans-G?nter@22031 4 VERSION="1.0.36"
pascal@4917 5 CATEGORY="network"
Hans-G?nter@22031 6 TAGS="vpn tunnel"
pascal@4917 7 SHORT_DESC="Virtual Private Network daemon with pseudo STUN support."
pascal@4917 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14698 9 LICENSE="GPL2"
Hans-G?nter@22031 10 WEB_SITE="https://www.tinc-vpn.org/"
Hans-G?nter@22031 11
pascal@4917 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4917 13 WGET_URL="${WEB_SITE}packages/$TARBALL"
pascal@14698 14
pascal@4917 15 BUILD_DEPENDS="openssl-dev zlib-dev lzo-dev"
pascal@4917 16 DEPENDS="libcrypto zlib lzo"
pascal@4917 17
Hans-G?nter@22031 18 CONFIG_FILES="/etc/tinc"
Hans-G?nter@22031 19
pascal@23042 20 current_version()
pascal@23042 21 {
pascal@23051 22 wget -O - $WEB_SITE 2>/dev/null | \
pascal@23051 23 sed '/version: /!d;s|.*">\(.*\)</a.*|\1|'
pascal@23042 24 }
pascal@23042 25
pascal@4917 26 # Rules to configure and make the package.
pascal@4917 27 compile_rules()
pascal@4917 28 {
Hans-G?nter@22031 29 ./configure \
Hans-G?nter@22031 30 --prefix=/usr \
Hans-G?nter@22031 31 --sysconfdir=/etc \
Hans-G?nter@22031 32 --localstatedir=/var \
Hans-G?nter@22031 33 --mandir=/usr/share/man \
pascal@18105 34 $CONFIGURE_ARGS &&
pascal@4917 35 make &&
pascal@14467 36 make DESTDIR=$DESTDIR install
pascal@4917 37 }
pascal@4917 38
pascal@4917 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4917 40 genpkg_rules()
pascal@4917 41 {
pascal@4917 42 mkdir -p $fs/usr
Hans-G?nter@22031 43
Hans-G?nter@22031 44 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22031 45 cp -a $stuff/* $fs
pascal@4917 46 }
pascal@24043 47
pascal@24043 48 post_install()
pascal@24043 49 {
pascal@24043 50 grep -q'^tinc\b' $1/etc/services || cat >> $1/etc/services <<EOT
pascal@24043 51 tinc 655/tcp TINC
pascal@24043 52 tinc 655/udp TINC
pascal@24043 53 EOT
pascal@24043 54 }