From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/tt-rss/
Date: Thu, 18 Jan 2018 13:44:11 +0000 (UTC) [thread overview]
Message-ID: <1516283031.a8702879bddcad4b1113b7d5b9cd78a44b35053e.chewi@gentoo> (raw)
commit: a8702879bddcad4b1113b7d5b9cd78a44b35053e
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 18 13:42:55 2018 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Jan 18 13:43:51 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8702879
www-apps/tt-rss: Introduce live 99999999 version
There are no longer formal upstream releases so this may suit some
users better.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
| 87 ++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
--git a/www-apps/tt-rss/tt-rss-99999999.ebuild b/www-apps/tt-rss/tt-rss-99999999.ebuild
new file mode 100644
index 00000000000..b611aa54bd7
--- /dev/null
+++ b/www-apps/tt-rss/tt-rss-99999999.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit git-r3 prefix user webapp
+
+DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX"
+HOMEPAGE="https://tt-rss.org/"
+EGIT_REPO_URI="https://git.tt-rss.org/git/${PN}.git"
+LICENSE="GPL-3"
+SLOT="${PV}" # Single live slot.
+IUSE="+acl daemon +mysqli postgres"
+REQUIRED_USE="|| ( mysqli postgres )"
+
+DEPEND="daemon? ( acl? ( sys-apps/acl ) )"
+
+RDEPEND="${DEPEND}
+ daemon? ( dev-lang/php:*[mysqli?,postgres?,curl,cli,pcntl,pdo] )
+ !daemon? ( dev-lang/php:*[mysqli?,postgres?,curl,pdo] )
+ virtual/httpd-php:*"
+
+DEPEND="!vhosts? ( ${DEPEND} )"
+
+need_httpd_cgi # From webapp.eclass
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ if use daemon; then
+ enewgroup ttrssd
+ enewuser ttrssd -1 /bin/sh /dev/null ttrssd
+ fi
+}
+
+src_configure() {
+ hprefixify config.php-dist
+
+ sed -i -r \
+ -e "/'DB_TYPE'/s:,.*:, '$(usex mysqli mysql pgsql)'); // mysql or pgsql:" \
+ config.php-dist || die
+}
+
+src_install() {
+ webapp_src_preinst
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r *
+
+ # When updating, grep the plugins directory for additional CACHE_DIR
+ # instances as they cannot be created later due to permissions.
+ dodir "${MY_HTDOCSDIR}"/cache/starred-images
+
+ local dir
+ for dir in "${ED}${MY_HTDOCSDIR}"/{cache/*,feed-icons,lock}/; do
+ webapp_serverowned "${dir#${ED}}"
+ done
+
+ if use daemon; then
+ webapp_hook_script "${FILESDIR}"/permissions
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en-with-daemon-r1.txt
+
+ newinitd "${FILESDIR}"/ttrssd.initd-r3 ttrssd
+ newconfd "${FILESDIR}"/ttrssd.confd-r2 ttrssd
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/ttrssd.logrotated-r1 ttrssd
+
+ elog "After upgrading, please restart ttrssd."
+ else
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ fi
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ elog "You need to merge config.php-dist into config.php manually when upgrading."
+
+ if use vhosts && [[ -n ${REPLACING_VERSIONS} ]]; then
+ elog
+ elog "The live ebuild does not automatically upgrade your installations so"
+ elog "don't forget to do so manually."
+ fi
+
+ webapp_pkg_postinst
+}
next reply other threads:[~2018-01-18 13:44 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-18 13:44 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-12 15:01 [gentoo-commits] repo/gentoo:master commit in: www-apps/tt-rss/ James Le Cuirot
2024-02-11 22:37 James Le Cuirot
2023-09-19 7:59 James Le Cuirot
2022-12-09 23:36 James Le Cuirot
2022-10-08 9:51 James Le Cuirot
2022-08-04 16:53 James Le Cuirot
2022-01-02 14:09 Florian Schmaus
2022-01-02 14:09 Florian Schmaus
2021-02-13 13:02 James Le Cuirot
2021-01-10 22:27 Sam James
2020-09-23 21:42 James Le Cuirot
2020-09-23 21:42 James Le Cuirot
2019-05-27 21:18 James Le Cuirot
2019-05-26 21:01 James Le Cuirot
2018-02-11 11:36 Michał Górny
2017-11-26 23:26 David Seifert
2017-01-07 15:56 James Le Cuirot
2016-10-12 21:26 Thomas Kahle
2016-10-12 7:38 Thomas Kahle
2016-09-30 11:46 Thomas Kahle
2016-09-30 11:46 Thomas Kahle
2016-05-27 11:46 Thomas Kahle
2016-05-27 11:46 Thomas Kahle
2016-01-24 15:21 Thomas Kahle
2016-01-24 15:21 Thomas Kahle
2015-09-24 12:24 Thomas Kahle
2015-09-24 12:24 Thomas Kahle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516283031.a8702879bddcad4b1113b7d5b9cd78a44b35053e.chewi@gentoo \
--to=chewi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox