From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C2C01138206 for ; Thu, 18 Jan 2018 13:44:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9F78E0837; Thu, 18 Jan 2018 13:44:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA2F2E0837 for ; Thu, 18 Jan 2018 13:44:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D1529335C07 for ; Thu, 18 Jan 2018 13:44:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9982B1BE for ; Thu, 18 Jan 2018 13:44:11 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1516283031.a8702879bddcad4b1113b7d5b9cd78a44b35053e.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/tt-rss/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/tt-rss/tt-rss-99999999.ebuild X-VCS-Directories: www-apps/tt-rss/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: a8702879bddcad4b1113b7d5b9cd78a44b35053e X-VCS-Branch: master Date: Thu, 18 Jan 2018 13:44:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6942e8f4-c928-48fd-ab75-be16fc6656d6 X-Archives-Hash: 6126a8b29c3606c06100d0a82bab1d9f commit: a8702879bddcad4b1113b7d5b9cd78a44b35053e Author: James Le Cuirot gentoo org> AuthorDate: Thu Jan 18 13:42:55 2018 +0000 Commit: James Le Cuirot gentoo 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 www-apps/tt-rss/tt-rss-99999999.ebuild | 87 ++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --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 +}