aboutsummaryrefslogtreecommitdiffstats
path: root/net/confregdecode
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-05-30 01:02:57 +0800
committerijliao <ijliao@FreeBSD.org>2001-05-30 01:02:57 +0800
commit7e1be96bb16365330995072265134f17e42b914c (patch)
treefdd2eb4780f1fde4ded7200a9dd18d52f88336ca /net/confregdecode
parent0cd3b558a2ec03ebdd484e3fc73daea22fbb1ec0 (diff)
downloadfreebsd-ports-gnome-7e1be96bb16365330995072265134f17e42b914c.tar.gz
freebsd-ports-gnome-7e1be96bb16365330995072265134f17e42b914c.tar.zst
freebsd-ports-gnome-7e1be96bb16365330995072265134f17e42b914c.zip
add confregdecode
Cisco Systems IOS(tm) configuration register decoder PR: 27631 Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
Diffstat (limited to 'net/confregdecode')
-rw-r--r--net/confregdecode/Makefile37
-rw-r--r--net/confregdecode/distinfo1
-rw-r--r--net/confregdecode/files/confregdecode14
-rw-r--r--net/confregdecode/files/patch-ab13
-rw-r--r--net/confregdecode/pkg-comment1
-rw-r--r--net/confregdecode/pkg-descr9
-rw-r--r--net/confregdecode/pkg-plist6
7 files changed, 81 insertions, 0 deletions
diff --git a/net/confregdecode/Makefile b/net/confregdecode/Makefile
new file mode 100644
index 000000000000..ac6e49f971d0
--- /dev/null
+++ b/net/confregdecode/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: The cisco Systems IOS(tm) config register decoder
+# Date created: 24 May 2001
+# Whom: Joe Clarke <marcus@marcuscom.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= confregdecode
+PORTVERSION= 1.0
+CATEGORIES= net java
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= cosi-nms
+DISTNAME= confregdecode-src-${PORTVERSION}
+
+MAINTAINER= marcus@marcuscom.com
+
+BUILD_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
+RUN_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk \
+ ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper
+
+ALL_TARGET= jar
+
+do-install:
+ @${MKDIR} ${PREFIX}/share/java
+ @${INSTALL_DATA} ${WRKSRC}/confregdecode.jar ${LOCALBASE}/share/java
+ @${SED} \
+ -e s,%%PREFIX%%,${PREFIX}, \
+ -e s,%%LOCALBASE%%,${LOCALBASE}, \
+ < ${FILESDIR}/confregdecode > ${PREFIX}/bin/confregdecode; \
+ ${CHMOD} a+x ${PREFIX}/bin/confregdecode
+
+post-install:
+ @${MKDIR} ${PREFIX}/share/doc/confregdecode
+ @${INSTALL_DATA} ${WRKSRC}/README.txt ${LOCALBASE}/share/doc/confregdecode
+ @${INSTALL_DATA} ${WRKSRC}/ConfregDecode.html ${LOCALBASE}/share/doc/confregdecode
+
+.include <bsd.port.mk>
diff --git a/net/confregdecode/distinfo b/net/confregdecode/distinfo
new file mode 100644
index 000000000000..58d3f03cf77d
--- /dev/null
+++ b/net/confregdecode/distinfo
@@ -0,0 +1 @@
+MD5 (confregdecode-src-1.0.tar.gz) = 3bd8ec11e298f42b2ae0f672940cf5d6
diff --git a/net/confregdecode/files/confregdecode b/net/confregdecode/files/confregdecode
new file mode 100644
index 000000000000..bc401781ca8a
--- /dev/null
+++ b/net/confregdecode/files/confregdecode
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+#
+# Copyright (c)2000-2001 by MarcusCom, Inc. All rights reserved.
+# $Id: confregdecode.sh,v 1.3 2001/05/24 20:22:44 jmarcus Exp $
+#
+
+# Change this to your path to jre
+JRE=%%LOCALBASE%%/bin/javavm
+# End changeable things
+
+CLASSPATH=%%PREFIX%%/share/java/confregdecode.jar:${CLASSPATH}
+
+exec ${JRE} -classpath ${CLASSPATH} com.marcuscom.confregdecode.ConfregDecode
diff --git a/net/confregdecode/files/patch-ab b/net/confregdecode/files/patch-ab
new file mode 100644
index 000000000000..d6d7acf981b5
--- /dev/null
+++ b/net/confregdecode/files/patch-ab
@@ -0,0 +1,13 @@
+--- Makefile.orig Thu May 24 22:06:27 2001
++++ Makefile Thu May 24 22:06:42 2001
+@@ -12,8 +12,8 @@
+ $(JAVAC) $(JAVAC_FLAGS) com/marcuscom/confregdecode/ConfregDecode.java
+
+ jar: all
+- jar -cvf cd.jar com/marcuscom/confregdecode/*.class
++ jar -cvf confregdecode.jar com/marcuscom/confregdecode/*.class
+
+ clean:
+ $(RM) -f com/marcuscom/confregdecode/*.class
+- $(RM) -f cd.jar
++ $(RM) -f cconfregdecode.jar
diff --git a/net/confregdecode/pkg-comment b/net/confregdecode/pkg-comment
new file mode 100644
index 000000000000..e39fab55360b
--- /dev/null
+++ b/net/confregdecode/pkg-comment
@@ -0,0 +1 @@
+Cisco Systems IOS(tm) configuration register decoder
diff --git a/net/confregdecode/pkg-descr b/net/confregdecode/pkg-descr
new file mode 100644
index 000000000000..8d1b80d7fe7b
--- /dev/null
+++ b/net/confregdecode/pkg-descr
@@ -0,0 +1,9 @@
+This is a Java applet and application that can encode and decode a Cisco
+router's configuration register.
+
+It also shows some valuable notes for each router family that can help
+with disaster recovery.
+
+It is being released as part of the Cisco-centric Open Source Initiative.
+
+WWW: http://cosi-nms.sourceforge.net
diff --git a/net/confregdecode/pkg-plist b/net/confregdecode/pkg-plist
new file mode 100644
index 000000000000..f9871f8f458b
--- /dev/null
+++ b/net/confregdecode/pkg-plist
@@ -0,0 +1,6 @@
+bin/confregdecode
+share/java/confregdecode.jar
+share/doc/confregdecode/README.txt
+share/doc/confregdecode/ConfregDecode.html
+@dirrm share/doc/confregdecode
+@unexec rmdir %D/share/java || true