Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 2009 21:57:57 GMT
From:      David DURIEUX <d.durieux@siprossii.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/140174: New port: net-mgmt/glpi-plugins-tracker-agent : Agent get informations of networking devices by SNMP for GLPI
Message-ID:  <200911012157.nA1LvvZ1079937@www.freebsd.org>
Resent-Message-ID: <200911012200.nA1M07qk011614@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <d.durieux@siprossii.com>
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 <bsd.port.pre.mk>
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 <bsd.port.post.mk>
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911012157.nA1LvvZ1079937>