From a5e073e1bae7f786860f175ac9bb9709ee605437 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 9 Oct 2025 11:57:26 +1100 Subject: [PATCH] initial commit of file from CVS for tt-rss on Thu Oct 9 11:57:26 AEDT 2025 --- .gitattributes | 1 + .gitignore | 3 + Makefile | 20 +++ README.md | 8 +- contriborbase | 1 + cron | 3 + httpd.conf | 18 ++ logrotate.conf | 9 + tt-rss-20211029.git9714c4fbcf.tar.xz | 3 + tt-rss.spec | 253 +++++++++++++++++++++++++++ 10 files changed, 318 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 cron create mode 100644 httpd.conf create mode 100644 logrotate.conf create mode 100644 tt-rss-20211029.git9714c4fbcf.tar.xz create mode 100644 tt-rss.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1177240 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.xz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5a1a362 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# Makefile for source rpm: tt-rss +NAME := tt-rss +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 9f4af6e..6f9bb1e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # tt-rss -3rd Party (Maintained by Koozali) git repo for tt-rss smecontribs \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for tt-rss smecontribs + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/cron b/cron new file mode 100644 index 0000000..46aab45 --- /dev/null +++ b/cron @@ -0,0 +1,3 @@ +#!/bin/sh +HOME=__ROOT_DIR__ +* * * * * __APACHE__ [ -f __ROOT_DIR__/update.php ] && /usr/bin/php __ROOT_DIR__/update.php -feeds > __LOG_FILE__ 2>&1 diff --git a/httpd.conf b/httpd.conf new file mode 100644 index 0000000..34b060f --- /dev/null +++ b/httpd.conf @@ -0,0 +1,18 @@ +# tt-rss config + +Alias /tt-rss __ROOT_DIR__ + + + Options None + AddType application/x-httpd-php .php .php3 .phtml + php_admin_value open_basedir /tmp:__ROOT_DIR__:__CACHE_DIR__:__LOCK_DIR__ + php_admin_value memory_limit 64M + php_admin_flag allow_url_fopen on + order deny,allow + deny from all + allow from localhost + + + + deny from all + diff --git a/logrotate.conf b/logrotate.conf new file mode 100644 index 0000000..4cee9e1 --- /dev/null +++ b/logrotate.conf @@ -0,0 +1,9 @@ +__LOG_DIR__ { + missingok + copytruncate + rotate 12 + compress + weekly + create 0660 __APACHE__ __APACHE__ +} + diff --git a/tt-rss-20211029.git9714c4fbcf.tar.xz b/tt-rss-20211029.git9714c4fbcf.tar.xz new file mode 100644 index 0000000..fddcc93 --- /dev/null +++ b/tt-rss-20211029.git9714c4fbcf.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92dc7fc8e870fc906cba66b76071d5a1b54603872ed81e4ae31321c719f654e5 +size 6154180 diff --git a/tt-rss.spec b/tt-rss.spec new file mode 100644 index 0000000..eb789d9 --- /dev/null +++ b/tt-rss.spec @@ -0,0 +1,253 @@ +%define name tt-rss +%define version 20211029.git9714c4fbcf +%define release 1 +%define httpuser apache + +Summary: Web based RSS reader +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +License: GPLv3 +URL: https://tt-rss.org/ +Group: Applications/Internet +Source: %{name}-%{version}.tar.xz +Source1: httpd.conf +Source2: cron +Source3: logrotate.conf + +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version} + +Requires: php-gd +Requires: httpd +Requires: logrotate + +%description +Tiny Tiny RSS is an open source web-based news feed (RSS/Atom) +aggregator, designed to allow you to read news from any location, +while feeling as close to a real desktop application as possible. + +%prep +%setup -q -n tt-rss + +%build +# empty build + +%install +%{__rm} -rf $RPM_BUILD_ROOT +%{__mkdir} -p %{buildroot}/%{_datadir}/%{name} +for a in $(find ./ -mindepth 1 -maxdepth 1 -type d -print); do + cp -r $a %{buildroot}/%{_datadir}/%{name}/ +done +#cp {*.php,*.xsl} %{buildroot}/%{_datadir}/%{name}/ +cp *.php %{buildroot}/%{_datadir}/%{name}/ +%{__rm} -rf .buildpath .gitignore .project + +# rename icons to rssicons so it won't clash with the global icons directory +%{__mv} %{buildroot}/%{_datadir}/%{name}/feed-icons %{buildroot}/%{_datadir}/%{name}/rssicons + +# remove cache and lock directories +%{__rm} -Rf %{buildroot}/%{_datadir}/%{name}/{cache,lock} + +# And create them at the correct place +%{__mkdir} -p %{buildroot}/%{_localstatedir}/cache/%{name}/{simplepie,images,export,js,upload,starred-images} +%{__mkdir} -p %{buildroot}/%{_localstatedir}/lock/%{name} +%{__mkdir} -p %{buildroot}/%{_sysconfdir}/tmpfiles.d +/bin/echo "d %{_localstatedir}/lock/%{name} 0775 root www 0" > %{buildroot}/%{_sysconfdir}/tmpfiles.d/%{name}.conf + +sed -e "s|\"pgsql\"|\"mysql\"|g" \ + -e "s|cache|%{_localstatedir}/cache/%{name}/|g" \ + -e "s|\"feed-icons\"|\"rssicons\"|g" \ + -e "s|'lock'|'%{_localstatedir}/lock/%{name}'|g" \ + config.php-dist \ + > %{buildroot}/%{_datadir}/%{name}/config.php + +%{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/ +%{__install} -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf +sed -i -e "s|__ROOT_DIR__|%{_datadir}/%{name}|g" \ + -e "s|__CACHE_DIR__|%{_localstatedir}/cache/%{name}|g" \ + -e "s|__LOCK_DIR__|%{_localstatedir}/lock/%{name}|g" \ + %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf + +%{__mkdir} -p %{buildroot}/%{_localstatedir}/log/ +touch %{buildroot}/%{_localstatedir}/log/%{name}.log + +%{__mkdir} -p %{buildroot}/%{_sysconfdir}/cron.d +%{__install} -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/cron.d/%{name} +sed -i -e "s|__APACHE__|%{httpuser}|g" \ + -e "s|__ROOT_DIR__|%{_datadir}/%{name}|g" \ + -e "s|__LOG_FILE__|%{_localstatedir}/log/%{name}.log|g" \ + %{buildroot}/%{_sysconfdir}/cron.d/%{name} + +%{__mkdir} -p %{buildroot}/%{_sysconfdir}/logrotate.d/ +%{__install} -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name} +sed -i -e "s|__LOG_DIR__|%{_localstatedir}/log/%{name}.log|g" \ + -e "s|__APACHE__|%{httpuser}|g" \ + %{SOURCE3} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name} + +%clean +rm -rf %{buildroot} + +%post + +%postun + +%files +%defattr(-,root,root) +%doc README.md +%{_datadir}/%{name} +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/cache/%{name}/simplepie +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/cache/%{name}/images +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/cache/%{name}/export +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/cache/%{name}/js +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/cache/%{name}/upload +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/cache/%{name}/starred-images +%dir %attr(775,root,%{httpuser}) %{_localstatedir}/lock/%{name}/ +%dir %attr(775,root,%{httpuser}) %{_datadir}/%{name}/rssicons +%attr(660,root,%{httpuser}) %{_localstatedir}/log/%{name}.log +%config(noreplace) %attr(660,root,%{httpuser}) %{_datadir}/%{name}/config.php +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf +%config(noreplace) %{_sysconfdir}/cron.d/%{name} +%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} +%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf + + +%changelog +* Thu Oct 09 2025 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Mon Nov 1 2021 Michel Begue 20211029.git9714c4fbcf-1 +- first import to Sme 10 +- Declare /var/lock/tt-rss directory in tmpfiles.d to be created at boot + +* Thu Jul 13 2017 Daniel Berteaud 20170713.gite6d77d2b-1 +- Update to GIT e6d77d2b +- Remove SELinux tests in spec file + +* Tue Feb 16 2016 Daniel Berteaud 20151028.gitd38cd412-2 +- fix item_id not being properly escaped in pref_feeds::process_category_order() + (possible sql injection), backport a5556c2471973e292dce615fe0c77fdbbc54405b + +* Wed Oct 28 2015 Daniel Berteaud 20151028.gitd38cd412-1 +- Update to GIT d38cd412 + +* Wed Sep 2 2015 Daniel Berteaud 20150902.git2606a4e3-1 +- Update to GIT 2606a4e3 + +* Mon Jun 29 2015 Daniel Berteaud 20150629.git87c67f-1 +- Switch to the new rolling release model +- Update to 2015-06-29 + +* Sat Dec 13 2014 Daniel Berteaud 1.15.3-1 +- Update to 1.15.3 + +* Mon Dec 8 2014 Daniel Berteaud 1.15-1 +- Update to 1.15 + +* Tue Oct 21 2014 Daniel Berteaud 1.14-1 +- update to 1.14 + +* Mon Jul 21 2014 Daniel Berteaud 1.13-1 +- update to 1.13 + +* Fri Mar 21 2014 Daniel Berteaud 1.12-1 +- update to 1.12 + +* Wed Dec 18 2013 Daniel Berteaud 1.11-1 +- Update to 1.11 + +* Fri Nov 15 2013 Daniel Berteaud 1.10-3 +- Spec file cleanup + +* Tue Sep 24 2013 Daniel Berteaud 1.10-2 +- Create missing starred-images cache dir + +* Mon Sep 23 2013 Daniel Berteaud 1.10-1 +- udpate to 1.10 + +* Sun Jul 21 2013 Daniel Berteaud 1.9-1 +- update to 1.9 + +* Wed Jun 12 2013 Daniel Berteaud 1.8-1 +- update to 1.8 + +* Tue May 14 2013 Daniel Berteaud 1.7.9-2 +- Add upload subdir in cache + +* Tue May 14 2013 Daniel Berteaud 1.7.9-1 +- upstream upgrade to 1.7.9 + +* Thu Apr 4 2013 Daniel Berteaud 1.7.8-1 +- upstream upgrade to 1.7.8 + +* Thu Apr 4 2013 Daniel Berteaud 1.7.7-1 +- upstream upgrade to 1.7.7 + +* Wed Apr 3 2013 Daniel Berteaud 1.7.6-2 +- upstream upgrade to 1.7.6 + +* Sat Mar 23 2013 Daniel Berteaud 1.7.5-2 +- Add missing js directory in /var/cache/tt-rss + +* Sat Mar 23 2013 Daniel Berteaud 1.7.5-1 +- upstream upgrade to 1.7.5 + +* Sun Mar 17 2013 Daniel Berteaud 1.7.4-1 +- upstream upgrade to 1.7.4 + +* Tue Mar 5 2013 Daniel Berteaud 1.7.1-1 +- upstream upgrade to 1.7.1 + +* Thu Dec 20 2012 Daniel B. 1.6.2-1 +- upstream upgrade to 1.6.2 + +* Wed Nov 14 2012 Daniel B. 1.6.1-1 +- upstream upgrade to 1.6.1 + +* Mon May 21 2012 Daniel B. 1.5.11-12 +- upstream upgrade to 1.5.11 + +* Fri Mar 02 2012 Daniel B. 1.5.10-11 +- upstream upgrade to 1.5.10 + +* Thu Feb 02 2012 Daniel B. 1.5.9-11 +- upstream upgrade to 1.5.9 + +* Fri Jan 06 2012 Daniel B. 1.5.8.1-11 +- upstream upgrade to 1.5.8.1 + +* Fri Nov 25 2011 Daniel B. 1.5.7-10 +- upstream upgrade to 1.5.7 + +* Wed Sep 28 2011 Daniel B. 1.5.5-8 +- Don't exit with error if SELinux is disabled + +* Fri Jul 22 2011 Daniel B. 1.5.5-7 +- Upstream upgrade to 1.5.5 + +* Mon Jul 04 2011 Daniel B. 1.5.3-6 +- Don't restart apache on install/remove/upgrade + +* Sat Jul 2 2011 Daniel B. 1.5.3-5 +- create htmlpurifier cache directory + +* Tue May 17 2011 Daniel B. 1.5.3-4 +- Upstream upgrade to 1.5.3 + +* Mon Mar 21 2011 Daniel B. 1.5.2-4 +- upstream upgrade to 1.5.2 +- Read HTTP_TTRSS_LEVEL from LemonLDAP + +* Wed Jan 26 2011 Daniel B. 1.5.1-3 +- Completly disable sanity checks (which are far too strict) + +* Wed Jan 26 2011 Daniel B. 1.5.1-2 +- Allow open_basedir restriction + +* Wed Jan 26 2011 Daniel B. 1.5.1-1 +- upstream upgrade to 1.5.1 + +* Mon Jan 03 2011 Daniel B. 1.5.0-0 +- initial release +- include patches for a better integration with LemonLDP::NG