Bug 87759 - New Port: security/tor-devel
Summary: New Port: security/tor-devel
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Edwin Groothuis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 22:10 UTC by Peter Thoenen
Modified: 2005-11-26 01:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Thoenen 2005-10-20 22:10:08 UTC
New Port: security/tor-devel .  Track tor development branch.

Generated with FreeBSD Port Tools 0.63

Fix: 

--- tor-devel-0.1.1.8.shar ends here -----ixI7MB8wrg1bYNWPJr3qydq9E1FFUXvw9wGMrC2rhMzeRMbM
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.shar"

# 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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-22 07:10:47 UTC
State Changed
From-To: open->repocopy

Please repocopy security/tor to security/tor-devel 


Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-22 07:10:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Please repocopy security/tor to security/tor-devel
Comment 3 Joe Marcus Clarke freebsd_committer freebsd_triage 2005-11-25 20:28:03 UTC
State Changed
From-To: repocopy->open

Repocopy completed. 


Comment 4 Joe Marcus Clarke freebsd_committer freebsd_triage 2005-11-25 20:28:03 UTC
Responsible Changed
From-To: portmgr->edwin

Repocopy completed.
Comment 5 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-26 01:04:45 UTC
State Changed
From-To: open->closed

Committed, thanks!