Index: head/www/p5-RT-Authen-ExternalAuth/Makefile =================================================================== --- head/www/p5-RT-Authen-ExternalAuth/Makefile (revision 497054) +++ head/www/p5-RT-Authen-ExternalAuth/Makefile (revision 497055) @@ -1,66 +1,54 @@ # Created by: Matthew Seaman # $FreeBSD$ PORTNAME= RT-Authen-ExternalAuth DISTVERSION= 0.27 CATEGORIES= www net perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org -COMMENT= RT extension to authenticate users against an external source +COMMENT= RT42 extension to authenticate users against an external source LICENSE= GPLv2 -BUILD_DEPENDS= ${RUN_DEPENDS} +BUILD_DEPENDS= p5-perl-ldap>0:net/p5-perl-ldap \ + p5-DBI>0:databases/p5-DBI \ + p5-Net-SSLeay>0:security/p5-Net-SSLeay \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= p5-perl-ldap>0:net/p5-perl-ldap \ p5-DBI>0:databases/p5-DBI \ - p5-Net-SSLeay>0:security/p5-Net-SSLeay + p5-Net-SSLeay>0:security/p5-Net-SSLeay \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes - USES+= perl5 USE_PERL5= configure -# This module has been made part of core rt-4.4.x -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -OPTIONS_DEFAULT= RT42 +NO_ARCH= yes -.include +# This module has been made part of core rt-4.4.x +CONFLICTS_INSTALL= rt44 +RT_VER= 42 -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} - -RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} - MAN3PREFIX= ${PREFIX} 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/rt{40,42}. Hence ignore +# matches the $PREFIX used to install www/rt42. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ${CONFIGURE_CMD} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//;' Makefile post-configure: ${REINPLACE_CMD} "/RTxPlugin/d" ${WRKSRC}/Makefile post-install: ${RM} ${STAGEDIR}${PREFIX}/man/auto/RT/Authen/ExternalAuth/.packlist ${RMDIR} -p ${STAGEDIR}${PREFIX}/man/auto/RT/Authen/ExternalAuth 2>/dev/null || : .include Index: head/www/p5-RT-Extension-CommandByMail/Makefile =================================================================== --- head/www/p5-RT-Extension-CommandByMail/Makefile (revision 497054) +++ head/www/p5-RT-Extension-CommandByMail/Makefile (revision 497055) @@ -1,61 +1,59 @@ # Created by: Michael Schout # $FreeBSD$ PORTNAME= RT-Extension-CommandByMail PORTVERSION= 3.00 +PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= sysadmin@gkg.net COMMENT= RT Extension to change ticket metadata via email LICENSE= GPLv2 -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 +.endif + USES= perl5 USE_PERL5= configure +NO_ARCH= yes + 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/rt{40,42,44}. Hence ignore +# matches the $PREFIX used to install www/rt{42,44}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ${CONFIGURE_CMD} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile post-configure: ${REINPLACE_CMD} "/RTxPlugin/d" ${WRKSRC}/Makefile post-install: ${RM} ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/CommandByMail/.packlist ${RM} ${STAGEDIR}${PREFIX}/share/rt${RT_VER}/plugins/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail/Test.pm.in ${RM} ${STAGEDIR}${PREFIX}/share/rt${RT_VER}/plugins/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail/Test.pm ${RM} ${STAGEDIR}${PREFIX}/share/rt${RT_VER}/plugins/RT-Extension-CommandByMail/etc/handle_action_pass_currentuser.patch ${RMDIR} -p ${STAGEDIR}${PREFIX}/share/rt${RT_VER}/plugins/RT-Extension-CommandByMail/etc 2>/dev/null || : ${RMDIR} -p ${STAGEDIR}${PREFIX}/share/rt${RT_VER}/plugins/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail >/dev/null || : ${RMDIR} -p ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/CommandByMail 2>/dev/null || : .include Index: head/www/p5-RT-Extension-Gravatar/Makefile =================================================================== --- head/www/p5-RT-Extension-Gravatar/Makefile (revision 497054) +++ head/www/p5-RT-Extension-Gravatar/Makefile (revision 497055) @@ -1,56 +1,54 @@ # Created by: Michael Schout # $FreeBSD$ PORTNAME= RT-Extension-Gravatar PORTVERSION= 2.01 +PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= sysadmin@gkg.net COMMENT= RT Extension to change ticket metadata via email LICENSE= GPLv2 -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 +.endif + USES= perl5 USE_PERL5= configure +NO_ARCH= yes + 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/rt{40,42,44}. Hence ignore +# matches the $PREFIX used to install www/rt{42,44}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ${CONFIGURE_CMD} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile post-configure: ${REINPLACE_CMD} "/RTxPlugin/d" ${WRKSRC}/Makefile post-install: ${RM} ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/Gravatar/.packlist ${RMDIR} -p ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/Gravatar 2>/dev/null || : .include Index: head/www/p5-RT-Extension-LDAPImport/Makefile =================================================================== --- head/www/p5-RT-Extension-LDAPImport/Makefile (revision 497054) +++ head/www/p5-RT-Extension-LDAPImport/Makefile (revision 497055) @@ -1,66 +1,63 @@ # Created by: Matthew Seaman # $FreeBSD$ PORTNAME= RT-Extension-LDAPImport PORTVERSION= 0.36 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www net perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org COMMENT= RT extension to import users from an LDAP store -LICENSE_COMB= dual LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= p5-perl-ldap>0:net/p5-perl-ldap \ - p5-Class-Accessor>0:devel/p5-Class-Accessor + p5-Class-Accessor>0:devel/p5-Class-Accessor \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} +RUN_DEPENDS= p5-perl-ldap>0:net/p5-perl-ldap \ + p5-Class-Accessor>0:devel/p5-Class-Accessor \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 +.endif + USES+= perl5 USE_PERL5= configure -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 +NO_ARCH= yes -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} - -RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} - MAN3PREFIX= ${PREFIX} +MAN3PREFIX= ${PREFIX} 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/rt{40,42,44}. Hence ignore +# matches the $PREFIX used to install www/rt{42,44}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ${CONFIGURE_CMD} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile post-configure: ${REINPLACE_CMD} "/RTxPlugin/d" ${WRKSRC}/Makefile post-install: ${RM} ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/LDAPImport/.packlist ${RMDIR} -p ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/LDAPImport 2>/dev/null || : .include Index: head/www/p5-RT-Extension-MandatoryOnTransition/Makefile =================================================================== --- head/www/p5-RT-Extension-MandatoryOnTransition/Makefile (revision 497054) +++ head/www/p5-RT-Extension-MandatoryOnTransition/Makefile (revision 497055) @@ -1,58 +1,53 @@ # Created by: Mark Felder # $FreeBSD$ PORTNAME= RT-Extension-MandatoryOnTransition DISTVERSION= 0.18 CATEGORIES= www net perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org COMMENT= Extension to require core and ticket custom fields on status changes LICENSE= GPLv2 -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT42 RT44 -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} - BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 +.endif + USES= perl5 USE_PERL5= configure + +NO_ARCH= yes PLIST_SUB+= RT_VER=${RT_VER} # Note: You can install using an arbitrary $PREFIX but only if it # matches the $PREFIX used to install www/rt{42,44}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ${CONFIGURE_CMD} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile post-configure: ${REINPLACE_CMD} "/RTxPlugin/d" ${WRKSRC}/Makefile post-install: ${RM} ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/MandatoryOnTransition/.packlist ${RMDIR} -p ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/MandatoryOnTransition 2>/dev/null || : .include Index: head/www/p5-RT-Extension-QuickAssign/Makefile =================================================================== --- head/www/p5-RT-Extension-QuickAssign/Makefile (revision 497054) +++ head/www/p5-RT-Extension-QuickAssign/Makefile (revision 497055) @@ -1,56 +1,45 @@ # Created by: Michael Schout # $FreeBSD$ PORTNAME= RT-Extension-QuickAssign PORTVERSION= 1.00 CATEGORIES= www perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= sysadmin@gkg.net COMMENT= RT Extension to add owner change links on ticket display page LICENSE= GPLv2 -# this is not compatible with RT 4.4 at this time. -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -OPTIONS_DEFAULT= RT42 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes - USES= perl5 USE_PERL5= configure +NO_ARCH= yes + +# this is not compatible with RT 4.4 at this time. +CONFLICTS_INSTALL= rt44 +RT_VER=42 + 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/rt{40,42,44}. Hence ignore +# matches the $PREFIX used to install www/rt42. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ${CONFIGURE_CMD} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile post-configure: ${REINPLACE_CMD} "/RTxPlugin/d" ${WRKSRC}/Makefile post-install: ${RM} ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/QuickAssign/.packlist ${RMDIR} -p ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/QuickAssign 2>/dev/null || : .include Index: head/www/p5-RT-Extension-SLA/Makefile =================================================================== --- head/www/p5-RT-Extension-SLA/Makefile (revision 497054) +++ head/www/p5-RT-Extension-SLA/Makefile (revision 497055) @@ -1,68 +1,53 @@ # Created by: Matthew Seaman # $FreeBSD$ PORTNAME= RT-Extension-SLA PORTVERSION= 1.04 +PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org COMMENT= RT extension to automate due dates using service levels LICENSE= GPLv2 -BUILD_DEPENDS= ${RUN_DEPENDS} -RUN_DEPENDS= p5-Business-Hours>0:misc/p5-Business-Hours +BUILD_DEPENDS= p5-Business-Hours>0:misc/p5-Business-Hours \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} +RUN_DEPENDS= p5-Business-Hours>0:misc/p5-Business-Hours \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} -# SLA functionality comes as standard in RT 4.4.x -CONFLICTS_INSTALL= rt44-4.4.* - -NO_ARCH= yes - USES+= perl5 USE_PERL5= configure -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -OPTIONS_DEFAULT= RT42 +NO_ARCH= yes -.include +# SLA functionality comes as standard in RT 4.4.x +CONFLICTS_INSTALL= rt44 +RT_VER= 42 -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} - -RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} - PLIST_SUB+= RTHOME=share/rt${RT_VER} SUB_LIST+= RTHOME=share/rt${RT_VER} SUB_LIST+= INITIALDATA=plugins/RT-Extension-SLA/etc/initialdata \ SCHEMAUPGRADE=plugins/RT-Extension-SLA/etc/upgrade/0.06/content SUB_FILES+= pkg-message # Note: You can install using an arbitrary $PREFIX but only if it -# matches the $PREFIX used to install www/rt{38,40,42}. Hence ignore +# matches the $PREFIX used to install www/rt42. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ${CONFIGURE_CMD} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile post-configure: ${REINPLACE_CMD} "/RTxPlugin/d" ${WRKSRC}/Makefile post-install: ${RM} ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/SLA/.packlist ${RMDIR} -p ${STAGEDIR}${PREFIX}/man/auto/RT/Extension/SLA 2>/dev/null || : .include Index: head/www/p5-RT-Extension-SLA/files/patch-inc__Module__Install__RTx.pm =================================================================== --- head/www/p5-RT-Extension-SLA/files/patch-inc__Module__Install__RTx.pm (revision 497054) +++ head/www/p5-RT-Extension-SLA/files/patch-inc__Module__Install__RTx.pm (revision 497055) @@ -1,11 +1,11 @@ ---- ./inc/Module/Install/RTx.pm.orig 2014-07-01 20:40:45.000000000 +0100 -+++ ./inc/Module/Install/RTx.pm 2014-07-03 23:02:03.735533399 +0100 -@@ -77,7 +77,7 @@ +--- inc/Module/Install/RTx.pm.orig 2014-12-18 22:31:31 UTC ++++ inc/Module/Install/RTx.pm +@@ -85,7 +85,7 @@ sub RTx { my %index = map { $_ => 1 } @INDEX_DIRS; $self->no_index( directory => $_ ) foreach grep !$index{$_}, @DIRS; - my $args = join ', ', map "q($_)", map { ($_, $path{$_}) } + my $args = join ', ', map "q($_)", map { ($_, "\${DESTDIR}$path{$_}") } sort keys %path; printf "%-10s => %s\n", $_, $path{$_} for sort keys %path; Index: head/www/p5-RTx-Calendar/Makefile =================================================================== --- head/www/p5-RTx-Calendar/Makefile (revision 497054) +++ head/www/p5-RTx-Calendar/Makefile (revision 497055) @@ -1,69 +1,66 @@ # Created by: Matthew Seaman # $FreeBSD$ PORTNAME= RTx-Calendar PORTVERSION= 1.01 CATEGORIES= www perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org COMMENT= Calendar extension module for the RT ticketing system LICENSE_COMB= dual LICENSE= ART10 GPLv1+ -BUILD_DEPENDS= ${RUN_DEPENDS} + +BUILD_DEPENDS= p5-Date-ICal>0:devel/p5-Date-ICal \ + p5-Data-ICal>0:deskutils/p5-Data-ICal \ + p5-DateTime-Set>0:devel/p5-DateTime-Set \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= p5-Date-ICal>0:devel/p5-Date-ICal \ p5-Data-ICal>0:deskutils/p5-Data-ICal \ - p5-DateTime-Set>0:devel/p5-DateTime-Set + p5-DateTime-Set>0:devel/p5-DateTime-Set \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 -USES+= perl5 -USE_PERL5= configure - -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 .endif -.endfor -RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} +USES= perl5 +USE_PERL5= configure +NO_ARCH= yes + MAN3PREFIX= ${PREFIX} PLIST_SUB+= RTHOME=share/rt${RT_VER} - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} post-patch: @${FIND} ${WRKSRC} -name '*.orig' -delete # Note: You can install using an arbitrary $PREFIX but only if it # matches the $PREFIX used to install www/rt{40,42,44}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ unset PREFIX && \ ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ${CONFIGURE_CMD} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile post-configure: ${REINPLACE_CMD} "/RTxPlugin/d" ${WRKSRC}/Makefile post-install: ${RM} ${STAGEDIR}${PREFIX}/man/auto/RTx/Calendar/.packlist ${RMDIR} -p ${STAGEDIR}${PREFIX}/man/auto/RTx/Calendar 2>/dev/null || : .include