head	1.4;
access;
symbols
	RELEASE_7_2_0:1.3
	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.4
date	2009.08.09.13.20.46;	author erwin;	state dead;
branches;
next	1.3;

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

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

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


desc
@@


1.4
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: 		dns-proxy-tor
# Date created: 				2006-06-11
# Whom:						Fabian Keil <fk@@fabiankeil.de>
#
# $FreeBSD: ports/security/dns-proxy-tor/Makefile,v 1.3 2007/04/03 12:06:03 rafan Exp $
#

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

MAINTAINER=	fk@@fabiankeil.de
COMMENT=	Resolves DNS requests through Tor

USE_PERL5_RUN=	yes
USE_RC_SUBR=	${PORTNAME}

NO_BUILD=	yes

SUB_FILES=	pkg-message

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)"	On
.else
OPTIONS=	TOR		"Depend on tor (already installed)"	On
.endif

.else

OPTIONS= 	TOR_DEVEL	"Depend on tor-devel"	On \
		TOR		"Depend on tor"		Off

.endif

.include <bsd.port.pre.mk>

.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

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 _dns-proxy-tor:_dns-proxy-tor ${DOCSDIR}

.endif

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

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


1.3
log
@- Turn tor dependency into OPTIONS
- Detect installed tor version
- Correct pkg-plist when NOPORTDOCS
- Remove unnecessary DOCSDIR
- Use NO_BUILD instead of empty do-build target

PR:		ports/111148 (based on)
Approved by:	Fabian Keil <fk at fabiankeil.de> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.2
log
@- Update to 0.1.0

PR:		ports/100716
Submitted by:	Fabian Keil <fk@@fabiankeil.de>
Approved by:	krion (mentor)
@
text
@d10 1
a18 1
RUN_DEPENDS=	${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel
d22 2
a23 1
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}
d26 29
a54 1
do-build:
d57 1
d75 1
a75 1
.include <bsd.port.mk>
@


1.1
log
@Add dns-proxy-tor, resolves DNS requests through Tor.

dns-proxy-tor is a DNS server that stops
DNS leaks with applications that don't support
or aren't configured to use socks4a or Tor's DNS
resolution.

WWW: http://http://p56soo2ibjkx23xo.onion/

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

