nixpkgs/pkgs/applications/networking/p2p/freenet/freenetWrapper

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
596 B
Plaintext
Raw Normal View History

#! @bash@/bin/bash
2022-11-07 22:30:00 +00:00
set -eo pipefail
PATH=@coreutils@/bin:$PATH
2022-12-10 14:45:00 +00:00
export CLASSPATH=$(find @outFreenet@/deps/ -name "*.jar"|grep -v bcprov-jdk15on-1.48.jar|tr $'\n' :)
CLASSPATH=$CLASSPATH:@outFreenet@/share/freenet/freenet-ext.jar:@outFreenet@/share/freenet/freenet.jar
export FREENET_HOME="$HOME/.local/share/freenet"
2022-11-07 22:30:00 +00:00
if [ -n "$XDG_DATA_HOME" ] ; then
FREENET_HOME="$XDG_DATA_HOME/freenet"
fi
2022-11-07 22:30:00 +00:00
mkdir -p -- $FREENET_HOME
2022-11-07 22:30:00 +00:00
cp -u -- @seednodes@ $FREENET_HOME/seednodes.fref
chmod u+rw -- $FREENET_HOME/seednodes.fref
2022-11-07 22:30:00 +00:00
cd -- $FREENET_HOME
exec @jre@/bin/java -Xmx1024M freenet.node.NodeStarter "$@"