summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/dimes/Makefile82
-rw-r--r--net/dimes/distinfo3
-rw-r--r--net/dimes/files/patch-configure62
-rw-r--r--net/dimes/pkg-descr7
-rw-r--r--net/dimes/pkg-plist83
6 files changed, 238 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 0e9f6fc..7a01433 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -103,6 +103,7 @@
SUBDIR += dhcprelay
SUBDIR += dictd
SUBDIR += dictd-database
+ SUBDIR += dimes
SUBDIR += diradmin
SUBDIR += dosdetector
SUBDIR += dtcp
diff --git a/net/dimes/Makefile b/net/dimes/Makefile
new file mode 100644
index 0000000..cf1f813
--- /dev/null
+++ b/net/dimes/Makefile
@@ -0,0 +1,82 @@
+# New ports collection makefile for: DIMES
+# Date created: 18 April 2006
+# Whom: stast
+#
+# $FreeBSD$
+#
+
+PORTNAME= DIMES
+DISTVERSION= 0-4-2
+CATEGORIES= net java
+MASTER_SITES= http://netdimes.org/downloads/
+
+MAINTAINER= stast@bsdportal.ru
+COMMENT= Distributed research project for measurement topology of the Internet
+
+NO_PACKAGE= There is the string in properties.xml which system-depends
+NO_BUILD= .jar files are ready for use.
+
+WRKSRC= ${WRKDIR}/DIMES
+
+USE_JAVA= YES
+JAVA_VERSION= 1.4+
+#java-linux required
+JAVA_OS= linux
+#all vendors except forbidden: ibm
+JAVA_VENDOR= sun blackdown
+DATADIR= ${JAVASHAREDIR}/dimes
+
+post-patch:
+ cd ${WRKSRC}; echo "JAVA_HOME=${JAVA_HOME}" >> ${WRKSRC}/colors.sh;
+
+do-install:
+ @${MKDIR} ${DATADIR}
+ @${MKDIR} ${DATADIR}/Classes
+ @${MKDIR} ${DATADIR}/Classes/Base
+ @${MKDIR} -m 0777 ${DATADIR}/Classes/Base/History
+ @${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Incoming
+ @${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Incoming/Keepalive
+ @${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Outgoing
+ @${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Outgoing/log
+ @${MKDIR} -m 0777 ${DATADIR}/Classes/Base/Outgoing/results
+ @${MKDIR} ${DATADIR}/Classes/Base/conf
+ @${MKDIR} ${DATADIR}/Classes/Base/resources
+ @${MKDIR} ${DATADIR}/Classes/Base
+ @${MKDIR} ${DATADIR}/Classes/Base
+ @${MKDIR} ${DATADIR}/Classes/JARs
+ @${MKDIR} ${DATADIR}/Licences
+ @${INSTALL_DATA} ${WRKSRC}/Classes/'AgentLauncher$$1.class' \
+ ${DATADIR}/Classes/'AgentLauncher$$1.class'
+ @${INSTALL_DATA} ${WRKSRC}/Classes/'AgentLauncher$$2.class' \
+ ${DATADIR}/Classes/'AgentLauncher$$2.class'
+ @${INSTALL_DATA} ${WRKSRC}/Classes/AgentLauncher.class \
+ ${DATADIR}/Classes/AgentLauncher.class
+ @cd ${WRKSRC}/Classes/ && \
+ ${FIND} . -type f -and \( -name "*.jpg" -or -name "*.gif" \
+ -or -name "*.dll" -or -name "*.ico" -or -name "*.so" \
+ -or -name "*.zip" -or -name "*.GIF" -or -name "*.txt" \
+ -or -name "*.properties" \) \
+ -exec ${INSTALL_DATA} {} ${DATADIR}/Classes/{} \;
+ @cd ${WRKSRC}/Classes/Base/resources/ && \
+ ${FIND} . -type f -and \( -name "*.jar" -or -name "*.txt" \
+ -or -name "*.keystore" \) \
+ -exec ${INSTALL_DATA} {} ${DATADIR}/Classes/Base/resources/{} \;
+ @${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.bin \
+ ${DATADIR}/Classes/Base/resources/layouts.bin
+ @${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.meta \
+ ${DATADIR}/Classes/Base/resources/layouts.meta
+ @${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/conf/properties.xml \
+ ${DATADIR}/Classes/Base/conf/properties.xml
+ @${INSTALL_PROGRAM} ${WRKSRC}/Classes/JARs/jarsigner \
+ ${DATADIR}/Classes/JARs/jarsigner
+ @${INSTALL_DATA} ${WRKSRC}/Classes/JARs/10.jar \
+ ${DATADIR}/Classes/JARs/10.jar
+ @${INSTALL_DATA} ${WRKSRC}/Classes/JARs/dimesAgent.keystore \
+ ${DATADIR}/Classes/JARs/dimesAgent.keystore
+ @cd ${WRKSRC}/Licences/ && ${FIND} . -type f -name "*.txt" \
+ -exec ${INSTALL_MAN} {} ${DATADIR}/Licences/{} \;
+ @${INSTALL_SCRIPT} -m 4755 ${WRKSRC}/agent.sh ${DATADIR}/agent.sh
+ @${INSTALL_SCRIPT} ${WRKSRC}/colors.sh ${DATADIR}/colors.sh
+ cd ${WRKSRC}; ${SH} ./fix_permissions.sh; ./configure ${JAVASHAREDIR}
+
+.include <bsd.port.mk>
diff --git a/net/dimes/distinfo b/net/dimes/distinfo
new file mode 100644
index 0000000..0cbdd6d
--- /dev/null
+++ b/net/dimes/distinfo
@@ -0,0 +1,3 @@
+MD5 (DIMES-0-4-2.tar.gz) = 3396594e9e5f949c830beff62a2d07f4
+SHA256 (DIMES-0-4-2.tar.gz) = 18fd156ef36d34ee55b4e42251b2f05d247679cbbeb92a7b0232cf0a9c8a79b4
+SIZE (DIMES-0-4-2.tar.gz) = 6404942
diff --git a/net/dimes/files/patch-configure b/net/dimes/files/patch-configure
new file mode 100644
index 0000000..14499184
--- /dev/null
+++ b/net/dimes/files/patch-configure
@@ -0,0 +1,62 @@
+$FreeBSD$
+
+*** configure.orig Thu Nov 17 16:23:48 2005
+--- configure Wed Apr 19 23:00:24 2006
+***************
+*** 1,40 ****
+ #!/bin/sh
+ # Written by Danny Bickson, HUJI
+ # modified by Ohad Serfaty , TAU (11.9.05)
+! #USERNAME=`whoami`
+ CURRENT_DIR=$(pwd)
+- CLASSES_DIR="$CURRENT_DIR/Classes"
+- BASE_DIR="$CURRENT_DIR/Classes/Base"
+- CONF_DIR="$BASE_DIR/conf"
+
+! . colors.sh
+! echo "Installing DIMES"
+! echo "Updating properties file $CONF_DIR/properties.xml"
+! echo -n "You can later edit this file manually if needed........."
+
+! test -f $CONF_DIR/properties.xml
+! verify $? "Missing properties file: $CONF_DIR/properties.xml"
+
+ echo -n "setting JARS dir: $CLASSES_DIR/JARs.........................."
+! sed -i "s#<jarDir>.*</jarDir>#<jarDir>$CLASSES_DIR/JARs</jarDir>#g" $CONF_DIR/properties.xml
+! sed -i "s#<base>.*</base>#<base>$BASE_DIR</base>#g" $CONF_DIR/properties.xml
+! verify $?
+!
+!
+! # deprecated : set IP address :
+! #IP_ADDR=`ifconfig eth0 | grep "inet addr" | awk '{print $2}' | sed -e "s/addr\://g"`
+! #echo -n "setting IP address: $IP_ADDR............................"
+! #if [ $IP_ADDR != "" ]; then
+! # sed -i "s#132.66.48.22#$IP_ADDR#g" $CONF_DIR/properties.xml
+! #fi
+! #verify $?
+!
+! chmod a+rx . *.sh > /dev/null 2>&1
+! #verify $? "failed to setup file permissions"
+!
+! #The following should be executed as root!
+! echo "Going to set root priviliges for running ping and traceroute"
+! echo "Please enter root password"
+! sudo bash ./fix_permissions.sh
+!
+! echo "Installation OK!"
+--- 1,15 ----
+ #!/bin/sh
+ # Written by Danny Bickson, HUJI
+ # modified by Ohad Serfaty , TAU (11.9.05)
+! # modified by Stas Timokhin for FreeBSD port
+ CURRENT_DIR=$(pwd)
+
+! CLASSES_DIR="$1/dimes/Classes"
+! BASE_DIR="$1/dimes/Classes/Base"
+
+! CONF_DIR="$CURRENT_DIR/Classes/Base/conf"
+
++ echo "Updating properties file $CONF_DIR/properties.xml"
+ echo -n "setting JARS dir: $CLASSES_DIR/JARs.........................."
+! sed -i .bak "s#<jarDir>.*</jarDir>#<jarDir>$CLASSES_DIR/JARs</jarDir>#g" $CONF_DIR/properties.xml
+! sed -i .bak "s#<base>.*</base>#<base>$BASE_DIR</base>#g" $CONF_DIR/properties.xml
diff --git a/net/dimes/pkg-descr b/net/dimes/pkg-descr
new file mode 100644
index 0000000..86df8c4
--- /dev/null
+++ b/net/dimes/pkg-descr
@@ -0,0 +1,7 @@
+DIMES is a distributed scientific research project, aimed to study the
+structure and topology of the Internet, with the help of a volunteer community
+(similar in spirit to projects such as SETI@Home).
+
+WWW: http://netdimes.org
+- Stas Timokhin
+stast@bsdportal.ru
diff --git a/net/dimes/pkg-plist b/net/dimes/pkg-plist
new file mode 100644
index 0000000..4f603ee
--- /dev/null
+++ b/net/dimes/pkg-plist
@@ -0,0 +1,83 @@
+@comment $FreeBSD$
+%%DATADIR%%/Classes/AgentLauncher$1.class
+%%DATADIR%%/Classes/AgentLauncher$2.class
+%%DATADIR%%/Classes/AgentLauncher.class
+%%DATADIR%%/Classes/Base/conf/countries-xml.txt
+%%DATADIR%%/Classes/Base/conf/logging.properties
+%%DATADIR%%/Classes/Base/conf/properties.xml
+%%DATADIR%%/Classes/Base/resources/About16.gif
+%%DATADIR%%/Classes/Base/resources/CommunicationDetector.dll
+%%DATADIR%%/Classes/Base/resources/DIMES.gif
+%%DATADIR%%/Classes/Base/resources/DIMESIcon.ico
+%%DATADIR%%/Classes/Base/resources/DIMES_Large.jpg
+%%DATADIR%%/Classes/Base/resources/Delete16.gif
+%%DATADIR%%/Classes/Base/resources/DimesSplash.jpg
+%%DATADIR%%/Classes/Base/resources/Help16.gif
+%%DATADIR%%/Classes/Base/resources/IDW.jar
+%%DATADIR%%/Classes/Base/resources/MTR.dll
+%%DATADIR%%/Classes/Base/resources/MySystray4j.jar
+%%DATADIR%%/Classes/Base/resources/Pause16.gif
+%%DATADIR%%/Classes/Base/resources/Play16.gif
+%%DATADIR%%/Classes/Base/resources/Properties16.gif
+%%DATADIR%%/Classes/Base/resources/Save16.gif
+%%DATADIR%%/Classes/Base/resources/Stop16.gif
+%%DATADIR%%/Classes/Base/resources/StopRed16.gif
+%%DATADIR%%/Classes/Base/resources/WebComponent16.gif
+%%DATADIR%%/Classes/Base/resources/WebComponent24.gif
+%%DATADIR%%/Classes/Base/resources/a1.GIF
+%%DATADIR%%/Classes/Base/resources/about.txt
+%%DATADIR%%/Classes/Base/resources/changeLog.txt
+%%DATADIR%%/Classes/Base/resources/client.keystore
+%%DATADIR%%/Classes/Base/resources/dimes.jpg
+%%DATADIR%%/Classes/Base/resources/dimesIcon.jpg
+%%DATADIR%%/Classes/Base/resources/dimesTransparent2.gif
+%%DATADIR%%/Classes/Base/resources/dom4j-full.jar
+%%DATADIR%%/Classes/Base/resources/exec.gif
+%%DATADIR%%/Classes/Base/resources/fav.gif
+%%DATADIR%%/Classes/Base/resources/folder_documents.gif
+%%DATADIR%%/Classes/Base/resources/glue.gif
+%%DATADIR%%/Classes/Base/resources/hand.gif
+%%DATADIR%%/Classes/Base/resources/handtool.gif
+%%DATADIR%%/Classes/Base/resources/helpicon.gif
+%%DATADIR%%/Classes/Base/resources/layouts.bin
+%%DATADIR%%/Classes/Base/resources/layouts.meta
+%%DATADIR%%/Classes/Base/resources/libcallmtr.so
+%%DATADIR%%/Classes/Base/resources/m1.GIF
+%%DATADIR%%/Classes/Base/resources/n1.GIF
+%%DATADIR%%/Classes/Base/resources/network.gif
+%%DATADIR%%/Classes/Base/resources/packettrain.dll
+%%DATADIR%%/Classes/Base/resources/pacman.gif
+%%DATADIR%%/Classes/Base/resources/redWebComponent.gif
+%%DATADIR%%/Classes/Base/resources/s1.GIF
+%%DATADIR%%/Classes/Base/resources/scared.gif
+%%DATADIR%%/Classes/Base/resources/server.keystore
+%%DATADIR%%/Classes/Base/resources/skinlf.jar
+%%DATADIR%%/Classes/Base/resources/snail.ico
+%%DATADIR%%/Classes/Base/resources/snail.jpg
+%%DATADIR%%/Classes/Base/resources/systray4j.dll
+%%DATADIR%%/Classes/Base/resources/toxicthemepack.zip
+%%DATADIR%%/Classes/Base/resources/winnerFace.gif
+%%DATADIR%%/Classes/JARs/10.jar
+%%DATADIR%%/Classes/JARs/dimesAgent.keystore
+%%DATADIR%%/Classes/JARs/jarsigner
+%%DATADIR%%/Licences/DIMES-license.txt
+%%DATADIR%%/Licences/dom4j-license.txt
+%%DATADIR%%/Licences/gpl.txt
+%%DATADIR%%/Licences/lgpl.txt
+%%DATADIR%%/agent.sh
+%%DATADIR%%/colors.sh
+share/nls/POSIX
+share/nls/en_US.US-ASCII
+@dirrm %%DATADIR%%/Licences
+@dirrm %%DATADIR%%/Classes/JARs
+@dirrm %%DATADIR%%/Classes/Base/resources
+@dirrm %%DATADIR%%/Classes/Base/conf
+@dirrm %%DATADIR%%/Classes/Base/Outgoing/results
+@dirrm %%DATADIR%%/Classes/Base/Outgoing/log
+@dirrm %%DATADIR%%/Classes/Base/Outgoing
+@dirrm %%DATADIR%%/Classes/Base/Incoming/Keepalive
+@dirrm %%DATADIR%%/Classes/Base/Incoming
+@dirrm %%DATADIR%%/Classes/Base/History
+@dirrm %%DATADIR%%/Classes/Base
+@dirrm %%DATADIR%%/Classes
+@dirrm %%DATADIR%%
OpenPOWER on IntegriCloud