This is an ebuild for both the shoutcast server and the shoutcast source for Linux x86. Both are close-source and I don't know about their stability. The ebuilds are basic, as the executables are binary, they are installed into /opt/shoutcast; config files go into /etc/shoutcast. If this is against some directive, sorry... Reproducible: Always Steps to Reproduce:
Created attachment 35450 [details] The actual ebuilds
Please reattatch as text/plain... the ebuild should be called shoutcast-bin to reflect that it's a binary package. Thanks.
Created attachment 35459 [details] The ebuild for the server
Created attachment 35460 [details] The ebuild for the source
Your ebuilds are missing the gentoo copyright notice... Please see the following URL for more information: http://www.gentoo.org/doc/en/ebuild-mistakes.xml
Checking the license on this.
Ok, the legal part was approved by avenj. This ebuild will be fetch restricted. Users will be required to download the file from the site only. We are not allowed to mirror this according to the license agreement. As the copyright header was missing, it's best to use skel.ebuild, which you'll find in your /usr/portage directory for creating new ebuilds. This file contains the proper format for ebuild creation. Thanks for your submission!
Ok, ebuild's starting to look good. I had a chance to do some runtime tests with it, and so far so good. I'm going to add a few einfo's in it, since some of the shoutcast docs are a little misleading.
server now in cvs! A couple of notes: 1) The wrapper you had can be achieved with an init.d script. Please check the one included with the ebuild. 2) There was a couple of log file issues in creating the init.d script one of them was the various verbose output that the server does even in background mode :). Sed was used to turn these off. 3) The example for the content directory assignment is a little misleading sed was used to take care of that. 4) A default content directory was created to cause the least ammount of hassle to users, and the content directory was added to the config file. The server was tested for on demand content streaming. I have confirmed this working, and ferringb has confirmed that outside streaming (ie. not localhost) works as well. Looks to be pretty good! I'm working on the source ebuild next :). Thanks for the submission!
Thank you very much for your quick taking-care of the ebuild! I am not an expert; and I was in holidays for one week, so I couldn't contribute any further...
Alright, now both packages are in cvs and ready to go :). So, now for the comments: -# ebuild for shoutcast-trans-bin +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/shoutcast-trans-bin/shoutcast-trans-bin-0.4.0.ebuild,v 1.1 2004/08/31 23:57:00 chriswhite Exp $ need the header! Very important. Also don't need the ebuild comment. -DESCRIPTION="The source for the shoutcast streaming server." +DESCRIPTION="A transcoder that provides a source for shoutcast-server-bin to stream from." Little bit better description. -DEPEND=">=sys-libs/glibc-2.0.0 +DEPEND="virtual/libc changed to a virtual depend (glibc is virtual now...) - # install executable - dodir /opt/shoutcast + # install executable don't need the dodir, it is created automatically by doexe - - # install exec wrapper and symlink - echo '#!/bin/sh -cd /opt/shoutcast -./sc_trans_linux /etc/shoutcast/sc_trans.conf -' > sc_trans.wrapper - dodir /opt/shoutcast - exeinto /opt/shoutcast - doexe sc_trans.wrapper - - dodir /usr/bin - dosym /opt/shoutcast/sc_trans.wrapper /usr/bin/sc_trans - + + # install the init.d file + doinitd ${FILESDIR}/shoutcast_trans + Used an init.d file instead. Much cleaner. - dodir /etc/shoutcast + # filter out some midly offensive stuff in the config file + sed -e "s|^StreamTitle=.*|StreamTitle=Example Stream|" -i sc_trans.conf + sed -e "s|^StreamURL=.*|StreamURL=http://examplestream.com/|" -i sc_trans.conf + sed -e "s|^PlaylistFile=.*|PlaylistFile=/opt/shoutcast/playlists/example.lst|" -i sc_trans.conf insinto /etc/shoutcast Filtered out all the offensive "Gay son" stuff :|. Also made a nice little directory: + # create a directory for playlists to be put + mkdir ${D}/opt/shoutcast/playlists So users know where to put their playlists. - einfo "The executable for the shoutcast source is named sc_trans." + einfo "Shoutcast-trans can be started via the init.d script provided." + einfo "start it with /etc/init.d/shoutcast_trans" einfo einfo "The configuration file is /etc/shoutcast/sc_trans.conf." einfo "Please have a look at the playlist file setting." einfo "A sample playlist file can be found under /usr/share/doc/$P." einfo "It also contains instructions how to build a playlist." + einfo "A directory /opt/shoutcast/playlists has been created for storing playlists." adjusted the einfo's a bit. Other than that, great job! Test this to your heart's content :).