summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2013-02-06 19:55:16 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2013-02-06 19:55:16 +0000
commitaceae921f77bb33295429cc59d44eec42a9ed992 (patch)
tree0c51a06ce899139a1ccf69910f361b2656ba9745 /www-apps
parentStable for sparc, wrt bug #454014 (diff)
downloadgentoo-2-aceae921f77bb33295429cc59d44eec42a9ed992.tar.gz
gentoo-2-aceae921f77bb33295429cc59d44eec42a9ed992.tar.bz2
gentoo-2-aceae921f77bb33295429cc59d44eec42a9ed992.zip
Version bump. Bug #448982
(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/tt-rss/ChangeLog10
-rw-r--r--www-apps/tt-rss/metadata.xml5
-rw-r--r--www-apps/tt-rss/tt-rss-1.6.2.ebuild74
3 files changed, 82 insertions, 7 deletions
diff --git a/www-apps/tt-rss/ChangeLog b/www-apps/tt-rss/ChangeLog
index 981b3f5d0e27..eab4b9f95b79 100644
--- a/www-apps/tt-rss/ChangeLog
+++ b/www-apps/tt-rss/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-apps/tt-rss
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/tt-rss/ChangeLog,v 1.11 2012/12/03 19:42:26 hwoarang Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/tt-rss/ChangeLog,v 1.12 2013/02/06 19:55:16 hwoarang Exp $
+
+*tt-rss-1.6.2 (06 Feb 2013)
+
+ 06 Feb 2013; Markos Chandras <hwoarang@gentoo.org> +tt-rss-1.6.2.ebuild,
+ metadata.xml:
+ Version bump. Bug #448982
*tt-rss-1.6.1 (03 Dec 2012)
diff --git a/www-apps/tt-rss/metadata.xml b/www-apps/tt-rss/metadata.xml
index 94aa719d9ca2..0cb73e1318dc 100644
--- a/www-apps/tt-rss/metadata.xml
+++ b/www-apps/tt-rss/metadata.xml
@@ -7,11 +7,6 @@
<name>Patrick Nagel</name>
<description>Maintainer</description>
</maintainer>
-<maintainer>
-<email>hwoarang@gentoo.org</email>
-<name>Markos Chandras</name>
-<description>Proxy maintainer</description>
-</maintainer>
<use>
<flag name="daemon">Install additional init scripts for automated RSS updates</flag>
</use>
diff --git a/www-apps/tt-rss/tt-rss-1.6.2.ebuild b/www-apps/tt-rss/tt-rss-1.6.2.ebuild
new file mode 100644
index 000000000000..1abf036dc2b9
--- /dev/null
+++ b/www-apps/tt-rss/tt-rss-1.6.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/tt-rss/tt-rss-1.6.2.ebuild,v 1.1 2013/02/06 19:55:16 hwoarang Exp $
+
+EAPI="2"
+
+inherit eutils webapp depend.php depend.apache
+
+DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX"
+HOMEPAGE="http://tt-rss.org/"
+SRC_URI="http://tt-rss.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64"
+IUSE="daemon mysql postgres"
+
+DEPEND=" daemon? ( dev-lang/php[mysql?,postgres?,pcntl,curl] )
+ !daemon? ( dev-lang/php[mysql?,postgres?,curl] )"
+RDEPEND="${DEPEND}"
+
+need_httpd_cgi
+need_php_httpd
+use daemon && need_php_cli
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ use mysql && require_php_with_use mysql
+ use postgres && require_php_with_use postgres
+
+ if use daemon; then
+ enewgroup ttrssd
+ enewuser ttrssd -1 /bin/sh /dev/null ttrssd
+ fi
+}
+
+src_prepare() {
+ # Customize config.php so that the right 'DB_TYPE' is already set (according to the USE flag)
+ einfo "Customizing config.php..."
+ mv config.php{-dist,} || die "Could not rename config.php-dist to config.php."
+
+ if use mysql && ! use postgres; then
+ sed -e "/define('DB_TYPE',/{s:pgsql:mysql:}" -i config.php || die "sed failed"
+ fi
+
+ sed -e "/define('DB_TYPE',/{s:// \(or mysql\):// pgsql \1:}" -i config.php \
+ || die "sed failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ insinto "/${MY_HTDOCSDIR}"
+ doins -r * || die "Could not copy the files to ${MY_HTDOCSDIR}."
+ keepdir "/${MY_HTDOCSDIR}"/feed-icons
+
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}"/ttrssd.logrotated ttrssd || die "Installing ttrssd logrotate config failed."
+
+ for DIR in cache cache/magpie cache/simplepie cache/images cache/export lock feed-icons; do
+ webapp_serverowned "${MY_HTDOCSDIR}/${DIR}"
+ done
+
+ webapp_configfile "${MY_HTDOCSDIR}"/config.php
+ if use daemon; then
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en-with-daemon.txt
+ newinitd "${FILESDIR}"/ttrssd.initd ttrssd
+ newconfd "${FILESDIR}"/ttrssd.confd ttrssd
+ else
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ fi
+
+ webapp_src_install
+}