aboutsummaryrefslogtreecommitdiffstats
path: root/www-apps
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/tt-rss/Manifest2
-rw-r--r--www-apps/tt-rss/tt-rss-1.4.0.ebuild58
2 files changed, 60 insertions, 0 deletions
diff --git a/www-apps/tt-rss/Manifest b/www-apps/tt-rss/Manifest
index ee60b3d..3400fcc 100644
--- a/www-apps/tt-rss/Manifest
+++ b/www-apps/tt-rss/Manifest
@@ -2,6 +2,8 @@ AUX postinstall-en.txt 58 RMD160 b457795efe41cee2f36bbe6fa37a3eb983a9af62 SHA1 2
AUX tt-rss.conf.d 369 RMD160 873bfc8d836fc1bb70ac040e685429a1e4a628f6 SHA1 d882baec5bc4a13fa0ba32502bc61bec709cac2c SHA256 08c57db08be935b448fba902599b0682e1036d9e0b112dd271f32cf871bea996
AUX tt-rss.init.d 959 RMD160 5cbdd0bd776d5666dbdb0d01d6c2d59865758a98 SHA1 bcaf82869d8a854f7b32f1f1c63157b88c1a68eb SHA256 5d7ec4080508701136bbc8563beda8c1c0a54742af320a532f325043d5d7aa40
DIST tt-rss-1.3.4.tar.gz 1037216 RMD160 5497df638ddf839013c949e1b2d1572ec9f7a0e7 SHA1 1468533d39632582e6f464869ac538041896423f SHA256 96d19c6885ddc6ac38a4890f47f0961966fdb54b308f1080a791a7b8f0d4ac41
+DIST tt-rss-1.4.0.tar.gz 1181499 RMD160 a79023dcac842ee9d2e4924d7bf8b7de05a1f725 SHA1 e61b1ac41803050d4ed4b2723ae6e0bce9e46998 SHA256 d2634c2d330e86ec6694ee69698025cc873d5b995fa0983fa0cc662470cb068e
EBUILD tt-rss-1.3.4.ebuild 1613 RMD160 8de479a6b4f0e7996c83bd046641afc74a7896ec SHA1 08d8eb235267745ac5e595f1c802eefa39864dcd SHA256 c010395bd74747033e10cdb1a1284ebece2c7066421105dfe9891780100ee053
+EBUILD tt-rss-1.4.0.ebuild 1613 RMD160 8de479a6b4f0e7996c83bd046641afc74a7896ec SHA1 08d8eb235267745ac5e595f1c802eefa39864dcd SHA256 c010395bd74747033e10cdb1a1284ebece2c7066421105dfe9891780100ee053
MISC ChangeLog 1558 RMD160 4d24732b3363f4c14333dc77ae739c21d1e52e0d SHA1 1ffe925769c2f56832ac67b28ea8ba9d57424040 SHA256 7248d4cfc6f3294cd44db8adc215c4720291429e4b77f10aff068dc03adeb640
MISC metadata.xml 171 RMD160 ed284df01c230fc7990a6b5888b39166d23f29ba SHA1 f3d64a69044b710e23fb874b3ee4cd338858c8b4 SHA256 a7b30fbacd0e4c312c07a3efac112a3794c81d134442d8104325734d03425adf
diff --git a/www-apps/tt-rss/tt-rss-1.4.0.ebuild b/www-apps/tt-rss/tt-rss-1.4.0.ebuild
new file mode 100644
index 0000000..cc8880e
--- /dev/null
+++ b/www-apps/tt-rss/tt-rss-1.4.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit 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="mysql mysqli postgres"
+
+DEPEND="dev-lang/php[mysql?,mysqli?,postgres?]"
+RDEPEND="${DEPEND}"
+
+need_httpd_cgi
+need_php_httpd
+
+pkg_setup() {
+ webapp_pkg_setup
+ use mysql && require_php_with_use mysql
+ use mysqli && require_php_with_use mysqli
+ use postgres && require_php_with_use postgres
+}
+
+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 mysqli ) && ! 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}"/icons
+
+ webapp_serverowned "${MY_HTDOCSDIR}"/icons
+ webapp_configfile "${MY_HTDOCSDIR}"/config.php
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}
+
+pkg_postinst() {
+ elog "If you want to use the update daemon, you could find"
+ elog "a conf.d file and an init script in ${FILESDIR}."
+}