Date: Sat, 3 Nov 2001 17:50:36 +0100 (CET) From: Nicolas Jombart <Nicolas.Jombart@hsc-labs.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/31734: New port: net/pancho - A perl script useful to configure Cisco devices via TFTP Message-ID: <20011103165036.25FDE103AC7@polom.hsc.fr>
next in thread | raw e-mail | index | archive | help
>Number: 31734 >Category: ports >Synopsis: New port: net/pancho - A perl script useful to configure Cisco devices via TFTP >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Nov 03 09:00:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Nicolas Jombart >Release: FreeBSD 5.0-CURRENT i386 >Organization: HSC-Labs >Environment: System: FreeBSD polom.hsc.fr 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Fri Oct 26 01:20:22 CEST 2001 ecu@polom.hsc.fr:/usr/src/sys/i386/compile/ECU i386 >Description: Pancho is a perl script to configure Cisco devices via TFTP, and perform things like "write mem" >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/pancho # /usr/ports/net/pancho/pkg-comment # /usr/ports/net/pancho/Makefile # /usr/ports/net/pancho/distinfo # /usr/ports/net/pancho/pkg-descr # /usr/ports/net/pancho/pkg-plist # /usr/ports/net/pancho/files # /usr/ports/net/pancho/files/patch-aa # /usr/ports/net/pancho/files/patch-ab # echo c - /usr/ports/net/pancho mkdir -p /usr/ports/net/pancho > /dev/null 2>&1 echo x - /usr/ports/net/pancho/pkg-comment sed 's/^X//' >/usr/ports/net/pancho/pkg-comment << 'END-of-/usr/ports/net/pancho/pkg-comment' XPerl script useful to configure Cisco routers via TFTP END-of-/usr/ports/net/pancho/pkg-comment echo x - /usr/ports/net/pancho/Makefile sed 's/^X//' >/usr/ports/net/pancho/Makefile << 'END-of-/usr/ports/net/pancho/Makefile' X# New ports collection makefile for: pancho X# Date created: november 2nd, 2001 X# Whom: Nicolas Jombart <Nicolas.Jombart@hsc-labs.com> X# X# $FreeBSD$ X# X XPORTNAME= pancho XPORTVERSION= 2.6 XCATEGORIES= net XMASTER_SITES= http://pancho.lunarmedia.net/ XDISTNAME= pancho-v2.6 X XMAINTAINER= Nicolas.Jombart@hsc-labs.com X XRUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/SNMP.pm:${PORTSDIR}/net/p5-Net-SNMP X XNO_BUILD= YES X Xpre-patch: X @${MV} ${WRKSRC}/pancho ${WRKSRC}/pancho.old X @${SED} -e '1,1s:/usr/bin/perl:${PERL5}:' \ X < ${WRKSRC}/pancho.old > ${WRKSRC}/pancho X.if defined(WITH_PANCHO_LOGGING) X @${MV} ${WRKSRC}/pancho ${WRKSRC}/pancho.old X @${SED} -e '35,1s:logging = "":logging = "1":' \ X < ${WRKSRC}/pancho.old > ${WRKSRC}/pancho X.endif X @${RM} ${WRKSRC}/pancho.old X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/pancho ${PREFIX}/bin X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/pancho X.for i in README LOGGING X ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/pancho X.endfor X.endif X X.include <bsd.port.mk> END-of-/usr/ports/net/pancho/Makefile echo x - /usr/ports/net/pancho/distinfo sed 's/^X//' >/usr/ports/net/pancho/distinfo << 'END-of-/usr/ports/net/pancho/distinfo' XMD5 (pancho-v2.6.tar.gz) = b806b9cdca03247a1200595254711dea END-of-/usr/ports/net/pancho/distinfo echo x - /usr/ports/net/pancho/pkg-descr sed 's/^X//' >/usr/ports/net/pancho/pkg-descr << 'END-of-/usr/ports/net/pancho/pkg-descr' XPancho was written with the goal of allowing network Xadmnistrators make a change to a group of Cisco routers Xwithout being required to log into each host. X XPancho also provides the flexibility to allow admins to Xuse its function against a single host, a select group Xor the entire whole. In addition to changes to current Xconfigurations on remote routers, pancho is also capable Xof archiving router configurations manually or through Xautomated runs. X XWWW: http://pancho.lunarmedia.net/ X X--Nicolas Jombart <Nicolas.Jombart@hsc-labs.com> END-of-/usr/ports/net/pancho/pkg-descr echo x - /usr/ports/net/pancho/pkg-plist sed 's/^X//' >/usr/ports/net/pancho/pkg-plist << 'END-of-/usr/ports/net/pancho/pkg-plist' Xbin/pancho X%%PORTDOCS%%share/doc/pancho/README X%%PORTDOCS%%share/doc/pancho/LOGGING END-of-/usr/ports/net/pancho/pkg-plist echo c - /usr/ports/net/pancho/files mkdir -p /usr/ports/net/pancho/files > /dev/null 2>&1 echo x - /usr/ports/net/pancho/files/patch-aa sed 's/^X//' >/usr/ports/net/pancho/files/patch-aa << 'END-of-/usr/ports/net/pancho/files/patch-aa' X--- pancho.orig Sat Nov 3 16:12:13 2001 X+++ pancho Sat Nov 3 16:13:03 2001 X@@ -34,7 +34,7 @@ X X my $logging = ""; # set this to "1" to enable logging X X-my $logfile = ""; # full path to your logfile X+my $logfile = $ENV{HOME}."/pancho.log"; # full path to your logfile X X ############ NO FURTHER EDITING SHOULD BE REQUIRED. ############ X ############ DOING SO IS AT YOUR OWN RISK. ############ END-of-/usr/ports/net/pancho/files/patch-aa echo x - /usr/ports/net/pancho/files/patch-ab sed 's/^X//' >/usr/ports/net/pancho/files/patch-ab << 'END-of-/usr/ports/net/pancho/files/patch-ab' X--- LOGGING.orig Sat Nov 3 16:26:20 2001 X+++ LOGGING Sat Nov 3 17:31:18 2001 X@@ -69,3 +69,7 @@ X X % touch /var/log/pancho X % chmod 600 /var/log/pancho X+ X+Note: The FreeBSD port compiled with -DWITH_PANCHO_LOGGING enables X+logging into ~/pancho.log so the setuid bit isn't set. X+ END-of-/usr/ports/net/pancho/files/patch-ab exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011103165036.25FDE103AC7>