aboutsummaryrefslogtreecommitdiff
path: root/net/torsocks/Makefile
blob: d176860f33bd47c5f87dd276cd33e077c2755c60 (plain) (blame)
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
PORTNAME=	torsocks
DISTVERSION=	2.4.0
CATEGORIES=	net security

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Easy way to make any app work through Tor
WWW=		https://gitlab.torproject.org/tpo/core/torsocks

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/gpl-2.0.txt

USES=		autoreconf alias gmake libtool tar:xz
USE_LDCONFIG=	${PREFIX}/lib/torsocks

USE_GITLAB=	yes
GL_SITE=	https://gitlab.torproject.org/tpo
GL_ACCOUNT=	core
GL_TAGNAME=	afe9dea542a8b495dbbbbe5e4b98a33cde06729b

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share

INSTALL_TARGET=	install-strip

SUB_FILES=	pkg-message

PORTDOCS=	ChangeLog DEBUG SOCKS5 socks-extensions.txt

OPTIONS_DEFINE=	DOCS

post-build:
	@${ECHO}
	@${ECHO} "Please run 'make check' (requires bash)."
	@${ECHO} "One testcase is known to fail."
	@${ECHO}

post-install:
	${MV} ${STAGEDIR}${PREFIX}/etc/tor/torsocks.conf ${STAGEDIR}${PREFIX}/etc/tor/torsocks.conf.sample

check: build
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check

# known problems:
# Fails when file fetch is attempted: Resolve destination buffer too small: https://gitlab.torproject.org/tpo/core/torsocks/-/issues/40020

.include <bsd.port.mk>