Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=openjava.git;a=commitdiff;h=902796b35e5c86e558fc524b483db66be66259f9
commit 902796b35e5c86e558fc524b483db66be66259f9 Author: James Buren <[email protected]> Date: Thu Jun 7 22:07:09 2012 -0500 icecast-2.3.2-3-x86_64 * convert to use systemd schema diff --git a/source/network-extra/icecast/FrugalBuild b/source/network-extra/icecast/FrugalBuild index 0d11e1c..6657a6a 100644 --- a/source/network-extra/icecast/FrugalBuild +++ b/source/network-extra/icecast/FrugalBuild @@ -4,17 +4,20 @@ pkgname=icecast pkgver=2.3.2 -pkgrel=2 +pkgrel=3 pkgdesc="Icecast is a streaming media server." url="http://www.icecast.org/" groups=('network-extra') archs=('i686' 'x86_64') depends=('libxslt' 'libvorbis' 'curl>=7.19.0' 'libxml2>=2.7.8') up2date="lynx -dump http://www.icecast.org/download.php | grep icecast-[0-9\.]*tar.gz | sed -ne 's/.*-//;s/.tar.gz//;1 p'" -source=(http://downloads.us.xiph.org/releases/icecast/$pkgname-$pkgver.tar.gz icecast rc.icecast) +source=(http://downloads.us.xiph.org/releases/icecast/$pkgname-$pkgver.tar.gz rc.$pkgname $pkgname.service) +_F_sysvinit_units=($pkgname) +_F_systemd_units=($pkgname=) +Finclude systemd sha1sums=('a52b13505548c2eff2c64aab95a42dcafda11227' \ - '98ce0b4d3f2234944de42e90434b7deb3068c478' \ - '2d2f9d2f73547476a4f5c538a2b48c73841d2e22') + '2d2f9d2f73547476a4f5c538a2b48c73841d2e22' \ + 'f94e6484cfb4dc6b51fb9f758bbddc2ffef0a003') build() { @@ -32,6 +35,9 @@ build() line2=`grep -n "</changeowner>" $Fdestdir/etc/icecast/icecast.xml | cut -d : -f 1` sed -i "`expr $line - 1` d" $Fdestdir/etc/icecast/icecast.xml sed -i "`expr $line2` d" $Fdestdir/etc/icecast/icecast.xml + + Ffile /lib/systemd/system/$pkgname.service + Fgenscriptlet } # optimization OK diff --git a/source/network-extra/icecast/icecast b/source/network-extra/icecast/icecast deleted file mode 100644 index 1db4ed6..0000000 --- a/source/network-extra/icecast/icecast +++ /dev/null @@ -1,4 +0,0 @@ -# /etc/sysconfig/icecast -# configuration file for icecast streaming server - -ICECAST_ARGS="-b -c /etc/icecast/icecast.xml" \ No newline at end of file diff --git a/source/network-extra/icecast/icecast.install b/source/network-extra/icecast/icecast.install deleted file mode 100644 index 93b233f..0000000 --- a/source/network-extra/icecast/icecast.install +++ /dev/null @@ -1,21 +0,0 @@ -post_install() -{ - /bin/true -} - -post_upgrade() -{ - post_install $1 -} - -pre_remove() -{ - /usr/sbin/chkconfig --del rc.icecast -} - -op=$1 -shift - -$op $* - -# vim: ft=sh diff --git a/source/network-extra/icecast/icecast.service b/source/network-extra/icecast/icecast.service new file mode 100644 index 0000000..0047edd --- /dev/null +++ b/source/network-extra/icecast/icecast.service @@ -0,0 +1,10 @@ +[Unit] +Description=Icecast streaming server +After=network.target + +[Service] +ExecStart=/usr/bin/icecast -b -c /etc/icecast/icecast.xml +Type=forking + +[Install] +WantedBy=multi-user.target diff --git a/source/network/foo b/source/network/foo deleted file mode 100644 index e69de29..0000000 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
