1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/security/openvpn-admin/Makefile
2014-07-07 18:31:23 +00:00

41 lines
1.1 KiB
Makefile

# Created by: Remington Lang <MrL0Lz@gmail.com>
# $FreeBSD$
PORTNAME= openvpn-admin
PORTVERSION= 1.9.4
PORTREVISION= 5
CATEGORIES= security gnome
MASTER_SITES= SF/${PORTNAME}/OldFiles
MAINTAINER= ports@FreeBSD.org
COMMENT= GUI frontend to openvpn
RUN_DEPENDS= openvpn:${PORTSDIR}/security/openvpn
WRKSRC= ${WRKDIR}/${DISTNAME:S/b//}
USES= gmake pkgconfig
USE_GNOME= gtksharp20
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's,/usr/bin/iconv,${LOCALBASE}/bin/iconv,g' \
${WRKSRC}/intltool-merge.in
@${REINPLACE_CMD} -e 's,/etc/openvpn,${PREFIX}/etc/openvpn,' \
${WRKSRC}/src/Configuration.cs
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/openvpn-admin ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/openvpn-admin.desktop \
${STAGEDIR}${PREFIX}/share/applications
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/src/openvpn-admin.exe \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/openvpn
.include <bsd.port.post.mk>