Bump and correct init script

Package-Manager: portage-2.2.0_alpha142
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2012-12-11 21:51:57 +01:00
parent d897123701
commit 84d9688595
4 changed files with 187 additions and 2 deletions

View File

@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*twonkymedia-7.0.9 (11 Dec 2012)
11 Dec 2012; Mario Fetka <mario.fetka@gmail.com> +files/twonkymedia7.initd,
+twonkymedia-7.0.9.ebuild:
Bump and correct init script
*twonkymedia-6.0.39 (18 Mar 2012)
18 Mar 2012; Mario Fetka <mario.fetka@gmail.com> +twonkymedia-6.0.39.ebuild:
@ -19,4 +25,3 @@
30 Dec 2011; Mario Fetka <mario.fetka@gmail.com> +twonkymedia-6.0.38.ebuild,
+metadata.xml, files/twonkymedia.initd:
initial ebuild

View File

@ -1,7 +1,12 @@
AUX twonkymedia.initd 2402 SHA256 25ef19623aae72a5857843b308d8380c74182c140e507e1840e3d78fab997cbd SHA512 2e3b4c0e7e5dd8663276c57b2e788996e7b57fe3948f9e954aa93037a3459e0da0fa7c8780ccb3f652d22ed69782004b3b6991a9eaf342f632723ac0b0bb1b7a WHIRLPOOL 59f89147ecd49009a41263435d802f8e4dfd87893a1333d426a5b206302d0d7b96332c805fecae597e763aebe046534c9ea7a589426b1f7ded108497343bbd8f
AUX twonkymedia7.initd 2402 SHA256 5280bf3ffbb4258336938816a637539545a2f63b4c50673ed726248ccf8d6cc6 SHA512 5a04338c1949e5e77a8d135f46bc3d9df7fccc997a63bf8c3abbebaef58d16c5da67d1ac45bfb84c7b8af60a59bed1cecb57ef7cae8c6265b0d9c7f02ef237a0 WHIRLPOOL 3cb9d2b4f8c3e31688700cd2490c4d64007523f51eae02942947d681085bfc5fe2af27054a1595742369c29b8084564cab1392c99038e193f748ea176a89b948
DIST twonky-armel-glibc-2.2.5-special-7.0.9.zip 3788915 SHA256 c32e9d46b4c5217f36db0a3c7e7b14777ce8aacead3d501bb0c18f69765a2b91 SHA512 9147d6cd880696ce849bff17eface77f612c2003f4bd578374918f02933577ea10e13b577e636945b6eb7be166ae1ba48f5357a2340eed1dbcfd5bd61d0ac614 WHIRLPOOL 04f104e91d3772ce16a0af508ff8f1952481b2c2fa3a537535fadc145ead9c09928dbf9ec0c26d4e4514c6c337b604abbd6a8bfdbd7f03464c822a036ff37d16
DIST twonky-i386-glibc-2.2.5-free-7.0.9.zip 4896062 SHA256 b26c71bf87b6a3012db2de18f03772615eb301802e9da5921d77d3946c8cf4e4 SHA512 ddbce267dd9a9e94ce62a2084333aa6658c213c810862ea17627956f44cf024cb565de1577f6828a1c1740c06a42d39ccdd072bc81f17dddc17bd670fd1c8f62 WHIRLPOOL e4e39daf17919e2eb9c6ac49db6765a55e97736c1da446ab7161e6bc611b864f562135f5281640bce0d6e4c98e0a4eb6e6a179f5ab8240b038a6d8a21c569733
DIST twonky-kirkwood-special-7.0.9.zip 3775082 SHA256 9a90e70ad115d3281ce7e6f6200acfff2058d519af6feecd5c3518c94447c526 SHA512 11977e1a24eabc44722b213175b4c0e04d5eef75bd0214cfd40477bd929f4ea39b705cf2193a52c1183e06fa21bc45861e7cef9066fbdd65e11289132c466b84 WHIRLPOOL 3401ac15ad7b3ecacff6bf8569a9244c5f29315c0bb53326df67d4162f5488796e3d41d398a4f5dc9eb81e8942adf4e5f8698955a0eaaa5fcd196ab089a0485a
DIST twonkymedia-armel-glibc-2.2.5-6.0.39.zip 2126530 SHA256 5b11f8be3972adc81809483db5402702c3406ed0e602735fc437d98595d8cb6b
DIST twonkymedia-i386-glibc-2.2.5-6.0.39.zip 3412688 SHA256 042b380d71d94843edd8ad01bff6c0aa1aacf6b050cc1b8430e63dbe7570d8f9
DIST twonkymedia-kirkwood-6.0.39.zip 2127488 SHA256 8b6e8999c317c4e6c9858835c97cc653091de269873930629790cc9af98c92e2
EBUILD twonkymedia-6.0.39.ebuild 1975 SHA256 41a93eab9b57c3ca2a641f756a23583d8a5b7cf898a288a8e07684917eeb3b88 SHA512 325f99eacc787f10953cee872095eb0ad000551f2e7093aafa9875eba15b620202d623f2e18064291e0e63b0827bd85a98162cdf7f16accb120e3885436797aa WHIRLPOOL d4ec352dc40d372fbbf164711c1a55cbb600222a68b252888167242abb796a49ca40500a8d8e1d1af8724d0aff6a6caec05d8a1f5361af0e3266189b1a9a20c5
MISC ChangeLog 670 SHA256 895d06c421823a7d8e2ff669b83df4f0791cfeb030d60ea563c599acf966f3f2 SHA512 ae03357377c36f14a02a7ba28e0942edf04bb86c02efc81ae0137822dc08787af24eeedc9b687f84b047de374e0de88e19d664662a5bf3e89a3d4f6c636f07c5 WHIRLPOOL cac0cff85ea926797e0ae38daff67a01a78a3183065e3757569f21d4d4ac6e7326146f5d55088c3847d3ca851cfd549a5adeee3de58d2076705b8581f2554838
EBUILD twonkymedia-7.0.9.ebuild 2059 SHA256 99dc2b21f5f014b37ff1b6e98d7fb9fe898b1139e0de60b3ec642e8b39743370 SHA512 b7f7c046792e7a22e908dedefafd2d6f326dee40419f62483cb0bea0dcbedeb0d568ef1ec7788777267f38374305d258c33568a62be23f6889f629cc6e350c9b WHIRLPOOL b57df53058fba9f8b0f8c51fadc5b4c677e12e2159288fae3127febbffa3cd3ab7fa0b2973b85ca11f6e5939ba332799f67c3eda75413295c1e3d8bfcd681d6e
MISC ChangeLog 842 SHA256 5034e6f7d0c97fa592759fd01812bc99bf8a3b1a2ccbb8945fdf9fc137eed26c SHA512 02fd60a1ff4c6faf878af7fd96d67068402cdc35ccede23f26fd6c7ab67361bdda39dc943ca17a31eae79f218f9c507fa9a30d7f91d7af93f6e3cad2c5009ba8 WHIRLPOOL 6d155b81785b75a5f8f4772ae5c1b424e270a21e70e174bec95a1c95f681df58c6c5f2d437a9b8f6d645d4d91bfbe275c25168fa32fe580a67ab43750bf24af3
MISC metadata.xml 273 SHA256 9538d9b03de39acce753f3b37c282c146e6de540b37588aee26b1a2b404dde1d SHA512 fc6f519c6b13824ab049e7f416cb4dd32146d9c52098a40b26c98e691781d1fff5ff0197456cef78ecc644da993ea6fcff1d370cd1fbb8c8365aba2f25dcf141 WHIRLPOOL e49afc5a4caac6f76ed53f026062f18608274aea56e1a86493043a21e9dcb293321acc94fc843666f8920c2d85e5d81b684007c9ce4201534b3c61a57697bc4e

View File

@ -0,0 +1,90 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/openslp/files/slpd-init,v 1.4 2007/07/13 13:20:28 uberlord Exp $
depend() {
need net
}
#
# Does nothing if a route exists that supports multicast traffic.
# If no routes supporting multicast traffic exists, the function
# tries to add one. A 0 is returned on success and a 1 on failure.
# One parameter must be passed in. This variable determins verbosity.
# If parameter is non-zero debugging will appear.
#
multicast_route_set() {
PING_OPTIONS_1='-c1 -w1'
PING_OPTIONS_2='-c1 -i1'
MULTICAST_ADDRESS='239.255.255.253'
TMP_FILE=/tmp/route.check
PING_ERROR_NO_ROUTE='unreachable'
MSG_FAILED_TO_FIND='Failed to Detect Multicast Route'
MSG_SUCCESS_ON_FIND='Multicast Route Enabled'
MSG_ADDING_ROUTE='Attempting to Add Multicast Route ...'
MSG_FAILED_TO_ADD=' FAILED - Route NOT Added.'
MSG_SUCCES_ON_ADD=' SUCCESS - Route Added.'
CMD_GET_INTERFACE="netstat -i | awk 'BEGIN{}(NR>2)&&(!/^lo*/){print \$1}'"
CMD_ADD_ROUTE="route add -net 224.0.0.0 netmask 240.0.0.0"
ping $PING_OPTIONS_1 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null
if [ $? = 2 ]; then
ping $PING_OPTIONS_2 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null
fi
grep $PING_ERROR_NO_ROUTE $TMP_FILE > /dev/null 2>&1
err_unreachable_found=$?
#If errors, add route. Otherwise, do nothing
if [ -s $TMP_FILE ] && [ $err_unreachable_found = 0 ]; then
if [ $1 != 0 ]; then
echo $MSG_FAILED_TO_FIND
echo $MSG_ADDING_ROUTE
fi
$CMD_ADD_ROUTE `eval $CMD_GET_INTERFACE` > /dev/null 2>&1
retval=$?
if [ $1 != 0 ]; then
if [ $retval = 0 ]; then
echo $MSG_SUCCES_ON_ADD
else
echo $MSG_FAILED_TO_ADD
fi
fi
else
if [ $1 != 0 ]; then
echo -n $MSG_SUCCESS_ON_FIND
fi
retval=0
fi
rm -f $TMP_FILE # Clean up
return $retval
}
checkconfig() {
multicast_route_set 0
if [ $? -ne 0 ]; then
eerror "No route available for multicast traffic!"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting Twonky Media Server 7"
start-stop-daemon --start --quiet --exec /opt/twonkymedia/twonkystarter \
--chdir /opt/twonkymedia --pidfile /var/run/mediaserver.pid
eend $?
}
stop() {
ebegin "Stopping Twonky Media Server 7"
start-stop-daemon --stop --quiet --pidfile /var/run/mediaserver.pid
eend $?
}

View File

@ -0,0 +1,85 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils multilib
SUFFIX="zip"
X86_AT="twonky-i386-glibc-2.2.5-free-${PV}.${SUFFIX}"
AMD64_AT="twonky-i386-glibc-2.2.5-free-${PV}.${SUFFIX}"
ARMV5_AT="twonky-kirkwood-special-${PV}.${SUFFIX}"
# not tested on armv6
ARMV6_AT="twonky-armel-glibc-2.2.5-special-${PV}.${SUFFIX}"
ARMV7_AT="twonky-armel-glibc-2.2.5-special-${PV}.${SUFFIX}"
DESCRIPTION="Stream your Media to the devices on your Netowrk"
HOMEPAGE="http://www.twonky.com/"
URL_BASE="http://www.twonkyforum.com/downloads/${PV}"
URL_SPECIAL="http://www.twonkyforum.com/downloads/${PV}-Special"
SRC_URI="arm? ( ${URL_SPECIAL}/${ARMV5_AT}
${URL_SPECIAL}/${ARMV6_AT}
${URL_SPECIAL}/${ARMV7_AT} )
x86? ( ${URL_BASE}/${X86_AT} )
amd64? ( ${URL_BASE}/${X86_AT} )"
SLOT="0"
LICENSE="as-is"
KEYWORDS="~amd64 ~arm ~x86"
RESTRICT="strip"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND="sys-libs/glibc
sys-devel/gcc"
QA_EXECSTACK="opt/twonkymedia/twonkystarter
opt/twonkymedia/cgi-bin/convert
opt/twonkymedia/cgi-bin/cgi-jpegscale
opt/twonkymedia/twonkywebdav
opt/twonkymedia/twonkyproxy
opt/twonkymedia/plugins/itunes-import
opt/twonkymedia/twonkyserver"
S="${WORKDIR}"
src_unpack() {
einfo "Unpacking for arch ${CHOST/-*/}"
if [[ ${CHOST/-*/} = "armv5tel" ]]; then
unpack ${ARMV5_AT}
elif [[ ${CHOST/-*/} = "armv6j" ]]; then
unpack ${ARMV6_AT}
elif [[ ${CHOST/-*/} = "armv7a" ]]; then
unpack ${ARMV7_AT}
elif [[ ${ARCH} = "x86" ]]; then
unpack ${X86_AT}
elif [[ ${ARCH} = "amd64" ]]; then
unpack ${X86_AT}
fi
}
src_compile() { :; }
src_install() {
local dirs="cgi-bin plugins resources"
dodir /opt/${PN}
cp -pPR $dirs "${D}/opt/${PN}/" || die "failed to copy"
insinto /opt/${PN}
doins radio.m3u *.xml *.html *.ini
exeinto /opt/${PN}
doexe twonkyproxy twonkyserver twonkystarter twonkywebdav
dodoc Linux-HowTo.txt twonky.sh *.pdf || die
newinitd "${FILESDIR}"/twonkymedia7.initd twonkymedia
keepdir /var/twonky
}
#pkg_postinst() {
#}