1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

New port freenet version 0.5.2.r1: peer-to-peer network aiming at

anonymity and freedom of speech
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2003-05-02 03:39:19 +00:00
parent 6e2c11dcf5
commit fe8309d7fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79983
19 changed files with 856 additions and 0 deletions

69
net-p2p/freenet/Makefile Normal file
View File

@ -0,0 +1,69 @@
# 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.r1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-rc/}
MAINTAINER= lioux@FreeBSD.org
COMMENT= peer-to-peer network aiming at anonymity and freedom of speech
USE_JAVA= 1.3+
NO_BUILD= yes
NO_BUILD_DEPENDS_JAVA= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= JAR_DIR=${JAR_DIR}
JAVAVM= ${LOCALBASE}/bin/javavm
JAR_DIR= share/java/jar/${PORTNAME}
#
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
post-patch:
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
s|%%DATA_DIR%%|${DATADIR:S,^${PREFIX}/,,}|; \
s|%%JAVAVM%%|${JAVAVM}|; \
s|%%JAR_DIR%%|${JAR_DIR}|; \
s|%%JAR_FILES%%|${JAR_FILES}|; \
s|%%JAR_START%%|${JAR_START}|; \
s|%%SEED_FILE%%|${SEED_FILE}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.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
@${MKDIR} ${PREFIX}/${JAR_DIR}
.for jar in ${JAR_FILES}
@${INSTALL_DATA} ${WRKSRC}/${jar} ${PREFIX}/${JAR_DIR}
.endfor
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

1
net-p2p/freenet/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (freenet-0.5.2-rc1.tar.gz) = 4fa988b915517a44def233760662f420

View File

@ -0,0 +1,160 @@
#!/bin/sh
PREFIX="%%PREFIX%%"
# java
JAVAVM="%%JAVAVM%%"
JAR_DIR="%%JAR_DIR%%"
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} -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] [-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
if [ ! -h ${HOME_DIR}/${jar} ]
then
ln -sf ${PREFIX}/${JAR_DIR}/${jar} ${HOME_DIR}/${jar}
fi
done
}
start_freenet () {
echo "Starting FreeNet node"
cd ${HOME_DIR} &&
nice -10 ${JAVAVM} -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 ":io" 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

23
net-p2p/freenet/pkg-descr Normal file
View File

@ -0,0 +1,23 @@
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/

View File

@ -0,0 +1,23 @@
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.

View File

@ -0,0 +1,9 @@
bin/freenet
%%PORTDOCS%%%%DOCSDIR%%/README
share/freenet/seednodes.ref
share/java/jar/freenet/freenet-ext.jar
share/java/jar/freenet/freenet.jar
@dirrm share/java/jar/freenet
@unexec rmdir %D/share/java/jar 2>/dev/null || true
@dirrm share/freenet
%%PORTDOCS%%@dirrm %%DOCSDIR%%

View File

@ -0,0 +1,69 @@
# 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.r1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-rc/}
MAINTAINER= lioux@FreeBSD.org
COMMENT= peer-to-peer network aiming at anonymity and freedom of speech
USE_JAVA= 1.3+
NO_BUILD= yes
NO_BUILD_DEPENDS_JAVA= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= JAR_DIR=${JAR_DIR}
JAVAVM= ${LOCALBASE}/bin/javavm
JAR_DIR= share/java/jar/${PORTNAME}
#
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
post-patch:
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
s|%%DATA_DIR%%|${DATADIR:S,^${PREFIX}/,,}|; \
s|%%JAVAVM%%|${JAVAVM}|; \
s|%%JAR_DIR%%|${JAR_DIR}|; \
s|%%JAR_FILES%%|${JAR_FILES}|; \
s|%%JAR_START%%|${JAR_START}|; \
s|%%SEED_FILE%%|${SEED_FILE}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.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
@${MKDIR} ${PREFIX}/${JAR_DIR}
.for jar in ${JAR_FILES}
@${INSTALL_DATA} ${WRKSRC}/${jar} ${PREFIX}/${JAR_DIR}
.endfor
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (freenet-0.5.2-rc1.tar.gz) = 4fa988b915517a44def233760662f420

View File

@ -0,0 +1,160 @@
#!/bin/sh
PREFIX="%%PREFIX%%"
# java
JAVAVM="%%JAVAVM%%"
JAR_DIR="%%JAR_DIR%%"
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} -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] [-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
if [ ! -h ${HOME_DIR}/${jar} ]
then
ln -sf ${PREFIX}/${JAR_DIR}/${jar} ${HOME_DIR}/${jar}
fi
done
}
start_freenet () {
echo "Starting FreeNet node"
cd ${HOME_DIR} &&
nice -10 ${JAVAVM} -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 ":io" 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

View File

@ -0,0 +1,23 @@
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/

View File

@ -0,0 +1,23 @@
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.

View File

@ -0,0 +1,9 @@
bin/freenet
%%PORTDOCS%%%%DOCSDIR%%/README
share/freenet/seednodes.ref
share/java/jar/freenet/freenet-ext.jar
share/java/jar/freenet/freenet.jar
@dirrm share/java/jar/freenet
@unexec rmdir %D/share/java/jar 2>/dev/null || true
@dirrm share/freenet
%%PORTDOCS%%@dirrm %%DOCSDIR%%

View File

@ -148,6 +148,7 @@
SUBDIR += forg
SUBDIR += fping
SUBDIR += freebsd-uucp
SUBDIR += freenet
SUBDIR += freenet6
SUBDIR += freeradius
SUBDIR += freevrrpd

69
net/freenet/Makefile Normal file
View File

@ -0,0 +1,69 @@
# 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.r1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-rc/}
MAINTAINER= lioux@FreeBSD.org
COMMENT= peer-to-peer network aiming at anonymity and freedom of speech
USE_JAVA= 1.3+
NO_BUILD= yes
NO_BUILD_DEPENDS_JAVA= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= JAR_DIR=${JAR_DIR}
JAVAVM= ${LOCALBASE}/bin/javavm
JAR_DIR= share/java/jar/${PORTNAME}
#
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
post-patch:
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
s|%%DATA_DIR%%|${DATADIR:S,^${PREFIX}/,,}|; \
s|%%JAVAVM%%|${JAVAVM}|; \
s|%%JAR_DIR%%|${JAR_DIR}|; \
s|%%JAR_FILES%%|${JAR_FILES}|; \
s|%%JAR_START%%|${JAR_START}|; \
s|%%SEED_FILE%%|${SEED_FILE}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.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
@${MKDIR} ${PREFIX}/${JAR_DIR}
.for jar in ${JAR_FILES}
@${INSTALL_DATA} ${WRKSRC}/${jar} ${PREFIX}/${JAR_DIR}
.endfor
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

1
net/freenet/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (freenet-0.5.2-rc1.tar.gz) = 4fa988b915517a44def233760662f420

View File

@ -0,0 +1,160 @@
#!/bin/sh
PREFIX="%%PREFIX%%"
# java
JAVAVM="%%JAVAVM%%"
JAR_DIR="%%JAR_DIR%%"
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} -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] [-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
if [ ! -h ${HOME_DIR}/${jar} ]
then
ln -sf ${PREFIX}/${JAR_DIR}/${jar} ${HOME_DIR}/${jar}
fi
done
}
start_freenet () {
echo "Starting FreeNet node"
cd ${HOME_DIR} &&
nice -10 ${JAVAVM} -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 ":io" 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

23
net/freenet/pkg-descr Normal file
View File

@ -0,0 +1,23 @@
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/

23
net/freenet/pkg-message Normal file
View File

@ -0,0 +1,23 @@
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.

9
net/freenet/pkg-plist Normal file
View File

@ -0,0 +1,9 @@
bin/freenet
%%PORTDOCS%%%%DOCSDIR%%/README
share/freenet/seednodes.ref
share/java/jar/freenet/freenet-ext.jar
share/java/jar/freenet/freenet.jar
@dirrm share/java/jar/freenet
@unexec rmdir %D/share/java/jar 2>/dev/null || true
@dirrm share/freenet
%%PORTDOCS%%@dirrm %%DOCSDIR%%