aboutsummaryrefslogtreecommitdiff
path: root/www/glpi/Makefile
blob: c62c585d81a6beae2d34e1561cd10d966e651dbc (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
# New ports collection makefile for:	glpi
# Date created:			9 February 2007
# Whom:				Mathias Monnerville <mathias@monnerville.com>
#
# $FreeBSD$
#

PORTNAME=	glpi
DISTVERSION=	0.72.4
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://glpi-project.org/IMG/gz/ \
		http://download.gna.org/kanicule/freebsd/distfiles/

MAINTAINER=	mathias@monnerville.com
COMMENT=	Free IT and asset management software

USE_PHP=	mysql pcre session xml json
WANT_PHP_WEB=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}
NO_BUILD=	yes
PKGMESSAGE=	${WRKDIR}/pkg-message
CPIOARGS=	--quiet -pdum -R

GLPIDIR?=	www/${PORTNAME}

.include <bsd.port.pre.mk>

post-extract:
	@${FIND} ${WRKSRC} -name '*~' -delete

post-configure:
	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
	  -e 's,%%GLPIDIR%%,${GLPIDIR},g' pkg-message > ${PKGMESSAGE}

do-install:
	@${MKDIR} -m 0755 ${PREFIX}/${GLPIDIR}
	@cd ${WRKSRC} && ${FIND} * -print | ${CPIO} ${CPIOARGS} ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIDIR}
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIDIR}

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

.include <bsd.port.post.mk>