From d3a1a08557e2f3f6c3ffde28413c0b36b3af7f0d Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Mon, 10 Jan 2005 19:24:27 +0000 Subject: o Switch from MASTER_SITE_SOURCEFORGE to MASTER_SITE_SOURCEFORGE_EXTENDED o iip network servers have moved. Therefore, point source code defaults at the correct new locations. This can be tweaked at run time by a configuration file o Flag DEPRECATED: 'IIP network has been resurrected but it is no longer stable. It should work but be warned. Use at your own risk!' o Fetch updated node.ref file from MASTER_SITE_LOCAL under lioux. Currently, file date version 20050110 o FILESDIR/wrapper.sh - Better handle node.ref file first creation - Random re-seed at every startup if /dev/urandom is available o Bump PORTREVISION o UPDATING should be checked for installation instructions --- irc/iip/files/wrapper.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'irc/iip/files/wrapper.sh') diff --git a/irc/iip/files/wrapper.sh b/irc/iip/files/wrapper.sh index 75e5cdf21746..ed56659027e6 100644 --- a/irc/iip/files/wrapper.sh +++ b/irc/iip/files/wrapper.sh @@ -5,6 +5,8 @@ PROGRAM="${0}" DATADIR="%%DATADIR%%" HOME_DIR=${HOME}/.iip NODE_REF=node.ref +RANDOM_DEVICE=/dev/urandom +SEED_FILE=seed.rnd if [ ! -d ${HOME_DIR} ] then @@ -13,8 +15,15 @@ fi if [ ! -f ${HOME_DIR}/${NODE_REF} ] then + rm -f ${HOME_DIR}/${NODE_REF} cp -f ${PREFIX}/${DATADIR}/${NODE_REF} \ ${HOME_DIR} + chmod u+w ${HOME_DIR}/${NODE_REF} +fi + +# random seed +if [ -c "${RANDOM_DEVICE}" -o -L "${RANDOM_DEVICE}" ]; then + head -c 256 /dev/urandom > ${HOME_DIR}/${SEED_FILE} fi cd ${HOME_DIR} && -- cgit v1.2.3