smlinux/net/tor/tor.SMBuild
PktSurf d18addf386 Replaced upper case variable with lower case in net/cgit
Improved code to install dump1090 binary in net/dump1090 and hostname symlinks in net/hostname
Removed code that manually discards static archives in net/php
Miscellaneous SHA512 checksum updates and minor fixes in several net pkg build files
2022-10-10 22:54:00 +05:30

41 lines
925 B
Text
Executable file

app=tor
version=0.4.1.6
build=1sml
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"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
./configure \
--prefix="" \
--sysconfdir=/etc \
--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
"