On 2013/04/04 18:00, Giovanni Bechis wrote:
> On 03/25/13 16:47, Giovanni Bechis wrote:
> > Hi,
> > update to latest version of this perl module, ok'ed by ${MAINTAINER}.
> >
> > There is a "strange" issue with regression tests.
> > If you type make test under /usr/ports/security/p5-Authen-Radius directory,
> > regression test starts but shortly hang without asking for additional user
> > input; if you cd in ${WRKSRC} and that run `make test`, regression tests
> > starts correctly.
> > Any ideas ?
> >
> I think it would be better to disable regression tests in this port.
> Comments ? Ok ?
> Cheers
> Giovanni
>
How about this?
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/p5-Authen-Radius/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile 11 Mar 2013 11:41:26 -0000 1.17
+++ Makefile 4 Apr 2013 16:24:25 -0000
@@ -3,9 +3,9 @@
COMMENT= Perl module to authenticate against a RADIUS server
MODULES= cpan
-DISTNAME= RadiusPerl-0.15
-REVISION= 0
-PKGNAME= p5-Authen-Radius-0.15
+V= 0.22
+DISTNAME= RadiusPerl-$V
+PKGNAME= p5-Authen-Radius-$V
CATEGORIES= security
MAINTAINER= Abel Abraham Camarillo Ojeda <[email protected]>
@@ -14,13 +14,12 @@ MAINTAINER= Abel Abraham Camarillo Ojeda
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Authen/}
-WRKDIST= ${WRKDIR}/${DISTNAME:S/RadiusPerl/Authen-Radius/}
+WRKDIST= ${WRKDIR}/Authen-Radius-$V
RUN_DEPENDS= security/p5-MD5>=1.7 \
devel/p5-Data-HexDump>=0.02
BUILD_DEPENDS= ${RUN_DEPENDS}
-USE_GROFF = Yes
TEST_IS_INTERACTIVE= Yes
pre-configure:
@@ -28,7 +27,8 @@ pre-configure:
s,/etc/raddb,${WRKINST}/${PREFIX}/share/examples/p5-Authen-Radius, \
${WRKSRC}/install-radius-db.PL
-do-regress:
- cd ${WRKSRC} && ${MAKE} test
+do-test:
+ cd ${WRKSRC} && (echo localhost; echo secret; echo username; \
+ echo password) | perl test.pl
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/security/p5-Authen-Radius/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo 1 Jul 2010 09:18:54 -0000 1.4
+++ distinfo 4 Apr 2013 16:24:25 -0000
@@ -1,5 +1,2 @@
-MD5 (RadiusPerl-0.15.tar.gz) = iEPqVp+ZVsKxyZISXbgfdQ==
-RMD160 (RadiusPerl-0.15.tar.gz) = 8BZl/QrjIKeLJk7Bfxlvk3RHmmc=
-SHA1 (RadiusPerl-0.15.tar.gz) = T10Lluz9xEJsDKlvDytu9l/oBSs=
-SHA256 (RadiusPerl-0.15.tar.gz) = pM9a1iEAcEqvf+6QGj3JdBFaMgoY7wTO9rRetSb69IM=
-SIZE (RadiusPerl-0.15.tar.gz) = 35049
+SHA256 (RadiusPerl-0.22.tar.gz) = OydlBphsyqSUnZKxPOBToAF60RViqZHMdTNkkj/oHKc=
+SIZE (RadiusPerl-0.22.tar.gz) = 40980
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/security/p5-Authen-Radius/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- pkg/PLIST 1 Jul 2010 09:18:54 -0000 1.5
+++ pkg/PLIST 4 Apr 2013 16:24:25 -0000
@@ -9,6 +9,7 @@ share/examples/p5-Authen-Radius/dictiona
share/examples/p5-Authen-Radius/dictionary.compat
share/examples/p5-Authen-Radius/dictionary.livingston
share/examples/p5-Authen-Radius/dictionary.quintum
+share/examples/p5-Authen-Radius/dictionary.rfc2869
share/examples/p5-Authen-Radius/dictionary.shiva
share/examples/p5-Authen-Radius/dictionary.tunnel
share/examples/p5-Authen-Radius/dictionary.usr