Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: tt-rss-19.8
@ 2019-09-27 19:15 voidlinux-github
  2020-11-01  2:20 ` [PR REVIEW] " ericonr
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-27 19:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

There is a new pull request by non-Jedi against master on the void-packages repository

https://github.com/non-Jedi/void-packages tt-rss
https://github.com/void-linux/void-packages/pull/14769

New package: tt-rss-19.8
I've never packaged anything php-adjacent before, and this whole thing seems rather fiddly. This is my best shot at doing so in a reasonable manner; let me know if it's still super bone-headed.

A patch file from https://github.com/void-linux/void-packages/pull/14769.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tt-rss-14769.patch --]
[-- Type: text/x-diff, Size: 2984 bytes --]

From ccc4252cfd65a563de489a27e56ce2ac7ad8d103 Mon Sep 17 00:00:00 2001
From: Adam Beckmeyer <adam_gpg@thebeckmeyers.xyz>
Date: Fri, 27 Sep 2019 12:10:56 -0400
Subject: [PATCH] New package: tt-rss-19.8

---
 srcpkgs/tt-rss/INSTALL                 |  5 ++++
 srcpkgs/tt-rss/INSTALL.msg             |  4 +++
 srcpkgs/tt-rss/files/tt-rss-update/run |  4 +++
 srcpkgs/tt-rss/template                | 37 ++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/tt-rss/INSTALL
 create mode 100644 srcpkgs/tt-rss/INSTALL.msg
 create mode 100644 srcpkgs/tt-rss/files/tt-rss-update/run
 create mode 100644 srcpkgs/tt-rss/template

diff --git a/srcpkgs/tt-rss/INSTALL b/srcpkgs/tt-rss/INSTALL
new file mode 100644
index 00000000000..e7c3957c5ce
--- /dev/null
+++ b/srcpkgs/tt-rss/INSTALL
@@ -0,0 +1,5 @@
+case ${ACTION} in
+post)
+	chown -R _ttrss:_ttrss var/lib/tt-rss
+	;;
+esac
diff --git a/srcpkgs/tt-rss/INSTALL.msg b/srcpkgs/tt-rss/INSTALL.msg
new file mode 100644
index 00000000000..90a6e0812e0
--- /dev/null
+++ b/srcpkgs/tt-rss/INSTALL.msg
@@ -0,0 +1,4 @@
+The user running the tt-rss webapp must be in the _ttrss group in
+order to access /var/lib/tt-rss/:
+
+	# usermod -aG _ttrss <username>
diff --git a/srcpkgs/tt-rss/files/tt-rss-update/run b/srcpkgs/tt-rss/files/tt-rss-update/run
new file mode 100644
index 00000000000..c92dc616a09
--- /dev/null
+++ b/srcpkgs/tt-rss/files/tt-rss-update/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+chown -R _ttrss:_ttrss /var/lib/tt-rss/
+chpst -u _ttrss:_ttrss php /usr/share/webapps/tt-rss/update.php --daemon
\ No newline at end of file
diff --git a/srcpkgs/tt-rss/template b/srcpkgs/tt-rss/template
new file mode 100644
index 00000000000..a421bc54742
--- /dev/null
+++ b/srcpkgs/tt-rss/template
@@ -0,0 +1,37 @@
+# Template file for 'tt-rss'
+pkgname=tt-rss
+version=19.8
+revision=1
+archs=noarch
+wrksrc=tt-rss
+depends="php postgresql"
+short_desc="Web-based RSS/Atom reader and aggregator"
+maintainer="Adam Beckmeyer <adam_gpg@thebeckmeyers.xyz>"
+license="GPL-3.0-only"
+homepage="https://tt-rss.org"
+distfiles="https://git.tt-rss.org/fox/tt-rss/archive/${version}.tar.gz"
+checksum=df8792d759a3ccd6088ca6e071d146ca51fbc0ccd88bb8b369e01248fc232968
+conf_files="/etc/webapps/tt-rss/config.php"
+system_accounts="_ttrss"
+
+do_install() {
+	vmkdir var/lib/tt-rss
+	mv ${wrksrc}/{lock,feed-icons,cache} ${DESTDIR}/var/lib/tt-rss
+
+	vmkdir usr/share/webapps/
+	vcopy ${wrksrc} usr/share/webapps/tt-rss
+
+	ln -s /var/lib/tt-rss/lock ${DESTDIR}/usr/share/webapps/tt-rss/lock
+	ln -s /var/lib/tt-rss/feed-icons ${DESTDIR}/usr/share/webapps/tt-rss/feed-icons
+	ln -s /var/lib/tt-rss/cache ${DESTDIR}/usr/share/webapps/tt-rss/cache
+
+	vinstall config.php-dist 644 /etc/webapps/tt-rss/ config.php
+	ln -s /etc/webapps/tt-rss/config.php ${DESTDIR}/usr/share/webapps/tt-rss/
+
+	vsv tt-rss-update
+}
+
+post_install() {
+	# Allow access to /var/lib/tt-rss/ for _ttrss group
+	chmod -R 2775 ${DESTDIR}/var/lib/tt-rss/
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR REVIEW] New package: tt-rss-19.8
  2019-09-27 19:15 [PR PATCH] New package: tt-rss-19.8 voidlinux-github
@ 2020-11-01  2:20 ` ericonr
  2020-11-01  2:20 ` ericonr
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ericonr @ 2020-11-01  2:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/14769#discussion_r515565264

Comment:
I think you want to use `make_dirs` in the template.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR REVIEW] New package: tt-rss-19.8
  2019-09-27 19:15 [PR PATCH] New package: tt-rss-19.8 voidlinux-github
  2020-11-01  2:20 ` [PR REVIEW] " ericonr
@ 2020-11-01  2:20 ` ericonr
  2020-11-02 16:39 ` Chocimier
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ericonr @ 2020-11-01  2:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/14769#discussion_r515565310

Comment:
Services should exec into something

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New package: tt-rss-19.8
  2019-09-27 19:15 [PR PATCH] New package: tt-rss-19.8 voidlinux-github
  2020-11-01  2:20 ` [PR REVIEW] " ericonr
  2020-11-01  2:20 ` ericonr
@ 2020-11-02 16:39 ` Chocimier
  2021-07-20  2:40 ` non-Jedi
  2021-07-20  2:40 ` [PR PATCH] [Closed]: " non-Jedi
  4 siblings, 0 replies; 6+ messages in thread
From: Chocimier @ 2020-11-02 16:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/14769#issuecomment-720585602

Comment:
Usually database isn't listed in depends to support setup with db running on different machine, please remove.
Remove archs=noarch, it is deprecated.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: New package: tt-rss-19.8
  2019-09-27 19:15 [PR PATCH] New package: tt-rss-19.8 voidlinux-github
                   ` (2 preceding siblings ...)
  2020-11-02 16:39 ` Chocimier
@ 2021-07-20  2:40 ` non-Jedi
  2021-07-20  2:40 ` [PR PATCH] [Closed]: " non-Jedi
  4 siblings, 0 replies; 6+ messages in thread
From: non-Jedi @ 2021-07-20  2:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

New comment by non-Jedi on void-packages repository

https://github.com/void-linux/void-packages/pull/14769#issuecomment-883007023

Comment:
When I packaged this, I didn't realize that miniflux was already packaged and did functionally the same thing. Given the existence of miniflux, I have no desire to maintain this. I'll make sure not to delete the branch in case someone wants to pick up where I left off.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PR PATCH] [Closed]: New package: tt-rss-19.8
  2019-09-27 19:15 [PR PATCH] New package: tt-rss-19.8 voidlinux-github
                   ` (3 preceding siblings ...)
  2021-07-20  2:40 ` non-Jedi
@ 2021-07-20  2:40 ` non-Jedi
  4 siblings, 0 replies; 6+ messages in thread
From: non-Jedi @ 2021-07-20  2:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

There's a closed pull request on the void-packages repository

New package: tt-rss-19.8
https://github.com/void-linux/void-packages/pull/14769

Description:
I've never packaged anything php-adjacent before, and this whole thing seems rather fiddly. This is my best shot at doing so in a reasonable manner; let me know if it's still super bone-headed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-20  2:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-27 19:15 [PR PATCH] New package: tt-rss-19.8 voidlinux-github
2020-11-01  2:20 ` [PR REVIEW] " ericonr
2020-11-01  2:20 ` ericonr
2020-11-02 16:39 ` Chocimier
2021-07-20  2:40 ` non-Jedi
2021-07-20  2:40 ` [PR PATCH] [Closed]: " non-Jedi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).