tt-rss 1.13 added
This commit is contained in:
parent
3c9a02a478
commit
6af601c156
|
@ -0,0 +1 @@
|
||||||
|
DIST tt-rss-1.13.tar.gz 2779604 SHA256 4181fcd1ed2ac09d77dde11569c2928e33dd46ed9389a65fb94e452aa3dc5a11 SHA512 1f2f093272de9135897ba1ee3c0a01f80d241d1afd205c8aa31d75201f8d69c6eae5ece5381bfe027c5c0d05f9b7d7ad2d65d545a556a024cedac4508bb42aa9 WHIRLPOOL 36d8bf423aab818b028f7abf776d0514cc56fadeceb9cb4d6d9788213dab2a60f6964d2d1b7ea1df8cccbd4e26896fbe67764301f11d3289194d6199643dc68a
|
|
@ -0,0 +1,19 @@
|
||||||
|
Please read http://tt-rss.org/redmine/projects/tt-rss/wiki/InstallationNotes
|
||||||
|
|
||||||
|
Once you have configured TT-RSS, put the path to this instance into
|
||||||
|
the INSTANCE_DIRS variable in /etc/conf.d/ttrssd. Make sure that
|
||||||
|
the ttrssd user can access the path, and then start the update daemon
|
||||||
|
with
|
||||||
|
|
||||||
|
/etc/init.d/ttrssd start
|
||||||
|
|
||||||
|
to get your feeds updated. Add the daemon to your default runlevel,
|
||||||
|
so that it gets launched after a system restart:
|
||||||
|
|
||||||
|
rc-update add ttrssd default
|
||||||
|
|
||||||
|
|
||||||
|
With the update to 1.7.0 the 'magpie' RSS parser has been removed.
|
||||||
|
That means TT-RSS will use the 'simplepie' parser. If you have been
|
||||||
|
using 'magpie' so far, the switch might cause lots of duplicate
|
||||||
|
articles - it's a one-time thing for each instance.
|
|
@ -0,0 +1,6 @@
|
||||||
|
Please read http://tt-rss.org/redmine/projects/tt-rss/wiki/InstallationNotes
|
||||||
|
|
||||||
|
With the update to 1.7.0 the 'magpie' RSS parser has been removed.
|
||||||
|
That means TT-RSS will use the 'simplepie' parser. If you have been
|
||||||
|
using 'magpie' so far, the switch might cause lots of duplicate
|
||||||
|
articles - it's a one-time thing for each instance.
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 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/files/ttrssd.confd-r1,v 1.1 2013/03/24 10:22:25 scarabeus Exp $
|
||||||
|
|
||||||
|
# Path to TT-RSS instances which should have running update daemon.
|
||||||
|
# EXAMPLE: INSTANCE_DIRS="/some/webhost/htdocs/tt-rss /some/otherwebhost/htdocs/newsreader"
|
||||||
|
INSTANCE_DIRS=""
|
||||||
|
|
||||||
|
# Path to log file. Remember to alter logrotate file if you change it here.
|
||||||
|
LOGFILE="/var/log/ttrssd.log"
|
||||||
|
|
||||||
|
# User and group which run the update daemon.
|
||||||
|
# NOTE: you should really avoid running it as root.
|
||||||
|
TTRSSD_USER="ttrssd"
|
||||||
|
TTRSSD_GROUP="ttrssd"
|
|
@ -0,0 +1,83 @@
|
||||||
|
#!/sbin/runscript
|
||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need logger net
|
||||||
|
after postgres mysql
|
||||||
|
}
|
||||||
|
|
||||||
|
LOGFILE=${LOGFILE:-"/var/log/ttrssd.log"}
|
||||||
|
TTRSSD_USER=${TTRSSD_USER:-"ttrssd"}
|
||||||
|
TTRSSD_GROUP=${TTRSSD_GROUP:-"ttrssd"}
|
||||||
|
INSTANCE_FOLDERS="cache lock feed-icons"
|
||||||
|
BASE_PID="/run/ttrssd"
|
||||||
|
|
||||||
|
checkconfig() {
|
||||||
|
local instance instancepidname dir
|
||||||
|
|
||||||
|
# check instances
|
||||||
|
if [ -z "${INSTANCE_DIRS}" ]; then
|
||||||
|
eerror "There is no defined instance directory in /etc/conf.d/ttrssd"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# verify log file accessibility
|
||||||
|
if [ ! -e "${LOGFILE}" ]; then
|
||||||
|
touch "${LOGFILE}" || return 1
|
||||||
|
fi
|
||||||
|
chown "${TTRSSD_USER}":"${TTRSSD_GROUP}" "${LOGFILE}" || return 1
|
||||||
|
|
||||||
|
mkdir -p "${BASE_PID}"
|
||||||
|
|
||||||
|
# check instances for errors
|
||||||
|
for instance in ${INSTANCE_DIRS}; do
|
||||||
|
instancepidname=$(echo "${instance}.pid" | sed -e 's|/||' -e 's|/|--|g')
|
||||||
|
|
||||||
|
if [ ! -f "${instance}/update_daemon2.php" ]; then
|
||||||
|
eerror "\"${instance}\" does not contain update_daemon2.php script."
|
||||||
|
eerror "Please check your installation or the INSTANCE_DIRS variable."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# NOTE: This can't be done by webapp-config if we want runtime configurable TTRSSD_GROUP
|
||||||
|
for dir in ${INSTANCE_FOLDERS}; do
|
||||||
|
if [ -d "${instance}/${dir}" ]; then
|
||||||
|
chown -R ":${TTRSSD_GROUP}" "${instance}/${dir}" || return 1
|
||||||
|
chmod -R g+w "${instance}/${dir}" || return 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
start () {
|
||||||
|
local instance instancepidname
|
||||||
|
|
||||||
|
checkconfig || return 1
|
||||||
|
|
||||||
|
for instance in ${INSTANCE_DIRS}; do
|
||||||
|
instancepidname=$(echo "${instance}.pid" | sed -e 's|/||' -e 's|/|--|g')
|
||||||
|
mypid="${BASE_PID}/${instancepidname}"
|
||||||
|
ebegin "Starting TT-RSS update daemon in \"${instance}\""
|
||||||
|
start-stop-daemon --start --user "${TTRSSD_USER}":"${TTRSSD_GROUP}" --background \
|
||||||
|
--stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
||||||
|
--make-pidfile --pidfile "${mypid}" \
|
||||||
|
--exec /usr/bin/php -- -f "${instance}/update_daemon2.php"
|
||||||
|
eend $?
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
local instance instancepidname
|
||||||
|
|
||||||
|
for instance in ${INSTANCE_DIRS}; do
|
||||||
|
instancepidname=$(echo "${instance}.pid" | sed -e 's|/||' -e 's|/|--|g')
|
||||||
|
mypid="${BASE_PID}/${instancepidname}"
|
||||||
|
ebegin "Stopping TT-RSS update daemon in \"${instance}\""
|
||||||
|
start-stop-daemon --stop \
|
||||||
|
--pidfile "${mypid}" \
|
||||||
|
--exec /usr/bin/php -- -f "${instance}/update_daemon2.php"
|
||||||
|
eend $?
|
||||||
|
rm -f ${instance}/lock/*.lock
|
||||||
|
done
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
/var/log/ttrssd.log {
|
||||||
|
daily
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
postrotate
|
||||||
|
/etc/init.d/ttrssd restart > /dev/null
|
||||||
|
endscript
|
||||||
|
}
|
|
@ -0,0 +1,82 @@
|
||||||
|
# Copyright 1999-2014 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.13.ebuild,v 1.1 2014/04/04 11:22:05 tomka Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit user eutils webapp depend.php depend.apache vcs-snapshot
|
||||||
|
|
||||||
|
DESCRIPTION="Tiny Tiny RSS - A web-based news feed (RSS/Atom) aggregator using AJAX"
|
||||||
|
HOMEPAGE="http://tt-rss.org/"
|
||||||
|
SRC_URI="https://github.com/gothfox/Tiny-Tiny-RSS/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
KEYWORDS="~amd64 ~mips ~x86"
|
||||||
|
IUSE="daemon +mysql postgres"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
daemon? ( dev-lang/php[mysql?,postgres?,pcntl,curl] )
|
||||||
|
!daemon? ( dev-lang/php[mysql?,postgres?,curl] )
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
REQUIRED_USE="|| ( mysql postgres )"
|
||||||
|
|
||||||
|
need_httpd_cgi
|
||||||
|
need_php_httpd
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
webapp_pkg_setup
|
||||||
|
|
||||||
|
if use daemon; then
|
||||||
|
enewgroup ttrssd
|
||||||
|
enewuser ttrssd -1 /bin/sh /dev/null ttrssd
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Customize config.php-dist so that the right 'DB_TYPE' is already set (according to the USE flag)
|
||||||
|
einfo "Customizing config.php-dist..."
|
||||||
|
|
||||||
|
if use mysql && ! use postgres; then
|
||||||
|
sed -i \
|
||||||
|
-e "/define('DB_TYPE',/{s:pgsql:mysql:}" \
|
||||||
|
config.php-dist || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "/define('DB_TYPE',/{s:// \(or mysql\):// pgsql \1:}" \
|
||||||
|
config.php-dist || die
|
||||||
|
|
||||||
|
# per 462578
|
||||||
|
epatch_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
webapp_src_preinst
|
||||||
|
|
||||||
|
insinto "/${MY_HTDOCSDIR}"
|
||||||
|
doins -r *
|
||||||
|
keepdir "/${MY_HTDOCSDIR}"/feed-icons
|
||||||
|
|
||||||
|
for DIR in cache lock feed-icons; do
|
||||||
|
webapp_serverowned -R "${MY_HTDOCSDIR}/${DIR}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# In the old days we put a config.php directly and tried to
|
||||||
|
# protect it with the following which did not work reliably.
|
||||||
|
# These days we only install the config.php-dist file.
|
||||||
|
# webapp_configfile "${MY_HTDOCSDIR}"/config.php
|
||||||
|
|
||||||
|
if use daemon; then
|
||||||
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en-with-daemon.txt
|
||||||
|
newinitd "${FILESDIR}"/ttrssd.initd-r2 ttrssd
|
||||||
|
newconfd "${FILESDIR}"/ttrssd.confd-r1 ttrssd
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}"/ttrssd.logrotated ttrssd
|
||||||
|
else
|
||||||
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
webapp_src_install
|
||||||
|
}
|
Loading…
Reference in New Issue