diff options
Diffstat (limited to 'misc/staroffice/files')
-rwxr-xr-x | misc/staroffice/files/automate.sh | 151 | ||||
-rw-r--r-- | misc/staroffice/files/instdb.patch | 7 | ||||
-rw-r--r-- | misc/staroffice/files/md5 | 10 | ||||
-rw-r--r-- | misc/staroffice/files/patch-sum | 3 | ||||
-rw-r--r-- | misc/staroffice/files/send.agree | 5 | ||||
-rw-r--r-- | misc/staroffice/files/send.conf | 5 | ||||
-rw-r--r-- | misc/staroffice/files/send.ord | 5 | ||||
-rw-r--r-- | misc/staroffice/files/send.resp | 6 | ||||
-rw-r--r-- | misc/staroffice/files/send.submit | 5 | ||||
-rwxr-xr-x | misc/staroffice/files/sendreg.sh | 25 | ||||
-rwxr-xr-x | misc/staroffice/files/soffice | 29 | ||||
-rw-r--r-- | misc/staroffice/files/soffice.patch | 13 | ||||
-rwxr-xr-x | misc/staroffice/files/sosetup | 7 |
13 files changed, 271 insertions, 0 deletions
diff --git a/misc/staroffice/files/automate.sh b/misc/staroffice/files/automate.sh new file mode 100755 index 00000000000..d4c8abc499f --- /dev/null +++ b/misc/staroffice/files/automate.sh @@ -0,0 +1,151 @@ +#!/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 'A.*FREE.*' index.html >/dev/null 2>&1 ; then true; else + echo 'getting index failed, answer was:' + cat index.html + exit 1 +fi +FOO=`grep 'A.*FREE.*' index.html | 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 new file mode 100644 index 00000000000..1c611dddb0d --- /dev/null +++ b/misc/staroffice/files/instdb.patch @@ -0,0 +1,7 @@ +$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/md5 b/misc/staroffice/files/md5 new file mode 100644 index 00000000000..f9c6f4ca00a --- /dev/null +++ b/misc/staroffice/files/md5 @@ -0,0 +1,10 @@ +$NetBSD: md5,v 1.1.1.1 1999/11/22 21:23:49 rh Exp $ + +MD5 (so51a_lnx_01.tar) = 680d631d0cd85e8735b8c3f821cfd2b5 +MD5 (so51a_lnx_03.tar) = 0deeda47c922943af4d41b90c3a6e0f6 +MD5 (so51a_lnx_31.tar) = 712a1709c14918035e2b4af00fc7cefd +MD5 (so51a_lnx_33.tar) = d8bd662261a9165fe7ba3cc621173424 +MD5 (so51a_lnx_34.tar) = d6c10b9580c7922176e006253c6fd4d2 +MD5 (so51a_lnx_39.tar) = e6ef4785c51a44c67d7c8f6be2d498eb +MD5 (so51a_lnx_46.tar) = d86568cdc7578d836e16571d6b8763e2 +MD5 (so51a_lnx_49.tar) = 5669fa48c474f53eeaacc63218822e93 diff --git a/misc/staroffice/files/patch-sum b/misc/staroffice/files/patch-sum new file mode 100644 index 00000000000..5d346d0791d --- /dev/null +++ b/misc/staroffice/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 1999/11/22 21:23:49 rh Exp $ + +MD5 (patch-aa) = 8a19101403e8d5603d70fb2ad94de8a0 diff --git a/misc/staroffice/files/send.agree b/misc/staroffice/files/send.agree new file mode 100644 index 00000000000..d1ebecd27f5 --- /dev/null +++ b/misc/staroffice/files/send.agree @@ -0,0 +1,5 @@ +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 new file mode 100644 index 00000000000..d37d4d9ad16 --- /dev/null +++ b/misc/staroffice/files/send.conf @@ -0,0 +1,5 @@ +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 new file mode 100644 index 00000000000..ae3da2a2c9a --- /dev/null +++ b/misc/staroffice/files/send.ord @@ -0,0 +1,5 @@ +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 new file mode 100644 index 00000000000..c142ffe112e --- /dev/null +++ b/misc/staroffice/files/send.resp @@ -0,0 +1,6 @@ +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 new file mode 100644 index 00000000000..77bb5fbde65 --- /dev/null +++ b/misc/staroffice/files/send.submit @@ -0,0 +1,5 @@ +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 new file mode 100755 index 00000000000..f78013b31a3 --- /dev/null +++ b/misc/staroffice/files/sendreg.sh @@ -0,0 +1,25 @@ +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 new file mode 100755 index 00000000000..1f624e1ec0a --- /dev/null +++ b/misc/staroffice/files/soffice @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $NetBSD: soffice,v 1.1.1.1 1999/11/22 21:23:49 rh Exp $ +# +SOINST=@@PREFIX@@/Office51 +[ "$SOFFICE" = "" ] && SOFFICE=$HOME/Office51 + +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 new file mode 100644 index 00000000000..89798571766 --- /dev/null +++ b/misc/staroffice/files/soffice.patch @@ -0,0 +1,13 @@ +$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 new file mode 100755 index 00000000000..53d7161fdc1 --- /dev/null +++ b/misc/staroffice/files/sosetup @@ -0,0 +1,7 @@ +#!/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 |