aboutsummaryrefslogtreecommitdiffstats
path: root/www-apps/tt-rss/files
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 /www-apps/tt-rss/files
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
Diffstat (limited to '')
-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
3 files changed, 56 insertions, 0 deletions
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 $?
+}