2013-05-03 18:36:39 +02:00
|
|
|
# Created by: Mikhail T. <m.tsatsenko@gmail.com>
|
2011-03-04 18:14:38 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openvpn-auth-radius
|
|
|
|
PORTVERSION= 2.1
|
2015-01-02 19:46:33 +01:00
|
|
|
PORTREVISION= 3
|
2011-03-04 18:14:38 +01:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= http://www.nongnu.org/radiusplugin/ \
|
|
|
|
http://svn-cache.ipcopaddons.org/
|
|
|
|
DISTNAME= radiusplugin_v${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= m.tsatsenko@gmail.com
|
|
|
|
COMMENT= RADIUS authentication plugin for OpenVPN
|
|
|
|
|
2012-10-02 18:40:40 +02:00
|
|
|
LICENSE= GPLv2
|
2011-03-04 18:14:38 +01:00
|
|
|
|
2014-02-02 20:06:30 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/openvpn:${PORTSDIR}/security/openvpn
|
|
|
|
LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
|
|
|
|
|
|
|
|
USES= gmake
|
2011-03-04 18:14:38 +01:00
|
|
|
MAKEFILE= Makefile.bsd
|
|
|
|
WRKSRC= ${WRKDIR}/radiusplugin
|
|
|
|
|
|
|
|
PORTDOCS= README
|
|
|
|
PORTEXAMPLES= radiusplugin.cnf
|
|
|
|
PLIST_FILES= lib/radiusplugin.so
|
|
|
|
|
2014-07-15 18:57:39 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2011-03-04 18:14:38 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-install:
|
2014-02-02 20:06:30 +01:00
|
|
|
${INSTALL_LIB} ${WRKSRC}/radiusplugin.so ${STAGEDIR}${LOCALBASE}/lib
|
2011-03-04 18:14:38 +01:00
|
|
|
|
|
|
|
post-install:
|
2014-02-02 20:06:30 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
2011-03-04 18:14:38 +01:00
|
|
|
.endif
|
2014-02-02 20:06:30 +01:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/radiusplugin.cnf ${STAGEDIR}${EXAMPLESDIR}
|
2011-03-04 18:14:38 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|