[arch-commits] Commit in tt-rss/repos (4 files)

Anatol Pomozov anatolik at gemini.archlinux.org
Mon Jan 24 18:55:44 UTC 2022


    Date: Monday, January 24, 2022 @ 18:55:44
  Author: anatolik
Revision: 1114866

archrelease: copy trunk to community-testing-any

Added:
  tt-rss/repos/community-testing-any/
  tt-rss/repos/community-testing-any/PKGBUILD
    (from rev 1114865, tt-rss/trunk/PKGBUILD)
  tt-rss/repos/community-testing-any/tt-rss.install
    (from rev 1114865, tt-rss/trunk/tt-rss.install)
  tt-rss/repos/community-testing-any/tt-rss.service
    (from rev 1114865, tt-rss/trunk/tt-rss.service)

----------------+
 PKGBUILD       |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tt-rss.install |   17 ++++++++++++++
 tt-rss.service |   10 ++++++++
 3 files changed, 90 insertions(+)

Copied: tt-rss/repos/community-testing-any/PKGBUILD (from rev 1114865, tt-rss/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-01-24 18:55:44 UTC (rev 1114866)
@@ -0,0 +1,63 @@
+# Maintainer:  Anatol Pomozov <anatol at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Clément Démoulins <clement at archivel.fr>
+# Contributor: David Rosenstrauch <darose at darose.net>
+# Contributor: Erik Mank <erik at braindisorder.org>
+
+pkgname=tt-rss
+pkgver=r11216.56fd06d61
+pkgrel=2
+epoch=2
+pkgdesc='Web-based news feed (RSS/Atom) aggregator'
+arch=(any)
+url='https://tt-rss.org'
+license=(GPL)
+backup=(etc/webapps/tt-rss/config.php)
+depends=(php php-intl)
+install=tt-rss.install
+optdepends=('mysql'
+            'postgresql'
+            'php-gd: for coloured feed badges')
+makedepends=('git')
+_commit=56fd06d611d7bd4896f886f3e20ac778f47771cb
+# periodic releases are over https://tt-rss.org/forum/viewtopic.php?f=10&t=3262
+source=(git+https://git.tt-rss.org/fox/tt-rss.git#commit=$_commit
+       tt-rss.service)
+sha1sums=('SKIP'
+          'd764e22065f8e0104b4f1d5dcf41cce01cd7bec5')
+
+pkgver() {
+  cd tt-rss
+  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+  cd tt-rss
+
+  # https://bugs.archlinux.org/task/73451
+  git revert -n a201e10ee024f03fb6aad0ec1069cc4da72a9ac5
+  git revert -n aaebe55456b34b878b7bcccef021af7f2c8d3a75
+}
+
+package() {
+  cd tt-rss
+  _instdir="$pkgdir"/usr/share/webapps/$pkgname
+
+  install -d "$_instdir"
+  cp -ra * "$_instdir/"
+
+  echo $pkgver > "$_instdir/version_static.txt"
+
+  install -Dm640 -g 33 config.php-dist "$pkgdir"/etc/webapps/tt-rss/config.php
+  ln -s /etc/webapps/tt-rss/config.php "$_instdir"/config.php
+
+  install -d "$pkgdir"/var/lib/tt-rss
+  mv "$_instdir"/{lock,feed-icons,cache} "$pkgdir"/var/lib/tt-rss
+  ln -s /var/lib/tt-rss/lock "$_instdir"/lock
+  ln -s /var/lib/tt-rss/feed-icons "$_instdir"/feed-icons
+  ln -s /var/lib/tt-rss/cache "$_instdir"/cache
+  chown -R 33:33 "$pkgdir"/var/lib/tt-rss
+  chmod -R 777 "$pkgdir"/var/lib/tt-rss/*
+
+  install -Dm644 "$srcdir"/tt-rss.service "$pkgdir"/usr/lib/systemd/system/tt-rss.service
+}

Copied: tt-rss/repos/community-testing-any/tt-rss.install (from rev 1114865, tt-rss/trunk/tt-rss.install)
===================================================================
--- community-testing-any/tt-rss.install	                        (rev 0)
+++ community-testing-any/tt-rss.install	2022-01-24 18:55:44 UTC (rev 1114866)
@@ -0,0 +1,17 @@
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  if [ "$(vercmp $2 2:r10820.4e81233ac-1)" -le 0 ]; then
+    cat << EOF
+===> tt-rss switched back to PHP 8.
+===> Please reconfigure PHP-specific bits:
+===>   * Enable required modules in /etc/php/php.ini
+===>   * Start/enable php-fpm systemd service
+===> See https://wiki.archlinux.org/index.php/TT-RSS for more information.
+===> ********************************************************************
+===> TT-RSS has restructured its config files, please consult
+===>   https://tt-rss.org/wiki/GlobalConfig
+===> on the config file migration plan.
+EOF
+  fi
+}

Copied: tt-rss/repos/community-testing-any/tt-rss.service (from rev 1114865, tt-rss/trunk/tt-rss.service)
===================================================================
--- community-testing-any/tt-rss.service	                        (rev 0)
+++ community-testing-any/tt-rss.service	2022-01-24 18:55:44 UTC (rev 1114866)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Tiny Tiny RSS feeds update daemon
+After=network.target mysqld.service postgresql.service
+
+[Service]
+ExecStart=/usr/bin/php /usr/share/webapps/tt-rss/update.php --daemon
+User=http
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list