Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 795

Summary: New Ebuild (Help!) -- agsatellite
Product: Gentoo Linux Reporter: Seemant Kulleen <seemantk>
Component: New packagesAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: agsatellite ebuild -- needs some tweaking

Description Seemant Kulleen 2002-02-21 08:52:20 UTC
Hi Aron,

This is an ebuild I am working on for audiogalaxy's satellite software.  This
ebuild is supposed to get Debian's wrapper functions for audiogalaxy, and prompt
the user to download the actual satellite binary from audiogalaxy.com and place
into .../distfiles.  I am having trouble with the dyn_fetch() function in this.
 Apart from that, this script replaces Debian's placing of all the binaries with
a target into /opt/AudioGalaxy/bin.  That's what Matt and I thought would work
for Gentoo.  Thanks,

Seemant
Comment 1 Seemant Kulleen 2002-02-21 08:53:04 UTC
Created attachment 222 [details]
agsatellite ebuild -- needs some tweaking
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-02-21 14:03:46 UTC
please ask on gentoo-dev to get help and then repost.
Comment 3 Seemant Kulleen 2002-02-23 04:30:50 UTC
Hi Again to my Gentoo Friends,

OK, this is the ebuild for agsatellite, using the Debian wrappers to configure
and run the satellite.  The satellite itself needs to be downloaded from
audiogalaxy.com's website by the user.  Attached here is the file containing the
digests, and the ebuild.

Thanks,

seemant



--- cut here


MD5 6783cab77e1c639a3d9bf5e96eb9c422 agsatellite_0.5.2.0-5.tar.gz 6998
MD5 3876f43497acde0474809a752a076cbf AGSatellite0520-glibc21.tar.gz 33145

--- cut here too

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Authors: Seemant Kulleen <seemant@rocketmail.com> and Matthew B. Kennedy <mbke
nnedy@ieee.com
# $Header$

A=agsatellite_0.5.2.0-5.tar.gz
MYVER=agsatellite-0.5.2.0
B=AGSatellite0520-glibc21.tar.gz
S=${WORKDIR}/
DESCRIPTION="Audio Galaxy Satellite"
SRC_URI="http://ftp.debian.org/debian/pool/contrib/a/agsatellite/${A}"
HOMEPAGE="http://packages.debian.org/unstable/net/agsatellite.html"
BGPAGE="http://www.audiogalaxy.com/"

DEPEND=""
RDEPEND="virtual/glibc"

dyn_fetch() {
        digest_check ${B}
        if [ $? -ne 0 ]; then
                        einfo "Please download ${B} yourself from ${BPAGE}"
                        einfo "and place it in ${DISTDIR}"
                        exit 1
                fi
}

src_unpack() {
        unpack ${A}
        unpack ${B}
}

src_compile() {
        cat ${MYVER}/agsatellite | sed 's#/usr/bin#/opt/AudioGalaxy/bin#g' > ${M
YVER}/agsat
                cat ${MYVER}/agsatellite-config | sed 's#/usr/bin#/opt/AudioGala
xy/bin#g' > ${MYVER}/agsat-config
        
        mv ${MYVER}/agsat ${MYVER}/agsatellite
        mv ${MYVER}/agsat-config ${MYVER}/agsatellite-config

    einfo  "A binary package, nothing to compile"

}

src_install () {
        dodir /opt/AudioGalaxy/bin
        exeinto /opt/AudioGalaxy/bin
        doexe AGSatellite0520/AGSatellite
        doexe ${MYVER}/agsatellite ${MYVER}/agsatellite-config
        
        doman ${MYVER}/agsatellite.1 ${MYVER}/agsatellite-config.1
        dodoc ${MYVER}/debian/changelog ${MYVER}/debian/copyright
        dodoc AGSatellite0520/*.txt
        insinto /etc/env.d
        doins ${FILESDIR}/10agsatellite
}
Comment 4 Daniel Robbins (RETIRED) gentoo-dev 2002-03-15 00:55:41 UTC
OK.  You shouldn't redefine A, and you should include the to-be-manually
downloaded file in SRC_URI but just as a raw file ("foo.tar.gz" for example). 
Then you should be able to remove src_unpack() entirely.  And "$Header$" to
"$Header: $".
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-26 06:11:25 UTC
This will NOT be added to portage.  Instead, the OpenAG package, which is the
open source AudioGalaxy client, will be added.