pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

tor-dev: recreate with version 0.2.9.6



Module Name:	pkgsrc-wip
Committed By:	Christian Sturm <reezer%reezer.org@localhost>
Pushed By:	athaba
Date:		Mon Dec 5 16:00:22 2016 +0000
Changeset:	43f027ca912218cffb0dd90e9a04045278c71deb

Modified Files:
	Makefile
Added Files:
	tor-dev/DESCR
	tor-dev/MESSAGE
	tor-dev/Makefile
	tor-dev/PLIST
	tor-dev/distinfo
	tor-dev/files/tor.in
	tor-dev/options.mk

Log Message:
tor-dev: recreate with version 0.2.9.6

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=43f027ca912218cffb0dd90e9a04045278c71deb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile             |  1 +
 tor-dev/DESCR        | 11 ++++++++
 tor-dev/MESSAGE      |  7 ++++++
 tor-dev/Makefile     | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 tor-dev/PLIST        | 17 +++++++++++++
 tor-dev/distinfo     |  6 +++++
 tor-dev/files/tor.in | 46 ++++++++++++++++++++++++++++++++++
 tor-dev/options.mk   | 19 ++++++++++++++
 8 files changed, 178 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 67b053b..0f821d2 100644
--- a/Makefile
+++ b/Makefile
@@ -4111,6 +4111,7 @@ SUBDIR+=	tome
 SUBDIR+=	tome2
 SUBDIR+=	tophat
 SUBDIR+=	tops-bin
+SUBDIR+=	tor-dev
 SUBDIR+=	torcs
 SUBDIR+=	torque2d
 SUBDIR+=	torque3d
diff --git a/tor-dev/DESCR b/tor-dev/DESCR
new file mode 100644
index 0000000..9aa64b8
--- /dev/null
+++ b/tor-dev/DESCR
@@ -0,0 +1,11 @@
+The simple version: Tor provides a distributed network of servers ("onion
+routers"). Users bounce their TCP streams (web traffic, FTP, SSH, etc.) around
+the routers. This makes it hard for recipients, observers, and even the onion
+routers themselves to track the source of the stream.
+
+The complex version:  Onion Routing is a connection-oriented anonymizing
+communication service. Users choose a source-routed path through a set of
+nodes, and negotiate a "virtual circuit" through the network, in which each
+node knows its predecessor and successor, but no others. Traffic flowing down
+the circuit is unwrapped by a symmetric key at each node, which reveals the
+downstream node.
diff --git a/tor-dev/MESSAGE b/tor-dev/MESSAGE
new file mode 100644
index 0000000..6d04ef3
--- /dev/null
+++ b/tor-dev/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.9 2016/03/20 07:24:53 ryoon Exp $
+
+Please note that the only way the Tor Project recommends browsing the
+web through Tor is the Tor Browser, which is packaged as
+security/tor-browser. See security/tor-browser/MESSAGE too.
+===========================================================================
diff --git a/tor-dev/Makefile b/tor-dev/Makefile
new file mode 100644
index 0000000..dec3557
--- /dev/null
+++ b/tor-dev/Makefile
@@ -0,0 +1,71 @@
+# $NetBSD$
+
+DISTNAME=		tor-0.2.9.6-rc
+PKGNAME=		${DISTNAME:S/-rc//}
+CATEGORIES=		net security
+MASTER_SITES=		http://www.torproject.org/dist/
+
+MAINTAINER=		reezer%reezer.org@localhost
+HOMEPAGE=		http://www.torproject.org/
+COMMENT=		Anonymizing overlay network for TCP
+LICENSE=		modified-bsd
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_LANGUAGES=		c99
+USE_PKGLOCALEDIR=	yes
+# https://trac.torproject.org/projects/tor/ticket/17818
+USE_TOOLS+=		gmake
+GNU_CONFIGURE=		yes
+
+CONFIGURE_ENV+=		CPP=${CPP:Q}
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASEDIR}
+
+TEST_TARGET=		check
+
+TOR_USER?=		tor
+TOR_GROUP?=		tor
+PKG_GECOS.${TOR_USER}=	Torifier
+PKG_HOME.${TOR_USER}=	${VARBASE}/chroot/tor
+BUILD_DEFS+=		VARBASE
+PKG_SYSCONFSUBDIR=	tor
+
+PKG_GROUPS_VARS+=	TOR_GROUP
+PKG_USERS_VARS=		TOR_USER
+
+RCD_SCRIPTS=		tor
+RCD_SCRIPT_SRC.tor=	${FILESDIR}/tor.in
+PKG_GROUPS=		${TOR_GROUP}
+PKG_USERS=		${TOR_USER}:${TOR_GROUP}
+USER_GROUP=		${TOR_USER} ${TOR_GROUP}
+
+OWN_DIRS_PERMS+=	${PKG_HOME.${TOR_USER}} ${USER_GROUP} 0700
+
+CONFIGURE_ARGS+=	--localstatedir=${VARBASE}
+
+CONF_FILES+=		${PREFIX}/share/examples/tor/torrc.sample 	\
+				${PKG_SYSCONFDIR}/torrc
+
+FILES_SUBST+=		PKG_HOME=${PKG_HOME.${TOR_USER}}
+FILES_SUBST+=		TOR_USER=${TOR_USER} TOR_GROUP=${TOR_GROUP}
+
+INSTALL_MAKE_FLAGS+=	sysconfdir=${PREFIX}/share/examples
+
+CHECK_PORTABILITY_SKIP+=contrib/*
+
+.if !empty(PKGSRC_COMPILER:Mmipspro)
+CFLAGS+=		-c99
+.endif
+
+BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.openssl+=	openssl>=1.0
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+## We include this after other b3.mk files since we use PTHREAD_TYPE.
+##
+.include "options.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/tor-dev/PLIST b/tor-dev/PLIST
new file mode 100644
index 0000000..cae0314
--- /dev/null
+++ b/tor-dev/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.12 2014/06/07 09:11:36 wiz Exp $
+bin/tor
+bin/tor-gencert
+bin/tor-resolve
+bin/torify
+man/man1/tor-gencert.1
+man/man1/tor-resolve.1
+man/man1/tor.1
+man/man1/torify.1
+share/doc/tor/tor-gencert.html
+share/doc/tor/tor-resolve.html
+share/doc/tor/tor.html
+share/doc/tor/torify.html
+share/examples/rc.d/tor
+share/examples/tor/torrc.sample
+share/tor/geoip
+share/tor/geoip6
diff --git a/tor-dev/distinfo b/tor-dev/distinfo
new file mode 100644
index 0000000..5d85d18
--- /dev/null
+++ b/tor-dev/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.74 2016/10/19 10:58:14 wiz Exp $
+
+SHA1 (tor-0.2.9.6-rc.tar.gz) = 843f4b74994524dd43fcacf736115cd7e69e7612
+RMD160 (tor-0.2.9.6-rc.tar.gz) = 19bb1b11c6b150526bb7fa97f120363cda22a3ae
+SHA512 (tor-0.2.9.6-rc.tar.gz) = f037de16cc9687098aa5f9655dac39b87d0bd050bb2aa8884b31c9c64f64fed85897497f35d16691f50e2db980ea1babaf5ef553d3c372137b462b34ac7cdf51
+Size (tor-0.2.9.6-rc.tar.gz) = 5492978 bytes
diff --git a/tor-dev/files/tor.in b/tor-dev/files/tor.in
new file mode 100644
index 0000000..6165b2a
--- /dev/null
+++ b/tor-dev/files/tor.in
@@ -0,0 +1,46 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: tor.in,v 1.5 2015/12/11 12:13:00 wiz Exp $
+#
+# PROVIDE: tor
+# REQUIRE: DAEMON NETWORKING
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start tor:
+#
+# tor=YES
+
+if [ -f /etc/rc.subr ]
+then
+	. /etc/rc.subr
+fi
+
+name="tor"
+rcvar=$name
+command="@PREFIX@/bin/tor"
+required_files="@PKG_SYSCONFDIR@/torrc"
+start_cmd="tor_start"
+stop_cmd="tor_stop"
+pidfile="@PKG_HOME@/${name}.pid"
+restart_cmd="tor_stop ; tor_start"
+extra_commands="reload"
+
+tor_start ()
+{
+	${command} --User @TOR_USER@ --RunAsDaemon 1 \
+		--DataDirectory @PKG_HOME@ --PIDFile ${pidfile}
+}
+
+tor_stop()
+{
+	kill `cat ${pidfile}` 2>/dev/null
+}
+
+if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
+then
+	load_rc_config $name
+	run_rc_command "$1"
+else
+	eval ${start_cmd}
+fi
+
diff --git a/tor-dev/options.mk b/tor-dev/options.mk
new file mode 100644
index 0000000..e12cb92
--- /dev/null
+++ b/tor-dev/options.mk
@@ -0,0 +1,19 @@
+# $NetBSD: options.mk,v 1.7 2015/05/23 08:53:11 bsiegert Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.tor
+PKG_SUPPORTED_OPTIONS=	doc
+PKG_SUGGESTED_OPTIONS+=	doc
+
+.include "../../mk/bsd.options.mk"
+
+###
+### This enables the build of manual pages. It requires asciidoc
+### at build time, which comes with a tail of dependencies and
+### may not be wanted under certain circumstances.
+###
+.if !empty(PKG_OPTIONS:Mdoc)
+BUILD_DEPENDS+=		asciidoc>=8.3.3:../../textproc/asciidoc
+CONFIGURE_ARGS+=	--enable-asciidoc
+.else
+CONFIGURE_ARGS+=	--disable-asciidoc
+.endif


Home | Main Index | Thread Index | Old Index