aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/tinderbox/Makefile
blob: eb923c42ce10693f544d97fe8269177ced74ee6e (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Ports collection makefile for:	misc/tinderbox
# Whom:			Edwin Groothuis <edwin@mavetju.org>
# Date created:		31 december 2005
#
# $FreeBSD$

PORTNAME=	tinderbox
PORTVERSION=	2.2.1
PORTREVISION=	2
CATEGORIES=	misc
MASTER_SITES=	http://tinderbox.marcuscom.com/

MAINTAINER=	edwin@mavetju.org
COMMENT=	Port build tinderbox system

RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
		${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
		${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB \
		cvsup:${PORTSDIR}/net/cvsup-without-gui

OPTIONS=	PGSQL "With pgsql" On \
		MYSQL "With mysql" Off

NO_BUILD=	yes
USE_APACHE=	yes
USE_PHP=	pgsql mysql session
SUB_FILES=	pkg-message
PKGMESSAGE=	${WRKDIR}/pkg-message

.include <bsd.port.pre.mk>

.if defined(WITH_PGSQL)
USE_PGSQL=	yes
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
.endif

.if defined(WITH_MYSQL)
USE_MYSQL=	yes
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
.endif

post-extract:
.for f in inc_ds.php inc_tinderbox.php
	${MV} ${WRKSRC}/www-exp/${f} ${WRKSRC}/www-exp/${f}-dist
.endfor

do-install:
	${MKDIR} ${PREFIX}/tinderbox/scripts
	${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts

post-install:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>