diff options
Diffstat (limited to 'net/freenet')
-rw-r--r-- | net/freenet/Makefile | 85 | ||||
-rw-r--r-- | net/freenet/distinfo | 3 | ||||
-rw-r--r-- | net/freenet/files/freenet.sh | 67 | ||||
-rw-r--r-- | net/freenet/files/wrapper.sh | 163 | ||||
-rw-r--r-- | net/freenet/pkg-descr | 23 | ||||
-rw-r--r-- | net/freenet/pkg-message | 23 |
6 files changed, 0 insertions, 364 deletions
diff --git a/net/freenet/Makefile b/net/freenet/Makefile deleted file mode 100644 index b0f669b04913..000000000000 --- a/net/freenet/Makefile +++ /dev/null @@ -1,85 +0,0 @@ -# New ports collection makefile for: freenet -# Date created: Thu May 1 20:19:56 UTC 2003 -# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# -# $FreeBSD$ -# - -PORTNAME= freenet -PORTVERSION= 0.5.2.1.5106 -PORTREVISION= 1 -CATEGORIES= net java security -MASTER_SITES= http://freenetproject.org/snapshots/ \ - http://downloads.freenetproject.org/ \ - http://fgudin.nerim.net/files/ -DISTNAME= ${PORTNAME}-20051123 -EXTRACT_SUFX= .tgz - -MAINTAINER= lioux@FreeBSD.org -COMMENT= Peer-to-peer network aiming at anonymity and freedom of speech - -USE_RC_SUBR= yes -USE_JAVA= yes -JAVA_VERSION= 1.4+ -NO_BUILD= yes -WRKSRC= ${WRKDIR}/${PORTNAME} - -JAVAVM= ${LOCALBASE}/bin/java -# -DATA_FILES= seednodes.ref -DOC_FILES= README -JAR_FILES= freenet.jar freenet-ext.jar -# jar startup file -JAR_START= freenet.jar -# seed file -SEED_FILE= seednodes.ref - -PORTDOCS= ${DOC_FILES} - -PLIST_FILES= \ - sbin/${PORTNAME:L} \ - etc/rc.d/${PORTNAME:L}.sh \ - %%DATADIR%%/seednodes.ref \ - %%JAVAJARDIR%%/freenet-ext.jar \ - %%JAVAJARDIR%%/freenet.jar -PLIST_DIRS= %%DATADIR%% - -post-patch: - @${SED} -e "s|%%PREFIX%%|${PREFIX}|; \ - s|%%DATA_DIR%%|${DATADIR:S,^${PREFIX}/,,}|; \ - s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \ - s|%%JAVAVM%%|${JAVAVM}|; \ - s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|; \ - s|%%JAR_FILES%%|${JAR_FILES}|; \ - s|%%JAR_START%%|${JAR_START}|; \ - s|%%SEED_FILE%%|${SEED_FILE}|" \ - ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh - @${SED} -e "s|%%PREFIX%%|${PREFIX}|" \ - ${FILESDIR}/${PORTNAME:L}.sh > ${WRKDIR}/${PORTNAME:L}.sh - -do-install: -# docs -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for doc in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} -.endfor -.endif -# data - @${MKDIR} ${DATADIR} -.for file in ${DATA_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR} -.endfor -# jar -.for jar in ${JAR_FILES} - @${INSTALL_DATA} ${WRKSRC}/${jar} ${JAVAJARDIR} -.endfor -# rc.d - @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME:L}.sh ${PREFIX}/etc/rc.d -# wrapper - @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/sbin/${PORTNAME:L} - -post-install: - @${CAT} ${PKGMESSAGE} - -.include <bsd.port.mk> diff --git a/net/freenet/distinfo b/net/freenet/distinfo deleted file mode 100644 index 9f44b0af27f5..000000000000 --- a/net/freenet/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (freenet-20051123.tgz) = 5013e9fc58e908f09810ded6dedf1b90 -SHA256 (freenet-20051123.tgz) = d764b499d82ba17a41a38752ee2db7ad7a1d91d9a00ae613d7af635463ac379d -SIZE (freenet-20051123.tgz) = 6557648 diff --git a/net/freenet/files/freenet.sh b/net/freenet/files/freenet.sh deleted file mode 100644 index cb2c1759a047..000000000000 --- a/net/freenet/files/freenet.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# Under a BSDL license. Copyright 2005. Mario S F Ferreira <lioux@FreeBSD.org> - -# PROVIDE: freenet -# REQUIRE: LOGIN -# KEYWORD: FreeBSD shutdown - -# -# Add the following lines to /etc/rc.conf to enable freenet: -# -#freenet_enable="YES" -#freenet_user="" -# - -. /etc/rc.subr - -name="freenet" -rcvar=`set_rcvar` -command="%%PREFIX%%/sbin/${name}" -extra_commands="configure" - -freenet_check_vars() -{ - if [ -z "${freenet_user}" ]; then - freenet_user=$(whoami) - fi - - if [ "x${freenet_user}" = "xroot" ]; then - err 1 "You have to set freenet_user to a non-root user for security reasons" - fi -} - -configure_cmd="configure_cmd" -configure_cmd() -{ - freenet_check_vars - su -l ${freenet_user} -c "${command} -c" -} - -start_cmd="start_cmd" -start_cmd() -{ - freenet_check_vars - su -l ${freenet_user} -c "${command} -i" -} - -stop_cmd="stop_cmd" -stop_cmd() -{ - freenet_check_vars - su -l ${freenet_user} -c "${command} -o" -} - -status_cmd="status_cmd" -status_cmd() -{ - echo "Can't check ${name} status" -} - -load_rc_config "${name}" -: ${freenet_enable="NO"} -: ${freenet_user=""} - -run_rc_command "$1" diff --git a/net/freenet/files/wrapper.sh b/net/freenet/files/wrapper.sh deleted file mode 100644 index 4c6a41452484..000000000000 --- a/net/freenet/files/wrapper.sh +++ /dev/null @@ -1,163 +0,0 @@ -#!/bin/sh -# -# Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org> -# $FreeBSD$ - -export JAVA_VERSION - -PREFIX="%%PREFIX%%" -# java -JAVA_VERSION="%%JAVA_VERSION%%" -JAVAVM_CALL="%%JAVAVM%%" -JAVAJARDIR="%%JAVAJARDIR%%" -JAR_FILES="%%JAR_FILES%%" -JAR_START="%%JAR_START%%" -# data -DATA_DIR="%%DATA_DIR%%" -SEED_FILE=seednodes.ref -# home -HOME_DIR=${HOME}/.freenet -CONFIG_FILE=freenet.conf - -configure_freenet () { - echo "Configuring FreeNet node" - cd ${HOME_DIR} && - ${JAVAVM_CALL} -jar ./${JAR_START} freenet.node.Main --config "${@}" -} - -configure_java_classpath () { - if [ -z "${CLASSPATH}" ]; then - CLASSPATH=./freenet.jar:./freenet-ext.jar - else - CLASSPATH=./freenet.jar:./freenet-ext.jar:${CLASSPATH} - fi -} - -display_usage () { - echo "Usage: ${0} [-h] [-c] [-i|-o]" - echo 'Options:' - echo ' -h Display this help message' - echo ' -c Configure FreeNet node' - echo ' -i Start a FreeNet node' - echo ' -o Stop a FreeNet node' - echo '' -} - -prepare_configure_freenet () { - # do we have a config file? - if [ ! -f ${HOME_DIR}/${CONFIG_FILE} ]; then - # add basic information prior to configuration - echo > ${HOME_DIR}/${CONFIG_FILE} - - # select listenPort randomly - if [ -n "${RANDOM}" ] - then - DEFLP=$((${RANDOM}%30000+2000)) - else - echo "no random in shell, enter a FNP port number + <ENTER>" - read DEFLP - fi - echo "listenPort=${DEFLP}" >> ${HOME_DIR}/${CONFIG_FILE} - - # point to seednodes file - echo 'seedNodes=seednodes.ref' >> ${HOME_DIR}/${CONFIG_FILE} - - # tell FreeNet to request configuration procedure - CONFIGURE=yes - fi -} - -prepare_home_dir () { - # create home dir staging area - if [ ! -d ${HOME_DIR} ] - then - mkdir -p ${HOME_DIR} - fi - # copy a seed file if none exists - if [ ! -f ${HOME_DIR}/${SEED_FILE} ] - then - rm -f ${HOME_DIR}/${SEED_FILE} - cp -f ${PREFIX}/${DATA_DIR}/${SEED_FILE} ${HOME_DIR}/${SEED_FILE} - # avoid unnecessary reseeding - touch -t "197001011200" ${HOME_DIR}/${SEED_FILE} - fi - # link the jar files - for jar in ${JAR_FILES} - do - ln -sf ${PREFIX}/${JAVAJARDIR}/${jar} ${HOME_DIR}/${jar} - done -} - -start_freenet () { - echo "Starting FreeNet node" - cd ${HOME_DIR} && - nice -10 ${JAVAVM_CALL} -jar ./${JAR_START} "${@}" & - echo $! > ${HOME_DIR}/freenet.pid - exit 0 -} - -stop_freenet () { - if [ -f ${HOME_DIR}/freenet.pid ]; then - echo "Stopping FreeNet node" - cd ${HOME_DIR} && - exec kill `cat freenet.pid` & - else - echo "Cannot find FreeNet node" - echo "Where is the ${HOME_DIR}/freenet.pid file?" - fi -} - -# we require at least one command line parameter -if [ $# -lt 1 ]; then - display_usage - exit 1 -fi - -# parse command line parameters -while getopts "chio" COMMAND_LINE_ARGUMENT ; do - case "${COMMAND_LINE_ARGUMENT}" in - c) - CONFIGURE=yes - ;; - h) - display_usage - exit 0 - ;; - i) - START=yes - unset STOP - ;; - o) - STOP=yes - unset START - ;; - *) - display_usage - exit 1 - ;; - esac -done - -# always verify that home dir staging area is pristine -prepare_home_dir - -# check for proper configuration -prepare_configure_freenet - -# prepare java CLASSPATH -configure_java_classpath - -if [ -n "${CONFIGURE}" ]; then - configure_freenet -fi - -if [ -n "${START}" ]; then - start_freenet -fi - -if [ -n "${STOP}" ]; then - stop_freenet -fi - -# we should never get this far -exit 1 diff --git a/net/freenet/pkg-descr b/net/freenet/pkg-descr deleted file mode 100644 index 0f7d4a2c81ca..000000000000 --- a/net/freenet/pkg-descr +++ /dev/null @@ -1,23 +0,0 @@ -Freenet is a large-scale peer-to-peer network which pools the power -of member computers around the world to create a massive virtual -information store open to anyone to freely publish or view information -of all kinds. Freenet is: - -Highly survivable: All internal processes are completely anonymized -and decentralized across the global network, making it virtually -impossible for an attacker to destroy information or take control -of the system. - -Private: Freenet makes it extremely difficult for anyone to spy on -the information that you are viewing, publishing, or storing. - -Secure: Information stored in Freenet is protected by strong -cryptography against malicious tampering or counterfeiting. - -Efficient: Freenet dynamically replicates and relocates information -in response to demand to provide efficient service and minimal -bandwidth usage regardless of load. Significantly, Freenet generally -requires log(n) time to retrieve a piece of information in a network -of size n. - -WWW: http://freenet.sourceforge.net/ diff --git a/net/freenet/pkg-message b/net/freenet/pkg-message deleted file mode 100644 index 47addd918baa..000000000000 --- a/net/freenet/pkg-message +++ /dev/null @@ -1,23 +0,0 @@ - ATTENTIONATTENTION: - -Restrictions -============ - -This program uses heavy encryption algorithms. If your country has -restrictions against encryption, you should check with legal -authorities before using it. - -Short usage note -================ - -Please, check -/usr/local/share/doc/freenet/README -for more information. - -Using FreeNet -============= - -Point your web browser to http://127.0.0.1:8888/ to get the Freenet -user interface, this page serves as a "gateway" to Freenet. Try -clicking the various links in the "Bookmarks" panel to reach some -of the popular Freenet index sites. |