summaryrefslogtreecommitdiff
path: root/www/sit/Makefile
blob: c21fbc1bc049c8d88adbe829386f0926bc2947af (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
55
56
# Created by: Carsten Jensen <carsten@sitracker.org>
# $FreeBSD$

PORTNAME=	sit
PORTVERSION=	3.67
CATEGORIES=	www
MASTER_SITES=	SF/sitracker/stable/${PORTVERSION}/
DISTNAME=	sit_${PORTVERSION}p1

MAINTAINER=	carsten@sitracker.org
COMMENT=	A PHP incident tracking system / Helpdesk

LICENSE=	GPLv2

USE_PHP=	pcre mysql session zlib mbstring
WANT_PHP_WEB=	yes

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/sit-${PORTVERSION}

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	IMAP MBSTRING LDAP
OPTIONS_DEFAULT=	IMAP MBSTRING
IMAP_DESC=	Email Support
MBSTRING_DESC=	Inbound email feature

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MIMAP}
USE_PHP+=	imap
.endif

.if ${PORT_OPTIONS:MMBSTRING}
USE_PHP+=	mbstring
.endif

.if ${PORT_OPTIONS:MLDAP}
USE_PHP+=	ldap
.endif

do-install:
	${MKDIR} ${WWWDIR}
	cd ${WRKSRC}; ${FIND} . \
		| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	${CHMOD} -R ${BINMODE} ${WWWDIR}
	${FIND} ${WWWDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}

	@${CAT} ${PKGMESSAGE}

post-install:
	@if [ -f ${WWWDIR}/config.inc.php ]; then \
		${CP} -p ${WWWDIR}/config.inc.php ${WWWDIR}/config.inc.php.bak ; \
	fi

.include <bsd.port.mk>