summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2012-12-03 19:42:26 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2012-12-03 19:42:26 +0000
commit46737e2d6bda82f372ef0676e8ebff40428186e0 (patch)
treef32a56ed03435b97b5e0324e3d9f691ee13e61e8 /www-apps
parentStable for ppc, wrt bug #373783 (diff)
downloadgentoo-2-46737e2d6bda82f372ef0676e8ebff40428186e0.tar.gz
gentoo-2-46737e2d6bda82f372ef0676e8ebff40428186e0.tar.bz2
gentoo-2-46737e2d6bda82f372ef0676e8ebff40428186e0.zip
Version bump. Bug #443488. Thanks to Patrick <mail@patrick-nagel.net>
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/tt-rss/ChangeLog8
-rw-r--r--www-apps/tt-rss/tt-rss-1.6.1.ebuild74
2 files changed, 80 insertions, 2 deletions
diff --git a/www-apps/tt-rss/ChangeLog b/www-apps/tt-rss/ChangeLog
index 9d7b16763eed..981b3f5d0e27 100644
--- a/www-apps/tt-rss/ChangeLog
+++ b/www-apps/tt-rss/ChangeLog
@@ -1,6 +1,11 @@
# 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.10 2012/05/23 18:46:21 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/tt-rss/ChangeLog,v 1.11 2012/12/03 19:42:26 hwoarang Exp $
+
+*tt-rss-1.6.1 (03 Dec 2012)
+
+ 03 Dec 2012; Markos Chandras <hwoarang@gentoo.org> +tt-rss-1.6.1.ebuild:
+ Version bump. Bug #443488. Thanks to Patrick <mail@patrick-nagel.net>
*tt-rss-1.5.11 (23 May 2012)
@@ -55,4 +60,3 @@
+files/postinstall-en.txt, +metadata.xml:
Moved from sunrise overlay. Thanks to Patrick Nagel <mail@patrick-nagel.net>.
Bug #250607
-
diff --git a/www-apps/tt-rss/tt-rss-1.6.1.ebuild b/www-apps/tt-rss/tt-rss-1.6.1.ebuild
new file mode 100644
index 000000000000..de3157ebb4ba
--- /dev/null
+++ b/www-apps/tt-rss/tt-rss-1.6.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2012 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.1.ebuild,v 1.1 2012/12/03 19:42:26 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
+}