881f80fc0e
devices by SNMP and get informations like serial number, name, cartridge and page counter of printers and on switchs, devices connected on each port. PR: ports/140158 Submitted by: ddurieux <d.durieux at siprossii.com>
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# New ports collection makefile for: glpi-plugins-tracker-server
|
|
# Date created: 31 October 2009
|
|
# Whom: ddurieux <d.durieux@siprossii.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= server
|
|
DISTVERSION= 2.1.3
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= https://forge.indepnet.net/attachments/download/512/ \
|
|
http://glpi.siprossii.com/distfiles/
|
|
PKGNAMEPREFIX= glpi-plugins-tracker-
|
|
DISTNAME= glpi-tracker_server-2.1.3
|
|
|
|
MAINTAINER= d.durieux@siprossii.com
|
|
COMMENT= Plugin of glpi to get information of networking devices by SNMP
|
|
|
|
RUN_DEPENDS= glpi>=0.72:${PORTSDIR}/www/glpi
|
|
|
|
USE_PHP= zlib
|
|
|
|
WRKSRC= ${WRKDIR}/tracker
|
|
NO_BUILD= yes
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
CPIOARGS= --quiet -pdum -R
|
|
|
|
GLPIPLUGINDIR?= www/glpi/plugins/tracker
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-configure:
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
-e 's,%%GLPIPLUGINDIR%%,${GLPIPLUGINDIR},g' pkg-message > ${PKGMESSAGE}
|
|
|
|
do-install:
|
|
@${MKDIR} -m 0755 ${PREFIX}/${GLPIPLUGINDIR}
|
|
@cd ${WRKSRC} && ${FIND} * -print | ${CPIO} ${CPIOARGS} ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${GLPIPLUGINDIR}
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|