View | Details | Raw Unified | Return to bug 111148
Collapse All | Expand All

(-)dns-proxy-tor/Makefile (-2 / +26 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	dns-proxy-tor
8
PORTNAME=	dns-proxy-tor
9
PORTVERSION=	0.1.0
9
PORTVERSION=	0.1.0
10
PORTREVISION=	1
10
CATEGORIES=	security dns
11
CATEGORIES=	security dns
11
MASTER_SITES=	http://p56soo2ibjkx23xo.onion/ \
12
MASTER_SITES=	http://p56soo2ibjkx23xo.onion/ \
12
		http://www.fabiankeil.de/sourcecode/freebsd/
13
		http://www.fabiankeil.de/sourcecode/freebsd/
Lines 15-27 Link Here
15
MAINTAINER=	fk@fabiankeil.de
16
MAINTAINER=	fk@fabiankeil.de
16
COMMENT=	Resolves DNS requests through Tor
17
COMMENT=	Resolves DNS requests through Tor
17
18
18
RUN_DEPENDS=	${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel
19
OPTIONS= 	TOR_DEVEL	"Depend on tor-devel"	On \
20
		TOR		"Depend on tor"		Off
21
19
USE_PERL5_RUN=	yes
22
USE_PERL5_RUN=	yes
20
USE_RC_SUBR=	${PORTNAME}
23
USE_RC_SUBR=	${PORTNAME}
21
24
22
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}
25
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}
23
SUB_FILES=	pkg-message
26
SUB_FILES=	pkg-message
24
27
28
HAVE_TOR_DEVEL!=	if pkg_info -I tor-devel\* >/dev/null 2>&1 ; then ${ECHO} YES; fi
29
.if (${HAVE_TOR_DEVEL} == "YES")
30
OPTIONS=	TOR_DEVEL	"Depend on tor-devel (already installed)"	On
31
.else
32
HAVE_TOR_DEVEL!=	if pkg_info -I tor-\* >/dev/null 2>&1 ; then ${ECHO} YES; fi
33
.endif
34
.if (defined(HAVE_TOR) && ${HAVE_TOR} == "YES")
35
OPTIONS=	TOR		"Depend on tor (already installed)"	On
36
.endif
37
38
.include <bsd.port.pre.mk>
39
40
.if defined(WITH_TOR_DEVEL)
41
.if defined(WITH_TOR)
42
IGNORE=	cannot depend on tor and tor-devel at the same time
43
.endif
44
RUN_DEPENDS+=	${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel
45
.elif defined(WITH_TOR)
46
RUN_DEPENDS+=	${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor
47
.endif
48
25
do-build:
49
do-build:
26
pre-install:
50
pre-install:
27
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
51
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
Lines 42-45 Link Here
42
	${CHOWN} _dns-proxy-tor:_dns-proxy-tor ${PREFIX}/var/run/${PORTNAME}
66
	${CHOWN} _dns-proxy-tor:_dns-proxy-tor ${PREFIX}/var/run/${PORTNAME}
43
	@${CAT} ${PKGMESSAGE}
67
	@${CAT} ${PKGMESSAGE}
44
68
45
.include <bsd.port.mk>
69
.include <bsd.port.post.mk>

Return to bug 111148