summaryrefslogtreecommitdiffstats
path: root/net-mgmt/tork/Makefile
blob: 8d70a885b22287bb4f9c284fcdfc2d8cbd39eac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Created by: Beat Gätzi <beat@chruetertee.ch>
# $FreeBSD$

PORTNAME=	tork
PORTVERSION=	0.30
PORTREVISION=	5
CATEGORIES=	net-mgmt security
MASTER_SITES=	SF/${PORTNAME}/TorK%20Source%20Tarball/TorK-${PORTVERSION}

MAINTAINER=	thomas.sander@gmx.de
COMMENT=	TorK is an Anonymity Manager for the KDE Desktop

USE_GMAKE=	yes
USE_GNOME=	pkgconfig
USE_AUTOTOOLS=	libtool aclocal:env
USES=		gettext
USE_XORG=	xext
USE_LDCONFIG=	yes
INSTALLS_ICONS=	yes
AUTOTOOLSFILES=	aclocal.m4

USE_KDELIBS_VER=3
USE_QT_VER=	3

MAN1=		tork.1 torkarkollon.1 torkify.1 torksocks.1
MAN5=		torksocks.conf.5
MAN8=		torksocks.8

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

OPTIONS+=	PRIVOXY	"Install privoxy"	On \
		MIXMINION "Install mixminion"	Off

.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

.if defined(WITH_PRIVOXY)
RUN_DEPENDS+=	${LOCALBASE}/sbin/privoxy:${PORTSDIR}/www/privoxy
.endif

.if defined(WITH_MIXMINION)
RUN_DEPENDS+=	${LOCALBASE}/bin/mixminion:${PORTSDIR}/mail/mixminion
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud