summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-forensics/air/files/air-1.2.3_beta3-installfix.patch')
-rw-r--r--app-forensics/air/files/air-1.2.3_beta3-installfix.patch149
1 files changed, 149 insertions, 0 deletions
diff --git a/app-forensics/air/files/air-1.2.3_beta3-installfix.patch b/app-forensics/air/files/air-1.2.3_beta3-installfix.patch
new file mode 100644
index 000000000000..d86284224724
--- /dev/null
+++ b/app-forensics/air/files/air-1.2.3_beta3-installfix.patch
@@ -0,0 +1,149 @@
+--- install-air-1.2.3-beta3-vanilla 2004-04-19 21:15:57.164847384 -0700
++++ install-air-1.2.3-beta3 2004-04-19 21:16:34.710139632 -0700
+@@ -5,13 +5,14 @@
+ TK_FILE='Tk-800.024.tar.gz'
+ TEMP_DIR="/tmp"
+ TK_DIR=$TEMP_DIR/Tk800.024
+-ICON_DIR="/usr/local/share/air/bitmaps"
+-LOG_DIR="/usr/local/share/air/logs"
+-INSTALL_LOG="/tmp/air-install.log"
++INSTALL_LOG="${TEMP_DIR}/air-install.log"
++INSTALL_DIR="/usr"
++ICON_DIR="${INSTALL_DIR}/share/air/bitmaps"
++LOG_DIR="${INSTALL_DIR}/share/air/logs"
+
+ echo "Install Log for AIR Version $VERSION" > $INSTALL_LOG
+ date >> $INSTALL_LOG
+-cat /etc/redhat-release >> $INSTALL_LOG
++cat /etc/gentoo-release >> $INSTALL_LOG
+ cat /proc/cpuinfo >> $INSTALL_LOG
+ free >> $INSTALL_LOG
+
+@@ -53,13 +54,13 @@
+ UPGRADE="no"
+ fi
+
+-echo ""
+-echo "If you are ready to proceed with the installation/upgrade,"
+-echo "press ENTER."
+-echo ""
+-echo "To cancel, hit Control-C."
+-
+-read foo < /dev/tty
++#echo ""
++#echo "If you are ready to proceed with the installation/upgrade,"
++#echo "press ENTER."
++#echo ""
++#echo "To cancel, hit Control-C."
++#
++#read foo < /dev/tty
+
+ if [ $UPGRADE = "no" ] ; then
+ echo "Attempting to get the latest version of Perl/Tk..."
+@@ -67,7 +68,7 @@
+ echo "Need to download Perl/Tk:" >> $INSTALL_LOG
+ echo "decoding snarf..." >> $INSTALL_LOG
+
+-sed 's/^X//' << 'SHAR_EOF' | uudecode -o /tmp/snarf.gz 2>> $INSTALL_LOG
++sed 's/^X//' << 'SHAR_EOF' | uudecode -o ${TEMP_DIR}/snarf.gz 2>> $INSTALL_LOG
+ begin 755 snarf.gz
+ M'XL("-BW"SL``W-N87)F`.U\?WQ35;;O29N64%(2H$B1XAQ'RP^AOZCR&RS$
+ M%!`*(:&MOY@2VK2GM4U"<@*M6(RFG4L:,],WUW&\]SKO,N./R\SUSCAW'`='
+@@ -324,7 +325,7 @@
+ fi
+
+ echo "decoding air-counter..." >> $INSTALL_LOG
+-sed 's/^X//' << 'SHAR2_EOF' | uudecode -o /tmp/air-counter 2>> $INSTALL_LOG
++sed 's/^X//' << 'SHAR2_EOF' | uudecode -o ${TEMP_DIR}/air-counter 2>> $INSTALL_LOG
+ begin 755 air-counter
+ M(R$O=7-R+V)I;B]P97)L"B,J*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
+ M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
+@@ -376,7 +377,7 @@
+ SHAR2_EOF
+
+ echo "decoding air..." >> $INSTALL_LOG
+-sed 's/^X//' << 'SHAR3_EOF' | uudecode -o /tmp/air 2>> $INSTALL_LOG
++sed 's/^X//' << 'SHAR3_EOF' | uudecode -o ${TEMP_DIR}/air 2>> $INSTALL_LOG
+ begin 775 air
+ M(R$O=7-R+V)I;B]P97)L(`HC*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
+ M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
+@@ -1940,7 +1941,7 @@
+ SHAR3_EOF
+
+ echo "decoding icons..." >> $INSTALL_LOG
+-sed 's/^X//' << 'SHAR4_EOF' | uudecode -o /tmp/air-icons.tar.gz 2>> $INSTALL_LOG
++sed 's/^X//' << 'SHAR4_EOF' | uudecode -o ${TEMP_DIR}/air-icons.tar.gz 2>> $INSTALL_LOG
+ begin 664 air-icons.tar.gz
+ M'XL("*3?P3T``V%I<BUI8V]N<RYT87(`[-T)4%/WO@?P!,(68HP8*6(,$%$B
+ M8@PA+&I$-ME%1*[U*:6*:*GEJD6NM4@AA#TB"D:%@"P1$`($!(R0A&R$L`H(
+@@ -2234,7 +2235,7 @@
+ SHAR4_EOF
+
+ echo "decodiing tailer..." >> $INSTALL_LOG
+-sed 's/^X//' << 'SHAR5_EOF' | uudecode -o /usr/local/bin/tailer 2>> $INSTALL_LOG
++sed 's/^X//' << 'SHAR5_EOF' | uudecode -o ${INSTALL_DIR}/bin/tailer 2>> $INSTALL_LOG
+ begin 755 tailer
+ M(R$O8FEN+W-H"B,J*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
+ M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BH*(R`@
+@@ -2269,12 +2270,12 @@
+ SHAR5_EOF
+
+ if [ $UPGRADE = "no" ] ; then
+- # unzip /tmp/snarf.gz
+- /bin/gunzip /tmp/snarf.gz
++ # unzip ${TEMP_DIR}/snarf.gz
++ /bin/gunzip ${TEMP_DIR}/snarf.gz
+
+ # Use snarf to "snarf" the Perl/Tk package (It has a progress display)
+
+- /tmp/snarf -n $TK_SOURCE/$TK_FILE $TEMP_DIR/$TK_FILE
++ ${TEMP_DIR}/snarf -n $TK_SOURCE/$TK_FILE $TEMP_DIR/$TK_FILE
+
+
+ if [ $? -ne 0 ] ; then
+@@ -2289,7 +2290,7 @@
+ echo "If the installer failed with some other error message,"
+ echo "please email stephengibson@kpmg.com for assistance."
+ echo ""
+- rm -f /tmp/snarf*
++ rm -f ${TEMP_DIR}/snarf*
+ exit 1
+ else
+ echo "Download of Perl/Tk successful." | tee -a $INSTALL_LOG
+@@ -2329,18 +2330,18 @@
+
+ # install air-counter
+ echo "Unpacking and installing air-counter..." | tee -a $INSTALL_LOG
+-mv -f /tmp/air-counter /usr/local/bin/air-counter 2>> $INSTALL_LOG
+-chmod +x /usr/local/bin/air-counter 2>> $INSTALL_LOG
+-rm -f /tmp/air-counter 2>> $INSTALL_LOG
++mv -f ${TEMP_DIR}/air-counter ${INSTALL_DIR}/bin/air-counter 2>> $INSTALL_LOG
++chmod +x ${INSTALL_DIR}/bin/air-counter 2>> $INSTALL_LOG
++rm -f ${TEMP_DIR}/air-counter 2>> $INSTALL_LOG
+ echo "Install of air-counter is complete." | tee -a $INSTALL_LOG
+ echo ""
+
+ # unzip and install icons
+ echo "Unpacking and installing icons..." | tee -a $INSTALL_LOG
+-/bin/tar -C $TEMP_DIR -zxf /tmp/air-icons.tar.gz 2>> $INSTALL_LOG
+-mv -f /tmp/*.xbm $ICON_DIR 2>> $INSTALL_LOG
+-mv -f /tmp/*.gif $ICON_DIR 2>> $INSTALL_LOG
+-rm -f /tmp/air-icons.tar.gz 2>> $INSTALL_LOG
++/bin/tar -C $TEMP_DIR -zxf ${TEMP_DIR}/air-icons.tar.gz 2>> $INSTALL_LOG
++mv -f ${TEMP_DIR}/*.xbm $ICON_DIR 2>> $INSTALL_LOG
++mv -f ${TEMP_DIR}/*.gif $ICON_DIR 2>> $INSTALL_LOG
++rm -f ${TEMP_DIR}/air-icons.tar.gz 2>> $INSTALL_LOG
+ echo "Install of icons is complete." | tee -a $INSTALL_LOG
+ echo ""
+
+@@ -2349,8 +2350,8 @@
+ else
+ echo "Installing AIR $VERSION..." | tee -a $INSTALL_LOG
+ fi
+-mv -f /tmp/air /usr/local/bin/air 2>> $INSTALL_LOG
+-rm -f /tmp/air 2>> $INSTALL_LOG
++mv -f ${TEMP_DIR}/air ${INSTALL_DIR}/bin/air 2>> $INSTALL_LOG
++rm -f ${TEMP_DIR}/air 2>> $INSTALL_LOG
+
+ if [ $UPGRADE = "yes" ]; then
+ echo "Upgrade to AIR v$VERSION complete."