wok view tor/receipt @ rev 25690
mmv: inserted current_version()
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 15 15:20:24 2024 +0100 (6 months ago) |
parents | 922f061231c2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tor"
4 VERSION="0.4.7.16"
5 CATEGORY="network"
6 SHORT_DESC="An anonymizing overlay network for TCP."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.torproject.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}dist/$TARBALL"
14 DEPENDS="libevent liblzma libssl zstd"
15 BUILD_DEPENDS="libevent-dev liblzma-dev openssl-dev zstd-dev"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE/download/tor 2>/dev/null | \
23 sed '/ChangeLog/!d;s|.*tor-||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 #cp -a $install/usr/share/tor $fs/usr/share
44 # configuration file.
45 cp -a $install/etc $fs
46 mv $fs/etc/tor/torrc.sample $fs/etc/tor/torrc
47 }