aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-22 04:08:15 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2010-01-22 04:13:46 +0100
commit6fa3511f330670c1609fd2dd1b1bba08afba5628 (patch)
tree4c810340d712e4ab765f76bb8bf199405df02100
parent26193c609dbc32d3b72f600de4897339e7a3f6f4 (diff)
downloadoverlay-6fa3511f330670c1609fd2dd1b1bba08afba5628.tar.gz
overlay-6fa3511f330670c1609fd2dd1b1bba08afba5628.tar.xz
overlay-6fa3511f330670c1609fd2dd1b1bba08afba5628.zip
added tt-rss ebuild from sunrise overlay with conf.d/init.d file
-rw-r--r--www-apps/tt-rss/ChangeLog44
-rw-r--r--www-apps/tt-rss/Manifest7
-rw-r--r--www-apps/tt-rss/files/postinstall-en.txt1
-rw-r--r--www-apps/tt-rss/files/tt-rss.conf.d15
-rwxr-xr-xwww-apps/tt-rss/files/tt-rss.init.d40
-rw-r--r--www-apps/tt-rss/metadata.xml5
-rw-r--r--www-apps/tt-rss/tt-rss-1.3.4.ebuild58
7 files changed, 170 insertions, 0 deletions
diff --git a/www-apps/tt-rss/ChangeLog b/www-apps/tt-rss/ChangeLog
new file mode 100644
index 0000000..dead8fa
--- /dev/null
+++ b/www-apps/tt-rss/ChangeLog
@@ -0,0 +1,44 @@
+# ChangeLog for www-apps/tt-rss
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 19 Nov 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+ tt-rss-1.3.4.ebuild:
+ Drop unneeded phase
+
+ 10 Nov 2009; Patrick Nagel (padde) <mail@patrick-nagel.net>
+ -tt-rss-1.3.3.ebuild, +tt-rss-1.3.4.ebuild:
+ Version bump for tt-rss (sorry for the delay) + small ebuild improvements
+
+ 08 Jun 2009; Justin Lecher (jlec) <jlec@j-schmitz.net>
+ tt-rss-1.3.3.ebuild:
+ missing webapp_pkg_setup added
+
+ 21 May 2009; Patrick Nagel (padde) <mail@patrick-nagel.net>
+ -tt-rss-1.3.2.ebuild, +tt-rss-1.3.3.ebuild:
+ Version bump for tt-rss
+
+ 06 May 2009; Christian Ruppert <idl0r@gentoo.org> tt-rss-1.3.2.ebuild:
+ Removed unused eutils inherit, use src_prepare instead of src_unpack,
+ added missing die statements.
+
+ 01 Apr 2009; Patrick Nagel (padde) <mail@patrick-nagel.net>
+ -tt-rss-1.3.0.ebuild, +tt-rss-1.3.2.ebuild:
+ Version bump for tt-rss
+
+ 16 Mar 2009; Nick Fortino (nfortino) <nfortino@gmail.com>
+ tt-rss-1.3.0.ebuild:
+ Update ebuild to use EAPI 2. Thanks to Cristian Ruppert and Thomas Sachau
+ for review
+
+ 01 Feb 2009; Patrick Nagel (padde) <mail@patrick-nagel.net>
+ -tt-rss-1.2.30.ebuild, +tt-rss-1.3.0.ebuild:
+ Version bump for tt-rss, minor corrections to the ebuild.
+
+ 27 Dec 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> metadata.xml:
+ Fix metadata
+
+ 27 Dec 2008; Patrick Nagel (padde) <mail@patrick-nagel.net>
+ +tt-rss-1.2.30.ebuild, +files/postinstall-en.txt, +metadata.xml:
+ New Ebuild for bug 250607
+
diff --git a/www-apps/tt-rss/Manifest b/www-apps/tt-rss/Manifest
new file mode 100644
index 0000000..67346f5
--- /dev/null
+++ b/www-apps/tt-rss/Manifest
@@ -0,0 +1,7 @@
+AUX postinstall-en.txt 58 RMD160 b457795efe41cee2f36bbe6fa37a3eb983a9af62 SHA1 2c62f7e3e26d20fe29e12360638c767c6472caf7 SHA256 7c524c14d391c76d72b22c947b68d20321bd98de3f892b1e044c3de6c281de59
+AUX tt-rss.conf.d 369 RMD160 873bfc8d836fc1bb70ac040e685429a1e4a628f6 SHA1 d882baec5bc4a13fa0ba32502bc61bec709cac2c SHA256 08c57db08be935b448fba902599b0682e1036d9e0b112dd271f32cf871bea996
+AUX tt-rss.init.d 923 RMD160 efbce043920a77859d7bb0fe6fd40cfef0e918ca SHA1 4ddb50d2563258bbf3457b89e66cd93884653f2c SHA256 dca190e7f7e75b0cae13615077e7d0fb21c85decdc5bd9f47ff1a18ca7270640
+DIST tt-rss-1.3.4.tar.gz 1037216 RMD160 5497df638ddf839013c949e1b2d1572ec9f7a0e7 SHA1 1468533d39632582e6f464869ac538041896423f SHA256 96d19c6885ddc6ac38a4890f47f0961966fdb54b308f1080a791a7b8f0d4ac41
+EBUILD tt-rss-1.3.4.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/files/postinstall-en.txt b/www-apps/tt-rss/files/postinstall-en.txt
new file mode 100644
index 0000000..369d5e0
--- /dev/null
+++ b/www-apps/tt-rss/files/postinstall-en.txt
@@ -0,0 +1 @@
+Please read http://tt-rss.org/trac/wiki/InstallationNotes
diff --git a/www-apps/tt-rss/files/tt-rss.conf.d b/www-apps/tt-rss/files/tt-rss.conf.d
new file mode 100644
index 0000000..d324069
--- /dev/null
+++ b/www-apps/tt-rss/files/tt-rss.conf.d
@@ -0,0 +1,15 @@
+## conf.d for Tiny Tiny RSS update daemon init.d script
+
+# Emplacement of your Tiny Tiny RSS installation.
+TTRSS_PATH=""
+
+# Set FORKING to 1 to use the forking daemon (update_daemon2.php) in stead of
+# the standard one.
+# This option is only available for Tiny Tiny RSS 1.2.20 and over.
+#FORKING=0
+
+#PIDFILE=/var/run/tt-rss.pid
+
+#PHP=/usr/bin/php
+
+#RUNAS=nobody:nobody
diff --git a/www-apps/tt-rss/files/tt-rss.init.d b/www-apps/tt-rss/files/tt-rss.init.d
new file mode 100755
index 0000000..6d4a682
--- /dev/null
+++ b/www-apps/tt-rss/files/tt-rss.init.d
@@ -0,0 +1,40 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ use net
+}
+
+FORKING=${FORKING:-"0"}
+PIDFILE=${PIDFILE:-"/var/run/tt-rss.pid"}
+PHP=${PHP:-"/usr/bin/php"}
+RUNAS=${RUNAS:-"nobody:nobody"}
+
+DAEMON_SCRIPT="update_daemon.php"
+if [ "$FORKING" != "0" ]; then
+ DAEMON_SCRIPT="update_daemon2.php"
+fi
+
+checkconfig() {
+ if [ ! -e "${TTRSS_PATH}/${DAEMON_SCRIPT}" ]; then
+ eerror "Please set a correct path to the tt-rss installation in /etc/conf.d/tt-rss"
+ return 1
+ fi
+}
+
+start() {
+ ebegin "Starting Tiny Tiny RSS update daemon"
+ start-stop-daemon --start --pidfile "${PIDFILE}" --chdir "${TTRSS_PATH}" \
+ --user ${RUNAS} --exec ${PHP} -- \
+ "${TTRSS_PATH}/${DAEMON_SCRIPT}"
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Tiny Tiny RSS update daemon"
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --user ${RUNAS}
+ eend $?
+}
diff --git a/www-apps/tt-rss/metadata.xml b/www-apps/tt-rss/metadata.xml
new file mode 100644
index 0000000..6f1d493
--- /dev/null
+++ b/www-apps/tt-rss/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/www-apps/tt-rss/tt-rss-1.3.4.ebuild b/www-apps/tt-rss/tt-rss-1.3.4.ebuild
new file mode 100644
index 0000000..cc8880e
--- /dev/null
+++ b/www-apps/tt-rss/tt-rss-1.3.4.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}."
+}