updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / tor-git / tor.install
blob2baec8f0efb2f5ad9c2895bb6b81851084287034
1 post_install() {
2   echo "==> "
3   echo "==> Tor has been preconfigured to run as a client only"
4   echo "==> Tor is experimental software, Do not rely on it for strong anonymity."
5   echo "==> "
6   echo "==> Development version of Tor has following new features and are enabled by default:"
7   echo "==> "
8   echo "==> - transparant proxy support"
9   echo "==> - 'torified' DNS server to make DNS queries anonymously"
10   echo "==> "
11   echo "==> See https://wiki.torproject.org/noreply/TheOnionRouter/TransparentProxy"
12   echo "==> for more info about transparent traffic routing through Tor"
13   echo "==> "
15   if [ ! `grep '^tor:' /etc/group` ]; then
16     groupadd -g 43 tor &>/dev/null;
17   fi
19   id tor &>/dev/null || \
20     useradd -u 43 -g 43 -d /var/lib/tor -s /bin/false tor
22         install -D -d -o43 -g43 -m0700 /var/log/tor
25 pre_remove() {
26   userdel tor &> /dev/null
27   groupdel tor &> /dev/null
30 post_remove() {
31         echo "==> "
32         echo "==> To clean up after Tor (Subversion) uninstallation"
33         echo "==> delete manually following directories:"
34         echo "==> "
35         echo "==>       /etc/tor"
36         echo "==>       /var/lib/tor"
37         echo "==>       /var/log/tor"
38         echo "==> "