1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

security/openvpn-auth-radius: Fix build on FreeBSD 10+

In addition to PR, convert USE_GMAKE and use new library callouts.

PR:		ports/185439
Submitted by:	Andras JAKO
Fixed by:	maintainer (Mikhail Tsatsenko)
This commit is contained in:
John Marino 2014-02-02 19:06:30 +00:00
parent 54d3573057
commit 34c4a6789a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342361
2 changed files with 20 additions and 12 deletions

View File

@ -12,12 +12,12 @@ DISTNAME= radiusplugin_v${PORTVERSION}
MAINTAINER= m.tsatsenko@gmail.com
COMMENT= RADIUS authentication plugin for OpenVPN
RUN_DEPENDS= openvpn:${PORTSDIR}/security/openvpn
LIB_DEPENDS= gcrypt:${PORTSDIR}/security/libgcrypt
LICENSE= GPLv2
USE_GMAKE= yes
RUN_DEPENDS= ${LOCALBASE}/sbin/openvpn:${PORTSDIR}/security/openvpn
LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
USES= gmake
MAKEFILE= Makefile.bsd
WRKSRC= ${WRKDIR}/radiusplugin
@ -25,20 +25,19 @@ PORTDOCS= README
PORTEXAMPLES= radiusplugin.cnf
PLIST_FILES= lib/radiusplugin.so
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-install:
${INSTALL_LIB} ${WRKSRC}/radiusplugin.so ${LOCALBASE}/lib
${INSTALL_LIB} ${WRKSRC}/radiusplugin.so ${STAGEDIR}${LOCALBASE}/lib
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/radiusplugin.cnf ${EXAMPLESDIR}
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/radiusplugin.cnf ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,9 @@
--- ./Makefile.bsd.orig 2010-04-06 19:07:33.000000000 +0200
+++ ./Makefile.bsd 2014-01-03 11:29:36.000000000 +0100
@@ -1,4 +1,4 @@
-CC=g++
+CC?=g++
INCL=-I/usr/local/include
LDFLAGS=-L/usr/local/lib
LIBS=-lgcrypt -lgpg-error -lstdc++ -lm -lpthread