aboutsummaryrefslogtreecommitdiff
path: root/www/interchange/files
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2002-08-31 11:25:57 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2002-08-31 11:25:57 +0000
commitb18f2651ac623f9c57169aeb4e44bb14dc5dffdb (patch)
tree30379ab68eb61d74098e5abe4434f9b5aa1e7948 /www/interchange/files
parent9cd47598c171199f0ca649ff36799104d69a3836 (diff)
Notes
Diffstat (limited to 'www/interchange/files')
-rw-r--r--www/interchange/files/_interchange.sh21
-rw-r--r--www/interchange/files/_patch-Makefile.PL49
-rw-r--r--www/interchange/files/interchange.sh35
-rw-r--r--www/interchange/files/patch-Makefile.PL31
-rw-r--r--www/interchange/files/patch-dist::src::tlink.c13
5 files changed, 149 insertions, 0 deletions
diff --git a/www/interchange/files/_interchange.sh b/www/interchange/files/_interchange.sh
new file mode 100644
index 000000000000..3091ab2397b1
--- /dev/null
+++ b/www/interchange/files/_interchange.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+case "$1" in
+start)
+ if [ -x %%PREFIX%%/interchange/bin/interchange ]; then
+ su -m $(cat %%PREFIX%%/interchange/_uid) \
+ -c '%%PREFIX%%/interchange/bin/interchange >/dev/null' && \
+ echo -n ' interchange'
+ fi
+ ;;
+stop)
+ if [ -r %%PREFIX%%/interchange/etc/interchange.pid ]; then
+ kill $(cat %%PREFIX%%/interchange/etc/interchange.pid) && \
+ echo -n ' interchange'
+ fi
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
diff --git a/www/interchange/files/_patch-Makefile.PL b/www/interchange/files/_patch-Makefile.PL
new file mode 100644
index 000000000000..047a08cde5ad
--- /dev/null
+++ b/www/interchange/files/_patch-Makefile.PL
@@ -0,0 +1,49 @@
+--- Makefile.PL_orig Sun Aug 11 13:52:36 2002
++++ Makefile.PL Sun Aug 11 13:57:36 2002
+@@ -709,7 +716,7 @@
+ VERBINST=0
+
+ mv_install ::
+- \$(PERL) Makefile.PL force nocpaninstall=\$(NOCPANINSTALL) $uidparm final=\$(INSTALLARCHLIB)
++ \$(PERL) Makefile.PL force nocpaninstall=\$(NOCPANINSTALL) $uidparm final=\$(PREFIX)
+
+ install :: all pure_install doc_install mv_install
+
+@@ -744,7 +751,7 @@
+ }
+
+ my %mv_specific = qw/
+- STORABLE 1 PREFIX 1 FORCE 1 FINAL 1 RPMBUILDDIR 1 INTERCHANGE_USER 1
++ STORABLE 1 PREFIX 0 FORCE 1 FINAL 1 RPMBUILDDIR 1 INTERCHANGE_USER 1
+ /;
+ my %delete;
+ use Getopt::Long;
+@@ -789,17 +796,17 @@
+ WriteMakefile(
+ NAME => "Interchange",
+ MAN3PODS => {
+- 'pod/ic_ecommerce.pod' => 'blib/man3/ic_ecommerce.8',
+- 'pod/ic_howto_cvs.pod' => 'blib/man3/ic_howto_cvs.8',
+- 'pod/icadvanced.pod' => 'blib/man3/icadvanced.8',
+- 'pod/iccattut.pod' => 'blib/man3/iccattut.8',
+- 'pod/icconfig.pod' => 'blib/man3/icconfig.8',
+- 'pod/icdatabase.pod' => 'blib/man3/icdatabase.8',
+- 'pod/icfaq.pod' => 'blib/man3/icfaq.8',
+- 'pod/icfoundation.pod' => 'blib/man3/icfoundation.8',
+- 'pod/ictags.pod' => 'blib/man3/ictags.8',
+- 'pod/ictemplates.pod' => 'blib/man3/ictemplates.8',
+- 'pod/icupgrade.pod' => 'blib/man3/icupgrade.8',
++ 'pod/ic_ecommerce.pod' => 'blib/man3/ic_ecommerce.7',
++ 'pod/ic_howto_cvs.pod' => 'blib/man3/ic_howto_cvs.7',
++ 'pod/icadvanced.pod' => 'blib/man3/icadvanced.7',
++ 'pod/iccattut.pod' => 'blib/man3/iccattut.7',
++ 'pod/icconfig.pod' => 'blib/man3/icconfig.7',
++ 'pod/icdatabase.pod' => 'blib/man3/icdatabase.7',
++ 'pod/icfaq.pod' => 'blib/man3/icfaq.7',
++ 'pod/icfoundation.pod' => 'blib/man3/icfoundation.7',
++ 'pod/ictags.pod' => 'blib/man3/ictags.7',
++ 'pod/ictemplates.pod' => 'blib/man3/ictemplates.7',
++ 'pod/icupgrade.pod' => 'blib/man3/icupgrade.7',
+ },
+ DISTNAME => "interchange",
+ clean => {
diff --git a/www/interchange/files/interchange.sh b/www/interchange/files/interchange.sh
new file mode 100644
index 000000000000..449cb9e14b95
--- /dev/null
+++ b/www/interchange/files/interchange.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+RUNDIR=/var/run/interchange
+LOGDIR=/var/log/interchange
+ICUSER=$(cat %%PREFIX%%/interchange/_uid)
+PIDFILE=${RUNDIR}/interchange.pid
+SOCKFILE=${RUNDIR}/interchange.sock
+
+OPTS="SocketFile=${SOCKFILE} IPCsocket=${SOCKFILE}.ipc PIDfile=${PIDFILE}"
+OPTS="${OPTS} --pidfile=${PIDFILE} --log=${LOGDIR}/error.log --rundir=${RUNDIR}"
+
+case "$1" in
+start)
+ [ -d ${RUNDIR} ] || \
+ (mkdir ${RUNDIR} && chown ${ICUSER}:${ICUSER} ${RUNDIR})
+ [ -d ${LOGDIR} ] || \
+ (mkdir ${LOGDIR} && chown ${ICUSER}:${ICUSER} ${LOGDIR})
+
+ if [ -x %%PREFIX%%/bin/interchange ]; then
+ su -m ${ICUSER} \
+ -c "%%PREFIX%%/bin/interchange ${OPTS} >/dev/null" && \
+ echo -n ' interchange'
+ fi
+ ;;
+stop)
+ if [ -r ${PIDFILE} ]; then
+ kill $(cat ${PIDFILE}) && \
+ echo -n ' interchange'
+ fi
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
diff --git a/www/interchange/files/patch-Makefile.PL b/www/interchange/files/patch-Makefile.PL
new file mode 100644
index 000000000000..49d107ab2fa9
--- /dev/null
+++ b/www/interchange/files/patch-Makefile.PL
@@ -0,0 +1,31 @@
+--- Makefile.PL_orig Sun Aug 11 13:52:36 2002
++++ Makefile.PL Sun Aug 11 13:57:36 2002
+@@ -789,17 +796,17 @@
+ WriteMakefile(
+ NAME => "Interchange",
+ MAN3PODS => {
+- 'pod/ic_ecommerce.pod' => 'blib/man3/ic_ecommerce.8',
+- 'pod/ic_howto_cvs.pod' => 'blib/man3/ic_howto_cvs.8',
+- 'pod/icadvanced.pod' => 'blib/man3/icadvanced.8',
+- 'pod/iccattut.pod' => 'blib/man3/iccattut.8',
+- 'pod/icconfig.pod' => 'blib/man3/icconfig.8',
+- 'pod/icdatabase.pod' => 'blib/man3/icdatabase.8',
+- 'pod/icfaq.pod' => 'blib/man3/icfaq.8',
+- 'pod/icfoundation.pod' => 'blib/man3/icfoundation.8',
+- 'pod/ictags.pod' => 'blib/man3/ictags.8',
+- 'pod/ictemplates.pod' => 'blib/man3/ictemplates.8',
+- 'pod/icupgrade.pod' => 'blib/man3/icupgrade.8',
++ 'pod/ic_ecommerce.pod' => 'blib/man3/ic_ecommerce.7',
++ 'pod/ic_howto_cvs.pod' => 'blib/man3/ic_howto_cvs.7',
++ 'pod/icadvanced.pod' => 'blib/man3/icadvanced.7',
++ 'pod/iccattut.pod' => 'blib/man3/iccattut.7',
++ 'pod/icconfig.pod' => 'blib/man3/icconfig.7',
++ 'pod/icdatabase.pod' => 'blib/man3/icdatabase.7',
++ 'pod/icfaq.pod' => 'blib/man3/icfaq.7',
++ 'pod/icfoundation.pod' => 'blib/man3/icfoundation.7',
++ 'pod/ictags.pod' => 'blib/man3/ictags.7',
++ 'pod/ictemplates.pod' => 'blib/man3/ictemplates.7',
++ 'pod/icupgrade.pod' => 'blib/man3/icupgrade.7',
+ },
+ DISTNAME => "interchange",
+ clean => {
diff --git a/www/interchange/files/patch-dist::src::tlink.c b/www/interchange/files/patch-dist::src::tlink.c
new file mode 100644
index 000000000000..bf21a2013592
--- /dev/null
+++ b/www/interchange/files/patch-dist::src::tlink.c
@@ -0,0 +1,13 @@
+--- dist/src/tlink.c.orig Thu Jul 4 03:03:50 2002
++++ dist/src/tlink.c Thu Jul 4 03:04:04 2002
+@@ -36,9 +36,9 @@
+ #include <sys/time.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <arpa/telnet.h>
+-#include <netinet/in.h>
+ #include <netdb.h>
+ #include <sys/un.h>
+ #include <unistd.h>