summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2016-05-27 13:45:32 +0200
committerThomas Kahle <tomka@gentoo.org>2016-05-27 13:46:23 +0200
commit35b80a0118b252bb92253e661ff6451b0c25313e (patch)
tree58d771fa9b5ef89e5a5dc5bf30bba0e74920f2a4 /www-apps/tt-rss
parentdev-cpp/asio-1.4.8-r1: add alpha keyword (diff)
downloadgentoo-35b80a0118b252bb92253e661ff6451b0c25313e.tar.gz
gentoo-35b80a0118b252bb92253e661ff6451b0c25313e.tar.bz2
gentoo-35b80a0118b252bb92253e661ff6451b0c25313e.zip
www-apps/tt-rss: bump
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'www-apps/tt-rss')
-rw-r--r--www-apps/tt-rss/Manifest1
-rw-r--r--www-apps/tt-rss/tt-rss-20160527.ebuild89
2 files changed, 90 insertions, 0 deletions
diff --git a/www-apps/tt-rss/Manifest b/www-apps/tt-rss/Manifest
index 82a168822fe2..304245b6d11a 100644
--- a/www-apps/tt-rss/Manifest
+++ b/www-apps/tt-rss/Manifest
@@ -1,2 +1,3 @@
DIST tt-rss-20150924.tar.bz2 2089704 SHA256 e66521e806014c094181839c9d446fdfbae18a91cfaaaa99fccc9e9f6d27f46d SHA512 b97cf54e4988caac67c5a0985ce7dac9ac2c60f9bedc86d29c83e939082f988cea0de02433b72d9238980e6bb32dea1e10a867ca8cd9ad084f8d7690bf76d3c9 WHIRLPOOL 7add018455697283f11471f3ae967bdb48b447d492972b8a92b77b0f034d6ad297c30c49173233f0b54985837ba51799ad1195a482da86939392e6629b6c89c2
DIST tt-rss-20160124.tar.bz2 2059978 SHA256 90706f133db74d86aba3f8488c99ed1c886948a92c64bdb7ecaca3c3129ddf59 SHA512 d41ae8b2086e1e0ff2d69427fe9ccb8d0710e5acffe3137c408c01fc20cc3fbb30f2d4859624c14ac0ba4429deea91fa57f54b2a56a2e480f0352509610c3a25 WHIRLPOOL 09b4c5515c8a19c3cfcd330761fcb9534185df8cb3ef7832c28f0200d15846b031817e72204cf28881101ad2ecc867ad4369f22afef9947b8b82521feb07083b
+DIST tt-rss-20160527.tar.bz2 2064633 SHA256 fd0beae76848eff39d9413820f9c575baf41283d2635bdb0e37cfc286bcc3a2c SHA512 8d482303868a08f4d65ef252f71f66ec3219d4f67e968a026a0302d29930cd5af45cedea81171db2ff0927497079d3bedd8fd70e4e9904f5d9987a92a6dfcb89 WHIRLPOOL 247ef0bc9d2049936a16340f2a5f26be8eb2d4d072d290d254ebc9666c81456f7d59271813be1ed3963537e6f86cf2b28f4447af8bcc559a64d8f2ce0d7f6952
diff --git a/www-apps/tt-rss/tt-rss-20160527.ebuild b/www-apps/tt-rss/tt-rss-20160527.ebuild
new file mode 100644
index 000000000000..7cfd32cf3269
--- /dev/null
+++ b/www-apps/tt-rss/tt-rss-20160527.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit user eutils webapp vcs-snapshot
+
+DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX"
+HOMEPAGE="http://tt-rss.org/"
+SRC_URI="https://dev.gentoo.org/~tomka/files/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~mips ~x86"
+IUSE="daemon +mysql postgres"
+
+DEPEND="
+ daemon? ( dev-lang/php:*[mysql?,postgres?,pcntl,curl] )
+ !daemon? ( dev-lang/php:*[mysql?,postgres?,curl] )
+ virtual/httpd-php:*
+"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="|| ( mysql postgres )"
+
+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_prepare() {
+ # Customize config.php-dist so that the right 'DB_TYPE' is already set (according to the USE flag)
+ einfo "Customizing config.php-dist..."
+
+ if use mysql && ! use postgres; then
+ sed -i \
+ -e "/define('DB_TYPE',/{s:pgsql:mysql:}" \
+ config.php-dist || die
+ fi
+
+ sed -i \
+ -e "/define('DB_TYPE',/{s:// \(or mysql\):// pgsql \1:}" \
+ config.php-dist || die
+
+ # per 462578
+ epatch_user
+}
+
+src_install() {
+ webapp_src_preinst
+
+ insinto "/${MY_HTDOCSDIR}"
+ doins -r *
+ keepdir "/${MY_HTDOCSDIR}"/feed-icons
+
+ for DIR in cache lock feed-icons; do
+ webapp_serverowned -R "${MY_HTDOCSDIR}/${DIR}"
+ done
+
+ # In the old days we put a config.php directly and tried to
+ # protect it with the following which did not work reliably.
+ # These days we only install the config.php-dist file.
+ # webapp_configfile "${MY_HTDOCSDIR}"/config.php
+
+ if use daemon; then
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en-with-daemon.txt
+ newinitd "${FILESDIR}"/ttrssd.initd-r2 ttrssd
+ newconfd "${FILESDIR}"/ttrssd.confd-r1 ttrssd
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}"/ttrssd.logrotated 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 and config.php-dist manually now."
+ webapp_pkg_postinst
+}