head	1.5;
access;
symbols
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2;
locks; strict;
comment	@# @;


1.5
date	2009.08.09.13.20.46;	author erwin;	state dead;
branches;
next	1.4;

1.4
date	2009.01.06.17.59.21;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2007.04.03.12.08.12;	author rafan;	state Exp;
branches;
next	1.2;

1.2
date	2006.07.22.19.16.59;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2006.07.22.09.56.26;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.5
log
@security/dns-proxy-tor
security/trans-proxy-tor: trans-proxy-tor is rendered obsolete by Tor\'s TransPort option  (currently only available in tor-devel)

Approved by:	maintainer
@
text
@# ports collection makefile for: 		trans-proxy-tor
# Date created: 				2006-06-11
# Whom:						Fabian Keil <fk@@fabiankeil.de>
#
# $FreeBSD: ports/security/trans-proxy-tor/Makefile,v 1.4 2009/01/06 17:59:21 pav Exp $
#

PORTNAME=	trans-proxy-tor
PORTVERSION=	0.1.0
PORTREVISION=	1
CATEGORIES=	security net
MASTER_SITES=	http://p56soo2ibjkx23xo.onion/ \
		http://www.fabiankeil.de/sourcecode/freebsd/

MAINTAINER=	fk@@fabiankeil.de
COMMENT=	Transparent proxy used to redirect TCP connections into Tor

RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Event/Lib.pm:${PORTSDIR}/devel/p5-Event-Lib

USE_PERL5_RUN=	yes
USE_RC_SUBR=	${PORTNAME}

SUB_FILES=	pkg-message

NO_BUILD=	yes

DEPRECATED=	trans-proxy-tor is rendered obsolete by Tor\'s TransPort option \
		(currently only available in tor-devel)

OPTIONS=	DNS_PROXY_TOR	"Depend on dns-proxy-tor"	On

HAVE_TOR!=	if pkg_info -I tor-\* >/dev/null 2>&1 ; then ${ECHO} YES; fi
.if ${HAVE_TOR} == "YES"
HAVE_TOR_DEVEL!=	if pkg_info -I tor-devel\* >/dev/null 2>&1 ; then ${ECHO} YES; fi

.if ${HAVE_TOR_DEVEL} == "YES"
OPTIONS+=	TOR_DEVEL	"Depend on tor-devel (already installed)"	Off
.else
OPTIONS+=	TOR		"Depend on tor (already installed)"	Off
.endif

.else

OPTIONS+=	TOR_DEVEL	"Depend on tor-devel"	Off
OPTIONS+=	TOR		"Depend on tor"	Off

.endif

.include <bsd.port.pre.mk>

.if defined(WITH_DNS_PROXY_TOR)
RUN_DEPENDS+=	${LOCALBASE}/bin/dns-proxy-tor:${PORTSDIR}/security/dns-proxy-tor
.endif

.if defined(WITH_TOR_DEVEL)
.if defined(WITH_TOR)
IGNORE=	cannot depend on tor and tor-devel at the same time
.endif

RUN_DEPENDS+=	${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel
.elif defined(WITH_TOR)
RUN_DEPENDS+=	${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor
.endif

.if defined(NO_PF)
IGNORE=		requires PF
.endif

pre-install:
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
	${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for file in LICENSE README changelog filter-examples
	${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
	${CHOWN} -R _trans-proxy-tor:_trans-proxy-tor ${DOCSDIR}

.endif

post-install:
	${MKDIR} ${PREFIX}/var/run/${PORTNAME}
	${CHOWN} _trans-proxy-tor:_trans-proxy-tor ${PREFIX}/var/run/${PORTNAME}
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.4
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.3
log
@- Turn tor and dns-proxy-tor dependencies into OPTIONS
- Detect installed tor version
- Correct pkg-plist when NOPORTDOCS
- Use NO_BUILD instead of empty do-build target
- Mark as deprecated in favour of Tor's TransPort option

PR:		ports/111149 (based on)
Approved by:	Fabian Keil <fk at fabiankeil.de> (maintainer)
@
text
@a68 4
.if (${OSVERSION} < 502106)
IGNORE=		requires PF which is not available on FreeBSD versions below 5.3
.endif

@


1.2
log
@- Update to 0.1.0

PR:		ports/100717
Submitted by:	Fabian Keil <fk@@fabiankeil.de>
Approved by:	krion (mentor)
@
text
@d10 1
d18 1
a18 3
RUN_DEPENDS=	${LOCALBASE}/bin/dns-proxy-tor:${PORTSDIR}/security/dns-proxy-tor \
		${SITE_PERL}/${PERL_ARCH}/Event/Lib.pm:${PORTSDIR}/devel/p5-Event-Lib \
		${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel
d24 24
a47 1
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}
d51 14
a72 1
do-build:
@


1.1
log
@Add trans-proxy-tor,  transparent proxy used to redirect TCP
connections into Tor.

trans-proxy-tor is a transparent proxy
that uses PF to redirect TCP connections
through Tor (http://tor.eff.org/).

Programs that aren't aware of Tor
will use it without their knowledge,
and their traffic no longer leaves the
system unencrypted.

PR:		ports/99034
Submitted by:	Fabian Keil <fk at fabiankeil.de>
@
text
@d9 1
a9 1
PORTVERSION=	0.0.9
@

