From nobody Mon Oct 06 01:02:28 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cg1Fx1rHjz6C82d; Mon, 06 Oct 2025 01:02:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cg1Fx0whRz3gdY; Mon, 06 Oct 2025 01:02:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759712549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kVAbVCXNmnJtKUxXS8PcMhPOPx/RlnFsJWgv48zaNvE=; b=oXvxnQFFGiWsFMkKiv1mjSLID+64Jfy3Kv5eLdHD75ZZFWOM0+pXUM4YJBhEZFMokok+DK U+uxe6JOi71IlYPvbGngOg65chPcd1FUXklQe/3n9SbJrgjl5IdFhqxmYnAt9lO1mwCDmc LI+3bg+5rT1+KPhyQWGAKF8KNa9Y6qbs6bFag2JFuF2oTfimVY3vEHozIPkUgsTz+r7/uJ oBeqIbBCcVzal01BVA4MybEZEIyHDISqknI7D9NUTzgqothwI5M+HaKlm5D31c1/8XLW4c qpq2bXiVR1VZ0ycdfvpZ1bc2/NrW/LqiVS0z1hmTZ2Wu8rxjNdvcmROY4fm8EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759712549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kVAbVCXNmnJtKUxXS8PcMhPOPx/RlnFsJWgv48zaNvE=; b=aapAqOUv/B9Nqz8FHhkBIIiV2cFibPJrON0cJtIKiTUg1keZk0HTyy64wYkAnpaq5lJJ/k im3yusi4SeR6CGoxHG7xFrAOw8Do533zo+m0tgzDnYxoKDDc8inpTVrIybOQ4ftt9/8u8n Y4qjsn7gCSFkTsYWc7flvtdS/6+MQpTz7fLDzQF8FWI//pmdyPx0+T1hW796t5Ay0rUDtV EyPmUlR4LnjWybtsGJRrAgyC/TkjxAn+HRhwV31xg5Mm6a3S84yM1b2zOLJOF9cf/fqwKd n+KHTHTrVOfZjUi4sWvL3lbKyl+3+pBRlR8HHRC9Ze7TOrsw65rpe+NG7Un1yA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759712549; a=rsa-sha256; cv=none; b=BASW5427k9aTSonQiXsb4hNLZwfBR+tcQFrSp4nGRhRrBSzKCj3X5Ot8BM/fGrMAWnLMXX XqizcRapQadqbN+uRrH6Q9s5t4wKSxPqwQacfj1Rsgq6cjcBhGjXpcX5pc4ROKWQ4N0Ev2 ZkboFHsLN6XypGcoDrl5niVzgtrsxWN5hN3SI8k0uNE/o5qywMy4/texQYMOTKBVOIvskq 22cUOcgCprr+O+XG7k/hpDCWS6/1YfLfPBIcVAFKQ8Vvrj+3tQ8hWw7eQrzgZ69t5LvNAb Rm6U0ggxLxBA0A3vbR0Fu+iYKxINvyNQyKxKx/6h3OrDzwb8nARKkneUacgDwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cg1Fx0SDvzcnW; Mon, 06 Oct 2025 01:02:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59612SNs012588; Mon, 6 Oct 2025 01:02:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59612Sau012585; Mon, 6 Oct 2025 01:02:28 GMT (envelope-from git) Date: Mon, 6 Oct 2025 01:02:28 GMT Message-Id: <202510060102.59612Sau012585@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: 5790a01d7ece - main - audio/go-librespot: add port: Yet another open-source Spotify Connect client, written in Go List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5790a01d7ececd79b3eef9b16f0806a456dbd32e Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=5790a01d7ececd79b3eef9b16f0806a456dbd32e commit 5790a01d7ececd79b3eef9b16f0806a456dbd32e Author: Alexandre Biancalana AuthorDate: 2025-10-05 14:22:00 +0000 Commit: Hiroki Tagato CommitDate: 2025-10-06 01:02:10 +0000 audio/go-librespot: add port: Yet another open-source Spotify Connect client, written in Go Yet another open-source Spotify Connect compatible client, written in Go. go-librespot gives you the freedom to have a Spotify Connect device wherever you want. WWW: https://github.com/devgianlu/go-librespot PR: 289388 Reported by: Alexandre Biancalana (new maintainer) --- audio/Makefile | 1 + audio/go-librespot/Makefile | 29 ++++++++++++++++++++++ audio/go-librespot/distinfo | 5 ++++ audio/go-librespot/files/config.yml | 1 + audio/go-librespot/files/go-librespot.in | 41 ++++++++++++++++++++++++++++++++ audio/go-librespot/pkg-descr | 3 +++ audio/go-librespot/pkg-plist | 2 ++ 7 files changed, 82 insertions(+) diff --git a/audio/Makefile b/audio/Makefile index 0d41946a908a..c6ab5f910ea6 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -216,6 +216,7 @@ SUBDIR += gnupod SUBDIR += gnuspeechsa SUBDIR += gnustep-cdplayer + SUBDIR += go-librespot SUBDIR += goattracker SUBDIR += gogglesmm SUBDIR += gonic diff --git a/audio/go-librespot/Makefile b/audio/go-librespot/Makefile new file mode 100644 index 000000000000..6e251cd497ce --- /dev/null +++ b/audio/go-librespot/Makefile @@ -0,0 +1,29 @@ +PORTNAME= go-librespot +DISTVERSIONPREFIX= v +DISTVERSION= 0.5.0 +CATEGORIES= audio + +MAINTAINER= ale@biancalanas.net +COMMENT= Yet another open-source Spotify Connect client, written in Go +WWW= https://github.com/devgianlu/go-librespot + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libogg.so:audio/libogg \ + libasound.so:audio/alsa-lib \ + libvorbis.so:audio/libvorbis + +USES= go:modules pkgconfig +USE_RC_SUBR= ${PORTNAME} + +GO_MODULE= github.com/devgianlu/go-librespot + +GO_TARGET= ./cmd/daemon:${PREFIX}/bin/go-librespot +GO_BUILDFLAGS= -ldflags "-X github.com/devgianlu/go-librespot.version=${DISTVERSION} -X github.com/devgianlu/go-librespot.commit=fc55ed0" + +post-install: + ${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_DATA} ${FILESDIR}/config.yml ${STAGEDIR}${ETCDIR}/config.yml.sample + +.include diff --git a/audio/go-librespot/distinfo b/audio/go-librespot/distinfo new file mode 100644 index 000000000000..6880489138e4 --- /dev/null +++ b/audio/go-librespot/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1759670837 +SHA256 (go/audio_go-librespot/go-librespot-v0.5.0/v0.5.0.mod) = dfb7c599404395927cf1755213c311f48ea63344b30f1f516be4c57bb4ea8654 +SIZE (go/audio_go-librespot/go-librespot-v0.5.0/v0.5.0.mod) = 1828 +SHA256 (go/audio_go-librespot/go-librespot-v0.5.0/v0.5.0.zip) = db94a0c511f586d5e1662417c82c1debf1bc01934440d22e2dc37ab18a78d2eb +SIZE (go/audio_go-librespot/go-librespot-v0.5.0/v0.5.0.zip) = 424569 diff --git a/audio/go-librespot/files/config.yml b/audio/go-librespot/files/config.yml new file mode 100644 index 000000000000..60a087651df9 --- /dev/null +++ b/audio/go-librespot/files/config.yml @@ -0,0 +1 @@ +log_disable_timestamp: true diff --git a/audio/go-librespot/files/go-librespot.in b/audio/go-librespot/files/go-librespot.in new file mode 100644 index 000000000000..526cd959822b --- /dev/null +++ b/audio/go-librespot/files/go-librespot.in @@ -0,0 +1,41 @@ +#!/bin/sh + +# PROVIDE: go_librespot +# REQUIRE: DAEMON NETWORKING +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf.local, /etc/rc.conf or +# /etc/rc.conf.d/go-librespot to enable this service: +# +# go_librespot_enable (bool): Set to NO by default. +# Set it to "YES" to enable go-librespot. +# go_librespot_config_dir (str): Set to %%PREFIX%%/etc/go-librespot by default. +# Path to configuration file. +# go_librespot_user (str): Set to "nobody" by default. +# User to run go-librespot + +. /etc/rc.subr + +name=go_librespot +rcvar=go_librespot_enable +start_precmd="${name}_precmd" + +load_rc_config $name + +: ${go_librespot_enable:="NO"} +: ${go_librespot_config_dir:="%%PREFIX%%/etc/go-librespot"} +: ${go_librespot_user:="nobody"} + +pidfile="/var/run/${name}/${name}.pid" +procname="%%PREFIX%%/bin/go-librespot" +command="/usr/sbin/daemon" +command_args="-S -m 3 -s info -l daemon -p ${pidfile} ${procname} --config_dir ${go_librespot_config_dir}" + +go_librespot_precmd() +{ + /usr/bin/install -d -m 0755 -o ${go_librespot_user} ${go_librespot_config_dir} + /usr/bin/install -d -m 0755 -o ${go_librespot_user} /var/run/${name} +} + +run_rc_command "$1" diff --git a/audio/go-librespot/pkg-descr b/audio/go-librespot/pkg-descr new file mode 100644 index 000000000000..bd23e6fc4956 --- /dev/null +++ b/audio/go-librespot/pkg-descr @@ -0,0 +1,3 @@ +Yet another open-source Spotify Connect compatible client, written in Go. +go-librespot gives you the freedom to have a Spotify Connect device wherever +you want. diff --git a/audio/go-librespot/pkg-plist b/audio/go-librespot/pkg-plist new file mode 100644 index 000000000000..278fe33f67e9 --- /dev/null +++ b/audio/go-librespot/pkg-plist @@ -0,0 +1,2 @@ +bin/go-librespot +@sample %%ETCDIR%%/config.yml.sample