1 |
commit: 43bd7a3d2e06ed606c211df580a1bb09c18a916b |
2 |
Author: Thomas Kahle <tomka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 11:45:15 2016 +0000 |
4 |
Commit: Thomas Kahle <tomka <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 11:45:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43bd7a3d |
7 |
|
8 |
www-apps/tt-rss: Bump to current git (rolling release) |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
www-apps/tt-rss/Manifest | 1 + |
13 |
www-apps/tt-rss/tt-rss-20160930.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 8e198b5..5be60e8 100644 |
18 |
--- a/www-apps/tt-rss/Manifest |
19 |
+++ b/www-apps/tt-rss/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST tt-rss-20160124.tar.bz2 2059978 SHA256 90706f133db74d86aba3f8488c99ed1c886948a92c64bdb7ecaca3c3129ddf59 SHA512 d41ae8b2086e1e0ff2d69427fe9ccb8d0710e5acffe3137c408c01fc20cc3fbb30f2d4859624c14ac0ba4429deea91fa57f54b2a56a2e480f0352509610c3a25 WHIRLPOOL 09b4c5515c8a19c3cfcd330761fcb9534185df8cb3ef7832c28f0200d15846b031817e72204cf28881101ad2ecc867ad4369f22afef9947b8b82521feb07083b |
22 |
DIST tt-rss-20160527.tar.bz2 2064633 SHA256 fd0beae76848eff39d9413820f9c575baf41283d2635bdb0e37cfc286bcc3a2c SHA512 8d482303868a08f4d65ef252f71f66ec3219d4f67e968a026a0302d29930cd5af45cedea81171db2ff0927497079d3bedd8fd70e4e9904f5d9987a92a6dfcb89 WHIRLPOOL 247ef0bc9d2049936a16340f2a5f26be8eb2d4d072d290d254ebc9666c81456f7d59271813be1ed3963537e6f86cf2b28f4447af8bcc559a64d8f2ce0d7f6952 |
23 |
+DIST tt-rss-20160930.tar.bz2 2072888 SHA256 5a7ff9d2e71cca0afb534558f4069264433eeaccf5cb02f425f06bbb7870d8db SHA512 d420e7efdf7d17e153ef0aa487a330379afe20fe9e9a6209de40b797d36e425cbcbdf2280eaf5ada8b9bef1ae37146253556ff602bbff22a9a7c311ff525d9e2 WHIRLPOOL 0da0f79cedda6be728f03a0e626cad610576cfad0165ad0e2ddbc54ee0ba778a935be131265874ee0e63cee8fcf620fd275d0588534f9cd5bc4505afe032d663 |
24 |
|
25 |
diff --git a/www-apps/tt-rss/tt-rss-20160930.ebuild b/www-apps/tt-rss/tt-rss-20160930.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..7cfd32c |
28 |
--- /dev/null |
29 |
+++ b/www-apps/tt-rss/tt-rss-20160930.ebuild |
30 |
@@ -0,0 +1,89 @@ |
31 |
+# Copyright 1999-2016 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 |
+} |