X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by lists.alpinelinux.org (Postfix) with ESMTP id 10610F84CD2 for ; Sun, 17 Mar 2019 04:57:33 +0000 (UTC) Received: by mail-pg1-f172.google.com with SMTP id h8so9126164pgp.6 for ; Sat, 16 Mar 2019 21:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chave-us.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=bhVpvmo/7hw1ssM1jULWZnU3KGae6kH9iFxk1koYNxw=; b=r4yw8xSMT5SUueOvBL1GURVgOL39xdXkP7wf6U2q3RhQqV6g+s0Ao4B+R2B6CY0xy8 lvH8G7Q+WqfkIHawkScOcZpdNZQEWX4cZLKp5yvMUYmBsf9iVIv/g0HyZf/FZKbK4D2n DW0fkwntH8m9BddZEqC2fQOwsPM58IZb/m4oLRR7MYGKazddu0vhiZwiN+Cp+g/LySrq y7TmQKvuWpnfosZIUcynUO9Lhq31rSgkBvwMJs2pvs5W+kEa6slSIva2qARbsVLHXOno 5PohetVUgzuI47vzsPtgY85QqsQSNxCjjtM77VnHSy3b+nRmXqmIGnZ5W5tT5iKkNzGv dDMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bhVpvmo/7hw1ssM1jULWZnU3KGae6kH9iFxk1koYNxw=; b=ZGy9H6FDOlImBi2yBDlYr6KauVK2BG0D79p1l4r1HuCP+xD9DmXYHB6+fyz2RSguEj iiUZuLS32dn3sCY4OOBUPWOtWMI3V1ru1QFzD14pef2KiDlw8uaoiHrRSaN1gtY1ypeY 86bFMJKDXmK5MgCQsbrqZsgWN7BXntvoMX66ir9Vzj7zHNvgmAOnCsOJz7HCcq3tdLbd Wg7ORkMk+PCD9NXRQazUjEjzger6/vwqnvPXIaZ86+dE3BgSNjNySOOM1sOsg9mrUtuP kfcjg3ImAuiIbXAllSpJo+fdU1c57zjxqnc9SUPiag4D4vWqZ99IlQ50QvuWZtn2ppYk 7t8g== X-Gm-Message-State: APjAAAUP40/+XHe4PyKRFUlWJ4hja+3zMlj18FJAt/tuWPcToP8ADFU5 w5ivj5Mv3vKMKN8cXH6KOb0nvw9Zlzs96x7EY2CHNyGDof4= X-Google-Smtp-Source: APXvYqwZZQ4EzGHsLfY+3MUPGptOudyKYdPUmRNpIGwKkOxGqLIYrpYGdd2/UrJNiYeqZEQ3jkyD5dMfOzs0BxCXyUs= X-Received: by 2002:a17:902:8a8b:: with SMTP id p11mr13083689plo.162.1552798652160; Sat, 16 Mar 2019 21:57:32 -0700 (PDT) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 From: Carl Chave Date: Sun, 17 Mar 2019 00:57:21 -0400 Message-ID: Subject: [alpine-aports] [PATCH] testing/squeezelite: new aport To: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="00000000000011f69e0584431c77" --00000000000011f69e0584431c77 Content-Type: text/plain; charset="UTF-8" From: Carl Chave Date: Sat, 16 Mar 2019 23:37:41 -0500 Subject: [PATCH] testing/squeezelite: new aport https://github.com/ralph-irving/squeezelite Lightweight headless squeezebox player for Logitech Media Server --- testing/squeezelite/APKBUILD | 37 ++++++++++++++++++++ testing/squeezelite/squeezelite.confd | 31 ++++++++++++++++ testing/squeezelite/squeezelite.initd | 31 ++++++++++++++++ testing/squeezelite/squeezelite.post-install | 12 +++++++ testing/squeezelite/squeezelite.pre-install | 5 +++ 5 files changed, 116 insertions(+) create mode 100644 testing/squeezelite/APKBUILD create mode 100644 testing/squeezelite/squeezelite.confd create mode 100644 testing/squeezelite/squeezelite.initd create mode 100644 testing/squeezelite/squeezelite.post-install create mode 100644 testing/squeezelite/squeezelite.pre-install diff --git a/testing/squeezelite/APKBUILD b/testing/squeezelite/APKBUILD new file mode 100644 index 0000000000..e701db7868 --- /dev/null +++ b/testing/squeezelite/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Carl Chave +# Maintainer: +pkgname=squeezelite +pkgver=1.9.1.1130 +pkgrel=0 +pkgdesc="Lightweight headless squeezebox player for Logitech Media Server" +url="https://github.com/ralph-irving/squeezelite" +arch="all" +license="GPL-3.0-or-later3" +options="!check" # No test suite +depends="flac alsa-lib faad2 mpg123 libvorbis libmad" +makedepends="flac-dev alsa-lib-dev faad2-dev mpg123-dev libvorbis-dev libmad-dev" +install="$pkgname.pre-install $pkgname.post-install" +subpackages="$pkgname-doc $pkgname-openrc" +source="$pkgname-$pkgver.zip:: https://github.com/ralph-irving/squeezelite/archive/master.zip $pkgname.confd $pkgname.initd" +builddir="$srcdir/$pkgname-master" + +build() { + cd "$builddir" + make +} + +package() { + cd "$builddir" + install -Dm 755 squeezelite \ + "$pkgdir"/usr/bin/squeezelite + install -Dm 644 doc/squeezelite.1 \ + "$pkgdir"/usr/share/man/man1/squeezelite.1 + install -Dm 644 "$srcdir"/squeezelite.confd \ + "$pkgdir"/etc/conf.d/squeezelite + install -Dm 755 "$srcdir"/squeezelite.initd \ + "$pkgdir"/etc/init.d/squeezelite +} + +sha512sums="d1c8c8830b60703b7dab47acd08b03d07fb6796f85605d44a635fe0cfe2da1c55d3ada76fe594881495e0790ce7a8b388f2f90657d26edbe47f45f3e2034fc6f squeezelite-1.9.1.1130.zip +ff552fcbbbf2b2291958fa1c61057f54ba0d9b19620666036dd1e19897b5d7bcc543c40699c3ee53b2eec7a38b9cf46cb9205c2048f7d5488c23085d9904f114 squeezelite.confd +38f69c55cda7f58e66cf913718ab245a9f08545e223d6d5b3f6ebd6185df0a35338dc7607b6318fa85787c8b7a606500f79e755a624e2be95138a79d4878f3e4 squeezelite.initd" diff --git a/testing/squeezelite/squeezelite.confd b/testing/squeezelite/squeezelite.confd new file mode 100644 index 0000000000..86235b41dc --- /dev/null +++ b/testing/squeezelite/squeezelite.confd @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Configuration for /etc/init.d/squeezelite + +# IP address of Logitech Media Server; leave this blank to try to +# locate the server via auto-discovery. +# If you fill this in then include "-s" before the IP address, eg: +# SL_SERVER_IP="-s 1.2.3.4" +SL_SERVERIP="" + +# User that Squeezelite should run as. The dedicated 'squeezelite' +# user is preferred to avoid running with high privilege. This user +# should be a member of the 'audio' group to allow access to the audio +# hardware. Running as the 'root' user allows the sound output thread +# to run at a very high priority -- this can help avoid gaps in +# playback, but could be a potential security problem if there are +# exploitable vulnerabilities in Squeezelite. +SL_USER=squeezelite + +# Any other switches to pass to Squeezelite. See 'squeezelite -h' for +# a description of all possible switches. + +# Example setting: +# 1. the ALSA output device +# 2. the player name +# 3. turning on visualiser support (-v) +# +# SL_OPTS="-o sysdefault -n $HOSTNAME -v" +# +SL_OPTS="" diff --git a/testing/squeezelite/squeezelite.initd b/testing/squeezelite/squeezelite.initd new file mode 100644 index 0000000000..e9bb6b0722 --- /dev/null +++ b/testing/squeezelite/squeezelite.initd @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net + use alsasound + after bootmisc +} + +start() { + ebegin "Starting squeezelite" + start-stop-daemon \ + --start \ + --exec /usr/bin/squeezelite \ + --pidfile /run/squeezelite.pid \ + --make-pidfile \ + --user ${SL_USER} \ + --background \ + -- ${SL_OPTS} ${SL_SERVERIP} + eend $? +} + +stop() { + ebegin "Stopping squeezelite" + start-stop-daemon \ + --stop \ + --exec /usr/bin/squeezelite \ + --pidfile /run/squeezelite.pid + eend $? +} diff --git a/testing/squeezelite/squeezelite.post-install b/testing/squeezelite/squeezelite.post-install new file mode 100644 index 0000000000..120c10e7b7 --- /dev/null +++ b/testing/squeezelite/squeezelite.post-install @@ -0,0 +1,12 @@ +#!/bin/sh + +cat >&2 </dev/null + +exit 0 -- 2.20.1 --00000000000011f69e0584431c77 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
From: Carl Chave <online@chave.us>
Date: Sat, 16 Mar 2019 23:37:41 -= 0500
Subject: [PATCH] testing/squeezelite: new aport

https://github.com/ralph-irving= /squeezelite
Lightweight headless squeezebox player for Logitech Med= ia Server
---
=C2=A0testing/squeezelite/APKBUILD=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= | 37 ++++++++++++++++++++
=C2=A0testing/squeezelite/squeezelite.confd= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 31 ++++++++++++++++
=C2=A0t= esting/squeezelite/squeezelite.initd=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 | 31 ++++++++++++++++
=C2=A0testing/squeezelite/squeezelite.post-ins= tall | 12 +++++++
=C2=A0testing/squeezelite/squeezelite.pre-install=C2= =A0 |=C2=A0 5 +++
=C2=A05 files changed, 116 insertions(+)
=C2=A0crea= te mode 100644 testing/squeezelite/APKBUILD
=C2=A0create mode 100644 tes= ting/squeezelite/squeezelite.confd
=C2=A0create mode 100644 testing/sque= ezelite/squeezelite.initd
=C2=A0create mode 100644 testing/squeezelite/s= queezelite.post-install
=C2=A0create mode 100644 testing/squeezelite/squ= eezelite.pre-install

diff --git a/testing/squeezelite/APKBUILD b/tes= ting/squeezelite/APKBUILD
new file mode 100644
index 0000000000..e701= db7868
--- /dev/null
+++ b/testing/squeezelite/APKBUILD
@@ -0,0 +1= ,37 @@
+# Contributor: Carl Chave <online@chave.us>
+# Maintainer:
+pkgname=3Dsqueezelite
+pk= gver=3D1.9.1.1130
+pkgrel=3D0
+pkgdesc=3D"Lightweight headless s= queezebox player for Logitech Media Server"
+url=3D"https://github.com/ralph-irvi= ng/squeezelite"
+arch=3D"all"
+license=3D"GPL= -3.0-or-later3"
+options=3D"!check" # No test suite
+d= epends=3D"flac alsa-lib faad2 mpg123 libvorbis libmad"
+makede= pends=3D"flac-dev alsa-lib-dev faad2-dev mpg123-dev libvorbis-dev libm= ad-dev"
+install=3D"$pkgname.pre-install $pkgname.post-install= "
+subpackages=3D"$pkgname-doc $pkgname-openrc"
+sourc= e=3D"$pkgname-$pkgver.zip::https://github.com/ralph-irving/squeezelite= /archive/master.zip $pkgname.confd $pkgname.initd"
+builddir=3D= "$srcdir/$pkgname-master"
+
+build() {
+=C2=A0=C2=A0=C2= =A0 cd "$builddir"
+=C2=A0=C2=A0=C2=A0 make
+}
+
+pac= kage() {
+=C2=A0=C2=A0=C2=A0 cd "$builddir"
+=C2=A0=C2=A0= =C2=A0 install -Dm 755 squeezelite \
+=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 "$pkgdir"/usr/bin/squeezelite
+=C2=A0=C2=A0=C2=A0 install = -Dm 644 doc/squeezelite.1 \
+=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 "= ;$pkgdir"/usr/share/man/man1/squeezelite.1
+=C2=A0=C2=A0=C2=A0 inst= all -Dm 644 "$srcdir"/squeezelite.confd \
+=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 "$pkgdir"/etc/conf.d/squeezelite
+=C2=A0=C2= =A0=C2=A0 install -Dm 755 "$srcdir"/squeezelite.initd \
+=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 "$pkgdir"/etc/init.d/squeezeli= te
+}
+
+sha512sums=3D"d1c8c8830b60703b7dab47acd08b03d07fb679= 6f85605d44a635fe0cfe2da1c55d3ada76fe594881495e0790ce7a8b388f2f90657d26edbe4= 7f45f3e2034fc6f=C2=A0 squeezelite-1.9.1.1130.zip
+ff552fcbbbf2b2291958fa= 1c61057f54ba0d9b19620666036dd1e19897b5d7bcc543c40699c3ee53b2eec7a38b9cf46cb= 9205c2048f7d5488c23085d9904f114=C2=A0 squeezelite.confd
+38f69c55cda7f58= e66cf913718ab245a9f08545e223d6d5b3f6ebd6185df0a35338dc7607b6318fa85787c8b7a= 606500f79e755a624e2be95138a79d4878f3e4=C2=A0 squeezelite.initd"
dif= f --git a/testing/squeezelite/squeezelite.confd b/testing/squeezelite/squee= zelite.confd
new file mode 100644
index 0000000000..86235b41dc
---= /dev/null
+++ b/testing/squeezelite/squeezelite.confd
@@ -0,0 +1,31 = @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the = terms of the GNU General Public License v2
+
+# Configuration for /et= c/init.d/squeezelite
+
+# IP address of Logitech Media Server; leave = this blank to try to
+# locate the server via auto-discovery.
+# If y= ou fill this in then include "-s" before the IP address, eg:
+= #=C2=A0 SL_SERVER_IP=3D"-s 1.2.3.4"
+SL_SERVERIP=3D""= ;
+
+# User that Squeezelite should run as. The dedicated 'squeez= elite'
+# user is preferred to avoid running with high privilege. Th= is user
+# should be a member of the 'audio' group to allow acce= ss to the audio
+# hardware. Running as the 'root' user allows t= he sound output thread
+# to run at a very high priority -- this can hel= p avoid gaps in
+# playback, but could be a potential security problem i= f there are
+# exploitable vulnerabilities in Squeezelite.
+SL_USER= =3Dsqueezelite
+
+# Any other switches to pass to Squeezelite. See &#= 39;squeezelite -h' for
+# a description of all possible switches.+
+# Example setting:
+#=C2=A0 1. the ALSA output device
+#=C2=A0= 2. the player name
+#=C2=A0 3. turning on visualiser support (-v)
+#=
+# SL_OPTS=3D"-o sysdefault -n $HOSTNAME -v"
+#
+SL_OPT= S=3D""
diff --git a/testing/squeezelite/squeezelite.initd b/te= sting/squeezelite/squeezelite.initd
new file mode 100644
index 000000= 0000..e9bb6b0722
--- /dev/null
+++ b/testing/squeezelite/squeezelite.= initd
@@ -0,0 +1,31 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 = Gentoo Foundation
+# Distributed under the terms of the GNU General Publ= ic License v2
+
+depend() {
+=C2=A0=C2=A0=C2=A0 need net
+=C2= =A0=C2=A0=C2=A0 use alsasound
+=C2=A0=C2=A0=C2=A0 after bootmisc
+}+
+start() {
+=C2=A0=C2=A0=C2=A0 ebegin "Starting squeezelite&= quot;
+=C2=A0=C2=A0=C2=A0 start-stop-daemon \
+=C2=A0=C2=A0=C2=A0 --s= tart \
+=C2=A0=C2=A0=C2=A0 --exec /usr/bin/squeezelite \
+=C2=A0=C2= =A0=C2=A0 --pidfile /run/squeezelite.pid \
+=C2=A0=C2=A0=C2=A0 --make-pi= dfile \
+=C2=A0=C2=A0=C2=A0 --user ${SL_USER} \
+=C2=A0=C2=A0=C2=A0 -= -background \
+=C2=A0=C2=A0=C2=A0 -- ${SL_OPTS} ${SL_SERVERIP}
+=C2= =A0=C2=A0=C2=A0 eend $?
+}
+
+stop() {
+=C2=A0=C2=A0=C2=A0 ebeg= in "Stopping squeezelite"
+=C2=A0=C2=A0=C2=A0 start-stop-daemo= n \
+=C2=A0=C2=A0=C2=A0 --stop \
+=C2=A0=C2=A0=C2=A0 --exec /usr/bin/= squeezelite \
+=C2=A0=C2=A0=C2=A0 --pidfile /run/squeezelite.pid
+=C2= =A0 eend $?
+}
diff --git a/testing/squeezelite/squeezelite.post-inst= all b/testing/squeezelite/squeezelite.post-install
new file mode 100644<= br>index 0000000000..120c10e7b7
--- /dev/null
+++ b/testing/squeezeli= te/squeezelite.post-install
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+cat = >&2 <<EOF
+*
+* If you want start Squeezelite automatica= lly on system boot:
+* rc-update add squeezelite default
+* Edit /etc= /cond.d/squeezelite to customize -- in particular
+* you may want to set= the audio device to be used.
+*
+EOF
+
+exit 0
diff --git a= /testing/squeezelite/squeezelite.pre-install b/testing/squeezelite/squeezel= ite.pre-install
new file mode 100644
index 0000000000..19da2ab1d3
= --- /dev/null
+++ b/testing/squeezelite/squeezelite.pre-install
@@ -0= ,0 +1,5 @@
+#!/bin/sh
+
+adduser -S -D -H -h /dev/null -s /sbin/no= login -G audio -g squeezelite squeezelite 2>/dev/null
+
+exit 0--
2.20.1

--00000000000011f69e0584431c77-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---