1 # New ports collection makefile for: glpi-plugins-fusioninventory-server
2 # Date created: 2011-02-18
3 # Whom: Gvozdikov Veniamin <g.veniamin@googlemail.com>
5 # $FreeBSD: ports/net-mgmt/glpi-plugins-fusioninventory-server/Makefile,v 1.5 2012/11/17 06:00:32 svnexp Exp $
9 PORTVERSION= ${GLPI_VER}.${FUNV_VER}
12 MASTER_SITES= http://forge.fusioninventory.org/attachments/download/668/
13 PKGNAMEPREFIX= glpi-plugins-fusioninventory-
14 DISTNAME= fusioninventory-for-glpi-metapackage_${GLPI_VER}+${FUNV_VER}
16 MAINTAINER= g.veniamin@googlemail.com
17 COMMENT= Plugin of glpi to get information of networking devices
19 RUN_DEPENDS= glpi>=0.80:${PORTSDIR}/www/glpi
21 USE_PHP= simplexml wddx
28 GLPIPLUGINDIR?= www/glpi/plugins
30 OPTIONS_DEFINE= INVENTORY SNMP
32 INVENTORY_DESC= Additional features
33 SNMP_DESC= SNMP support
35 OPTIONS_DEFAULT=INVENTORY
37 .include <bsd.port.pre.mk>
39 .if ${PORT_OPTIONS:MINVENTORY}
40 PLIST_SUB+= INVENTORY=""
42 PLIST_SUB+= INVENTORY="@comment "
45 .if ${PORT_OPTIONS:MSNMP}
48 PLIST_SUB+= SNMP="@comment "
52 @${MKDIR} -m 0755 ${PREFIX}/${GLPIPLUGINDIR}
53 @${CP} -R ${WRKSRC}/fusioninventory ${PREFIX}/${GLPIPLUGINDIR}
54 @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusioninventory
56 .if ${PORT_OPTIONS:MINVENTORY}
57 @${CP} -R ${WRKSRC}/fusinvinventory ${PREFIX}/${GLPIPLUGINDIR}
58 @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusinvinventory
61 .if ${PORT_OPTIONS:MSNMP}
62 @${CP} -R ${WRKSRC}/fusinvsnmp ${PREFIX}/${GLPIPLUGINDIR}
63 @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusinvsnmp
66 .include <bsd.port.post.mk>