aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/glpi-plugins-fusioninventory-server/Makefile
blob: 9342bd6b94505fc90b6c9899dd786a772aa33043 (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
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>

PORTNAME=	server
PORTVERSION=	${GLPI_VER}.${FUNV_VER}
PORTEPOCH=	1
CATEGORIES=	net-mgmt
PKGNAMEPREFIX=	glpi-plugins-fusioninventory-

MAINTAINER=	rodrigo@FreeBSD.org
COMMENT=	Plugin of glpi to get information of networking devices

LICENSE=	AGPLv3

RUN_DEPENDS=	glpi>=9.5:www/glpi

USES=		gettext php shebangfix
USE_GITHUB=	yes
GH_ACCOUNT=	fusioninventory
GH_PROJECT=	fusioninventory-for-glpi
GH_TAGNAME=	glpi090+${FUNV_VER}
USE_PHP=	fileinfo simplexml

GLPI_VER=	9.5.0
FUNV_VER=	1.0
NO_BUILD=	yes
NO_ARCH=	yes

SHEBANG_FILES=	lib/mustache.js-2.0.0/hooks/install-hooks.sh \
		scripts/get_agent_jobs.php scripts/cleanup_repository.php \
		scripts/prepare_jobs.php scripts/get_job_logs.php \
		tools/extract_template.sh
PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}

GLPIPLUGINDIR?=	www/glpi/plugins

.include <bsd.port.pre.mk>
do-install:
	@${MKDIR} -m 0755 ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}
	@${CP} -R ${WRKSRC} ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}/fusioninventory

.include <bsd.port.post.mk>