aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-01-10 19:24:27 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-01-10 19:24:27 +0000
commitd3a1a08557e2f3f6c3ffde28413c0b36b3af7f0d (patch)
treed16c4fe8f65bc8c3fb808ee45528d9acbf4a18d4 /irc
parentdbfd94763d193a96d996996e9421cbd73c270356 (diff)
downloadports-d3a1a08557e2f3f6c3ffde28413c0b36b3af7f0d.tar.gz
ports-d3a1a08557e2f3f6c3ffde28413c0b36b3af7f0d.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/iip/Makefile22
-rw-r--r--irc/iip/distinfo6
-rw-r--r--irc/iip/files/patch-src::misc::global.h22
-rw-r--r--irc/iip/files/wrapper.sh9
4 files changed, 55 insertions, 4 deletions
diff --git a/irc/iip/Makefile b/irc/iip/Makefile
index 95240f776ffb..5548e1ac7658 100644
--- a/irc/iip/Makefile
+++ b/irc/iip/Makefile
@@ -7,22 +7,40 @@
PORTNAME= iip
PORTVERSION= 1.1.0
+PORTREVISION= 1
CATEGORIES= irc security
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= invisibleip
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} \
+ ${MASTER_SITE_LOCAL:S/$/:node_update/}
+MASTER_SITE_SUBDIR= invisibleip \
+ lioux/:node_update
EXTRACT_SUFX= .tgz
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
+ node-${NODE_REF_VERSION_DATE}.ref.bz2:node_update
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= lioux@FreeBSD.org
COMMENT= Secure and Anonymous Instant Messaging
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
+PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
INSTALL_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+DEPRECATED= 'IIP network has been resurrected but it is no\
+ longer stable. It should work but be warned. Use\
+ at your own risk!'
+
MAN1= isproxy.1
+NODE_REF_VERSION_DATE= 20050110
DOC_FILES= AUTHORS CHANGELOG COPYING INSTALL README
+post-extract:
+ @${BZCAT} \
+ ${DISTDIR}/${DIST_SUBDIR}/node-${NODE_REF_VERSION_DATE}.ref.bz2 \
+ > ${WRKSRC}/node.ref
+
do-configure:
@${SED} -e 's|%%PREFIX%%|${PREFIX}|; \
s|%%DATADIR%%|${DATADIR:S,^${PREFIX}/,,}|' \
diff --git a/irc/iip/distinfo b/irc/iip/distinfo
index a61ede65c3d2..c12f47217ca7 100644
--- a/irc/iip/distinfo
+++ b/irc/iip/distinfo
@@ -1,2 +1,4 @@
-MD5 (iip-1.1.0.tgz) = 389385fd95c143834a58f2db0e3890f7
-SIZE (iip-1.1.0.tgz) = 139021
+MD5 (iip/iip-1.1.0.tgz) = 389385fd95c143834a58f2db0e3890f7
+SIZE (iip/iip-1.1.0.tgz) = 139021
+MD5 (iip/node-20050110.ref.bz2) = 4237c5b768d0887e300bb05092b9e644
+SIZE (iip/node-20050110.ref.bz2) = 1828
diff --git a/irc/iip/files/patch-src::misc::global.h b/irc/iip/files/patch-src::misc::global.h
new file mode 100644
index 000000000000..04e3817992dc
--- /dev/null
+++ b/irc/iip/files/patch-src::misc::global.h
@@ -0,0 +1,22 @@
+--- src/misc/global.h.orig Sun Mar 2 05:00:21 2003
++++ src/misc/global.h Sat Jun 26 09:38:04 2004
+@@ -27,14 +27,14 @@
+ extern char *winhelpfile;
+ extern char *winhelpfile2;
+
+-#define DEFAULT_INFORMHOST "inform.invisiblenet.net"
++#define DEFAULT_INFORMHOST "www.invisiblechat.com"
+ #define DEFAULT_INFORMPORT 80
+-#define DEFAULT_INFORMPAGE "/iiprelays/submitrelay.php"
++#define DEFAULT_INFORMPAGE "/ic/submitrelay.php"
+
+-#define DEFAULT_REFGETHOST "www.invisiblenet.net"
++#define DEFAULT_REFGETHOST "www.invisiblechat.com"
+ #define DEFAULT_REFGETPORT 80
+-#define DEFAULT_REFGETPAGE "/iip/crypto/node.ref"
+-#define DEFAULT_REFGETPUBLICRELAYPAGE "/iip/crypto/node.ref"
++#define DEFAULT_REFGETPAGE "/ic/node.ref"
++#define DEFAULT_REFGETPUBLICRELAYPAGE "/ic/node.ref"
+
+ extern char *informhost;
+ extern int informport;
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} &&