smlinux/net/tor/tor.SMBuild
PktSurf 03da9ec93f Discarded '--disable-nls' and similar build options in several build files to allow building of translation files
Added '--docdir' build option to extra/xarchiver, gtk/libcanberra, net/{tor,x2x} build files
Updated net/cgit tarball checksum
Switched to cmake build system in net/weechat
Discarded 'v' verbosity argument used for extracting net/x2x tarball and its doinst.sh
Fixed hardcoded doc directory name in xorg/jasper
2023-04-01 10:28:44 +05:30

44 lines
986 B
Text
Executable file

app=tor
version=0.4.1.6
build=2sml
homepage="https://www.torproject.org/"
download="https://archive.torproject.org/tor-package-archive/tor-$version.tar.gz"
desc="The second-generation onion router"
requires="gcc-libs zlib libcap openssl libevent ca-certificates"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix="" \
--sysconfdir=/etc \
--docdir="/share/doc/$app-$version" \
--disable-tool-name-check \
--enable-pic
make
make install DESTDIR=$pkg
cp LICENSE $pkgdocs/
rm $pkg/etc/tor/torrc.sample
cp $srcdir/torrc.sample $pkg/etc/tor/torrc
mkdir -p $pkg/var/lib/tor
chown -R tor:tor $pkg/var/lib/tor
preprunitservice tor down
mkfinalpkg
}
sha512sums="
58bf6c233e13fd7dd1cfdeee55aadd3641e727a1f35173b1c2dfb73412591122499c4f78c03f913fed2780f1f2ed3798ab5bc533b0fd98d3960e12d04d375dba tor-0.4.1.6.tar.lz
"