summaryrefslogtreecommitdiffstats
path: root/net/ssltunnel-client/Makefile
blob: cfafca3ef1d047a4d75303f2b44bac75bdec8d90 (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
# Created by: at@rominet.net
# $FreeBSD$

PORTNAME=	ssltunnel
PORTVERSION=	1.18
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://www.hsc.fr/ressources/outils/ssltunnel/download/
PKGNAMESUFFIX=	-client

MAINTAINER=	crees@FreeBSD.org
COMMENT=	PPP over SSL virtual private networking (client part)

LICENSE=	BSD3CLAUSE

OPTIONS_DEFINE=	GUI DOCS
GUI_DESC=	GTK 1.2 graphical interface

CONFIGURE_ARGS=	--disable-server --with-iconv=${ICONV_PREFIX}
GNU_CONFIGURE=	yes
USES=		iconv

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGUI}
USE_GNOME=	gtk12
USES+=		perl5
RUN_DEPENDS=	p5-Gtk>=0:${PORTSDIR}/x11-toolkits/p5-Gtk
MAN1+=		gpppclient.1
PLIST_SUB+=	PERLGTK=""
.else
PLIST_SUB+=	PERLGTK="@comment "
.endif

post-patch:
	${REINPLACE_CMD} -e 's|with_iconv|with-iconv|g' ${WRKSRC}/configure

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/LISEZ-MOI \
		${STAGEDIR}${DOCSDIR}/client.LISEZ-MOI
	${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/client.README
	${MKDIR} ${STAGEDIR}${ETCDIR}/
	${INSTALL_DATA} ${WRKSRC}/client/tunnel.conf \
		${STAGEDIR}${ETCDIR}/client.conf.sample

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