ports/160953: [maintainer] www/p5-RT-Authen-ExternalAuth -- drop
rt36, add rt40
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Sep 26 21:40:07 UTC 2011
The following reply was made to PR ports/160953; it has been noted by GNATS.
From: Matthew Seaman <m.seaman at infracaninophile.co.uk>
To: FreeBSD-gnats-submit at FreeBSD.org
Cc:
Subject: Re: ports/160953: [maintainer] www/p5-RT-Authen-ExternalAuth -- drop
rt36, add rt40
Date: Mon, 26 Sep 2011 22:34:26 +0100
Updated diff accounting for dougb@'s commits today.
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/p5-RT-Authen-ExternalAuth/Makefile,v
retrieving revision 1.10
diff -u -u -r1.10 Makefile
--- Makefile 26 Sep 2011 20:01:01 -0000 1.10
+++ Makefile 26 Sep 2011 21:03:03 -0000
@@ -15,26 +15,40 @@
MAINTAINER= m.seaman at infracaninophile.co.uk
COMMENT= RT extension to authenticate users against an external source
-BUILD_DEPENDS= ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap
-RUN_DEPENDS= ${BUILD_DEPENDS}
+LICENSE= GPLv2
+
+BUILD_DEPENDS= ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \
+ p5-DBI>0:${PORTSDIR}/databases/p5-DBI \
+ p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
+RUN_DEPENDS:= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
-RTHOME?= share/rt38
-RT_PM_DIR= ${SITE_PERL}
-BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt38
+OPTIONS= RT38 "Install for rt-3.8.x (default rt-4.0.x)" off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_RT38)
+RT_VER= 38
+.else
+RT_VER= 40
+.endif
+
+BUILD_DEPENDS+= ${SITE_PERL}/RT.pm:${PORTSDIR}/www/rt${RT_VER}
+RUN_DEPENDS+= ${SITE_PERL}/RT.pm:${PORTSDIR}/www/rt${RT_VER}
+
MAN3PREFIX= ${PREFIX}
MAN3= RT::Authen::ExternalAuth.3
-PLIST_SUB+= RTHOME=${RTHOME}
+PLIST_SUB+= RTHOME=share/rt${RT_VER}
# Note: You can install using an arbitrary $PREFIX but only if it
-# matches the $PREFIX used to install www/rt3{6,8}. Hence ignore
+# matches the $PREFIX used to install www/rt{38,40}. Hence ignore
# $PREFIX in the environment and inherit settings from RT.pm
do-configure:
@cd ${CONFIGURE_WRKSRC} && \
unset PREFIX && \
- ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIGURE_SCRIPT} && \
+ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ./${CONFIGURE_SCRIPT} && \
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
.include <bsd.port.mk>
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
More information about the freebsd-perl
mailing list