Gentoo Archives: gentoo-commits

From: Thomas Kahle <tomka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/tt-rss/
Date: Thu, 24 Sep 2015 12:24:52
Message-Id: 1443097446.88a9c6fb57535c0a6a496072c46494d8e8d44ed3.tomka@gentoo
1 commit: 88a9c6fb57535c0a6a496072c46494d8e8d44ed3
2 Author: Thomas Kahle <tomka <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 24 12:23:28 2015 +0000
4 Commit: Thomas Kahle <tomka <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 24 12:24:06 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88a9c6fb
7
8 www-apps/tt-rss: Bump to new rolling release.
9
10 Package-Manager: portage-2.2.20.1
11
12 www-apps/tt-rss/Manifest | 1 +
13 www-apps/tt-rss/tt-rss-20150924.ebuild | 89 ++++++++++++++++++++++++++++++++++
14 2 files changed, 90 insertions(+)
15
16 diff --git a/www-apps/tt-rss/Manifest b/www-apps/tt-rss/Manifest
17 index ce27bc1..9f14d15 100644
18 --- a/www-apps/tt-rss/Manifest
19 +++ b/www-apps/tt-rss/Manifest
20 @@ -1,2 +1,3 @@
21 DIST tt-rss-20150304.tar.bz2 2021676 SHA256 72ec8863c0697a311c3a7b641ade8be4a0e85674aead50bdf03637d76b4eeac3 SHA512 6b26e6a4e0c41bd48efa3506b441adec7ef95c80c208784482e77a382ab4473d152f9ef6436c5e398563c76de634b99a1e1b13efeeb82d30659d4ccf21117ff7 WHIRLPOOL 799c8df18fb5b10c76ce3eb97be77611c0438be7f9b3cd9d4d85cde2d4951c5690b905b3938b574c1810d0ec81d1c246c62769b199a93c72ec0bb4564e56358f
22 DIST tt-rss-20150624.tar.bz2 2071177 SHA256 544833ffbdb83497270aa3c3599ad78f58b23bbaf9d492a3b73bd156b806edc7 SHA512 270f88ae84778cf2a5df1dcda2bdc58a0ed8f4988c124728d4aad29324dc86b1b0245c5b651c738febc9447a5533ca68e2655966409a45651c6df3a08e203c1e WHIRLPOOL 8e30b32beb6eba33e6f87c06900804f6f1f3a11ec0ce4c565e7558577f2bea813e082e7d76acb83f0c0aa5a387ef8266f3fc218def482e9508c492e7df5b3b7a
23 +DIST tt-rss-20150924.tar.bz2 2089704 SHA256 e66521e806014c094181839c9d446fdfbae18a91cfaaaa99fccc9e9f6d27f46d SHA512 b97cf54e4988caac67c5a0985ce7dac9ac2c60f9bedc86d29c83e939082f988cea0de02433b72d9238980e6bb32dea1e10a867ca8cd9ad084f8d7690bf76d3c9 WHIRLPOOL 7add018455697283f11471f3ae967bdb48b447d492972b8a92b77b0f034d6ad297c30c49173233f0b54985837ba51799ad1195a482da86939392e6629b6c89c2
24
25 diff --git a/www-apps/tt-rss/tt-rss-20150924.ebuild b/www-apps/tt-rss/tt-rss-20150924.ebuild
26 new file mode 100644
27 index 0000000..a8c5261
28 --- /dev/null
29 +++ b/www-apps/tt-rss/tt-rss-20150924.ebuild
30 @@ -0,0 +1,89 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +inherit user eutils webapp vcs-snapshot
38 +
39 +DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX"
40 +HOMEPAGE="http://tt-rss.org/"
41 +SRC_URI="https://dev.gentoo.org/~tomka/files/${P}.tar.bz2"
42 +
43 +LICENSE="GPL-3"
44 +KEYWORDS="~amd64 ~mips ~x86"
45 +IUSE="daemon +mysql postgres"
46 +
47 +DEPEND="
48 + daemon? ( dev-lang/php:*[mysql?,postgres?,pcntl,curl] )
49 + !daemon? ( dev-lang/php:*[mysql?,postgres?,curl] )
50 + virtual/httpd-php:*
51 +"
52 +RDEPEND="${DEPEND}"
53 +
54 +REQUIRED_USE="|| ( mysql postgres )"
55 +
56 +need_httpd_cgi # From webapp.eclass
57 +
58 +pkg_setup() {
59 + webapp_pkg_setup
60 +
61 + if use daemon; then
62 + enewgroup ttrssd
63 + enewuser ttrssd -1 /bin/sh /dev/null ttrssd
64 + fi
65 +}
66 +
67 +src_prepare() {
68 + # Customize config.php-dist so that the right 'DB_TYPE' is already set (according to the USE flag)
69 + einfo "Customizing config.php-dist..."
70 +
71 + if use mysql && ! use postgres; then
72 + sed -i \
73 + -e "/define('DB_TYPE',/{s:pgsql:mysql:}" \
74 + config.php-dist || die
75 + fi
76 +
77 + sed -i \
78 + -e "/define('DB_TYPE',/{s:// \(or mysql\):// pgsql \1:}" \
79 + config.php-dist || die
80 +
81 + # per 462578
82 + epatch_user
83 +}
84 +
85 +src_install() {
86 + webapp_src_preinst
87 +
88 + insinto "/${MY_HTDOCSDIR}"
89 + doins -r *
90 + keepdir "/${MY_HTDOCSDIR}"/feed-icons
91 +
92 + for DIR in cache lock feed-icons; do
93 + webapp_serverowned -R "${MY_HTDOCSDIR}/${DIR}"
94 + done
95 +
96 + # In the old days we put a config.php directly and tried to
97 + # protect it with the following which did not work reliably.
98 + # These days we only install the config.php-dist file.
99 + # webapp_configfile "${MY_HTDOCSDIR}"/config.php
100 +
101 + if use daemon; then
102 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en-with-daemon.txt
103 + newinitd "${FILESDIR}"/ttrssd.initd-r2 ttrssd
104 + newconfd "${FILESDIR}"/ttrssd.confd-r1 ttrssd
105 + insinto /etc/logrotate.d/
106 + newins "${FILESDIR}"/ttrssd.logrotated ttrssd
107 +
108 + elog "After upgrading, please restart ttrssd"
109 + else
110 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
111 + fi
112 +
113 + webapp_src_install
114 +}
115 +
116 +pkg_postinst() {
117 + elog "You need to merge config.php and config.php-dist manually now."
118 + webapp_pkg_postinst
119 +}