aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/glpi-plugins-AdditionalReports/Makefile
blob: b676116bde2c133b180732ebbb805512b23ac444 (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
# Created by: ddurieux <d.durieux@siprossii.com>
# $FreeBSD$

PORTNAME=   AdditionalReports
DISTVERSION=    1.3.0
CATEGORIES= textproc
MASTER_SITES=   https://forge.indepnet.net/attachments/download/136/ \
        http://glpi.siprossii.com/distfiles/
PKGNAMEPREFIX=  glpi-plugins-
DISTNAME=   glpi-reports-1.3.0

MAINTAINER= ports@FreeBSD.org
COMMENT=    This plugin enables additional reports

RUN_DEPENDS=    glpi>=0.72:${PORTSDIR}/www/glpi

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

GLPIPLUGINDIR?= www/glpi/plugins/reports

NO_STAGE=   yes
.include <bsd.port.pre.mk>

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

.include <bsd.port.post.mk>