# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="" At="imq3_5-plt-linx86.zip" S="${WORKDIR}" DESCRIPTION="Sun's Java System Message Queue, version 3.5 Platform edition" HOMEPAGE="http://wwws.sun.com/software/products/message_queue/index.html" SRC_URI=${At} SLOT="3.5" LICENSE="" KEYWORDS="x86 -ppc -sparc -alpha -mips -hppa" RESTRICT="fetch" DEPEND=">=virtual/jre-1.4" pkg_nofetch() { einfo "Please download ${At} from:" einfo ${HOMEPAGE} einfo "(RedHat Enterprise Linux 2.1, Update 2)" einfo "and move it to ${DISTDIR}" } src_unpack() { if [ ! -r ${DISTDIR}/${At} ]; then eerror "cannot read ${At}. Please check the permission and try again." die fi unzip ${DISTDIR}/${At} rpm2targz mq3_5-plt/rpms/imq-3_5-01.i386.rpm tar -xzf imq-3_5-01.i386.tar.gz } src_install () { dodir /etc/init.d cp ${FILESDIR}/init.d/imq ${D}/etc/init.d dodir /etc/conf.d cp ${FILESDIR}/conf.d/imq ${D}/etc/conf.d cd ${S} dodir /opt/${P} cp -dPR opt/imq/* ${D}/opt/${P} dodir /var/imq cp -dPR var/opt/imq/* ${D}/var/imq dodir /etc/imq cp -dPR etc/opt/imq/* ${D}/etc/imq dodoc mq3_5-plt/COPYRIGHT mq3_5-plt/README mq3_5-plt/LICENSE mq3_5-plt/LICENSEREADME/THIRDPARTYLICENSEREADME }