aboutsummaryrefslogtreecommitdiff
path: root/security/p5-Authen-Radius
diff options
context:
space:
mode:
authorLars Thegler <lth@FreeBSD.org>2005-02-20 16:44:31 +0000
committerLars Thegler <lth@FreeBSD.org>2005-02-20 16:44:31 +0000
commita1ec5dcc07c512082bbc850be36438a50a9a46c2 (patch)
tree84e1821a5cec438ae24b35b44a7b7c9af2fcc420 /security/p5-Authen-Radius
parent7aaa6c5bcd3a54168ae50b489e2c7c976a9cf9d2 (diff)
downloadports-a1ec5dcc07c512082bbc850be36438a50a9a46c2.tar.gz
ports-a1ec5dcc07c512082bbc850be36438a50a9a46c2.zip
Notes
Diffstat (limited to 'security/p5-Authen-Radius')
-rw-r--r--security/p5-Authen-Radius/Makefile23
-rw-r--r--security/p5-Authen-Radius/pkg-plist12
2 files changed, 35 insertions, 0 deletions
diff --git a/security/p5-Authen-Radius/Makefile b/security/p5-Authen-Radius/Makefile
index 299ae5a5f75b..5b45b4ed7e22 100644
--- a/security/p5-Authen-Radius/Makefile
+++ b/security/p5-Authen-Radius/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Authen-Radius
PORTVERSION= 0.12
+PORTREVISION= 1
CATEGORIES= security perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Authen
@@ -23,8 +24,30 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PERL_CONFIGURE= yes
MAN3= Authen::Radius.3
+RADDBFILES= dictionary \
+ dictionary.ascend \
+ dictionary.cisco \
+ dictionary.compat \
+ dictionary.livingston \
+ dictionary.quintum \
+ dictionary.shiva \
+ dictionary.tunnel \
+ dictionary.usr \
+ dictionary.versanet \
+ dictionary.xtradius
+
.include <bsd.port.pre.mk>
+pre-configure:
+ @${RM} ${WRKSRC}/install-radius-db.PL
+ @${PERL} -pi -e 's|/etc/raddb|${DATADIR}|' ${WRKSRC}/Radius.pm
+
+post-install:
+ @${MKDIR} ${DATADIR}
+.for FILE in ${RADDBFILES}
+ @${INSTALL_DATA} ${WRKSRC}/raddb/${FILE} ${DATADIR}/${FILE}
+.endfor
+
.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
diff --git a/security/p5-Authen-Radius/pkg-plist b/security/p5-Authen-Radius/pkg-plist
index 7710731a1cec..8054a8530fd0 100644
--- a/security/p5-Authen-Radius/pkg-plist
+++ b/security/p5-Authen-Radius/pkg-plist
@@ -1,5 +1,17 @@
%%SITE_PERL%%/Authen/Radius.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Authen/Radius/.packlist
+%%DATADIR%%/dictionary
+%%DATADIR%%/dictionary.ascend
+%%DATADIR%%/dictionary.cisco
+%%DATADIR%%/dictionary.compat
+%%DATADIR%%/dictionary.livingston
+%%DATADIR%%/dictionary.quintum
+%%DATADIR%%/dictionary.shiva
+%%DATADIR%%/dictionary.tunnel
+%%DATADIR%%/dictionary.usr
+%%DATADIR%%/dictionary.versanet
+%%DATADIR%%/dictionary.xtradius
+@dirrm %%DATADIR%%
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Authen/Radius
@unexec rmdir %D/%%SITE_PERL%%/Authen 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Authen 2>/dev/null || true