Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2001 22:49:37 -0400 (EDT)
From:      marcus@marcuscom.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/27631: New port: confregdecode-1.0
Message-ID:  <200105250249.f4P2nbN08568@shumai.marcuscom.com>

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

>Number:         27631
>Category:       ports
>Synopsis:       New port: confregdecode-1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 24 19:50:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Joe Marcus Clarke
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
MarcusCom
>Environment:
System: FreeBSD shumai.marcuscom.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sun May 6 01:46:59 EDT 2001 root@shumai.marcuscom.com:/usr/src/sys/compile/SHUMAI i386


	
>Description:
	This is a port of the Cisco Systems IOS(tm) configuration
register decoder/encoder to FreeBSD.  It is distributed in both Java applet
and application form.
>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:
#
#	confregdecode
#	confregdecode/files
#	confregdecode/files/patch-ab
#	confregdecode/files/confregdecode
#	confregdecode/Makefile
#	confregdecode/distinfo
#	confregdecode/pkg-comment
#	confregdecode/pkg-descr
#	confregdecode/pkg-plist
#
echo c - confregdecode
mkdir -p confregdecode > /dev/null 2>&1
echo c - confregdecode/files
mkdir -p confregdecode/files > /dev/null 2>&1
echo x - confregdecode/files/patch-ab
sed 's/^X//' >confregdecode/files/patch-ab << 'END-of-confregdecode/files/patch-ab'
X--- Makefile.orig	Thu May 24 22:06:27 2001
X+++ Makefile	Thu May 24 22:06:42 2001
X@@ -12,8 +12,8 @@
X 	$(JAVAC) $(JAVAC_FLAGS) com/marcuscom/confregdecode/ConfregDecode.java
X 
X jar: all
X-	jar -cvf cd.jar com/marcuscom/confregdecode/*.class
X+	jar -cvf confregdecode.jar com/marcuscom/confregdecode/*.class
X 
X clean:
X 	$(RM) -f com/marcuscom/confregdecode/*.class
X-	$(RM) -f cd.jar
X+	$(RM) -f cconfregdecode.jar
END-of-confregdecode/files/patch-ab
echo x - confregdecode/files/confregdecode
sed 's/^X//' >confregdecode/files/confregdecode << 'END-of-confregdecode/files/confregdecode'
X#!/bin/sh
X
X#
X# Copyright (c)2000-2001 by MarcusCom, Inc.  All rights reserved.
X# $Id: confregdecode.sh,v 1.3 2001/05/24 20:22:44 jmarcus Exp $
X#
X
X# Change this to your path to jre
XJRE=%%LOCALBASE%%/bin/javavm
X# End changeable things
X
XCLASSPATH=%%PREFIX%%/share/java/confregdecode.jar:${CLASSPATH}
X
Xexec ${JRE} -classpath ${CLASSPATH} com.marcuscom.confregdecode.ConfregDecode
END-of-confregdecode/files/confregdecode
echo x - confregdecode/Makefile
sed 's/^X//' >confregdecode/Makefile << 'END-of-confregdecode/Makefile'
X# New ports collection makefile for: The cisco Systems IOS(tm) config register decoder
X# Date created:		24 May 2001
X# Whom:			Joe Clarke <marcus@marcuscom.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	confregdecode
XPORTVERSION=	1.0
XCATEGORIES=	net java
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	cosi-nms
XDISTNAME=	confregdecode-src-${PORTVERSION}
X
XMAINTAINER=	marcus@marcuscom.com
X
XBUILD_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
XRUN_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk \
X		${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
X
XALL_TARGET=	jar
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/java
X	@${INSTALL_DATA} ${WRKSRC}/confregdecode.jar ${LOCALBASE}/share/java
X	@${SED} \
X		-e s,%%PREFIX%%,${PREFIX}, \
X		-e s,%%LOCALBASE%%,${LOCALBASE}, \
X		< ${FILESDIR}/confregdecode > ${PREFIX}/bin/confregdecode; \
X	${CHMOD} a+x ${PREFIX}/bin/confregdecode
X
Xpost-install:
X	@${MKDIR} ${PREFIX}/share/doc/confregdecode
X	@${INSTALL_DATA} ${WRKSRC}/README.txt ${LOCALBASE}/share/doc/confregdecode
X	@${INSTALL_DATA} ${WRKSRC}/ConfregDecode.html ${LOCALBASE}/share/doc/confregdecode
X
X.include <bsd.port.mk>
END-of-confregdecode/Makefile
echo x - confregdecode/distinfo
sed 's/^X//' >confregdecode/distinfo << 'END-of-confregdecode/distinfo'
XMD5 (confregdecode-src-1.0.tar.gz) = 3bd8ec11e298f42b2ae0f672940cf5d6
END-of-confregdecode/distinfo
echo x - confregdecode/pkg-comment
sed 's/^X//' >confregdecode/pkg-comment << 'END-of-confregdecode/pkg-comment'
XCisco Systems IOS(tm) configuration register decoder
END-of-confregdecode/pkg-comment
echo x - confregdecode/pkg-descr
sed 's/^X//' >confregdecode/pkg-descr << 'END-of-confregdecode/pkg-descr'
XThis is a Java applet and application that can encode and decode a Cisco
Xrouter's configuration register.
X
XIt also shows some valuable notes for each router family that can help 
Xwith disaster recovery.
X
XIt is being released as part of the Cisco-centric Open Source Initiative.
X
XWWW: http://cosi-nms.sourceforge.net
END-of-confregdecode/pkg-descr
echo x - confregdecode/pkg-plist
sed 's/^X//' >confregdecode/pkg-plist << 'END-of-confregdecode/pkg-plist'
Xbin/confregdecode
Xshare/java/confregdecode.jar
Xshare/doc/confregdecode/README.txt
Xshare/doc/confregdecode/ConfregDecode.html
X@dirrm share/doc/confregdecode
X@unexec rmdir %D/share/java || true
END-of-confregdecode/pkg-plist
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?200105250249.f4P2nbN08568>