From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Nov 1 22:00:07 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC9B9106568B for ; Sun, 1 Nov 2009 22:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AECBE8FC17 for ; Sun, 1 Nov 2009 22:00:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nA1M071U011616 for ; Sun, 1 Nov 2009 22:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nA1M07qk011614; Sun, 1 Nov 2009 22:00:07 GMT (envelope-from gnats) Resent-Date: Sun, 1 Nov 2009 22:00:07 GMT Resent-Message-Id: <200911012200.nA1M07qk011614@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David DURIEUX Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD7BE106568D for ; Sun, 1 Nov 2009 21:57:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id AB26D8FC13 for ; Sun, 1 Nov 2009 21:57:58 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nA1Lvvl3079938 for ; Sun, 1 Nov 2009 21:57:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nA1LvvZ1079937; Sun, 1 Nov 2009 21:57:57 GMT (envelope-from nobody) Message-Id: <200911012157.nA1LvvZ1079937@www.freebsd.org> Date: Sun, 1 Nov 2009 21:57:57 GMT From: David DURIEUX To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/140174: New port: net-mgmt/glpi-plugins-tracker-agent : Agent get informations of networking devices by SNMP for GLPI X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2009 22:00:08 -0000 >Number: 140174 >Category: ports >Synopsis: New port: net-mgmt/glpi-plugins-tracker-agent : Agent get informations of networking devices by SNMP for GLPI >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 01 22:00:07 UTC 2009 >Closed-Date: >Last-Modified: >Originator: David DURIEUX >Release: >Organization: siprossii >Environment: >Description: New port: net-mgmt/glpi-plugins-tracker-agent : Agent get informations of networking devices by SNMP for GLPI >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/net-mgmt/glpi-plugins-tracker-agent # /usr/ports/net-mgmt/glpi-plugins-tracker-agent/Makefile # /usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-descr # /usr/ports/net-mgmt/glpi-plugins-tracker-agent/distinfo # /usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-message # /usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-plist # echo c - /usr/ports/net-mgmt/glpi-plugins-tracker-agent mkdir -p /usr/ports/net-mgmt/glpi-plugins-tracker-agent > /dev/null 2>&1 echo x - /usr/ports/net-mgmt/glpi-plugins-tracker-agent/Makefile sed 's/^X//' >/usr/ports/net-mgmt/glpi-plugins-tracker-agent/Makefile << '38cb4e5373cbc123ab0622309a08bb98' X# New ports collection makefile for: glpi-plugins-tracker-agent X# Date created: 01 November 2009 X# Whom: ddurieux X# X# $FreeBSD$ X# X XPORTNAME= agent XDISTVERSION= 1.5.3 XCATEGORIES= net-mgmt XMASTER_SITES= https://forge.indepnet.net/attachments/download/512/ \ X http://glpi.siprossii.com/distfiles/ XPKGNAMEPREFIX= glpi-plugins-tracker- XDISTNAME= glpi-tracker_agent-1.5.3 X XMAINTAINER= d.durieux@siprossii.com XCOMMENT= Agent get informations of networking devices by SNMP for GLPI X XBUILD_DEPENDS= ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP \ X ${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \ X ${SITE_PERL}/AppConfig.pm:${PORTSDIR}/devel/p5-AppConfig \ X ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \ X ${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple \ X ${SITE_PERL}/mach/Data/Dumper.pm:${PORTSDIR}/devel/p5-Data-Dumper \ X ${SITE_PERL}/Parallel/ForkManager.pm:${PORTSDIR}/devel/p5-Parallel-ForkManager X XUSE_PERL5= yes XWRKSRC= ${WRKDIR}/agent_tracker XNO_BUILD= yes XPKGMESSAGE= ${WRKDIR}/pkg-message XCPIOARGS= --quiet -pdum X XTRACKERAGENTDIR?= share/tracker_agent X X.include X Xpost-configure: X @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \ X -e 's,%%TRACKERAGENTDIR%%,${TRACKERAGENTDIR},g' pkg-message > ${PKGMESSAGE} X Xdo-install: X @${MKDIR} -m 0755 ${PREFIX}/${TRACKERAGENTDIR} X @cd ${WRKSRC} && ${FIND} * -print | ${CPIO} ${CPIOARGS} ${PREFIX}/${TRACKERAGENTDIR} X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include 38cb4e5373cbc123ab0622309a08bb98 echo x - /usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-descr sed 's/^X//' >/usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-descr << 'c30e5769bdbda8188d79de11d556f23b' Xglpi-plugin-tracker-agent in a program writen in perl. It receive Xinformations from glpi server and query networking devices to Xget informations like serial number, name, Xcartridge and page counter of printers and on switchs, devices connected Xon each port. After it send them to glpi server. c30e5769bdbda8188d79de11d556f23b echo x - /usr/ports/net-mgmt/glpi-plugins-tracker-agent/distinfo sed 's/^X//' >/usr/ports/net-mgmt/glpi-plugins-tracker-agent/distinfo << '902b9050d6a185cedeb94c67e5ec0942' XMD5 (glpi-tracker_agent-1.5.3.tar.gz) = 529c04e543cfafb1fb82dc9be9028fbb XSHA256 (glpi-tracker_agent-1.5.3.tar.gz) = 1340f72b2da7e02c30f98855f4b339999ebe0dd54088bf228396ddc6ee9938f6 XSIZE (glpi-tracker_agent-1.5.3.tar.gz) = 19193 902b9050d6a185cedeb94c67e5ec0942 echo x - /usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-message sed 's/^X//' >/usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-message << '058e752fe587fc731f7bae161ce348b4' X***************************************************************** XAdd in cron table to run agent script : X X*/10 * * * * root /usr/local/bin/perl %%PREFIX%%/%%TRACKERAGENTDIR%%/tracker_agent.pl X XThis script get devices to query from glpi server, query devices and send them to server X X***************************************************************** 058e752fe587fc731f7bae161ce348b4 echo x - /usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-plist sed 's/^X//' >/usr/ports/net-mgmt/glpi-plugins-tracker-agent/pkg-plist << '23c4f0fcaac708d830e9d2d1f32b5c2a' Xshare/tracker_agent/inc/communications_serveur.pm Xshare/tracker_agent/inc/device_serials.pm Xshare/tracker_agent/inc/devices/cisco.pm Xshare/tracker_agent/inc/devices/hp.pm Xshare/tracker_agent/inc/devices/samsung.pm Xshare/tracker_agent/inc/devices/wyse.pm Xshare/tracker_agent/inc/errors.pm Xshare/tracker_agent/inc/functions.pm Xshare/tracker_agent/inc/tracker_discovery.pm Xshare/tracker_agent/inc/tracker_pid.pm Xshare/tracker_agent/inc/tracker_query.pm Xshare/tracker_agent/inc/tracker_snmp.pm Xshare/tracker_agent/inc/tracker_xml.pm Xshare/tracker_agent/tools/verif_descr.pl Xshare/tracker_agent/tracker_agent.pl X@dirrm share/tracker_agent/tools X@dirrm share/tracker_agent/log X@dirrm share/tracker_agent/inc/devices X@dirrm share/tracker_agent/inc X@dirrm share/tracker_agent 23c4f0fcaac708d830e9d2d1f32b5c2a exit >Release-Note: >Audit-Trail: >Unformatted: