Lines 15-58
Link Here
|
15 |
MAINTAINER= m.seaman@infracaninophile.co.uk |
15 |
MAINTAINER= m.seaman@infracaninophile.co.uk |
16 |
COMMENT= RT extension to authenticate users against an external source |
16 |
COMMENT= RT extension to authenticate users against an external source |
17 |
|
17 |
|
18 |
BUILD_DEPENDS= ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap |
18 |
LICENSE= GPLv2 |
19 |
RUN_DEPENDS= ${BUILD_DEPENDS} |
19 |
|
|
|
20 |
BUILD_DEPENDS= ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \ |
21 |
p5-DBI>0:${PORTSDIR}/databases/p5-DBI \ |
22 |
p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay |
23 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
20 |
|
24 |
|
21 |
PERL_CONFIGURE= yes |
25 |
PERL_CONFIGURE= yes |
22 |
|
26 |
|
23 |
OPTIONS= RT36 "Install for rt-3.6.x (default rt-3.8.x)" off |
27 |
OPTIONS= RT38 "Install for rt-3.8.x (default rt-4.0.x)" off |
24 |
|
28 |
|
25 |
.include <bsd.port.options.mk> |
29 |
.include <bsd.port.options.mk> |
26 |
|
30 |
|
27 |
.if defined(WITH_RT36) |
31 |
.if defined(WITH_RT38) |
28 |
|
32 |
RT_VER= 38 |
29 |
PORTVERSION= 0.05 |
|
|
30 |
RTHOME?= rt3 |
31 |
RT_PM_DIR= ${LOCALBASE}/${RTHOME}/lib |
32 |
BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt36 |
33 |
PLIST= ${PKGDIR}/pkg-plist.rt36 |
34 |
MAN3PREFIX= ${PREFIX}/${RTHOME}/local |
35 |
|
36 |
.else |
33 |
.else |
37 |
|
34 |
RT_VER= 40 |
38 |
RTHOME?= share/rt38 |
|
|
39 |
RT_PM_DIR= ${SITE_PERL} |
40 |
BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt38 |
41 |
PLIST= ${PKGDIR}/pkg-plist.rt38 |
42 |
MAN3PREFIX= ${PREFIX} |
43 |
|
44 |
.endif |
35 |
.endif |
45 |
|
36 |
|
|
|
37 |
BUILD_DEPENDS+= ${SITE_PERL}/RT.pm:${PORTSDIR}/www/rt${RT_VER} |
38 |
RUN_DEPENDS+= ${SITE_PERL}/RT.pm:${PORTSDIR}/www/rt${RT_VER} |
39 |
|
40 |
MAN3PREFIX= ${PREFIX} |
46 |
MAN3= RT::Authen::ExternalAuth.3 |
41 |
MAN3= RT::Authen::ExternalAuth.3 |
47 |
PLIST_SUB+= RTHOME=${RTHOME} |
42 |
PLIST_SUB+= RTHOME=share/rt${RT_VER} |
48 |
|
43 |
|
49 |
# Note: You can install using an arbitrary $PREFIX but only if it |
44 |
# Note: You can install using an arbitrary $PREFIX but only if it |
50 |
# matches the $PREFIX used to install www/rt3{6,8}. Hence ignore |
45 |
# matches the $PREFIX used to install www/rt{38,40}. Hence ignore |
51 |
# $PREFIX in the environment and inherit settings from RT.pm |
46 |
# $PREFIX in the environment and inherit settings from RT.pm |
52 |
do-configure: |
47 |
do-configure: |
53 |
@cd ${CONFIGURE_WRKSRC} && \ |
48 |
@cd ${CONFIGURE_WRKSRC} && \ |
54 |
unset PREFIX && \ |
49 |
unset PREFIX && \ |
55 |
${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIGURE_SCRIPT} && \ |
50 |
${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ./${CONFIGURE_SCRIPT} && \ |
56 |
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile |
51 |
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile |
57 |
|
52 |
|
58 |
.include <bsd.port.mk> |
53 |
.include <bsd.port.mk> |