Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 14:03:47 -0700 (PDT)
From:      Peter Thoenen <eol1@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/87759: New Port: security/tor-devel
Message-ID:  <20051020210347.59742.qmail@web51911.mail.yahoo.com>
Resent-Message-ID: <200510202110.j9KLA8gi081714@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         87759
>Category:       ports
>Synopsis:       New Port: security/tor-devel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 20 21:10:08 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Peter Thoenen
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
>Description:
New Port: security/tor-devel .  Track tor development branch.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#   tor-devel
#   tor-devel/files
#   tor-devel/files/patch-contrib-tor.sh.in
#   tor-devel/distinfo
#   tor-devel/pkg-descr
#   tor-devel/Makefile
#   tor-devel/pkg-plist
#   tor-devel/pkg-install
#
echo c - tor-devel
mkdir -p tor-devel > /dev/null 2>&1
echo c - tor-devel/files
mkdir -p tor-devel/files > /dev/null 2>&1
echo x - tor-devel/files/patch-contrib-tor.sh.in
X--- contrib/tor.sh.in.orig Sun Jun  5 15:44:43 2005
X+++ contrib/tor.sh.in  Fri Sep  2 13:25:51 2005
X@@ -5,12 +5,12 @@
X # chkconfig: 2345 90 10
X # description: Onion Router
X
X-TORUSER=
X-TORGROUP=
X+TORUSER=_tor
X+TORGROUP=_tor
X TORBIN=@BINDIR@/tor
X TORPID=@LOCALSTATEDIR@/run/tor/tor.pid
X-TORLOG=@LOCALSTATEDIR@/log/tor/tor.log
X-TORDATA=@LOCALSTATEDIR@/lib/tor
X+TORLOG=/var/log/tor.log
X+TORDATA=/var/db/tor/data
X
X TORCONF=@CONFDIR@/torrc
X # Strictly speaking, we don't need to su if we have --user and --group.
X@@ -48,7 +48,7 @@
X         if  [ "x$TORUSER" = "x" ]; then
X             $TORBIN -f $TORCONF $TORARGS
X         else
X-            $SUPROG -c "$TORBIN -f $TORCONF $TORARGS" $TORUSER
X+            $SUPROG $TORUSER -c "$TORBIN -f $TORCONF $TORARGS"
X         fi
X         RETVAL=$?
X         if [ $RETVAL -eq 0 ]; then
END-of-tor-devel/files/patch-contrib-tor.sh.in
echo x - tor-devel/distinfo
sed 's/^X//' >tor-devel/distinfo << 'END-of-tor-devel/distinfo'
XMD5 (tor-0.1.1.8-alpha.tar.gz) = 10c40e2518f63747f1e3a349bf480139
XSIZE (tor-0.1.1.8-alpha.tar.gz) = 703116
END-of-tor-devel/distinfo
echo x - tor-devel/pkg-descr
sed 's/^X//' >tor-devel/pkg-descr << 'END-of-tor-devel/pkg-descr'
XTor: an anonymizing overlay network for TCP
X
XTor is a connection-based low-latency anonymous communication system which
Xaddresses many flaws in the original onion routing design.
X
XTor is a toolset for a wide range of organizations and people that
Xwant to improve their safety and security on the Internet. Using
XTor can help you anonymize web browsing and publishing, instant
Xmessaging, IRC, SSH, and more. Tor also provides a platform on which
Xsoftware developers can build new applications with built-in
Xanonymity, safety, and privacy features.
X
XRemember that this is development code -- DON'T RELY ON THE CURRENT TOR
XNETWORK FOR ANONYMITY!
X
XWWW: http://tor.eff.org/
X- rik
Xfreebsd-ports@rikrose.net
END-of-tor-devel/pkg-descr
echo x - tor-devel/Makefile
sed 's/^X//' >tor-devel/Makefile << 'END-of-tor-devel/Makefile'
X# ports collection makefile for:       tor-devel
X# Date created:                2005.10.20
X# Whom:                        eol1@yahoo.com
X#
X# $FreeBSD$
X#
X
XPORTNAME=  tor
XPORTVERSION=   0.1.1.8
XCATEGORIES=    security net
XMASTER_SITES=  http://tor.eff.org/dist/
XPKGNAMESUFFIX= -devel
XDISTNAME=  ${PORTNAME}-${PORTVERSION}-alpha
X
XMAINTAINER=    eol1@yahoo.com
XCOMMENT=   An anonymizing overlay network for TCP
X
XRUN_DEPENDS=   tsocks:${PORTSDIR}/net/tsocks
XLIB_DEPENDS=   event-1.1a:${PORTSDIR}/devel/libevent
X
XGNU_CONFIGURE= yes
XUSE_OPENSSL=   yes
XUSE_REINPLACE= yes
X
XCONFLICTS= tor-0.1.0.*
X
XMANCOMPRESSED= no
Xpost-patch:
X   @${MV} ${WRKSRC}/contrib/tor-tsocks.conf \
X       ${WRKSRC}/contrib/tor-tsocks.conf.sample
X   @${REINPLACE_CMD} -e "s|tor-tsocks.conf|tor-tsocks.conf.sample|g" \
X       ${WRKSRC}/contrib/Makefile.in
X# uphold CFLAGS
X   @${FIND} ${WRKSRC} -type f | ${XARGS} \
X       -n 10 ${REINPLACE_CMD} -E \
X       -e 's!-g -O2!!' \
X       -e 's!-O2!!'
X
Xpre-install:
X   PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xpost-install:
X   ${INSTALL_DATA} ${WRKSRC}/contrib/tor.sh ${PREFIX}/etc/rc.d/tor.sh.sample
X
X.include <bsd.port.mk>
END-of-tor-devel/Makefile
echo x - tor-devel/pkg-plist
sed 's/^X//' >tor-devel/pkg-plist << 'END-of-tor-devel/pkg-plist'
Xbin/tor
Xbin/tor-resolve
Xbin/torify
Xetc/rc.d/tor.sh.sample
Xetc/tor/torrc.sample
Xetc/tor/tor-tsocks.conf.sample
X@unexec rmdir %D/etc/tor 2>/dev/null || true
END-of-tor-devel/pkg-plist
echo x - tor-devel/pkg-install
sed 's/^X//' >tor-devel/pkg-install << 'END-of-tor-devel/pkg-install'
X#!/bin/sh
X
Xif [ x"$2" = xPRE-INSTALL ]; then
X    USER="_tor"
X    UID="256"
X    GROUP="_tor"
X    GID="256"
X
X   if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then
X       echo "You already have a group \"${GROUP}\", so I will use it."
X   else
X       if /usr/sbin/pw groupadd ${GROUP} -g ${GID}; then
X           echo "Added group \"${GROUP}\"."
X       else
X           echo "Adding group \"${GROUP}\" failed..."
X           echo "Please create it, and try again."
X           exit 1
X       fi
X   fi
X
X   if /usr/sbin/pw user show "${USER}" 2>/dev/null; then
X       echo "You already have a user \"${USER}\", so I will use it."
X   else
X       if /usr/sbin/pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
X           -d /var/db/tor \
X           -s /bin/sh \
X           -c "Tor anonymising router"; then
X           echo "Added user \"${USER}\"."
X       else
X           echo "Adding user \"${USER}\" failed..."
X           echo "Please create it, and try again."
X           exit 1
X       fi
X   fi
Xfi
END-of-tor-devel/pkg-install
exit
--- tor-devel-0.1.1.8.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051020210347.59742.qmail>