---
name: tor
version: 0.2.3.25
origin: security/tor
comment: An anonymizing overlay network for TCP
arch: freebsd:9:x86:64
www: http://torproject.org/
maintainer: bf@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [BSD]
flatsize: 6384929
desc: |
  Tor: an anonymizing overlay network for TCP

  Tor is a connection-based low-latency anonymous communication system which
  addresses many flaws in the original onion routing design.

  Tor is a toolset for a wide range of organizations and people that
  want to improve their safety and security on the Internet. Using
  Tor can help you anonymize web browsing and publishing, instant
  messaging, IRC, SSH, and more. Tor also provides a platform on which
  software developers can build new applications with built-in
  anonymity, safety, and privacy features.

  WWW: http://torproject.org/
deps:
  libevent2: {origin: devel/libevent2, version: 2.0.21}
categories: [security, net, ipv6]
users: [_tor]
groups: [_tor]
options: {BUFFEREVENTS: off, BUFFREELISTS: on, GMAKE: off, INSTR_DOWNLOADS: off, STATIC_TOR: off,
  TCMALLOC: off, THREADS: on, TOR2WEB: off, TRANSPARENT: on}
files:
  /usr/local/bin/tor: 19c2250b4a221f72124036c32461d0fd94f003f535e04477293a559387a36b6b
  /usr/local/bin/tor-gencert: 97fe9e765cf3f8f8ede8097453510f28ee75a8621aad71b90438b1a59eb3347b
  /usr/local/bin/tor-resolve: 0e979aa66922c497dd34147199f09fb659e3240807ee6d3c90c1ef827b2b3216
  /usr/local/bin/torify: 64b0ef643a0c59677961c601b0f6970a6b6010117646054b076bdf3b8d40970e
  /usr/local/etc/rc.d/tor: de0433763a0b8f7b1aaa64853707613ed881cb5eee4eacc625c7cf2d42113b05
  /usr/local/etc/tor/tor-tsocks.conf.sample: c85eb09355586c20129d2aa892c6858b4d64558169ede539e004476e39c04d89
  /usr/local/etc/tor/torrc.sample: 7bf1ded8e3d8bab124c1919a1e4b000d40f9f68a3f5b17b99dc9d817a4d09944
  /usr/local/man/man1/tor-gencert.1.gz: ac60b8c9c1dffd53f14edc45f593867fb47b529cadb7017f416a9eefc8abbc18
  /usr/local/man/man1/tor-resolve.1.gz: b67e6c29ed34a619f9dd5332a2e3c165795a3f8c8ef2f5935ef4a516a394c688
  /usr/local/man/man1/tor.1.gz: e5860d7527c506b312f62ea14243c5f9656ccf39086fc73bb5f42fdd5d0c89d4
  /usr/local/man/man1/torify.1.gz: 7c25fb56e4c0fb8f89a83df45c5dad80e6a46a9565cad8ce5a70423d7db48da8
  /usr/local/share/licenses/tor-0.2.3.25/BSD: fe2d48a13afef6f54b29c6d61467288a631783e96ee873104df84b61f0f6278c
  /usr/local/share/licenses/tor-0.2.3.25/LICENSE: d9cce0db43502eb1bd8fbef7e960cfaa43b5647186f7f7379923b336209fd77b
  /usr/local/share/licenses/tor-0.2.3.25/catalog.mk: 7c4536b7c03ec1a22b6a3d05e2993d267b509cc5ad789fbe2410de86503445aa
  /usr/local/share/tor/geoip: 7082e9e9163671ddc3ecdc3dfdebf454a45f70da3a2654f245218f845319c274
directories:
  /usr/local/share/tor/: n
  /usr/local/share/licenses/tor-0.2.3.25/: n
  /usr/local/share/licenses/: y
  /usr/local/etc/tor/: y
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow _tor >/dev/null 2>&1; then  echo "Creating group '_tor' with gid '256'.";  /usr/sbin/pw groupadd _tor -g 256; else echo "Using existing group '_tor'."; fi
    if ! /usr/sbin/pw usershow _tor >/dev/null 2>&1; then  echo "Creating user '_tor' with uid '256'.";  /usr/sbin/pw useradd _tor -u 256 -g 256  -c "Tor anonymizing router" -d /var/db/tor -s /usr/sbin/nologin;  else echo "Using existing user '_tor'."; fi
    install -d -g 256 -o 256 /var/db/tor
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if /usr/sbin/pw usershow _tor >/dev/null 2>&1; then  echo "==> You should manually remove the \"_tor\" user. "; fi
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
message: |
  ================================================================================
  To enable the tor server, set tor_enable="YES" in your /etc/rc.conf
  and edit /usr/local/etc/tor/torrc.  Note that the rc.subr script overrides
  many torrc options and is tunable: see /usr/local/etc/rc.d/tor for details.
  To use the torify script, install the net/torsocks port. After removing the
  package, or updating to a new version, users may need to delete all files
  in /var/db/tor.
  ================================================================================
