user/airsonic-advanced: removed due to inclusion in aport
This commit is contained in:
parent
a5b94b2d69
commit
802ddd7a00
4 changed files with 0 additions and 241 deletions
|
@ -1,44 +0,0 @@
|
|||
# Maintainer: Antoine Martin <dev@ayakael.net>
|
||||
|
||||
pkgname=airsonic-advanced
|
||||
_pkgver=11.0.0
|
||||
_snapshot=20211119194245
|
||||
pkgver=${_pkgver}.${_snapshot}
|
||||
_pkgver=${_pkgver}-SNAPSHOT.${_snapshot}
|
||||
pkgrel=1
|
||||
pkgdesc="A free, web-based media streamer and jukebox."
|
||||
arch='noarch'
|
||||
url="https://github.com/airsonic-advanced/airsonic-advanced/"
|
||||
license='GPL3'
|
||||
depends="openjdk11-jre flac lame ffmpeg"
|
||||
backup='etc/airsonic/airsonic.conf'
|
||||
noextract=airsonic.war
|
||||
source="$pkgname-$_pkgver.war::https://github.com/airsonic-advanced/airsonic-advanced/releases/download/${_pkgver}/airsonic.war
|
||||
airsonic.conf
|
||||
airsonic.initd
|
||||
airsonic.sh"
|
||||
subpackages="$pkgname-openrc"
|
||||
provides="airsonic"
|
||||
options="!check"
|
||||
|
||||
package() {
|
||||
cd ${srcdir}
|
||||
mkdir -p $pkgdir/var/lib/airsonic
|
||||
mkdir -p $pkgdir/etc/init.d
|
||||
mkdir -p $pkgdir/etc/conf.d
|
||||
mkdir -p $pkgdir/etc/airsonic
|
||||
mkdir -p $pkgdir/usr/bin
|
||||
|
||||
install -Dm755 $srcdir/airsonic-advanced-$_pkgver.war $pkgdir/var/lib/airsonic/airsonic.war
|
||||
install -Dm755 $srcdir/airsonic.initd $pkgdir/etc/init.d/airsonic
|
||||
install -Dm644 $srcdir/airsonic.conf $pkgdir/etc/conf.d/airsonic
|
||||
ln -s /etc/conf.d/airsonic $pkgdir/etc/airsonic/airsonic.conf
|
||||
install -Dm755 $srcdir/airsonic.sh $pkgdir/usr/bin/airsonic
|
||||
|
||||
}
|
||||
sha512sums="
|
||||
be8e5485a0119589f82efd958250bc022cc0d499d2ccb961691e9a2056ae53d4c89f817068106cde70ce5d870fb10e3dcfdc169cff7805dd29e2c4b84927fb43 airsonic-advanced-11.0.0-SNAPSHOT.20211119194245.war
|
||||
0d0c543986a7db15202667461796ed1281e90c0f9c1b5b44bc0df48693f8b1f604b333bef54408c598c23bd9173b8641f102ad7f24ed7abf3316c61d0ca82cb6 airsonic.conf
|
||||
1f190647bac0b09153de9121c7bb7a4d7ed316a388bbea7087f2a39d2cbe937b3b2f75c4598f887baf9110a4aa2b31745aadf1cade0dfe6a0e4d0f06b00facce airsonic.initd
|
||||
cebf02fb303fa2587c35c06b86fa0235033aa991f74492ed14b8a777793ba2d832cc67fb66aab0ea5272513960314fafd217d7be32101fc47acb44ea68e03c4c airsonic.sh
|
||||
"
|
|
@ -1,19 +0,0 @@
|
|||
# Host and port to listen on
|
||||
AIRSONIC_HOST=127.0.0.1
|
||||
AIRSONIC_PORT=8080
|
||||
|
||||
# To disable https, set to 0
|
||||
AIRSONIC_HTTPS_PORT=0
|
||||
|
||||
AIRSONIC_CONTEXT_PATH=/
|
||||
AIRSONIC_MAX_MEMORY=1024
|
||||
|
||||
# Music directories
|
||||
AIRSONIC_DEFAULT_MUSIC_FOLDER=/var/music
|
||||
AIRSONIC_DEFAULT_PODCAST_FOLDER=/var/music/Podcast
|
||||
AIRSONIC_DEFAULT_PLAYLIST_FOLDER=/var/playlists
|
||||
|
||||
NICELEVEL=0
|
||||
|
||||
# Further subsonic start script options, if ever needed
|
||||
AIRSONIC_OPTS="
|
|
@ -1,43 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
AIRSONIC_HOME=${AIRSONIC_HOME:-/var/lib/${SVCNAME}}
|
||||
AIRSONIC_USER=${AIRSONIC_USER:-${SVCNAME}}
|
||||
PIDFILE=/run/airsonic/airsonic.pid
|
||||
|
||||
depend() {
|
||||
after net
|
||||
}
|
||||
|
||||
start() {
|
||||
checkpath -dq -o airsonic:airsonic -m 755 /run/airsonic/
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon \
|
||||
--start --user "${AIRSONIC_USER}" --name airsonic \
|
||||
--env HOME="${AIRSONIC_HOME}" --exec /usr/bin/airsonic \
|
||||
--pidfile="${PIDFILE}" \
|
||||
--nicelevel "${NICELEVEL}" \
|
||||
-- \
|
||||
--home="${AIRSONIC_HOME}" \
|
||||
--host="${AIRSONIC_HOST}" \
|
||||
--port="${AIRSONIC_PORT}" \
|
||||
--https-port="${AIRSONIC_HTTPS_PORT}" \
|
||||
--context-path="${AIRSONIC_CONTEXT_PATH}" \
|
||||
--max-memory="${AIRSONIC_MAX_MEMORY}" \
|
||||
--pidfile="${PIDFILE}" \
|
||||
--default-music-folder="${AIRSONIC_DEFAULT_MUSIC_FOLDER}" \
|
||||
--default-podcast-folder="${AIRSONIC_DEFAULT_PODCAST_FOLDER}" \
|
||||
--default-playlist-folder="${AIRSONIC_DEFAULT_PLAYLIST_FOLDER}" \
|
||||
--quiet
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
start-stop-daemon --stop --user "${AIRSONIC_USER}" \
|
||||
--pidfile "${PIDFILE}" \
|
||||
--wait 15000 \
|
||||
--progress
|
||||
eend $?
|
||||
}
|
||||
|
|
@ -1,135 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
###################################################################################
|
||||
# Shell script for starting Airsonic. See http://airsonic.org.
|
||||
#
|
||||
# Author: Sindre Mehus
|
||||
###################################################################################
|
||||
|
||||
AIRSONIC_HOME=/var/lib/airsonic
|
||||
AIRSONIC_HOST=127.0.0.1
|
||||
AIRSONIC_PORT=8080
|
||||
AIRSONIC_HTTPS_PORT=0
|
||||
AIRSONIC_CONTEXT_PATH=/
|
||||
AIRSONIC_MAX_MEMORY=150
|
||||
AIRSONIC_PIDFILE=
|
||||
AIRSONIC_DEFAULT_MUSIC_FOLDER=/var/lib/media/music
|
||||
AIRSONIC_DEFAULT_PODCAST_FOLDER=/var/lib/media/podcasts
|
||||
AIRSONIC_DEFAULT_PLAYLIST_FOLDER=/var/lib/media/playlists
|
||||
|
||||
quiet=0
|
||||
|
||||
usage() {
|
||||
echo "Usage: airsonic.sh [options]"
|
||||
echo " --help This small usage guide."
|
||||
echo " --home=DIR The directory where Airsonic will create files."
|
||||
echo " Make sure it is writable. Default: /var/airsonic"
|
||||
echo " --host=HOST The host name or IP address on which to bind Airsonic."
|
||||
echo " Only relevant if you have multiple network interfaces and want"
|
||||
echo " to make Airsonic available on only one of them. The default value"
|
||||
echo " will bind Airsonic to all available network interfaces. Default: 0.0.0.0"
|
||||
echo " --port=PORT The port on which Airsonic will listen for"
|
||||
echo " incoming HTTP traffic. Default: 4040"
|
||||
echo " --https-port=PORT The port on which Airsonic will listen for"
|
||||
echo " incoming HTTPS traffic. Default: 0 (disabled)"
|
||||
echo " --context-path=PATH The context path, i.e., the last part of the Airsonic"
|
||||
echo " URL. Typically '/' or '/airsonic'. Default '/'"
|
||||
echo " --max-memory=MB The memory limit (max Java heap size) in megabytes."
|
||||
echo " Default: 100"
|
||||
echo " --pidfile=PIDFILE Write PID to this file. Default not created."
|
||||
echo " --quiet Don't print anything to standard out. Default false."
|
||||
echo " --default-music-folder=DIR Configure Airsonic to use this folder for music. This option "
|
||||
echo " only has effect the first time Airsonic is started. Default '/var/music'"
|
||||
echo " --default-podcast-folder=DIR Configure Airsonic to use this folder for Podcasts. This option "
|
||||
echo " only has effect the first time Airsonic is started. Default '/var/music/Podcast'"
|
||||
echo " --default-playlist-folder=DIR Configure Airsonic to use this folder for playlists. This option "
|
||||
echo " only has effect the first time Airsonic is started. Default '/var/playlists'"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Parse arguments.
|
||||
while [ $# -ge 1 ]; do
|
||||
case $1 in
|
||||
--help)
|
||||
usage
|
||||
;;
|
||||
--home=?*)
|
||||
AIRSONIC_HOME=${1#--home=}
|
||||
;;
|
||||
--host=?*)
|
||||
AIRSONIC_HOST=${1#--host=}
|
||||
;;
|
||||
--port=?*)
|
||||
AIRSONIC_PORT=${1#--port=}
|
||||
;;
|
||||
--https-port=?*)
|
||||
AIRSONIC_HTTPS_PORT=${1#--https-port=}
|
||||
;;
|
||||
--context-path=?*)
|
||||
AIRSONIC_CONTEXT_PATH=${1#--context-path=}
|
||||
;;
|
||||
--max-memory=?*)
|
||||
AIRSONIC_MAX_MEMORY=${1#--max-memory=}
|
||||
;;
|
||||
--pidfile=?*)
|
||||
AIRSONIC_PIDFILE=${1#--pidfile=}
|
||||
;;
|
||||
--quiet)
|
||||
quiet=1
|
||||
;;
|
||||
--default-music-folder=?*)
|
||||
AIRSONIC_DEFAULT_MUSIC_FOLDER=${1#--default-music-folder=}
|
||||
;;
|
||||
--default-podcast-folder=?*)
|
||||
AIRSONIC_DEFAULT_PODCAST_FOLDER=${1#--default-podcast-folder=}
|
||||
;;
|
||||
--default-playlist-folder=?*)
|
||||
AIRSONIC_DEFAULT_PLAYLIST_FOLDER=${1#--default-playlist-folder=}
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# Use JAVA_HOME if set, otherwise assume java is in the path.
|
||||
JAVA=java
|
||||
if [ -e "${JAVA_HOME}" ]
|
||||
then
|
||||
JAVA=${JAVA_HOME}/bin/java
|
||||
fi
|
||||
|
||||
# Create Airsonic home directory.
|
||||
mkdir -p ${AIRSONIC_HOME}
|
||||
LOG=${AIRSONIC_HOME}/airsonic_sh.log
|
||||
rm -f ${LOG}
|
||||
|
||||
cd $(dirname $0)
|
||||
if [ -L $0 ] && ([ -e /bin/readlink ] || [ -e /usr/bin/readlink ]); then
|
||||
cd $(dirname $(readlink $0))
|
||||
fi
|
||||
|
||||
${JAVA} -Xmx${AIRSONIC_MAX_MEMORY}m \
|
||||
-Dairsonic.home=${AIRSONIC_HOME} \
|
||||
-Dairsonic.host=${AIRSONIC_HOST} \
|
||||
-Dairsonic.port=${AIRSONIC_PORT} \
|
||||
-Dairsonic.httpsPort=${AIRSONIC_HTTPS_PORT} \
|
||||
-Dairsonic.contextPath=${AIRSONIC_CONTEXT_PATH} \
|
||||
-Dairsonic.defaultMusicFolder=${AIRSONIC_DEFAULT_MUSIC_FOLDER} \
|
||||
-Dairsonic.defaultPodcastFolder=${AIRSONIC_DEFAULT_PODCAST_FOLDER} \
|
||||
-Dairsonic.defaultPlaylistFolder=${AIRSONIC_DEFAULT_PLAYLIST_FOLDER} \
|
||||
-Djava.awt.headless=true \
|
||||
-verbose:gc \
|
||||
-jar ${AIRSONIC_HOME}/airsonic.war > ${LOG} 2>&1 &
|
||||
|
||||
# Write pid to pidfile if it is defined.
|
||||
if [ $AIRSONIC_PIDFILE ]; then
|
||||
echo $! > ${AIRSONIC_PIDFILE}
|
||||
fi
|
||||
|
||||
if [ $quiet = 0 ]; then
|
||||
echo Started Airsonic [PID $!, ${LOG}]
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in a new issue