Originariamente inviato da
antonellocaroli
bella domanda...non ho la piú pallida idea.
quello che si puó fare, temporaneamente, finché non esce la versione ufficiale é sostituire l´eseguibile opp metti, sempre temporaneamente, un tar.gz sul tuo repo...e punti la...
Trovato. Basta andare su github via web, selezionare il branch, andare sul "pulsante" per fare il download del branch sotto forma di zip e copiare l'URL corrispondente. Dopo di che sostituire ".zip" con ".tar.gz" ed incollare nell'ebuild:
codice:
--- squeezelite-R2-1.8.3.ebuild 2017-03-11 22:56:04.286658300 +0100
+++ squeezelite-R2-1.8.4-r1.ebuild 2017-03-12 14:48:52.285944664 +0100
@@ -8,7 +8,8 @@
DESCRIPTION="Squeezelite R2 is a small headless Squeezebox emulator using ALSA audio output modified by Marco Curti"
HOMEPAGE="https://github.com/marcoc1712/squeezelite-R2"
-SRC_URI="https://github.com/marcoc1712/${PN}/archive/v${PV}-(R2).tar.gz -> ${P}.tar.gz"
+#SRC_URI="https://github.com/marcoc1712/${PN}/archive/v${PV}-(R2).tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/marcoc1712/squeezelite-R2/archive/Play_DSD_decoded_by_Mansr_sox.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
@@ -43,7 +44,6 @@
src_prepare () {
# Apply patches
epatch "${FILESDIR}/${P}-gentoo-makefile.patch"
- epatch "${FILESDIR}/${P}-gentoo-optional-codecs.patch"
if use pulseaudio ; then
epatch "${FILESDIR}/retry-output_alsa.c.patch"
fi
@@ -53,7 +53,7 @@
src_compile() {
if use dsd; then
append-cflags "-DDSD"
- einfo "dsd support enabled via dsd2pcm"
+ einfo "dsd support enabled"
fi
if use ffmpeg; then
Ho aggiunto un cron job per riavviare automaticamente i servizi in caso di crash:
futro ~ # cat /etc/cron.d/autorestart
codice:
*/5 * * * * root /bin/bash /usr/local/bin/autorestart.sh
futro ~ # cat /usr/local/bin/autorestart.sh
codice:
#!/bin/bash
echo "Checking for crashed services:"
rc_monitor_restart="lighttpd networkaudiod squeezelite-R2 ssh"
for svc in $(rc-status --crashed); do
for chk in $rc_monitor_restart; do
if [ "$chk" = "$svc" ]; then
# We use --nodeps as a restart could stop critical services that depend on us
rc-service $svc -- --nodeps restart
continue 2
fi
done
echo " $svc crashed and requires a manual restart"
done
(...non ancora testato: non so se funziona o ci sono errori)
Ora è la volta di Falcon... e poi finalmente è finito.
BTW: alla fine come si fa a "ripulire"?