wok-6.x annotate tor/receipt @ rev 25442

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 02 16:30:36 2022 +0000 (2022-09-02)
parents c887ff05679a
children
rev   line source
0dddba11@861 1 # SliTaz package receipt.
0dddba11@861 2
0dddba11@861 3 PACKAGE="tor"
pascal@23839 4 VERSION="0.4.3.5"
0dddba11@861 5 CATEGORY="network"
Hans-G?nter@22041 6 SHORT_DESC="An anonymizing overlay network for TCP."
pankso@19681 7 MAINTAINER="pankso@slitaz.org"
pascal@15601 8 LICENSE="BSD"
Hans-G?nter@22041 9 WEB_SITE="https://www.torproject.org/"
Hans-G?nter@22041 10
0dddba11@861 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22041 12 WGET_URL="${WEB_SITE}dist/$TARBALL"
Hans-G?nter@22041 13
Hans-G?nter@22041 14 DEPENDS="libevent liblzma libssl zstd"
Hans-G?nter@22041 15 BUILD_DEPENDS="libevent-dev liblzma-dev openssl-dev zstd-dev"
Hans-G?nter@22041 16
pankso@16346 17 HOST_ARCH="i486 arm"
0dddba11@861 18
pascal@24304 19 # What is the latest version available today?
pascal@24304 20 current_version()
pascal@24304 21 {
pascal@24304 22 wget -O - $WEB_SITE/download/tor 2>/dev/null | \
pascal@24304 23 sed '/ChangeLog/!d;s|.*tor-||;s|".*||;q'
pascal@24304 24 }
pascal@24304 25
0dddba11@861 26 # Rules to configure and make the package.
0dddba11@861 27 compile_rules()
0dddba11@861 28 {
Hans-G?nter@22041 29 ./configure \
Hans-G?nter@22041 30 --sysconfdir=/etc \
pankso@16346 31 $CONFIGURE_ARGS &&
Hans-G?nter@22041 32 make &&
Hans-G?nter@22041 33 make install
0dddba11@861 34 }
0dddba11@861 35
0dddba11@861 36 # Rules to gen a SliTaz package suitable for Tazpkg.
0dddba11@861 37 genpkg_rules()
0dddba11@861 38 {
gokhlayeh@8866 39 mkdir -p $fs/usr
Hans-G?nter@22041 40
Hans-G?nter@22041 41 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22041 42 #cp -a $install/usr/share/tor $fs/usr/share
pankso@11654 43
Hans-G?nter@22041 44 # configuration file.
Hans-G?nter@22041 45 cp -a $install/etc $fs
Hans-G?nter@22041 46 mv $fs/etc/tor/torrc.sample $fs/etc/tor/torrc
0dddba11@861 47 }