SF.net SVN: gar:[23456] csw/mgar/pkg/tor

jake_goerzen at users.sourceforge.net jake_goerzen at users.sourceforge.net
Tue Apr 22 01:22:32 CEST 2014


Revision: 23456
          http://sourceforge.net/p/gar/code/23456
Author:   jake_goerzen
Date:     2014-04-21 23:22:28 +0000 (Mon, 21 Apr 2014)
Log Message:
-----------
initial commit of tor alpha (development) relese

Added Paths:
-----------
    csw/mgar/pkg/tor/branches/
    csw/mgar/pkg/tor/branches/alpha/
    csw/mgar/pkg/tor/branches/alpha/Makefile
    csw/mgar/pkg/tor/branches/alpha/checksums
    csw/mgar/pkg/tor/branches/alpha/files/
    csw/mgar/pkg/tor/branches/alpha/files/README.CSW
    csw/mgar/pkg/tor/branches/alpha/files/cswtor

Removed Paths:
-------------
    csw/mgar/pkg/tor/branches/

Added: csw/mgar/pkg/tor/branches/alpha/Makefile
===================================================================
--- csw/mgar/pkg/tor/branches/alpha/Makefile	                        (rev 0)
+++ csw/mgar/pkg/tor/branches/alpha/Makefile	2014-04-21 23:22:28 UTC (rev 23456)
@@ -0,0 +1,51 @@
+# $Id: Makefile 23124 2014-03-03 23:36:01Z jake_goerzen $
+NAME = tor
+VERSION = 0.2.5.3-alpha
+GARTYPE = v2
+
+DESCRIPTION = Secure network traffic router
+define BLURB
+Basically tor provides a distributed network of servers (onion routers). Users bounce their TCP streams (web traffic, ftp, ssh, etc) around the routers, and recipients, observers, and even the routers themselves have difficulty tracking the source of the stream.
+endef
+
+MASTER_SITES = http://www.torproject.org/dist/
+DISTFILES  = $(DISTNAME).tar.gz
+
+# File name regex to get notifications about upstream software releases
+UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
+
+VENDOR_URL = http://www.torproject.org
+LICENSE = LICENSE
+
+RUNTIME_DEP_PKGS_CSWtor += CSWlibevent2-0-5
+RUNTIME_DEP_PKGS_CSWtor += CSWlibssl1-0-0
+RUNTIME_DEP_PKGS_CSWtor += CSWlibz1
+
+sysconfdir = /etc/opt/csw
+CONFIGURE_ARGS = $(DIRPATHS)
+
+EXTRA_PAX_ARGS = -s ',/torrc\.sample,/torrc.CSW,p'
+
+PRESERVECONF += $(sysconfdir)/tor/tor-tsocks.conf
+PRESERVECONF += $(sysconfdir)/tor/torrc
+
+MIGRATE_FILES += tor/tor-tsocks.conf
+MIGRATE_FILES += tor/torrc
+
+INITSMF = /etc/opt/csw/init.d/cswtor
+
+PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
+
+include gar/category.mk
+
+post-install-modulated:
+
+	# Copy SMF script
+	ginstall -Dm 755 $(FILEDIR)/cswtor \
+		$(DESTDIR)/etc/opt/csw/init.d/cswtor
+
+	# Copy README.CSW to docs
+	ginstall -m 444 $(FILEDIR)/README.CSW \
+		$(DESTDIR)/opt/csw/share/doc/tor/
+
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/tor/branches/alpha/checksums
===================================================================
--- csw/mgar/pkg/tor/branches/alpha/checksums	                        (rev 0)
+++ csw/mgar/pkg/tor/branches/alpha/checksums	2014-04-21 23:22:28 UTC (rev 23456)
@@ -0,0 +1 @@
+8714ea9ceaa7477534c88385edfdf7df  tor-0.2.5.3-alpha.tar.gz

Added: csw/mgar/pkg/tor/branches/alpha/files/README.CSW
===================================================================
--- csw/mgar/pkg/tor/branches/alpha/files/README.CSW	                        (rev 0)
+++ csw/mgar/pkg/tor/branches/alpha/files/README.CSW	2014-04-21 23:22:28 UTC (rev 23456)
@@ -0,0 +1,3 @@
+NOTE: This is a system level instance of Tor which may not be the most secure way to implement Tor.  You should read the Tor documentation and understand the security implications of running a system level Tor before depending on this method for anonymity.
+
+https://www.torproject.org/docs/documentation.html

Added: csw/mgar/pkg/tor/branches/alpha/files/cswtor
===================================================================
--- csw/mgar/pkg/tor/branches/alpha/files/cswtor	                        (rev 0)
+++ csw/mgar/pkg/tor/branches/alpha/files/cswtor	2014-04-21 23:22:28 UTC (rev 23456)
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+#FMRI network
+
+DAEMON=/opt/csw/bin/tor
+CONF=/etc/opt/csw/tor/torrc
+pidfile=/var/opt/csw/run/tor.pid
+
+case "$1" in
+  start)
+    echo "Starting Tor"
+    $DAEMON --RunAsDaemon 1 --PidFile /var/opt/csw/run/tor.pid
+    ;;
+  stop)
+    echo "Stopping Tor"
+    kill `cat $pidfile`
+    ;;
+  restart)
+    echo "Restarting Tor"
+    kill `cat $pidfile`
+    sleep 1
+    $DAEMON --RunAsDaemon 1 --PidFile /var/opt/csw/run/tor.pid
+    ;;
+  *)
+    echo "Usage: $0 { start | stop | restart }"
+    exit 1
+    ;;
+esac
+
+exit 0

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list