OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   01-Mar-2009 11:41:09
  Branch: HEAD                             Handle: 2009030110410900

  Added files:
    openpkg-src/icecast     icecast.spec icecast.xml rc.icecast

  Log:
    new package: icecast 2.3.2 (Multimedia Server)

  Summary:
    Revision    Changes     Path
    1.1         +123 -0     openpkg-src/icecast/icecast.spec
    1.1         +51 -0      openpkg-src/icecast/icecast.xml
    1.1         +41 -0      openpkg-src/icecast/rc.icecast
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/icecast/icecast.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 icecast.spec
  --- /dev/null 2009-03-01 11:41:09 +0100
  +++ icecast.spec      2009-03-01 11:41:09 +0100
  @@ -0,0 +1,123 @@
  +##
  +##  icecast.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package information
  +Name:         icecast
  +Summary:      Multimedia Server
  +URL:          http://www.icecast.org/
  +Vendor:       Jack Moffitt, Michael Smith, Karl Heyes
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Audio
  +License:      GPL
  +Version:      2.3.2
  +Release:      20090301
  +
  +#   list of sources
  +Source0:      
http://downloads.xiph.org/releases/icecast/icecast-%{version}.tar.gz
  +Source1:      icecast.xml
  +Source2:      rc.icecast
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823
  +PreReq:       OpenPKG, openpkg >= 20060823
  +BuildPreReq:  libxml, libxslt, vorbis-libs, speex, curl, openssl, theora
  +PreReq:       libxml, libxslt, vorbis-libs, speex, curl, openssl, theora
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Icecast is a server software for streaming multimedia data (audio
  +    and video) over the network.
  +
  +%track
  +    prog icecast = {
  +        version   = %{version}
  +        url       = http://www.icecast.org/download.php
  +        regex     = icecast-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q
  +
  +%build
  +    #   configure program
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --sysconfdir=%{l_prefix}/etc/icecast \
  +        --with-xslt-config=%{l_prefix}/bin/xslt-config \
  +        --with-theora=%{l_prefix} \
  +        --with-ogg=%{l_prefix} \
  +        --with-vorbis=%{l_prefix} \
  +        --with-speex=%{l_prefix} \
  +        --with-curl=%{l_prefix} \
  +        --with-openssl=%{l_prefix}
  +
  +    #   build program
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc >/dev/null 2>&1 || true
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/icecast/doc >/dev/null 2>&1 || 
true
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        %{SOURCE icecast.xml} $RPM_BUILD_ROOT%{l_prefix}/etc/icecast/
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        %{SOURCE rc.icecast} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/icecast
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/icecast/*' \
  +        '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/icecast'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  +%post
  +    #   after upgrade, restart service
  +    [ $1 -eq 2 ] || exit 0
  +    eval `%{l_rc} icecast status 2>/dev/null`
  +    [ ".$icecast_active" = .yes ] && %{l_rc} icecast restart
  +    exit 0
  +
  +%preun
  +    #   before erase, stop service and remove log files
  +    [ $1 -eq 0 ] || exit 0
  +    %{l_rc} icecast stop 2>/dev/null
  +    rm -f $RPM_INSTALL_PREFIX/var/icecast/* >/dev/null 2>&1 || true
  +    exit 0
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/icecast/icecast.xml
  ============================================================================
  $ cvs diff -u -r0 -r1.1 icecast.xml
  --- /dev/null 2009-03-01 11:41:09 +0100
  +++ icecast.xml       2009-03-01 11:41:09 +0100
  @@ -0,0 +1,51 @@
  +<!-- icecast.xml: Icecast Server Configuration (language: XML) -->
  +<icecast>
  +    <limits>
  +        <clients>100</clients>
  +        <sources>2</sources>
  +        <threadpool>5</threadpool>
  +        <queue-size>524288</queue-size>
  +        <client-timeout>30</client-timeout>
  +        <header-timeout>15</header-timeout>
  +        <source-timeout>10</source-timeout>
  +        <burst-on-connect>1</burst-on-connect>
  +        <burst-size>65535</burst-size>
  +    </limits>
  +    <authentication>
  +        <admin-user>admin</admin-user>
  +        <admin-password>admin</admin-password>
  +        <source-password>source</source-password>
  +        <relay-password>relay</relay-password>
  +    </authentication>
  +    <!--
  +    <directory>
  +        <yp-url-timeout>15</yp-url-timeout>
  +        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  +    </directory>
  +    -->
  +    <hostname>localhost</hostname>
  +    <listen-socket>
  +        <bind-address>127.0.0.1</bind-address>
  +        <port>8000</port>
  +        <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
  +    </listen-socket>
  +    <fileserve>1</fileserve>
  +    <paths>
  +        <alias source="/" dest="/status.xsl"/>
  +        <webroot>@l_prefix@/share/icecast/web</webroot>
  +        <adminroot>@l_prefix@/share/icecast/admin</adminroot>
  +        <logdir>@l_prefix@/var/icecast</logdir>
  +        <pidfile>@l_prefix@/var/icecast/icecast.pid</pidfile>
  +    </paths>
  +    <logging>
  +        <playlistlog>playlist.log</playlistlog>
  +        <accesslog>access.log</accesslog>
  +        <errorlog>error.log</errorlog>
  +        <loglevel>3</loglevel>
  +             <logsize>10000</logsize>
  +        <logarchive>10</logarchive>
  +    </logging>
  +    <security>
  +        <chroot>0</chroot>
  +    </security>
  +</icecast>
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/icecast/rc.icecast
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.icecast
  --- /dev/null 2009-03-01 11:41:09 +0100
  +++ rc.icecast        2009-03-01 11:41:09 +0100
  @@ -0,0 +1,41 @@
  +...@l_prefix@/bin/openpkg rc
  +##
  +##  rc.icecast -- Run-Commands
  +##
  +
  +%config
  +    icecast_enable="$openpkg_rc_def"
  +
  +%common
  +    icecast_cfgfile="@l_prefix@/etc/icecast/icecast.xml"
  +    icecast_pidfile="@l_prefix@/var/icecast/icecast.pid"
  +    icecast_signal () {
  +        [ -f $icecast_pidfile ] && kill -$1 `cat $icecast_pidfile`
  +    }
  +
  +%status -u @l_nusr@ -o
  +    icecast_usable="unknown"
  +    icecast_active="no"
  +    rcService icecast enable yes && \
  +        icecast_signal 0 && icecast_active="yes"
  +    echo "icecast_enable=\"$icecast_enable\""
  +    echo "icecast_usable=\"$icecast_usable\""
  +    echo "icecast_active=\"$icecast_active\""
  +
  +%start -u @l_nusr@
  +    rcService icecast enable yes || exit 0
  +    rcService icecast active yes && exit 0
  +    @l_prefix@/bin/icecast -b -c $icecast_cfgfile
  +
  +%stop -u @l_nusr@
  +    rcService icecast enable yes || exit 0
  +    rcService icecast active no  && exit 0
  +    icecast_signal TERM
  +    sleep 2
  +    rm -f $icecast_pidfile >/dev/null 2>&1 || true
  +
  +%restart -u @l_nusr@
  +    rcService icecast enable yes || exit 0
  +    rcService icecast active no  && exit 0
  +    rc icecast stop start
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to