mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= server
|
|
PORTVERSION= ${GLPI_VER}.${FUNV_VER}
|
|
PORTEPOCH= 1
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://forge.fusioninventory.org/attachments/download/668/
|
|
PKGNAMEPREFIX= glpi-plugins-fusioninventory-
|
|
DISTNAME= fusioninventory-for-glpi-metapackage_${GLPI_VER}+${FUNV_VER}
|
|
|
|
MAINTAINER= vg@FreeBSD.org
|
|
COMMENT= Plugin of glpi to get information of networking devices
|
|
|
|
RUN_DEPENDS= glpi>=0.80:${PORTSDIR}/www/glpi
|
|
|
|
USE_PHP= simplexml wddx
|
|
|
|
GLPI_VER= 0.80
|
|
FUNV_VER= 1.5
|
|
WRKSRC= ${WRKDIR}
|
|
NO_BUILD= yes
|
|
|
|
GLPIPLUGINDIR?= www/glpi/plugins
|
|
|
|
OPTIONS_DEFINE= INVENTORY SNMP
|
|
|
|
INVENTORY_DESC= Additional features
|
|
SNMP_DESC= SNMP support
|
|
|
|
OPTIONS_DEFAULT=INVENTORY
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MINVENTORY}
|
|
PLIST_SUB+= INVENTORY=""
|
|
.else
|
|
PLIST_SUB+= INVENTORY="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSNMP}
|
|
PLIST_SUB+= SNMP=""
|
|
.else
|
|
PLIST_SUB+= SNMP="@comment "
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} -m 0755 ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}
|
|
@${CP} -R ${WRKSRC}/fusioninventory ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}/fusioninventory
|
|
|
|
.if ${PORT_OPTIONS:MINVENTORY}
|
|
@${CP} -R ${WRKSRC}/fusinvinventory ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}/fusinvinventory
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSNMP}
|
|
@${CP} -R ${WRKSRC}/fusinvsnmp ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${GLPIPLUGINDIR}/fusinvsnmp
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|