diff options
author | jschauma <jschauma@pkgsrc.org> | 2005-02-13 20:27:53 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2005-02-13 20:27:53 +0000 |
commit | 6688d0b56b08efcf85f9ac5c87c802c725f81ed7 (patch) | |
tree | b75b44d7e4551944806ebc86b9df8f29d6a4d922 /net/tor/Makefile | |
parent | 169b736c7bbfc6b2206ed6bb4060b609cb2e9d92 (diff) | |
download | pkgsrc-6688d0b56b08efcf85f9ac5c87c802c725f81ed7.tar.gz |
Update tor to 0.0.9.4.
pkgsrc changes:
- depend on tsocks to allow torification of other applications
- create a user for this application to run as
- install a suitable rc script
ChangeLog says:
o Bugfixes on 0.0.9:
- Fix an assert bug that took down most of our servers: when
a server claims to have 500 GB of bandwidthburst, don't
freak out.
- Don't crash as badly if we have spawned the max allowed number
of dnsworkers, or we're out of file descriptors.
- Block more file-sharing ports in the default exit policy.
- MaxConn is now automatically set to the hard limit of max
file descriptors we're allowed (ulimit -n), minus a few for
logs, etc.
- Give a clearer message when servers need to raise their
ulimit -n when they start running out of file descriptors.
- SGI Compatibility patches from Jan Schaumann.
- Tolerate a corrupt cached directory better.
- When a dirserver hasn't approved your server, list which one.
- Go into soft hibernation after 95% of the bandwidth is used,
not 99%. This is especially important for daily hibernators who
have a small accounting max. Hopefully it will result in fewer
cut connections when the hard hibernation starts.
- Load-balance better when using servers that claim more than
800kB/s of capacity.
- Make NT services work (experimental, only used if compiled in).
Diffstat (limited to 'net/tor/Makefile')
-rw-r--r-- | net/tor/Makefile | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/net/tor/Makefile b/net/tor/Makefile index 54880677890..ced22199200 100644 --- a/net/tor/Makefile +++ b/net/tor/Makefile @@ -1,18 +1,33 @@ -# $NetBSD: Makefile,v 1.5 2005/02/02 16:41:22 jschauma Exp $ +# $NetBSD: Makefile,v 1.6 2005/02/13 20:27:53 jschauma Exp $ # -DISTNAME= tor-0.0.9.3 +DISTNAME= tor-0.0.9.4 CATEGORIES= net security MASTER_SITES= http://tor.eff.org/dist/ MAINTAINER= jschauma@NetBSD.org -HOMEPAGE= http://tor.eff.org +HOMEPAGE= http://tor.eff.org/ COMMENT= Anonymizing overlay network for TCP +DEPENDS+= tsocks>=1.7:../../net/tsocks + +.include "../../mk/bsd.prefs.mk" + USE_BUILDLINK3= yes USE_PKGLOCALEDIR= yes GNU_CONFIGURE= yes + +TOR_USER?= tor +TOR_GROUP?= tor +PKG_HOME?= /var/chroot/tor + USE_PKGINSTALL= yes +RCD_SCRIPTS= tor +PKG_GROUPS= ${TOR_GROUP} +PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME} +USER_GROUP= ${TOR_USER} ${TOR_GROUP} + +OWN_DIR_PERMS+= ${PKG_HOME} ${USER_GROUP} 0755 CONFIGURE_ARGS+= --localstatedir=${VARBASE} @@ -21,23 +36,35 @@ CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \ CONF_FILES+= ${PREFIX}/share/examples/tor/torrc.sample \ ${PKG_SYSCONFDIR}/tor/torrc +RCD_SCRIPT= tor + .include "../../mk/bsd.prefs.mk" .if !empty(PKGSRC_COMPILER:Mmipspro) CFLAGS+= -c99 .endif -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/or/tor ${PREFIX}/bin/tor - ${INSTALL_SCRIPT} ${WRKSRC}/contrib/torify ${PREFIX}/bin/torify +post-patch: + ${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \ + -e 's|@PREFIX@|${PREFIX}|g' \ + -e 's|@PKG_HOME@|${PKG_HOME}|g' \ + -e 's|@TOR_USER@|${TOR_USER}|g' \ + -e 's|@TOR_GROUP@|${TOR_GROUP}|g' \ + -e 's|@RCD_SCRIPTS_SHELL@|${RCD_SCRIPTS_SHELL}|g' \ + ${FILESDIR}/tor.in > ${WRKSRC}/tor.pkgsrc.rc + +pre-install: + ${MKDIR} -m 0700 ${PKG_HOME} + +post-install: ${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/tor ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tor ${INSTALL_DATA} ${WRKSRC}/src/config/torrc.sample \ ${PREFIX}/share/examples/tor/torrc.sample ${INSTALL_DATA} ${WRKSRC}/contrib/tor-tsocks.conf \ ${PREFIX}/share/examples/tor/tor-tsocks.conf - ${INSTALL_MAN} ${WRKSRC}/doc/tor.1 ${PREFIX}/man/man1/tor.1 - ${INSTALL_MAN} ${WRKSRC}/contrib/torify.1 ${PREFIX}/man/man1/torify.1 + ${INSTALL_DATA} ${WRKSRC}/tor.pkgsrc.rc ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/tor + ${CHOWN} ${TOR_USER}:${TOR_GROUP} ${PKG_HOME} .include "../../security/openssl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |