-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Template file for 'gonic' | ||
pkgname=gonic | ||
version=0.16.4 | ||
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=ba690a861a075bdf3f1f7e8131e45a5ca430ec90902a97faf955ec9f36799461 | ||
|
||
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 | ||
} |