diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-01-10 19:24:27 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-01-10 19:24:27 +0000 |
commit | d3a1a08557e2f3f6c3ffde28413c0b36b3af7f0d (patch) | |
tree | d16c4fe8f65bc8c3fb808ee45528d9acbf4a18d4 /irc/iip/files/wrapper.sh | |
parent | Modify pkg-message on the fly to get proper library version in message. (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | irc/iip/files/wrapper.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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} && |