diff options
-rw-r--r-- | net/flan/DESCR | 10 | ||||
-rw-r--r-- | net/flan/Makefile | 30 | ||||
-rw-r--r-- | net/flan/PLIST | 7 | ||||
-rw-r--r-- | net/flan/distinfo | 5 | ||||
-rw-r--r-- | net/flan/files/flan | 1 | ||||
-rw-r--r-- | net/flan/patches/patch-aa | 35 |
6 files changed, 88 insertions, 0 deletions
diff --git a/net/flan/DESCR b/net/flan/DESCR new file mode 100644 index 00000000000..a1d7af6a659 --- /dev/null +++ b/net/flan/DESCR @@ -0,0 +1,10 @@ +Flan is a network simluator written in java, and is now fully +functionnal. The IP protocol is implemented, with a quite complete +RIPv2 routing algorithm. The protocols are also written in java, so +GO AHEAD ! Flan is under GNU Public License, so download it, modify +it, and distribute it. + +The networks are now encoded in XML, using XMLCoDe. This very useful +library (included in the flan tarball as jars) automatically creates +an XML image of a java object, like the flan nets (XMLCoDe is entirely +written by Sylvain Guerin). diff --git a/net/flan/Makefile b/net/flan/Makefile new file mode 100644 index 00000000000..1dce43f3af2 --- /dev/null +++ b/net/flan/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/07/24 11:59:01 agc Exp $ +# + +DISTNAME= Flan +PKGNAME= flan-1.1rc1 +CATEGORIES= net +MASTER_SITES= http://picolibre.enst-bretagne.fr/projects/flan/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://picolibre.enst-bretagne.fr/projects/flan/index.html +COMMENT= Simulator for IP networks writen in Java + +USE_JAVA= yes +USE_GMAKE= yes + +post-build: + cd ${WRKSRC} ; ${PREFIX}/java/bin/jar cf flan.jar flan/ graphic/ + ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/flan > ${WRKDIR}/flan + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/java/flan + ${INSTALL_DATA} ${WRKSRC}/xmlcode.jar ${PREFIX}/lib/java/flan + ${INSTALL_DATA} ${WRKSRC}/xalan2.jar ${PREFIX}/lib/java/flan + ${INSTALL_DATA} ${WRKSRC}/crimson.jar ${PREFIX}/lib/java/flan + ${INSTALL_DATA} ${WRKSRC}/flan.jar ${PREFIX}/lib/java/flan + ${INSTALL_SCRIPT} ${WRKDIR}/flan ${PREFIX}/bin + +WRKSRC= ${WRKDIR}/src + +.include "../../mk/bsd.pkg.mk" diff --git a/net/flan/PLIST b/net/flan/PLIST new file mode 100644 index 00000000000..6dab6b1a87e --- /dev/null +++ b/net/flan/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/24 11:59:02 agc Exp $ +bin/flan +lib/java/flan/crimson.jar +lib/java/flan/flan.jar +lib/java/flan/xalan2.jar +lib/java/flan/xmlcode.jar +@dirrm lib/java/flan diff --git a/net/flan/distinfo b/net/flan/distinfo new file mode 100644 index 00000000000..2f477a58202 --- /dev/null +++ b/net/flan/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/07/24 11:59:02 agc Exp $ + +SHA1 (Flan.tar.gz) = 7f6eaf55abd6f4318db2e7bdca2c6ae65fbbd355 +Size (Flan.tar.gz) = 990458 bytes +SHA1 (patch-aa) = dc5d016fe8bb77259f1fb20bad400d8da05b61d6 diff --git a/net/flan/files/flan b/net/flan/files/flan new file mode 100644 index 00000000000..6e0b559af6f --- /dev/null +++ b/net/flan/files/flan @@ -0,0 +1 @@ +@PREFIX@/java/bin/java -classpath $CLASSPATH:@PREFIX@/lib/java/flan/flan.jar:@PREFIX@/lib/java/flan/crimson.jar:@PREFIX@/lib/java/flan/xalan2.jar:@PREFIX@/lib/java/flan/xmlcode.jar flan.frontend.Interface diff --git a/net/flan/patches/patch-aa b/net/flan/patches/patch-aa new file mode 100644 index 00000000000..89be120381d --- /dev/null +++ b/net/flan/patches/patch-aa @@ -0,0 +1,35 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/07/24 11:59:02 agc Exp $ + +--- graphic/Graphique.java 2002/07/24 11:42:22 1.1 ++++ graphic/Graphique.java 2002/07/24 11:48:27 +@@ -46,6 +46,7 @@ + public class Graphique extends CBufferedCanvas implements ItemListener + { + protected StatManager statManager; ++ protected boolean statManagerSet; + + /** + * The list of all the traces +@@ -112,6 +113,7 @@ + public void setStatManager(StatManager statManager) + { + this.statManager = statManager; ++ this.statManagerSet = true; + } + + /** +@@ -178,7 +180,13 @@ +
+ // At first, see if the trace is in out bounds
+
+- int iteration= statManager.getIteration(); // just a temp variable
++ int iteration; ++ ++ if (statManagerSet) ++ iteration = statManager.getIteration(); // just a temp variable
++ else ++ iteration = 0; ++ +
+ if (iteration > xMax)
+ xMax = iteration;
|