aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-RT-Extension-SLA/Makefile
blob: 56ad92866698b126b94912118cb1ee8a3701a2f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# New ports collection Makefile for: RT-Extension-SLA
# Date created:         23 August 2008
# Whom:                 Matthew Seaman <m.seaman@infracaninophile.co.uk>
#
# $FreeBSD$
#

PORTNAME=   RT-Extension-SLA
PORTVERSION=    0.02
CATEGORIES= www perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= m.seaman@infracaninophile.co.uk
COMMENT=    RT extension to automate due dates using service levels

BUILD_DEPENDS=  ${LOCALBASE}/${RTHOME}/bin/rt:${PORTSDIR}/www/rt36            \
        ${SITE_PERL}/Business/Hours.pm:${PORTSDIR}/misc/p5-Business-Hours
RUN_DEPENDS=    ${BUILD_DEPENDS}

RTHOME?=    rt3
PLIST_SUB+= RTHOME=${RTHOME}

PERL_CONFIGURE= yes
CONFIGURE_ENV+= RTHOME=${PREFIX}/${RTHOME}

MAN3PREFIX?=    ${PREFIX}/${RTHOME}/local
MAN3=       RT::Action::SLA_SetDefault.3                 \
        RT::Condition::SLA_RequireDueSet.3 RT::Condition::SLA.3  \
        RT::Condition::SLA_RequireDefault.3 RT::Extension::SLA.3 \
        RT::Condition::SLA_RequireStartsSet.3 RT::Queue_SLA.3    \
        RT::Action::SLA_SetStarts.3 RT::Action::SLA.3

# Don't use normal CONFIGURE_ARGS
do-configure:
    @cd ${CONFIGURE_WRKSRC} && \
        ${SETENV} ${CONFIGURE_ENV} ${PERL5} ./${CONFIGURE_SCRIPT}

.include <bsd.port.mk>