diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2011-03-18 04:15:18 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2011-03-18 04:15:18 +0000 |
commit | ec32805f1d51d04a9771c627760a7a7969268bc5 (patch) | |
tree | 1b4d53ef49a019fd71a89bb1df08998a27089c08 /net-mgmt/glpi-plugins-fusioninventory-server/Makefile | |
parent | 6cb43abf1d0e06e558fb06eb6d089f0d554d1c4a (diff) | |
download | ports-ec32805f1d51d04a9771c627760a7a7969268bc5.tar.gz ports-ec32805f1d51d04a9771c627760a7a7969268bc5.zip |
Notes
Diffstat (limited to 'net-mgmt/glpi-plugins-fusioninventory-server/Makefile')
-rw-r--r-- | net-mgmt/glpi-plugins-fusioninventory-server/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net-mgmt/glpi-plugins-fusioninventory-server/Makefile b/net-mgmt/glpi-plugins-fusioninventory-server/Makefile new file mode 100644 index 000000000000..3daf8a79eaed --- /dev/null +++ b/net-mgmt/glpi-plugins-fusioninventory-server/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: glpi-plugins-fusioninventory-server +# Date created: 2011-02-18 +# Whom: Gvozdikov Veniamin <g.veniamin@googlemail.com> +# +# $FreeBSD$ +# + +PORTNAME= server +PORTVERSION= 2.3.0 +CATEGORIES= net-mgmt +MASTER_SITES= http://forge.fusioninventory.org/attachments/download/257/ +PKGNAMEPREFIX= glpi-plugins-fusioninventory- +DISTNAME= fusioninventory_2.3.0-BETA1 + +MAINTAINER= g.veniamin@googlemail.com +COMMENT= Plugin of glpi to get information of networking devices + +RUN_DEPENDS= glpi>=0.78:${PORTSDIR}/www/glpi + +USE_PHP= simplexml wddx + +WRKSRC= ${WRKDIR} +NO_BUILD= yes + +GLPIPLUGINDIR?= www/glpi/plugins + +OPTIONS= INVENTORY "Additional features" on\ + SNMP "SNMP support" off + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_INVENTORY) +PLIST_SUB+= INVENTORY="@comment " +.else +PLIST_SUB+= INVENTORY="" +.endif + +.if defined(WITHOUT_SNMP) +PLIST_SUB+= SNMP="@comment " +.else +PLIST_SUB+= SNMP="" +.endif + +do-install: + @${MKDIR} -m 0755 ${PREFIX}/${GLPIPLUGINDIR} + @${CP} -R ${WRKSRC}/fusioninventory ${PREFIX}/${GLPIPLUGINDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusioninventory + +.if !defined(WITHOUT_INVENTORY) + @${CP} -R ${WRKSRC}/fusinvinventory ${PREFIX}/${GLPIPLUGINDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusinvinventory +.endif + +.if !defined(WITHOUT_SNMP) + @${CP} -R ${WRKSRC}/fusinvsnmp ${PREFIX}/${GLPIPLUGINDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}/fusinvsnmp +.endif + +.include <bsd.port.post.mk> |