summaryrefslogtreecommitdiffstats
path: root/net/socks5/Makefile
blob: c80371a8de15bcdf5ca06a94c1415b69c8cb24fb (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
# New ports collection makefile for:	socks5
# Date created:				24 Apr 1996
# Whom:					pst
#
# $FreeBSD$
#

PORTNAME=	socks5
PORTVERSION=	1.0.11
PORTREVISION=	4
CATEGORIES=	net security
MASTER_SITES=	http://freeware.sgi.com/source/socks5/
DISTNAME=	socks5-v1.0r11

MAINTAINER=	josh@tcbug.org
COMMENT=	SOCKS v5 application layer gateway and clients

USE_RC_SUBR=	${PORTNAME}.sh
NO_CDROM=	"NEC has a funky license for this software"
RESTRICTED=	"no commercial use"

CONFLICTS=	dante-[0-9]*

# here are some extra configure args you may wish to use
# see the readme file before screwing with them
#
#EXTRA_CONFIGURE_ARGS= \
#		--with-default-server=socks.mydomain.com \
#		--with-syslog-facility=LOG_AUTH \
#		--with-passwd

WRKSRC=		${WRKDIR}/${DISTNAME}
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CFLAGS+=	-DHAVE_VSNPRINTF
CONFIGURE_ARGS=	--with-libconffile=${PREFIX}/etc/libsocks5.conf \
		--with-srvconffile=${PREFIX}/etc/socks5.conf \
		--with-srvpidfile=/var/run/socks5.pid \
		--with-srvidtfile=/var/run/socks5.ident \
		--with-srvpwdfile=${PREFIX}/etc/socks5.passwd \
		${EXTRA_CONFIGURE_ARGS}
MAN1=		runsocks.1 socks5.1 stopsocks.1 socks5_clients.1
MAN5=		libsocks5.conf.5 socks5.conf.5 socks5.passwd.5
CONFIGURE_ENV=	LIBS=-lcrypt

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif

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