Name: leafnode Version: 1.12.0 Release: 1%{?dist} Summary: Leaf site offline NNTP server License: MIT and LGPLv2 Group: Applications/Internet URL: http://www.leafnode.org Source0: http://download.sourceforge.net/leafnode/leafnode-%{version}.tar.xz Source1: leafnode.socket Source2: leafnode@.service Source3: leafnode-expire.timer Source4: leafnode-expire.service Source5: leafnode-fetch.timer Source6: leafnode-fetch.service Source7: leafnode-stunnel.conf Patch1: leafnode-1.11.8-nonettests.patch BuildRequires: pcre2-devel BuildRequires: systemd-units BuildRequires: gcc Requires: NetworkManager Requires(pre): shadow-utils Requires(post): grep Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units %define confdir %{_sysconfdir}/leafnode %define spooldir %{_localstatedir}/spool/news %define lockfile %{_localstatedir}/spool/news/leaf.node/lock.file %description Leafnode is a small NNTP server for leaf sites without permanent connection to the internet. It supports a subset of NNTP and is able to automatically fetch the newsgroups the user reads regularly from the newsserver of the ISP. %prep %autosetup -n %{name}-%{version} -p1 cp %{SOURCE7} stunnel.conf.example %build %configure --with-spooldir=%spooldir --sysconfdir=%confdir --with-lockfile=%lockfile --with-ipv6 %make_build %check make check %install %make_install install -d -m 755 %{buildroot}%{_unitdir} install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.socket install -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}@.service install -p -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}-expire.timer install -p -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}-expire.service install -p -m 644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}-fetch.timer install -p -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/%{name}-fetch.service rm %{buildroot}%{_docdir}/%{name}/UNINSTALL-daemontools %pre getent group news >/dev/null || groupadd -r news getent passwd news >/dev/null || \ useradd -r -g news -d /etc/%{name} -s /sbin/nologin -c "News server user" news exit 0 %post if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Initial installation /usr/lib/systemd/systemd-update-helper install-system-units %{name}@.service %{name}.timer || : /usr/lib/systemd/systemd-update-helper install-system-units %{name}-expire.service %{name}-expire.timer || : /usr/lib/systemd/systemd-update-helper install-system-units %{name}-fetch.service %{name}-fetch.timer || : fi %preun if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Package removal, not upgrade /usr/lib/systemd/systemd-update-helper remove-system-units %{name}@.service %{name}.timer || : /usr/lib/systemd/systemd-update-helper remove-system-units %{name}-expire.service %{name}-expire.timer || : /usr/lib/systemd/systemd-update-helper remove-system-units %{name}-fetch.service %{name}-fetch.timer || : fi %postun if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Package upgrade, not uninstall /usr/lib/systemd/systemd-update-helper mark-restart-system-units %{name}@.service %{name}.timer || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units %{name}-expire.service %{name}-expire.timer || : /usr/lib/systemd/systemd-update-helper mark-restart-system-units %{name}-fetch.service %{name}-fetch.timer || : fi %files %defattr(-,root,root) %doc COPYING* CREDITS ChangeLog* FAQ.* INSTALL NEWS README* ADD-ONS %doc stunnel.conf.example %attr(750,root,news) %dir %confdir/ %attr(640,root,news) %confdir/* %{_bindir}/* %{_sbindir}/* %{_mandir}/man?/* %dir %attr(4755,news,news) %spooldir %dir %attr(755,news,news) %spooldir/leaf.node %dir %attr(2775,news,news) %spooldir/failed.postings %dir %attr(2775,news,news) %spooldir/interesting.groups %dir %attr(755,news,news) %spooldir/out.going %dir %attr(755,news,news) %spooldir/temp.files %dir %attr(755,news,news) %spooldir/message.id %{_unitdir}/%{name}@.service %{_unitdir}/%{name}.socket %{_unitdir}/%{name}-expire.service %{_unitdir}/%{name}-expire.timer %{_unitdir}/%{name}-fetch.service %{_unitdir}/%{name}-fetch.timer %clean rm -rf $RPM_BUILD_ROOT %changelog * Thu Jul 28 2022 Greg Wildman - 1.12.0-1 - New version. - Remove cron and provide systemd timers. * Wed Jun 16 2021 Greg Wildman - 1.11.12-1 - New version * Fri Dec 04 2015 Matěj Cepl - 1.11.11-2 - Fix exec bits on scripts again (RHBZ #1173292) * Tue Aug 25 2015 Matěj Cepl - 1.11.11-1 - New upstream release. - Remove   characters from the spec file - Fix bogus dates in the changelog * Wed Jun 17 2015 Fedora Release Engineering - 1.11.8-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.11.8-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.11.8-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.11.8-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.11.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 27 2012 Matěj Cepl - 1.11.8-9 - Fix cronjob. Fixes bug #728685 * Sat Aug 25 2012 Kevin Fenzi 1.11.8-8 - Add systemd macros for presets. Fixes bug #850182 * Thu Jul 19 2012 Fedora Release Engineering - 1.11.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Feb 10 2012 Petr Pisar - 1.11.8-6 - Rebuild against PCRE 8.30 * Sat Jan 28 2012 Kevin Fenzi 1.11.8-5 - Convert to systemd from xinetd. Fixes bug #737676 * Fri Jan 13 2012 Fedora Release Engineering - 1.11.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 1.11.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Aug 05 2010 Kevin Fenzi - 1.11.8-2 - Add patch to avoid network tests during build. * Thu Aug 05 2010 Kevin Fenzi - 1.11.8-1 - Update to 1.11.8 * Fri Jul 24 2009 Fedora Release Engineering - 1.11.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Jul 05 2009 Kevin Fenzi - 1.11.7-3 - Enable ipv6 support * Fri Jul 03 2009 Kevin Fenzi - 1.11.7-2 - Fix xinetd file to use ipv4 for bug #509218 * Fri Jun 05 2009 Kevin Fenzi - 1.11.7-1 - Update to 1.11.7 - Add an example cron script for bug #489592 * Wed Feb 25 2009 Fedora Release Engineering - 1.11.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Jun 16 2008 Kevin Fenzi - 1.11.6-4 - Add news user. fixes bug #437462 * Sun Feb 10 2008 Kevin Fenzi - 1.11.6-3 - Rebuild for gcc43 * Sat Aug 25 2007 Kevin Fenzi - 1.11.6-2 - License tag update. * Sat Mar 17 2007 Kevin Fenzi - 1.11.6-1 - Upgrade to 1.11.6 * Wed Feb 21 2007 Kevin Fenzi - 1.11.5-4 - Hopefully finish fixing permissions (bug 221105) * Mon Jan 22 2007 Kevin Fenzi - 1.11.5-3 - Fix permissions. (see bug 221105) * Thu Oct 05 2006 Christian Iseli 1.11.5-2 - rebuilt for unwind info generation, broken in gcc-4.1.1-21 * Tue Sep 19 2006 Kevin Fenzi - 1.11.5-1 - Take over maintainership (see bug 185883) - Update to 1.11.5-1 - Add dist tag - Remove some doc files that are no longer shipped. - Add check section. - Fix spec file encoding - Fix macros in changelog. * Sun May 22 2005 Jeremy Katz - 1.9.53-3 - rebuild on all arches * Thu Apr 7 2005 Michael Schwendt - rebuilt * Thu May 06 2004 Andreas Pfaffeneder 0:1.9.53-0.fdr1 - Bugfix release * Sun Apr 04 2004 Andreas Pfaffeneder 0:1.9.52-0.fdr1 - Bugfix release * Mon Feb 23 2004 Andreas Pfaffeneder 0:1.9.51-0.fdr1 - Bugfix release * Thu Feb 19 2004 Andreas Pfaffeneder 0:1.9.50-0.fdr.1 - Update to 1.9.50.rel - Bugfix-Release, see the included NEWS - added bind to xinetd.leafnode * Fri Jan 09 2004 Andreas Pfaffeneder 0:1.9.49-0.fdr.1 - Update to 1.9.49.rel - bugfix update - little more detailed changelog * Fri Jan 09 2004 Andreas Pfaffeneder 0:1.9.48-0.fdr.1 - Update to 1.9.48.rel - Security update * Wed Jan 07 2004 Andreas Pfaffeneder 0:1.9.47-0.fdr.1 - Update to 1.9.47.rel - minor cleanup in source0-macro * Wed Nov 12 2003 Andreas Pfaffeneder 0:1.9.46-0.fdr.1 - Update to 1.9.46.rel * Thu Oct 30 2003 Andreas Pfaffeneder 0:1.9.45-0.fdr.1 - Update to 1.9.45.rel - including fixes from Michael Schwendt - including xinetd-file from older release again * Mon Sep 22 2003 Andreas Pfaffeneder 0:1.9.44-0.fdr.1 - Update to 1.9.44.rel - Include new file ADD-ONS - Because an xinetd-file is included now I'll drop mine * Tue Sep 16 2003 Andreas Pfaffeneder 0:1.9.43-0.fdr.0 - Update to 1.9.43.rel * Fri Aug 01 2003 Andreas Pfaffeneder 0:1.9.42-0.fdr.5 - Proper file permissions, changelog, buildrequires and requires * Fri Aug 01 2003 Andreas Pfaffeneder 0:1.9.42-0.fdr.4 - Cleaned up changelog, changed builreq to explicit xinetd * Mon Jul 28 2003 Andreas Pfaffeneder 0:1.9.42-0.fdr.3 - More cleanup: requires, license, *.in-files, directory ownership, daemon-tools * Thu Jul 24 2003 Andreas Pfaffeneder 0:1.9.42-0.fdr.2 - More cleanup, "%%doc (DE)" stays the same, working build * Tue Jul 22 2003 Andreas Pfaffeneder 0:1.9.42-0.fdr.1 - Cleaned up spec-file a little bit, build with SMP-Flags - This spec still needs more work especially "%%doc (DE)" and - %%configure is still a issue - reloaced binaries to /usr/local/bin and /usr/local/sbin * Mon Jul 21 2003 Andreas Pfaffeneder 0:1.9.42-0.fdr.0 - Initial Fedora-RPM release.