summaryrefslogtreecommitdiff
path: root/irc/iip/files
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-05-04 08:11:04 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-05-04 08:11:04 +0000
commit1b613b35c79ce3024427f1d64d810912a5ee20b4 (patch)
treed11b07c109f676c63d04205489f696c4bab0ccef /irc/iip/files
parentFix 'make package'. (diff)
New port iip version 1.1.0: Secure and Anonymous Instant Messaging
Notes
Notes: svn path=/head/; revision=80101
Diffstat (limited to 'irc/iip/files')
-rw-r--r--irc/iip/files/wrapper.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/irc/iip/files/wrapper.sh b/irc/iip/files/wrapper.sh
new file mode 100644
index 000000000000..75e5cdf21746
--- /dev/null
+++ b/irc/iip/files/wrapper.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+PREFIX="%%PREFIX%%"
+PROGRAM="${0}"
+DATADIR="%%DATADIR%%"
+HOME_DIR=${HOME}/.iip
+NODE_REF=node.ref
+
+if [ ! -d ${HOME_DIR} ]
+then
+ mkdir -p ${HOME_DIR}
+fi
+
+if [ ! -f ${HOME_DIR}/${NODE_REF} ]
+then
+ cp -f ${PREFIX}/${DATADIR}/${NODE_REF} \
+ ${HOME_DIR}
+fi
+
+cd ${HOME_DIR} &&
+ exec ${PREFIX}/sbin/${PROGRAM##*/}-real "${@}"