summaryrefslogtreecommitdiff
path: root/misc/staroffice/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/staroffice/files')
-rwxr-xr-xmisc/staroffice/files/automate.sh151
-rw-r--r--misc/staroffice/files/instdb.patch7
-rw-r--r--misc/staroffice/files/send.agree5
-rw-r--r--misc/staroffice/files/send.conf5
-rw-r--r--misc/staroffice/files/send.ord5
-rw-r--r--misc/staroffice/files/send.resp6
-rw-r--r--misc/staroffice/files/send.submit5
-rwxr-xr-xmisc/staroffice/files/sendreg.sh25
-rwxr-xr-xmisc/staroffice/files/soffice36
-rw-r--r--misc/staroffice/files/soffice.patch13
-rwxr-xr-xmisc/staroffice/files/sosetup7
11 files changed, 0 insertions, 265 deletions
diff --git a/misc/staroffice/files/automate.sh b/misc/staroffice/files/automate.sh
deleted file mode 100755
index 8e9820bbbb7..00000000000
--- a/misc/staroffice/files/automate.sh
+++ /dev/null
@@ -1,151 +0,0 @@
-#!/bin/ksh
-[ x$HOMEPAGE = x ] && HOMEPAGE=http://www.sun.com/staroffice/
-[ x$SITE = x ] && SITE=http://jsecom11b.sun.com/
-[ x"$COUNTRY" = x"" ] && COUNTRY="United States"
-if [ -f /usr/share/calendar/calendar.birthday -a \
- -f /usr/share/dict/words -a \
- -f /usr/share/dict/propernames -a \
- -f /usr/share/misc/zipcodes -a \
- -f /usr/share/misc/na.phone ]; then
- export A=$RANDOM;FIRSTNAME=`tail -$(($A % $(wc -l < /usr/share/dict/propernames))) /usr/share/dict/propernames | head -1 | sed -e 's/ /+/g'`
- export A=$RANDOM;LASTNAME=`tail -$(($A % $(wc -l < /usr/share/dict/propernames))) /usr/share/dict/propernames | head -1 | sed -e 's/ /+/g'`
- export A=$RANDOM;ADDR=`tail -$(($A * 8 % $(wc -l < /usr/share/dict/words))) /usr/share/dict/words | head -1 | sed -e 's/ /+/g'`
- ADDR=`echo $ADDR | awk '{ print toupper(substr($0, 1, 1)) substr($0, 2) }'`
- export A=$RANDOM;ACCT=`tail -$(($A * 8 % $(wc -l < /usr/share/dict/words))) /usr/share/dict/words | head -1 | cut -c 1-8 | sed -e 's/ /+/g'`
- export A=$RANDOM;PASS=`tail -$(($A * 8 % $(wc -l < /usr/share/dict/words))) /usr/share/dict/words | head -1 | cut -c 1-8 | sed -e 's/ /+/g'`
- export A=$RANDOM;HN=`tail -$(($A * 8 % $(wc -l < /usr/share/dict/words))) /usr/share/dict/words | head -1 | sed -e 's/ /+/g'`
- case $(($RANDOM % 4)) in
- 0) DIR="N";;
- 1) DIR="E";;
- 2) DIR="W";;
- 3) DIR="S";;
- esac
- case $(($RANDOM % 5)) in
- 0) ST="St";;
- 1) ST="Rd";;
- 2) ST="Blvd";;
- 3) ST="Ln";;
- 4) ST="Ct";;
- esac
- ADDR=`echo "$RANDOM+$DIR.+$ADDR+$ST."`
- export A=$RANDOM;FOO=`tail -$(($A * 2% $(wc -l < /usr/share/misc/zipcodes))) /usr/share/misc/zipcodes | head -1`
- ZIP=`echo "$FOO" | cut -c 1-5 | sed -e 's/ /+/g'`
- CITY=`echo "$FOO" | sed -e 's/.*:\(.*\),.*/\1/' -e 's/ /+/g'`
- STATE=`echo "$FOO" | sed -e 's/.*, *\(.*\)/\1/' -e 's/ /+/g'`
- AC=`grep $STATE /usr/share/misc/na.phone | head -1 | cut -c 1-3`
- PHONE=`ps -ax | md5 | sed -e 's/[a-f]//'g | sed -e 's/\([2-9]..\)\(....\).*/\1-\2/'`
- PHONE=`echo "($AC)+$PHONE" | sed -e 's/ /+/g'`
- EMAIL="$ACCT@$HN.com"
-else
- INTERACTIVE=1
-fi
-
-while [ "$INTERACTIVE" = "1" ]; do
- echo ""
- echo "=========================================================================="
- echo " Please enter the following information for registration and downloading "
- echo " from \"$HOMEPAGE\". (Alternatively, you can hit"
- echo " <Ctrl-C> now, download StarOffice manually, and restart 'make') "
- echo "=========================================================================="
- echo ""
- echo -n "First Name [$FIRSTNAME]: "
- read ans && [ "$ans" != "" ] && FIRSTNAME="$ans"
- echo -n "Last Name [$LASTNAME]: "
- read ans && [ "$ans" != "" ] && LASTNAME="$ans"
- echo -n "Street Address [$ADDR]: "
- read ans && [ "$ans" != "" ] && ADDR="$ans"
- echo -n "City [$CITY]: "
- read ans && [ "$ans" != "" ] && CITY="$ans"
- echo -n "State (Code) [$STATE]: "
- read ans && [ "$ans" != "" ] && STATE="$ans"
- echo -n "ZIP [$ZIP]: "
- read ans && [ "$ans" != "" ] && ZIP="$ans"
- echo -n "Phone [$PHONE]: "
- read ans && [ "$ans" != "" ] && PHONE="$ans"
- old="$EMAIL"
- echo -n "EMail [$EMAIL]: "
- read ans && [ "$ans" != "" ] && EMAIL="$ans"
- [ "$old" = "$ACCT@$HN.com" ] && ACCT=`echo $EMAIL | sed -e 's=\([^@]\)@.*=\1='`
- echo -n "Account (Login) to use [$ACCT]: "
- read ans && [ "$ans" != "" ] && ACCT="$ans"
- echo -n "Password (will be visible on your terminal!) [$PASS]: "
- read ans && [ "$ans" != "" ] && PASS="$ans"
- echo ""
- echo -n "Are the data you entered correct [y/N]? "
- read ans && [ "$ans" = "y" -o "$ans" = "Y" ] && INTERACTIVE=0
- echo ""
-done
-
-echo ""
-echo "=========================================================================="
-echo " Attempting to download from $HOMEPAGE. This may"
-echo " fail if user information is invalid. If downloading fails, you can "
-echo " retry or download StarOffice manually. "
-echo "=========================================================================="
-echo ""
-
-COUNTRY=`echo $COUNTRY | sed -e 's/ /+/g'`
-FIRSTNAME=`echo $FIRSTNAME | sed -e 's/ /+/g'`
-LASTNAME=`echo $LASTNAME | sed -e 's/ /+/g'`
-ADDR=`echo $ADDR | sed -e 's/ /+/g'`
-CITY=`echo $CITY | sed -e 's/ /+/g'`
-STATE=`echo $STATE | sed -e 's/ /+/g'`
-ZIP=`echo $ZIP | sed -e 's/ /+/g'`
-PHONE=`echo $PHONE | sed -e 's/ /+/g'`
-EMAIL=`echo $EMAIL | sed -e 's/ /+/g'`
-ACCT=`echo $ACCT | sed -e 's/ /+/g'`
-LEN=`echo "$FIRSTNAME$LASTNAME$ADDR$CITY$STATE$ZIP$PHONE$ACCT$EMAIL$PASS$PASS" | wc | awk '{print $3}' `
-LEN=$(expr $LEN + 273)
-
-[ x${LANGSUB} = x ] && LANGSUB=51AA9999
-TNSITE=$SITE
-TNPORT=80
-[ x$http_proxy != x ] && TNSITE=$http_proxy
-TNHOST=`echo $TNSITE | sed -e 's=http://\([^:/]*\)[:/].*=\1='`
-(echo $TNSITE | grep >/dev/null 2>&1 '.*://.*:[0-9]') && TNPORT=`echo $TNSITE | sed -e 's=http://[^:]*:\([0-9][0-9]*\).*=\1='`
-HOMEPAGE=`echo $HOMEPAGE | sed -e 's=\(.*\)/$=\1='`
-SITE=`echo $SITE | sed -e 's=\(.*\)/$=\1='`
-SUNPAGE=`echo $HOMEPAGE | sed -e 's=\(.*://[^/]*\).*=\1='`
-FROMSITE=
-[ x$http_proxy != x ] && FROMSITE=$SITE
-export LEN FIRSTNAME LASTNAME ADDR CITY STATE COUNTRY ZIP PHONE ACCT PASS EMAIL FROMSITE
-ftp -o index.html $HOMEPAGE
-if grep 'staroffice.get.cgi' index.html >/dev/null 2>&1 ; then true; else
- echo 'getting index failed, answer was:'
- cat index.html
- exit 1
-fi
-FOO=`grep 'staroffice.get.cgi' index.html | tail +3 | head -1 | sed -e 's/.*[hH][rR][eE][fF]="\(.*\)".*/\1/'`
-ftp -o get.html $SUNPAGE$FOO
-ftp -o Welcome.jhtml "$SITE/servlet/EComActionServlet?LMLoadBalanced=&LMLoadBalanced="
-if grep action Welcome.jhtml >/dev/null 2>&1 ; then true; else
- echo 'getting welcome page failed, answer was:'
- cat Welcome.jhtml
- exit 1
-fi
-FOO=`grep action Welcome.jhtml | uniq | sed -e 's/.*"\(.*\)".*/\1/'`
-export SESS=`echo $FOO | sed -e 's/.*sessionid$\(.*\)/\1/'`
-SEDEX="-e s/@@@SESS@@@/$SESS/ -e s=@@@SITE@@@=$FROMSITE= -e s=@@@LANGSUB@@@=$LANGSUB="
-( sleep 10 ; cat send.resp | sed $SEDEX ) | ( telnet $TNHOST $TNPORT ; sleep 15 ) >register.html 2>&1
-#/bin/ksh ./sendreg.sh
-( sleep 10 ; /bin/ksh ./sendreg.sh ; sleep 10 ) | ( telnet $TNHOST $TNPORT ; sleep 5 ) >regform.html 2>&1
-if grep FREESTAR regform.html >/dev/null 2>&1 ; then true; else
- echo 'registration failed, answer was:'
- cat regform.html
- exit 1
-fi
-FOO=`grep FREESTAR regform.html | sed -e 's/.*"\(.*\)".*/\1/'`
-ftp -o star.html $SITE$FOO
-if grep STARLIN star.html >/dev/null 2>&1 ; then true; else
- echo 'login failed, answer was:'
- cat star.html
- exit 1
-fi
-FOO=`grep STARLIN star.html | sed -e 's/.*"\(.*\)".*/\1/'`
-ftp -o order.html $SITE$FOO
-( sleep 10 ; cat send.ord | sed $SEDEX ) | ( telnet $TNHOST $TNPORT ; sleep 10 ) >ordform.html 2>&1
-( sleep 10 ; cat send.conf | sed $SEDEX ) | ( telnet $TNHOST $TNPORT ; sleep 10 ) >ordconf.html 2>&1
-( sleep 10 ; cat send.agree | sed $SEDEX ) | ( telnet $TNHOST $TNPORT ; sleep 10 ) >agree.html 2>&1
-( sleep 10 ; cat send.submit | sed $SEDEX ) | ( telnet $TNHOST $TNPORT ; sleep 10 ) >submit.html 2>&1
-FOO=`grep "STRIL-${LANGSUB}" submit.html | head -1 | sed -e "s/.*href=.\(.*\)\'.*><.*/\1/"`
-ftp -o ${DISTDIR}/${DISTFILE} "$FOO"
diff --git a/misc/staroffice/files/instdb.patch b/misc/staroffice/files/instdb.patch
deleted file mode 100644
index 1c611dddb0d..00000000000
--- a/misc/staroffice/files/instdb.patch
+++ /dev/null
@@ -1,7 +0,0 @@
-$NetBSD: instdb.patch,v 1.1.1.1 1999/11/22 21:23:49 rh Exp $
-
---- instdb.ins.orig Sun Nov 21 14:06:06 1999
-+++ instdb.ins Sun Nov 21 14:43:30 1999
-@@ -2 +2 @@
-- DefaultDestPath = "@@PREFIX@@/Office51";
-+ DefaultDestPath = "Office51";
diff --git a/misc/staroffice/files/send.agree b/misc/staroffice/files/send.agree
deleted file mode 100644
index d1ebecd27f5..00000000000
--- a/misc/staroffice/files/send.agree
+++ /dev/null
@@ -1,5 +0,0 @@
-POST @@@SITE@@@/servlet/EComActionServlet/ECom.LegalPageInfo;$sessionid$@@@SESS@@@ HTTP/1.0
-Content-type: application/x-www-form-urlencoded
-Content-length: 75
-
-form.legalItem||8:STRIL-@@@LANGSUB@@@=Agree&LegalPageAction/form.legal=Continue
diff --git a/misc/staroffice/files/send.conf b/misc/staroffice/files/send.conf
deleted file mode 100644
index d37d4d9ad16..00000000000
--- a/misc/staroffice/files/send.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-POST @@@SITE@@@/servlet/EComActionServlet/ECom.CartPageInfo;$sessionid$@@@SESS@@@ HTTP/1.0
-Content-type: application/x-www-form-urlencoded
-Content-length: 34
-
-CartPageAction/form.cart=Continue
diff --git a/misc/staroffice/files/send.ord b/misc/staroffice/files/send.ord
deleted file mode 100644
index ae3da2a2c9a..00000000000
--- a/misc/staroffice/files/send.ord
+++ /dev/null
@@ -1,5 +0,0 @@
-POST @@@SITE@@@/servlet/EComActionServlet/ECom.CatalogPageInfo;$sessionid$@@@SESS@@@ HTTP/1.0
-Content-type: application/x-www-form-urlencoded
-Content-length: 80
-
-form.catalogItem=8:STRIL-@@@LANGSUB@@@&CatalogPageAction/form.addToCart=Add+to+Order
diff --git a/misc/staroffice/files/send.resp b/misc/staroffice/files/send.resp
deleted file mode 100644
index c142ffe112e..00000000000
--- a/misc/staroffice/files/send.resp
+++ /dev/null
@@ -1,6 +0,0 @@
-POST @@@SITE@@@/servlet/EComActionServlet/ECom.WelcomePageInfo;$sessionid$@@@SESS@@@ HTTP/1.0
-Content-type: application/x-www-form-urlencoded
-Content-length: 45
-
-WelcomePageAction/form.goToRegsiter=Register
-
diff --git a/misc/staroffice/files/send.submit b/misc/staroffice/files/send.submit
deleted file mode 100644
index 77bb5fbde65..00000000000
--- a/misc/staroffice/files/send.submit
+++ /dev/null
@@ -1,5 +0,0 @@
-POST @@@SITE@@@/servlet/EComActionServlet/ECom.QuotePageInfo;$sessionid$@@@SESS@@@ HTTP/1.0
-Content-type: application/x-www-form-urlencoded
-Content-length: 47
-
-QuotePageAction/form.processQuote=Submit+Order
diff --git a/misc/staroffice/files/sendreg.sh b/misc/staroffice/files/sendreg.sh
deleted file mode 100755
index f78013b31a3..00000000000
--- a/misc/staroffice/files/sendreg.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-echo "POST $FROMSITE/servlet/EComActionServlet/ECom.RegisterPageInfo;\$sessionid\$$SESS HTTP/1.0"
-echo "Content-type: application/x-www-form-urlencoded"
-echo "Content-length: $LEN"
-echo ""
-echo -n "form.userId=$ACCT&"
-echo -n "form.password=$PASS&"
-echo -n "form.passwordVerify=$PASS&"
-echo -n "form.email=$EMAIL&"
-echo -n "form.firstName=$FIRSTNAME&"
-echo -n "form.lastName=$LASTNAME&"
-echo -n "form.address1=$ADDR&"
-echo -n "form.city=$CITY&"
-echo -n "form.province=$STATE&"
-echo -n "form.postalCode=$ZIP&"
-echo -n "form.country=$COUNTRY&"
-echo -n "form.phone=$PHONE&"
-echo "form.sendMail=No&form.sendMailPartner=No&RegisterPageAction/form.register=Register"
-echo ""
-echo ""
-echo ""
-echo ""
-echo ""
-echo ""
-echo ""
-echo ""
diff --git a/misc/staroffice/files/soffice b/misc/staroffice/files/soffice
deleted file mode 100755
index a533102cd54..00000000000
--- a/misc/staroffice/files/soffice
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: soffice,v 1.2 2000/03/15 07:00:52 rh Exp $
-#
-SOINST=@@PREFIX@@/Office51
-[ "$SOFFICE" = "" ] && SOFFICE=$HOME/Office51
-
-if [ "`/sbin/mount | grep 'on /proc' | cut -d ' ' -f 5`" != "procfs" ]; then
- echo "-----------------------------------------------------------------"
- echo "StarOffice needs procfs to be mounted on /proc in order to work. "
- echo "-----------------------------------------------------------------"
- exit 1
-fi
-
-if [ ! -d "$SOFFICE" ]; then
- echo ""
- echo "-----------------------------------------------------------------"
- echo " StarOffice has not yet been set up for `whoami`."
- echo " Starting setup ... "
- echo ""
- echo " (If StarOffice has already been set up for `whoami` or you"
- echo " want to install it someplace other than $SOFFICE"
- echo " please abort the installation procedure now, set the \$SOFFICE "
- echo " environment variable accordingly and rerun $0.)"
- echo "-----------------------------------------------------------------"
- echo ""
-
- @@PREFIX@@/bin/sosetup
-
- echo ""
- echo "Done. Starting StarOffice ..."
- echo ""
-fi
-
-export LD_LIBRARY_PATH=@@PREFIX@@/Office51:@@PREFIX@@/Office51/lib:${SOFFICE}:${SOFFICE}/lib
-exec ${SOINST}/bin/soffice $*
diff --git a/misc/staroffice/files/soffice.patch b/misc/staroffice/files/soffice.patch
deleted file mode 100644
index 89798571766..00000000000
--- a/misc/staroffice/files/soffice.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: soffice.patch,v 1.1.1.1 1999/11/22 21:23:49 rh Exp $
-
---- bin/soffice.orig Tue Aug 24 06:11:00 1999
-+++ bin/soffice Sun Nov 21 15:44:10 1999
-@@ -15,7 +15,7 @@
- # resolve installation directory
- sd_platform=`uname -s`
- case $sd_platform in
-- SCO_SV) test=/bin/test ;;
-+ NetBSD|SCO_SV) test=/bin/test ;;
- *) test=/usr/bin/test ;;
- esac
-
diff --git a/misc/staroffice/files/sosetup b/misc/staroffice/files/sosetup
deleted file mode 100755
index 53d7161fdc1..00000000000
--- a/misc/staroffice/files/sosetup
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: sosetup,v 1.1.1.1 1999/11/22 21:23:49 rh Exp $
-#
-cd $HOME
-export LD_LIBRARY_PATH=@@PREFIX@@/Office51:@@PREFIX@@/Office51/lib
-@@PREFIX@@/Office51/bin/setup /D:$HOME/Office51