Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 41078781A49 for <~alpine/aports@lists.alpinelinux.org>; Sat, 25 Jul 2020 21:05:44 +0000 (UTC) Received: by mail-qk1-f194.google.com with SMTP id l23so12019487qkk.0 for <~alpine/aports@lists.alpinelinux.org>; Sat, 25 Jul 2020 14:05:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=pM5Bd4aryuK0ASBtk7vgXFPA29TymvxAd8mScF4x7u0=; b=V0AY+JrDcwhtwCgs1FvYUMzYWqY6woX8oy8Wr9Xvs2BJxCHOPUR3fyWXuUpHVzzLS3 Rn1FOB2H6uXSIjNO56TvcLNDQh0rDuLfiqjyTh+lHFSyldjmSqoO8pyY0WG4WCajpx+V EI4T0jv/sMK71NXbvJHZDUOaf6orAN2kE+VUxo+TBdwuvV2DRxS0jnZfiSfyPAj57d1a fJIQU16ieSk92BYoz5shbnIok964/4mFrY7DQ4NvhIiHMl8UBSEvfBla8opUHGSdj8dm /rRlVUiNGUjV29z5qqwAW14hnB1LaaWdXk+F8ysZ21J9wTstiXc8gklw72zKSKqRegme HU5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pM5Bd4aryuK0ASBtk7vgXFPA29TymvxAd8mScF4x7u0=; b=tjUN/nRapKxwu5nogHcNGPeWC4RBx4ZQav9EXcPnQY3qCEDgf5iG4nOotsS+tyiVNG IBFmNlkYQSUuYnS/Ge5EsSKJRg6wukUs2/gTTZdDmn98Ykr6KhutbXA6w+PPYb1N3aJz Z+1ySWS39QXvTRo0xXd/BYnQsEs4PemleT/LG99Y/y74JWYaUSZHlbV4806ueMfZqHdw ARcGpDeps7N92BzH9mqQH99wkD/n9EOGZb8miqX9O2WUOf63lkhT77J8FB0GakGz38pv NeVVbijeedPlTcYT/xMfsRyAwzPg5ePyQWd9qOiMjTvHxWXF3rqqUWM5kTiZ1HNH4i/V 1GIA== X-Gm-Message-State: AOAM532/sYuD4jNe0uSC882Ub3BgW9XWKIC4/VMmlif5r9SPwgFBTw7U nsZdJhafs/XpOyPRhDnHSt9Mz7wK X-Google-Smtp-Source: ABdhPJw6v2Vt/P+89lpYgSv/D4becHHanWeu0wSfZ+DUabt5kDWpZN9nymKAsH6p3bWCxJcXnpH4NA== X-Received: by 2002:a37:93c1:: with SMTP id v184mr16314993qkd.480.1595711142681; Sat, 25 Jul 2020 14:05:42 -0700 (PDT) Received: from enterprise ([2804:431:cfcd:4a79:15fd:d848:fb61:6f98]) by smtp.gmail.com with ESMTPSA id g136sm12528186qke.82.2020.07.25.14.05.41 for <~alpine/aports@lists.alpinelinux.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 14:05:42 -0700 (PDT) Date: Sat, 25 Jul 2020 18:05:37 -0300 From: Leo To: ~alpine/aports@lists.alpinelinux.org Subject: Re: [PATCH v2] testing/gonic: new aport Message-ID: <20200725180537.64df3e80@enterprise> In-Reply-To: <20200725194613.25698-1-amk@amk.ie> References: <20200725194613.25698-1-amk@amk.ie> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 25 Jul 2020 20:46:13 +0100 Alex McGrath wrote: > https://github.com/sentriz/gonic/ > A subsonic compatible music streaming server > --- > Sorry, I'd accidentially made two commits > testing/gonic/APKBUILD | 52 > +++++++++++++++++++++++++++++++++ testing/gonic/gonic.confd | > 7 +++++ testing/gonic/gonic.initd | 19 ++++++++++++ > testing/gonic/gonic.pre-install | 6 ++++ > 4 files changed, 84 insertions(+) > create mode 100644 testing/gonic/APKBUILD > create mode 100644 testing/gonic/gonic.confd > create mode 100644 testing/gonic/gonic.initd > create mode 100644 testing/gonic/gonic.pre-install > > diff --git a/testing/gonic/APKBUILD b/testing/gonic/APKBUILD > new file mode 100644 > index 0000000000..4fb85d34ff > --- /dev/null > +++ b/testing/gonic/APKBUILD > @@ -0,0 +1,52 @@ > +# Contributor: Alex McGrath > +# Maintainer: Alex McGrath > +pkgname=gonic > +pkgver=0.10.0 > +pkgrel=0 > +pkgdesc="A subsonic compatible music streaming server" The 'A' is superfluous > +url="https://github.com/sentriz/gonic" > +arch="all" > +license="GPL-3.0" Please use the SPDX identifier > +subpackages="$pkgname-openrc" > +depends="taglib ffmpeg alsa-lib sqlite" Remove these, abuild should automatically detect the dependencies on the libraries > +makedepends="binutils-gold go alsa-lib-dev taglib-dev" > +install="$pkgname.pre-install" > +source=" > + gonic.initd > + gonic.confd > + > gonic-$pkgver.tar.gz::https://github.com/sentriz/gonic/archive/v$pkgver.tar.gz > + " > +builddir="$srcdir/$pkgname-$pkgver" Remove as this is the default value > + > +export GOPATH="$srcdir" > +export GO111MODULES=on > + > +build() { > + cd $builddir Remove as build() automatically 'cd' into $builddir > + ./_do_build_server > +} > + > +check() { > + cd $builddir Remove as check() automatically 'cd' into $builddir > + go test ./... > +} > + > +package() { > + install -m755 -D "$srcdir"/$pkgname.initd \ > + "$pkgdir"/etc/init.d/$pkgname > + install -m644 -D "$srcdir"/$pkgname.confd \ > + "$pkgdir"/etc/conf.d/$pkgname > + install -Dm755 "$builddir"/"$pkgname" \ > + "$pkgdir"/usr/bin/"$pkgname" > + > +} > + > +cleanup_srcdir() { > + go clean -modcache > + default_cleanup_srcdir > +} > + > + > +sha512sums="9d571f9980b30c665e051cc0d43e71e7029c473049d0e078d84ff2c001a953b9eebc95b7d45f651d4180a37f29976cc775fa756da1661296d58eb46501901f33 > gonic.initd > +473691065ab718c343483cdeca07f9d3254974f681bdbb413a0e618b3dd4fbc089d07107093a482188f11a0a41e48b84ccc7b52a99e57fd60fbb40339f5ffd2e > gonic.confd > +f0c925a6bbe92ee23b8a2922c5697d596ca1abffab9e76d15930d15cea828ae7de8cf9ff3a11a151980a9b3455ff314c1129777f277213fbd977ccc9c9a6d9bf > gonic-0.10.0.tar.gz" diff --git a/testing/gonic/gonic.confd > b/testing/gonic/gonic.confd new file mode 100644 index > 0000000000..1d14d8d0fe --- /dev/null +++ b/testing/gonic/gonic.confd > @@ -0,0 +1,7 @@ > +# conf.d file for gonic > + > +# > +# Specify daemon options here. > +# > +MUSIC_PATH="" > +GONIC_OPTS="-music-path=$MUSIC_PATH -db-path=/var/lib/gonic/gonic.db" > diff --git a/testing/gonic/gonic.initd b/testing/gonic/gonic.initd > new file mode 100644 > index 0000000000..d7f331ac8e > --- /dev/null > +++ b/testing/gonic/gonic.initd > @@ -0,0 +1,19 @@ > +#!/sbin/openrc-run > + > +name=gonic > +command="/usr/bin/gonic" > +command_args="$GONIC_OPTS" > +command_background=true > +pidfile="/var/run/${RC_SVCNAME}.pid" > +error_log="/var/log/gonic.log" > +command_user="gonic:gonic" > + > +start_pre() { > + checkpath -W --owner "$command_user" --mode 0644 \ > + /var/log/gonic.log > +} > + > +depend() { > + need net > + after firewall > +} > \ No newline at end of file > diff --git a/testing/gonic/gonic.pre-install > b/testing/gonic/gonic.pre-install new file mode 100644 > index 0000000000..fcf0352fc2 > --- /dev/null > +++ b/testing/gonic/gonic.pre-install > @@ -0,0 +1,6 @@ > +#!/bin/sh > + > +addgroup -S gonic 2>/dev/null > +adduser -S -D -H -s /bin/false -G gonic -g gonic gonic 2>/dev/null > + > +exit 0 Please open this patch as a merge request on gitlaba.alpinelinux.org/alpine/aports