~sircmpwn/sr.ht-packages

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH sr.ht-pkgbuilds] meta: add new graphql API service

Details
Message ID
<20200612142957.246060-1-admin@xenrox.net>
DKIM signature
pass
Download raw message
Patch: +22 -2
---
 meta.sr.ht/PKGBUILD               | 11 +++++++++--
 meta.sr.ht/meta.sr.ht-api.service | 13 +++++++++++++
 2 files changed, 22 insertions(+), 2 deletions(-)
 create mode 100644 meta.sr.ht/meta.sr.ht-api.service

diff --git a/meta.sr.ht/PKGBUILD b/meta.sr.ht/PKGBUILD
index a022065..0f12a53 100644
--- a/meta.sr.ht/PKGBUILD
+++ b/meta.sr.ht/PKGBUILD
@@ -2,7 +2,7 @@ pkgname=meta.sr.ht
pkgver=0.21.0
pkgrel=3
pkgdesc="sr.ht core account services"
arch=("any")
arch=("x86_64")
license=("AGPL3")
url="https://git.sr.ht/~sircmpwn/meta.sr.ht"
install=meta.sr.ht.install
@@ -24,15 +24,17 @@ optdepends=(
	"python-stripe: for billing"
	"python-weasyprint: for billing"
)
makedepends=("python-setuptools" "nodejs" "sassc")
makedepends=("python-setuptools" "nodejs" "sassc" "go")
source=(
	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"meta.sr.ht.service"
	"meta.sr.ht-api.service"
	"meta.sr.ht-webhooks.service"
	"sysusers.conf"
)
sha256sums=('a2ae57474400f4c86f72a8b646fb8c7dfef9252e2db61c8177d28366df3342e1'
            '79b30d4b2275005a78cf29a185fab07301455557d631d6263ee28a2592a75067'
            'ac04fff6a22f1b194cf84f3a296cf2225f38c393e437f24bc3af3e3b677017a1'
            '1a6c61365d16c37cd4f38a59aa80f9f91d3f713d0d99dbd93e1c7dcd0b29f91d'
            'b98af4986b4a470cf80d8651563946706717fb556cf31433581f22173ada93db')
export PKGVER=$pkgver
@@ -40,13 +42,18 @@ export PKGVER=$pkgver
build() {
	cd $pkgbase-$pkgver
	python3 setup.py build
	cd api
	go build -o metasrht-api
}

package() {
	cd $pkgbase-$pkgver
	install -Dm0644 ../meta.sr.ht.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../meta.sr.ht-api.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../meta.sr.ht-webhooks.service \
		-t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../sysusers.conf "$pkgdir/usr/lib/sysusers.d/meta.sr.ht.conf"
	python3 setup.py install --root="${pkgdir}" --optimize=1
	cd api
	install -Dm755 metasrht-api "$pkgdir"/usr/bin/metasrht-api
}
diff --git a/meta.sr.ht/meta.sr.ht-api.service b/meta.sr.ht/meta.sr.ht-api.service
new file mode 100644
index 0000000..0fcfb52
--- /dev/null
+++ b/meta.sr.ht/meta.sr.ht-api.service
@@ -0,0 +1,13 @@
[Unit]
Description=meta.sr.ht API service
Requires=redis.service postgresql.service
After=redis.service postgresql.service network.target

[Service]
Type=simple
User=metasrht
Restart=always
ExecStart=/usr/bin/metasrht-api -b :5100

[Install]
WantedBy=multi-user.target
--
2.27.0
Details
Message ID
<906094d5-77a2-5100-9d21-29c800635285@archlinux.org>
In-Reply-To
<20200612142957.246060-1-admin@xenrox.net> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
On 6/12/20 10:29 AM, Thorben Günther wrote:
> ---
>  meta.sr.ht/PKGBUILD               | 11 +++++++++--
>  meta.sr.ht/meta.sr.ht-api.service | 13 +++++++++++++
>  2 files changed, 22 insertions(+), 2 deletions(-)
>  create mode 100644 meta.sr.ht/meta.sr.ht-api.service
> 
> diff --git a/meta.sr.ht/PKGBUILD b/meta.sr.ht/PKGBUILD
> index a022065..0f12a53 100644
> --- a/meta.sr.ht/PKGBUILD
> +++ b/meta.sr.ht/PKGBUILD
> @@ -2,7 +2,7 @@ pkgname=meta.sr.ht
>  pkgver=0.21.0
>  pkgrel=3
>  pkgdesc="sr.ht core account services"
> -arch=("any")
> +arch=("x86_64")
>  license=("AGPL3")
>  url="https://git.sr.ht/~sircmpwn/meta.sr.ht"
>  install=meta.sr.ht.install
> @@ -24,15 +24,17 @@ optdepends=(
>  	"python-stripe: for billing"
>  	"python-weasyprint: for billing"
>  )
> -makedepends=("python-setuptools" "nodejs" "sassc")
> +makedepends=("python-setuptools" "nodejs" "sassc" "go")
>  source=(
>  	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
>  	"meta.sr.ht.service"
> +	"meta.sr.ht-api.service"
>  	"meta.sr.ht-webhooks.service"
>  	"sysusers.conf"
>  )
>  sha256sums=('a2ae57474400f4c86f72a8b646fb8c7dfef9252e2db61c8177d28366df3342e1'
>              '79b30d4b2275005a78cf29a185fab07301455557d631d6263ee28a2592a75067'
> +            'ac04fff6a22f1b194cf84f3a296cf2225f38c393e437f24bc3af3e3b677017a1'
>              '1a6c61365d16c37cd4f38a59aa80f9f91d3f713d0d99dbd93e1c7dcd0b29f91d'
>              'b98af4986b4a470cf80d8651563946706717fb556cf31433581f22173ada93db')
>  export PKGVER=$pkgver
> @@ -40,13 +42,18 @@ export PKGVER=$pkgver
>  build() {
>  	cd $pkgbase-$pkgver
>  	python3 setup.py build
> +	cd api
> +	go build -o metasrht-api
>  }
> 
>  package() {
>  	cd $pkgbase-$pkgver
>  	install -Dm0644 ../meta.sr.ht.service -t "$pkgdir"/usr/lib/systemd/system/
> +	install -Dm0644 ../meta.sr.ht-api.service -t "$pkgdir"/usr/lib/systemd/system/
>  	install -Dm0644 ../meta.sr.ht-webhooks.service \
>  		-t "$pkgdir"/usr/lib/systemd/system/
>  	install -Dm0644 ../sysusers.conf "$pkgdir/usr/lib/sysusers.d/meta.sr.ht.conf"
>  	python3 setup.py install --root="${pkgdir}" --optimize=1
> +	cd api
> +	install -Dm755 metasrht-api "$pkgdir"/usr/bin/metasrht-api
>  }
> diff --git a/meta.sr.ht/meta.sr.ht-api.service b/meta.sr.ht/meta.sr.ht-api.service
> new file mode 100644
> index 0000000..0fcfb52
> --- /dev/null
> +++ b/meta.sr.ht/meta.sr.ht-api.service
> @@ -0,0 +1,13 @@
> +[Unit]
> +Description=meta.sr.ht API service
> +Requires=redis.service postgresql.service
> +After=redis.service postgresql.service network.target
> +
> +[Service]
> +Type=simple
> +User=metasrht
> +Restart=always
> +ExecStart=/usr/bin/metasrht-api -b :5100
> +
> +[Install]
> +WantedBy=multi-user.target
> --
> 2.27.0

Thanks!

To git.sr.ht:~sircmpwn/sr.ht-pkgbuilds
   38b78f6..041f6dd  master -> master

... and manually deployed.


-- 
Eli Schwartz
Bug Wrangler and Trusted User
Review patch Export thread (mbox)