aboutsummaryrefslogtreecommitdiff
path: root/net/radiator/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/radiator/Makefile')
-rw-r--r--net/radiator/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/net/radiator/Makefile b/net/radiator/Makefile
index a11230c63110..876bfd24a8dd 100644
--- a/net/radiator/Makefile
+++ b/net/radiator/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= Radiator
-PORTVERSION= 4.13
-PORTREVISION= 2
+PORTVERSION= 4.14
CATEGORIES= net
MASTER_SITES= # fetch manually
DIST_SUBDIR= ${PORTNAME}
@@ -16,6 +15,7 @@ MYSQL_DESC= MySQL support
USES= perl5 tar:tgz
USE_PERL5= configure
+USE_RC_SUBR= radiator
RESTRICTED= Commercial software
@@ -40,4 +40,15 @@ pre-configure:
${TAR} -xvzf ${DISTDIR}/${DIST_SUBDIR}/patches-${PORTVERSION}.tar.gz -C ${WRKSRC}
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/radius.cfg
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/radiator
+ ${INSTALL_DATA} ${WRKSRC}/radius.cfg ${STAGEDIR}${PREFIX}/etc/radiator/radius.cfg.sample
+ ${INSTALL_DATA} ${WRKSRC}/dictionary ${STAGEDIR}${PREFIX}/etc/radiator
+ ${INSTALL_DATA} ${WRKSRC}/dictionary.ascend ${STAGEDIR}${PREFIX}/etc/radiator
+ ${INSTALL_DATA} ${WRKSRC}/dictionary.cisco-vpn ${STAGEDIR}${PREFIX}/etc/radiator
+ ${INSTALL_DATA} ${WRKSRC}/dictionary.sip ${STAGEDIR}${PREFIX}/etc/radiator
+
.include <bsd.port.post.mk>