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

PORTNAME=   glpi
DISTVERSION=    0.70.2
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
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>