wok annotate tor/receipt @ rev 25057

linux-libre: fix linux-libre-3.18.129-gnu-slitaz.config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 06 11:05:30 2022 +0000 (2022-06-06)
parents c887ff05679a
children 96982f54e3dc
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 }