Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: gonic-0.16.4 #46013

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

New package: gonic-0.16.4 #46013

wants to merge 1 commit into from

Conversation

fanyx
Copy link
Contributor

@fanyx fanyx commented Sep 11, 2023

Testing the changes

  • I tested the changes in this PR: YES

New package

Resolves #44353

@fanyx fanyx force-pushed the gonic branch 4 times, most recently from 95e254d to b153b7e Compare September 11, 2023 10:03
@Duncaen
Copy link
Member

Duncaen commented Sep 11, 2023

# Template file for 'gonic'
pkgname=gonic
version=0.15.2
revision=1
build_style=go
go_import_path="go.senan.xyz/gonic"
go_package="${go_import_path}/cmd/gonic"
hostmakedepends="pkg-config"
makedepends="
alsa-lib-devel
sqlite-devel
taglib-devel"
depends="ffmpeg"
short_desc="Music streaming server / subsonic server API implementation"
maintainer="Duncaen <[email protected]>"
license="GPL-3.0-or-later"
homepage="https://github.com/sentriz/gonic"
distfiles="https://github.com/sentriz/gonic/archive/v${version}.tar.gz"
checksum=f70580a3bf96b0e9144bfaae07d7f158fc7dc732eba240c191effb9c30d28edc

system_accounts="_gonic"
_gonic_homedir="/var/lib/gonic"
make_dirs="
 /var/cache/gonic       755 _gonic _gonic
 /var/db/gonic          755 _gonic _gonic
 /var/lib/gonic/music   755 _gonic _gonic
 /var/lib/gonic/podcast 755 _gonic _gonic"

post_install() {
        vsv gonic
}

srcpkgs/gonic/files/gonic/run:

#!/bin/sh
[ -r ./conf ] && . ./conf
: ${GONIC_CACHE_PATH:=/var/cache/gonic}
: ${GONIC_DB_PATH:=/var/db/gonic/gonic.db}
: ${GONIC_MUSIC_PATH:=/var/lib/gonic/music}
: ${GONIC_PODCAST_PATH:=/var/lib/gonic/podcast}
export GONIC_CACHE_PATH GONIC_DB_PATH GONIC_MUSIC_PATH GONIC_PODCAST_PATH
exec chpst -u _gonic gonic $OPTS 2>&1

@fanyx
Copy link
Contributor Author

fanyx commented Sep 11, 2023

from original repository:

note: unfortunately if you do this above, you'll be compiling gonic locally on your machine (if someone knows how I can statically link sqlite3 and taglib, please let me know so I can distribute static binaries)

I wonder if we could/should move sqlite to runtime dep instead of makedep
taglib-devel seems to be necessary to build, though

@fanyx fanyx force-pushed the gonic branch 2 times, most recently from cd7ebbb to c5777dd Compare September 11, 2023 11:53
@Duncaen
Copy link
Member

Duncaen commented Sep 11, 2023

I wonder if we could/should move sqlite to runtime dep instead of makedep

No, its not going to even try to link the system sqlite if its not in makedepends.

@Duncaen
Copy link
Member

Duncaen commented Sep 11, 2023

Are you using this software? Otherwise since I'm using it and have contributed to it I would be open to maintaining it.

@fanyx
Copy link
Contributor Author

fanyx commented Sep 11, 2023

I had used it in the past but not anymore.
Just saw the package request and figured it wouldn't be too hard to get it templated.

You're very welcome to maintain this, you're a lot more knowledgable anyways 😄
Let me just change back the maintainer field and push again

@classabbyamp classabbyamp added the new-package This PR adds a new package label Sep 11, 2023
@Anachron
Copy link
Contributor

I'm currently running gonic as well on aarch64 (not from this PR though).

Copy link

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Dec 11, 2023
@Anachron
Copy link
Contributor

STOP. This. Auto. Stale. Madness!

@fanyx
Copy link
Contributor Author

fanyx commented Dec 11, 2023

@Duncaen you mentioned wanting to take over this PR.
can we close this one and you push your gonic template however you like?

@github-actions github-actions bot removed the Stale label Dec 12, 2023
@zlice zlice mentioned this pull request Dec 29, 2023
Copy link

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Mar 12, 2024
@fanyx
Copy link
Contributor Author

fanyx commented Mar 21, 2024

@Duncaen bumping again just for visibility

@github-actions github-actions bot removed the Stale label Mar 22, 2024
Copy link

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Jun 20, 2024
@fanyx fanyx changed the title New package: gonic-0.15.2 New package: gonic-0.16.4 Jun 21, 2024
@fanyx
Copy link
Contributor Author

fanyx commented Jun 21, 2024

musl builds fail due to a bug in audiotags dependency
Opened a PR on upstream: sentriz/audiotags#1

update:
PR is merged, waiting for sentriz to make a new gonic release

@github-actions github-actions bot removed the Stale label Jun 22, 2024
@fanyx
Copy link
Contributor Author

fanyx commented Jun 23, 2024

Added GONIC_PLAYLISTS_PATH to service file.

@fanyx fanyx marked this pull request as draft June 23, 2024 13:25
@fanyx fanyx marked this pull request as ready for review August 27, 2024 11:06
@fanyx
Copy link
Contributor Author

fanyx commented Aug 27, 2024

Ported the musl fix as a patch for now, will drop in next release

Copy link

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Nov 26, 2024
@fanyx
Copy link
Contributor Author

fanyx commented Nov 26, 2024

bump

@github-actions github-actions bot removed the Stale label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-package This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package request: gonic
4 participants