update to tor 0.0.9.1

mostly from Jon Trembley <jon at brain-box.net>
This commit is contained in:
sturm 2005-01-03 22:03:00 +00:00
parent 66bc271c9c
commit 84428a27af
5 changed files with 50 additions and 9 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.3 2004/12/16 00:31:26 alek Exp $
# $OpenBSD: Makefile,v 1.4 2005/01/03 22:03:00 sturm Exp $
COMMENT= "Anonymity service using onion routing"
DISTNAME= tor-0.0.8.1
DISTNAME= tor-0.0.9.1
CATEGORIES= net
HOMEPAGE= http://www.freehaven.net/tor/
@ -17,7 +17,9 @@ MASTER_SITES= http://www.freehaven.net/tor/dist/
AUTOCONF_VERSION= 2.59
CONFIGURE_STYLE= gnu
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--with-ssl-dir=/usr
FAKE_FLAGS=DESTDIR=${WRKINST} sysconfdir=${PREFIX}/share/examples
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (tor-0.0.8.1.tar.gz) = 7e81be93cfadeccf82c5f6a066adbaa4
RMD160 (tor-0.0.8.1.tar.gz) = 1c638faf9e4e3d3830f9595ca9b59f9808414ed9
SHA1 (tor-0.0.8.1.tar.gz) = 68e92383ae004730ccd2288ab8eee21749bee77f
MD5 (tor-0.0.9.1.tar.gz) = a79e653bcb99a19baf7221405ebf0faa
RMD160 (tor-0.0.9.1.tar.gz) = 9e55c21e470ab72184922e2c5560aed10f7050e2
SHA1 (tor-0.0.9.1.tar.gz) = 3bfc2507640886e62565720e5252ca7fa422a95e

View File

@ -0,0 +1,28 @@
--- configure.orig Wed Dec 15 20:45:59 2004
+++ configure Mon Jan 3 20:57:38 2005
@@ -2270,13 +2270,13 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
- CFLAGS="-g -O2"
+ CFLAGS=""
else
- CFLAGS="-g"
+ CFLAGS=""
fi
else
if test "$GCC" = yes; then
- CFLAGS="-O2"
+ CFLAGS=""
else
CFLAGS=
fi
@@ -10713,7 +10713,7 @@ LOCALSTATEDIR=`eval echo $localstatedir`
# Set CFLAGS _after_ all the above checks, since our warnings are stricter
# than autoconf's macros like.
-CFLAGS="$CFLAGS -Wall -g -O2"
+CFLAGS="$CFLAGS -Wall"
# Add some more warnings which we use in the cvs version but not in the
# released versions. (Some relevant gcc versions can't handle these.)
#CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls"

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_common_crypto_c,v 1.1 2005/01/03 22:03:01 sturm Exp $
--- src/common/crypto.c.orig Mon Jan 3 22:42:39 2005
+++ src/common/crypto.c Mon Jan 3 22:41:51 2005
@@ -470,7 +470,8 @@ crypto_pk_write_private_key_to_filename(
len = BIO_get_mem_data(bio, &cp);
tor_assert(len >= 0);
s = tor_malloc(len+1);
- strlcpy(s, cp, len+1);
+ memcpy(s, cp, len);
+ s[len]='\0';
r = write_str_to_file(fname, s, 0);
BIO_free(bio);
free(s);

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/09/26 10:06:29 espie Exp $
@comment $OpenBSD: PLIST,v 1.2 2005/01/03 22:03:02 sturm Exp $
bin/tor
bin/tor-resolve
bin/torify
@ -7,8 +7,6 @@ bin/torify
@man man/man1/torify.1
share/examples/tor/
@sample ${SYSCONFDIR}/tor/
share/examples/tor/dirservers
@sample ${SYSCONFDIR}/tor/dirservers
share/examples/tor/tor-tsocks.conf
@sample ${SYSCONFDIR}/tor/tor-tsocks.conf
share/examples/tor/torrc.sample