summaryrefslogtreecommitdiffstats
path: root/security/openvpn-admin/Makefile
blob: 5e1bf9fc669582e5d36399ec7c2bf689ef0962dd (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
# New ports collection makefile for:   openvpn-admin
# Date Created:                                06 Dec 2005
# Whom:                                        Remington Lang <MrL0Lz@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	openvpn-admin
PORTVERSION=	1.9.2
CATEGORIES=	security gnome
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	openvpnadmin

MAINTAINER=	MrL0Lz@gmail.com
COMMENT=	GUI frontend to openvpn

BUILD_DEPENDS=	mono:${PORTSDIR}/lang/mono \
		gapi2-codegen:${PORTSDIR}/x11-toolkits/gtk-sharp20
RUN_DEPENDS=	mono:${PORTSDIR}/lang/mono \
		gapi2-codegen:${PORTSDIR}/x11-toolkits/gtk-sharp20 \
		openvpn:${PORTSDIR}/security/openvpn

USE_GMAKE=	yes
USE_GNOME=	gtk20
GNU_CONFIGURE=	yes
USE_REINPLACE=	yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=	"Some dependencies doesn't build on FreeBSD < 5.x"
.endif

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/bin/iconv,${LOCALBASE}/bin/iconv,g' \
		${WRKSRC}/intltool-merge.in

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/openvpn-admin ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/openvpn-admin.pam ${PREFIX}/etc/pam.d
	${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/openvpn-admin.desktop ${DATADIR}

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