pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

audio/owntone: import version 28.4



Module Name:	pkgsrc-wip
Committed By:	Andrew Cagney <andrew.cagney%gmail.com@localhost>
Pushed By:	cagney
Date:		Fri Jun 17 22:04:02 2022 +0000
Changeset:	87ddeae198b54351b5296417bdebb07fa89bfd07

Added Files:
	owntone/COMMIT_MSG
	owntone/DESCR
	owntone/Makefile
	owntone/PLIST
	owntone/TODO
	owntone/distinfo
	owntone/files/owntone.sh

Log Message:
audio/owntone: import version 28.4

OwnTone is an open source (audio) media server.

Owntone allows sharing and streaming your media library to iTunes
(DAAP1), Roku (RSP), AirPlay devices (multiroom), Chromecast and also
supports local playback.

You can control OwnTone via its web interface, Apple Remote (and
compatible DAAP/DACP clients), MPD clients or via its JSON API.

Besides serving your local music, podcast and audiobook media files,
OwnTone supports internet radios and Spotify (requires Spotify premium
account).

Prior to version 28, OwnTone was called forked-daapd, which again was
a rewrite of mt-daapd (Firefly Media Server).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=87ddeae198b54351b5296417bdebb07fa89bfd07

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 owntone/COMMIT_MSG       | 17 ++++++++++++
 owntone/DESCR            | 15 +++++++++++
 owntone/Makefile         | 69 ++++++++++++++++++++++++++++++++++++++++++++++++
 owntone/PLIST            | 47 +++++++++++++++++++++++++++++++++
 owntone/TODO             |  6 +++++
 owntone/distinfo         |  5 ++++
 owntone/files/owntone.sh | 25 ++++++++++++++++++
 7 files changed, 184 insertions(+)

diffs:
diff --git a/owntone/COMMIT_MSG b/owntone/COMMIT_MSG
new file mode 100644
index 0000000000..4f4bb0dcf2
--- /dev/null
+++ b/owntone/COMMIT_MSG
@@ -0,0 +1,17 @@
+audio/owntone: import version 28.4
+
+OwnTone is an open source (audio) media server.
+
+Owntone allows sharing and streaming your media library to iTunes
+(DAAP1), Roku (RSP), AirPlay devices (multiroom), Chromecast and also
+supports local playback.
+
+You can control OwnTone via its web interface, Apple Remote (and
+compatible DAAP/DACP clients), MPD clients or via its JSON API.
+
+Besides serving your local music, podcast and audiobook media files,
+OwnTone supports internet radios and Spotify (requires Spotify premium
+account).
+
+Prior to version 28, OwnTone was called forked-daapd, which again was
+a rewrite of mt-daapd (Firefly Media Server).
diff --git a/owntone/DESCR b/owntone/DESCR
new file mode 100644
index 0000000000..e6f7012915
--- /dev/null
+++ b/owntone/DESCR
@@ -0,0 +1,15 @@
+OwnTone is an open source (audio) media server.
+
+Owntone allows sharing and streaming your media library to iTunes
+(DAAP1), Roku (RSP), AirPlay devices (multiroom), Chromecast and also
+supports local playback.
+
+You can control OwnTone via its web interface, Apple Remote (and
+compatible DAAP/DACP clients), MPD clients or via its JSON API.
+
+Besides serving your local music, podcast and audiobook media files,
+OwnTone supports internet radios and Spotify (requires Spotify premium
+account).
+
+Prior to version 28, OwnTone was called forked-daapd, which again was
+a rewrite of mt-daapd (Firefly Media Server).
diff --git a/owntone/Makefile b/owntone/Makefile
new file mode 100644
index 0000000000..257612aa18
--- /dev/null
+++ b/owntone/Makefile
@@ -0,0 +1,69 @@
+# $NetBSD$
+
+DISTNAME=	owntone-28.4
+CATEGORIES=	audio
+MASTER_SITES=	${MASTER_SITE_GITHUB:=owntone/owntone-server/releases/download/28.4/}
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://owntone.github.io/owntone-server/
+COMMENT=	Media server for streaming your media library
+LICENSE=	gnu-gpl-v2
+
+OWNTONE_USER?=	owntone
+OWNTONE_GROUP?=	owntone
+PKG_GROUPS=     $(OWNTONE_USER)
+PKG_USERS=      $(OWNTONE_USER):$(OWNTONE_GROUP)
+
+RCD_SCRIPTS=	owntone
+
+CONF_FILES=	etc/owntone.conf
+
+GNU_CONFIGURE=	yes
+
+USE_TOOLS+=	pkg-config
+USE_TOOLS+=	flex
+USE_TOOLS+=	bison
+
+CONFIGURE_ARGS+=	--disable-install_systemd
+
+# Fight ffmpeg/libav
+#
+# Letting pkg-config find it didn't seem to work; and then
+# configure.ac tries to perform a link (reasonable really).
+
+LIBAV_CFLAGS+=		-I$(BUILDLINK_PREFIX.ffmpeg5)/include/ffmpeg5
+LIBAV_LIBS+=		$(BUILDLINK_PREFIX.ffmpeg5)/lib/ffmpeg5/libavformat.so
+LIBAV_LIBS+=		$(BUILDLINK_PREFIX.ffmpeg5)/lib/ffmpeg5/libavcodec.so
+LIBAV_LIBS+=		$(BUILDLINK_PREFIX.ffmpeg5)/lib/ffmpeg5/libavfilter.so
+# Help configure.ac find libdav1d
+LIBAV_LIBS+=		$(BUILDLINK_PREFIX.dav1d)/lib/libdav1d.so
+
+CONFIGURE_ENV+=		'LIBAV_CFLAGS=$(LIBAV_CFLAGS)'
+CONFIGURE_ENV+=		'LIBAV_LIBS=$(LIBAV_LIBS)'
+
+BUILDLINK_API_DEPENDS.libevent+=        libevent>=2.0.0
+#BUILDLINK_API_DEPENDS.protobuf-c=	protbuf-c>=1.3.3nb2
+
+.include "../../net/avahi/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../multimedia/ffmpeg5/buildlink3.mk"
+.include "../../devel/confuse/buildlink3.mk"
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../textproc/mxml/buildlink3.mk"
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/libunistring/buildlink3.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../textproc/libplist/buildlink3.mk"
+.include "../../security/libsodium/buildlink3.mk"
+.include "../../devel/protobuf-c/buildlink3.mk"
+.include "../../audio/alsa-lib/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../www/libwebsockets/buildlink3.mk"
+
+.include "../../devel/libinotify/buildlink3.mk"
+.include "../../multimedia/dav1d/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/owntone/PLIST b/owntone/PLIST
new file mode 100644
index 0000000000..3ab467b702
--- /dev/null
+++ b/owntone/PLIST
@@ -0,0 +1,47 @@
+@comment $NetBSD$
+lib/owntone/owntone-sqlext.la
+man/man8/owntone.8
+sbin/owntone
+share/doc/owntone/README.md
+share/doc/owntone/UPGRADING
+share/doc/owntone/docs/advanced/multiple-instances.md
+share/doc/owntone/docs/advanced/outputs-alsa.md
+share/doc/owntone/docs/advanced/outputs-pulse.md
+share/doc/owntone/docs/advanced/radio-streams.md
+share/doc/owntone/docs/advanced/remote-access.md
+share/doc/owntone/docs/artwork.md
+share/doc/owntone/docs/clients/cli.md
+share/doc/owntone/docs/clients/mpd.md
+share/doc/owntone/docs/clients/remote.md
+share/doc/owntone/docs/clients/supported-clients.md
+share/doc/owntone/docs/clients/web-interface.md
+share/doc/owntone/docs/getting-started.md
+share/doc/owntone/docs/index.md
+share/doc/owntone/docs/installation.md
+share/doc/owntone/docs/integrations/lastfm.md
+share/doc/owntone/docs/integrations/spotify.md
+share/doc/owntone/docs/json-api.md
+share/doc/owntone/docs/library.md
+share/doc/owntone/docs/outputs/airplay.md
+share/doc/owntone/docs/outputs/chromecast.md
+share/doc/owntone/docs/outputs/local-audio.md
+share/doc/owntone/docs/outputs/streaming.md
+share/doc/owntone/docs/playlists.md
+share/doc/owntone/docs/smart-playlists.md
+share/doc/owntone/scripts/pairinghelper.sh
+share/owntone/htdocs/android-chrome-192x192.png
+share/owntone/htdocs/android-chrome-512x512.png
+share/owntone/htdocs/apple-touch-icon.png
+share/owntone/htdocs/assets/index.css
+share/owntone/htdocs/assets/index.js
+share/owntone/htdocs/browserconfig.xml
+share/owntone/htdocs/favicon-16x16.png
+share/owntone/htdocs/favicon-32x32.png
+share/owntone/htdocs/favicon.ico
+share/owntone/htdocs/index.html
+share/owntone/htdocs/mstile-150x150.png
+share/owntone/htdocs/safari-pinned-tab.svg
+share/owntone/htdocs/site.webmanifest
+@pkgdir var/run
+@pkgdir var/log
+@pkgdir var/cache/owntone
diff --git a/owntone/TODO b/owntone/TODO
new file mode 100644
index 0000000000..5011002220
--- /dev/null
+++ b/owntone/TODO
@@ -0,0 +1,6 @@
+it's using /usr/pkg/* for things like pid and db; not sure
+if that's correct.
+
+not sure that ffmpeg5 is correct; 
+
+Need to figure out ALSA so mpd mode can be tested.
diff --git a/owntone/distinfo b/owntone/distinfo
new file mode 100644
index 0000000000..68931a879a
--- /dev/null
+++ b/owntone/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (owntone-28.4.tar.xz) = 10e2bfaae13c99eaa1c1b670bef9c86582ff9e9dfdeee3e017446c31e706f12c
+SHA512 (owntone-28.4.tar.xz) = 57010cbe9b1aec13ed7777c3a7d774a1391fc2a6a62b5bdb31d10107f196f4fbbb79f9899c8a23551913a3f43b7bd60362c89a89cbc3ad4352e377489068f608
+Size (owntone-28.4.tar.xz) = 1041340 bytes
diff --git a/owntone/files/owntone.sh b/owntone/files/owntone.sh
new file mode 100755
index 0000000000..cf03899419
--- /dev/null
+++ b/owntone/files/owntone.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+ 
+# PROVIDE: owntone
+# REQUIRE: avahidaemon dbus
+ 
+# Add the following lines to /etc/rc.conf to enable `owntone':
+#
+# owntone_enable="YES"
+# owntone_flags="<set as needed>"
+ 
+. /etc/rc.subr
+ 
+name="owntone"
+rcvar=$name
+ 
+command="/usr/pkg/sbin/owntone"
+command_args="-P /var/run/owntone.pid"
+pidfile="/var/run/owntone.pid"
+required_files="/usr/pkg/etc/owntone.conf"
+ 
+# read configuration and set defaults
+load_rc_config "$name"
+: ${owntone_enable="NO"}
+ 
+run_rc_command "$1"


Home | Main Index | Thread Index | Old Index