Import net-mgmt/glpi-plugins-fusioninventory-server version 0.80.1.5,1
[dports.git] / net-mgmt / glpi-plugins-fusioninventory-server / Makefile
1 # New ports collection makefile for:    glpi-plugins-fusioninventory-server
2 # Date created:         2011-02-18
3 # Whom:                 Gvozdikov Veniamin <g.veniamin@googlemail.com>
4 #
5 # $FreeBSD: ports/net-mgmt/glpi-plugins-fusioninventory-server/Makefile,v 1.5 2012/11/17 06:00:32 svnexp Exp $
6 #
7
8 PORTNAME=       server
9 PORTVERSION=    ${GLPI_VER}.${FUNV_VER}
10 PORTEPOCH=      1
11 CATEGORIES=     net-mgmt
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}
15
16 MAINTAINER=     g.veniamin@googlemail.com
17 COMMENT=        Plugin of glpi to get information of networking devices
18
19 RUN_DEPENDS=    glpi>=0.80:${PORTSDIR}/www/glpi
20
21 USE_PHP=        simplexml wddx
22
23 GLPI_VER=       0.80
24 FUNV_VER=       1.5
25 WRKSRC=         ${WRKDIR}
26 NO_BUILD=       yes
27
28 GLPIPLUGINDIR?= www/glpi/plugins
29
30 OPTIONS_DEFINE= INVENTORY SNMP
31
32 INVENTORY_DESC= Additional features
33 SNMP_DESC=      SNMP support
34
35 OPTIONS_DEFAULT=INVENTORY
36
37 .include <bsd.port.pre.mk>
38
39 .if ${PORT_OPTIONS:MINVENTORY}
40 PLIST_SUB+=     INVENTORY=""
41 .else
42 PLIST_SUB+=     INVENTORY="@comment "
43 .endif
44
45 .if ${PORT_OPTIONS:MSNMP}
46 PLIST_SUB+=     SNMP=""
47 .else
48 PLIST_SUB+=     SNMP="@comment "
49 .endif
50
51 do-install:
52         @${MKDIR} -m 0755 ${PREFIX}/${GLPIPLUGINDIR}
53         @${CP} -R ${WRKSRC}/fusioninventory ${PREFIX}/${GLPIPLUGINDIR}
54         @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusioninventory
55
56 .if ${PORT_OPTIONS:MINVENTORY}
57         @${CP} -R ${WRKSRC}/fusinvinventory ${PREFIX}/${GLPIPLUGINDIR}
58         @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusinvinventory
59 .endif
60
61 .if ${PORT_OPTIONS:MSNMP}
62         @${CP} -R ${WRKSRC}/fusinvsnmp ${PREFIX}/${GLPIPLUGINDIR}
63         @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusinvsnmp
64 .endif
65
66 .include <bsd.port.post.mk>