2006-08-03 09:49:00 +00:00
|
|
|
# ports collection makefile for: tor-devel
|
|
|
|
# Date created: 2005.10.20
|
|
|
|
# Whom: peter.thoenen@yahoo.com
|
2004-05-29 07:30:00 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tor
|
2006-12-16 10:27:29 +00:00
|
|
|
PORTVERSION= 0.1.1.26
|
2005-01-08 20:18:49 +00:00
|
|
|
CATEGORIES= security net
|
2006-03-16 14:43:56 +00:00
|
|
|
MASTER_SITES= http://tor.eff.org/dist/ \
|
2006-08-03 09:49:00 +00:00
|
|
|
http://mirror.onionland.org/dist/
|
2004-05-29 07:30:00 +00:00
|
|
|
|
2006-08-03 09:49:00 +00:00
|
|
|
MAINTAINER= peter.thoenen@yahoo.com
|
2004-05-29 07:30:00 +00:00
|
|
|
COMMENT= An anonymizing overlay network for TCP
|
|
|
|
|
2004-10-11 23:25:24 +00:00
|
|
|
RUN_DEPENDS= tsocks:${PORTSDIR}/net/tsocks
|
2006-12-05 13:29:01 +00:00
|
|
|
LIB_DEPENDS= event-1.2a:${PORTSDIR}/devel/libevent
|
2004-07-08 18:49:10 +00:00
|
|
|
|
2004-05-29 07:30:00 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
2006-08-03 09:49:00 +00:00
|
|
|
USE_RC_SUBR= tor
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2004-05-29 07:30:00 +00:00
|
|
|
MANCOMPRESSED= no
|
2004-10-11 23:25:24 +00:00
|
|
|
MAN1= tor.1 tor-resolve.1 torify.1
|
2004-05-29 07:30:00 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/contrib/tor-tsocks.conf \
|
|
|
|
${WRKSRC}/contrib/tor-tsocks.conf.sample
|
|
|
|
@${REINPLACE_CMD} -e "s|tor-tsocks.conf|tor-tsocks.conf.sample|g" \
|
|
|
|
${WRKSRC}/contrib/Makefile.in
|
2005-01-08 20:18:49 +00:00
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} \
|
|
|
|
-n 10 ${REINPLACE_CMD} -E \
|
|
|
|
-e 's!-g -O2!!' \
|
|
|
|
-e 's!-O2!!'
|
2004-05-29 07:30:00 +00:00
|
|
|
|
2007-02-12 13:33:56 +00:00
|
|
|
pre-su-install:
|
2006-08-03 09:49:00 +00:00
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
|
|
|
|
${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2005-01-30 14:55:57 +00:00
|
|
|
|
2004-07-08 18:49:10 +00:00
|
|
|
post-install:
|
2006-08-03 09:49:00 +00:00
|
|
|
@${TOUCH} /var/log/tor
|
|
|
|
@${CHOWN} _tor:_tor /var/log/tor
|
|
|
|
@${MKDIR} /var/db/tor
|
|
|
|
@${MKDIR} /var/db/tor/data
|
|
|
|
@${CHOWN} _tor:_tor /var/db/tor
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-07-08 18:49:10 +00:00
|
|
|
|
2004-05-29 07:30:00 +00:00
|
|
|
.include <bsd.port.mk>
|