diff options
author | Daniel Black <dragonheart@gentoo.org> | 2004-05-18 07:06:40 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2004-05-18 07:06:40 +0000 |
commit | 2220c55c18b335797f3722b276308e499d1702dd (patch) | |
tree | 0e798195ac4e2c2d55fcf9ee77c6197912539945 /sys-apps/air | |
parent | QA fix - added gnome to IUSE as per bug #51327. Thanks to Matt Taylor (Manife... (diff) | |
download | gentoo-2-2220c55c18b335797f3722b276308e499d1702dd.tar.gz gentoo-2-2220c55c18b335797f3722b276308e499d1702dd.tar.bz2 gentoo-2-2220c55c18b335797f3722b276308e499d1702dd.zip |
Initial ebuild thanks to Doug Weimer <dweimer@socal.rr.com> in bug #47095
Diffstat (limited to 'sys-apps/air')
-rw-r--r-- | sys-apps/air/ChangeLog | 10 | ||||
-rw-r--r-- | sys-apps/air/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/air/air-1.2.3_beta3.ebuild | 51 | ||||
-rw-r--r-- | sys-apps/air/files/air-1.2.3_beta3-installfix.patch | 149 | ||||
-rw-r--r-- | sys-apps/air/files/digest-air-1.2.3_beta3 | 1 | ||||
-rw-r--r-- | sys-apps/air/metadata.xml | 12 |
6 files changed, 226 insertions, 0 deletions
diff --git a/sys-apps/air/ChangeLog b/sys-apps/air/ChangeLog new file mode 100644 index 000000000000..5c317837cb9e --- /dev/null +++ b/sys-apps/air/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-apps/air +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/air/ChangeLog,v 1.1 2004/05/18 07:06:40 dragonheart Exp $ + +*air-1.2.3_beta3 (18 May 2004) + + 18 May 2004; Daniel Black <dragonheart@gentoo.org> +metadata.xml, + +files/air-1.2.3_beta3-installfix.patch, +air-1.2.3_beta3.ebuild: + Initial ebuild thanks to Doug Weimer <dweimer@socal.rr.com> in bug #47095 + diff --git a/sys-apps/air/Manifest b/sys-apps/air/Manifest new file mode 100644 index 000000000000..6800a7cba3b9 --- /dev/null +++ b/sys-apps/air/Manifest @@ -0,0 +1,3 @@ +MD5 66302c81e7d1f4321badbceb1bdec461 air-1.2.3_beta3.ebuild 1096 +MD5 5e2c9543b3ba5b7ad85af0c87c767029 files/digest-air-1.2.3_beta3 66 +MD5 ef2381a8147873ad21c5d638d5cde8d1 files/air-1.2.3_beta3-installfix.patch 5335 diff --git a/sys-apps/air/air-1.2.3_beta3.ebuild b/sys-apps/air/air-1.2.3_beta3.ebuild new file mode 100644 index 000000000000..0a8c150823a5 --- /dev/null +++ b/sys-apps/air/air-1.2.3_beta3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/air/air-1.2.3_beta3.ebuild,v 1.1 2004/05/18 07:06:40 dragonheart Exp $ + +DESCRIPTION="A GUI front-end to dd/dcfldd" +HOMEPAGE="http://air-imager.sourceforge.net/" +MY_P=${P/_/-} +SRC_URI="mirror://sourceforge/air-imager/${MY_P}.tar.gz" +RESTRICT="nomirror" +LICENSE="GPL-2" +SLOT="0" + +# Only tested on x86 +KEYWORDS="~x86" + +IUSE="" + +DEPEND="dev-perl/perl-tk + app-arch/sharutils + >=sys-apps/sed-4" + +RDEPEND="app-arch/mt-st" + +S=${WORKDIR}/${P} + +src_unpack() { + #The tarball doesn't have a directory + mkdir ${S} + cd ${S} + unpack ${A} + epatch ${FILESDIR}/${P}-installfix.patch + + #sandbox installer + sed -i -e "s!INSTALL_DIR=\"/usr\"!INSTALL_DIR=\"${D}/usr\"!" \ + -e "s!TEMP_DIR=\"/tmp\"!TEMP_DIR=\"${T}\"!" \ + install-${MY_P} +} + +src_install() { + dodir "/usr/bin" + cd ${S} + /bin/sh install-${MY_P} + dodoc README + + cd ${D}/usr/bin + #/usr/bin/air has hardcoded paths we need to fix + sed -i -e "s!bitmap_dir=\"/usr/local!bitmap_dir=\"/usr!" \ + -e "s!air_log_dir = \"/usr/local!air_log_dir = \"/usr!" \ + -e "s!air_fifo = \"/usr/local!air_fifo = \"/usr!" \ + air +} diff --git a/sys-apps/air/files/air-1.2.3_beta3-installfix.patch b/sys-apps/air/files/air-1.2.3_beta3-installfix.patch new file mode 100644 index 000000000000..d86284224724 --- /dev/null +++ b/sys-apps/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." diff --git a/sys-apps/air/files/digest-air-1.2.3_beta3 b/sys-apps/air/files/digest-air-1.2.3_beta3 new file mode 100644 index 000000000000..b620fb44756a --- /dev/null +++ b/sys-apps/air/files/digest-air-1.2.3_beta3 @@ -0,0 +1 @@ +MD5 ef8f9fa84efa87fcb150282cdf99f10b air-1.2.3-beta3.tar.gz 60782 diff --git a/sys-apps/air/metadata.xml b/sys-apps/air/metadata.xml new file mode 100644 index 000000000000..b9fc2b9c6f11 --- /dev/null +++ b/sys-apps/air/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>dragonheart@gentoo.org</email> + <name>Daniel Black</name> + <description>A user ebuild that I felt obliged to include. Please take over if you want +it</description> +</maintainer> +<longdescription></longdescription> +</pkgmetadata> |