Version: 2.0.0.alpha20070108a Summary: Leafnode - a leafsite NNTP server (version %version) Summary(de): Leafnode - ein offline-Newsserver (Version %version) Name: leafnode Release: 3%{?dist} License: MIT Group: Applications/Internet URL: http://www.dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/ Source: http://mandree.home.pages.de/leafnode/beta/leafnode-%version.tar.bz2 Requires: xinetd BuildRequires: pam-devel, pcre-devel %define spooldir /var/spool/news %define confdir /etc/leafnode %define runas_user news %define runas_group news # Distribution: ${DISTRIBUTION} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %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 and additionally offer local (site-specific) groups to a LAN. %description -l de Leafnode ist ein offline-Newsserver, der vor allem für den typischen Einzelnutzer-Rechner ohne permanente Internetanbindung geeignet ist. Leafnode bezieht automatisch die Newsgroups, die der oder die Nutzer regelmäßig lesen, vom Newsserver des Providers. Weiter erlaubt es, lokale (Standort-spezifische) Newsgruppen im LAN anzubieten. %prep %setup -q iconv -f iso-8859-1 -t utf-8 -o leafnode.8.conv leafnode.8.in mv leafnode.8.conv leafnode.8.in %configure \ --enable-spooldir=%spooldir \ --enable-runas-user=%{runas_user} --with-runas-group=%{runas_group} \ --sysconfdir=%{_sysconfdir}/leafnode --with-pam %build make %check make check %install # first clean out any prior aborted runs rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install-strip mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d cat >$RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d/leafnode << EOS service nntp { flags = REUSE socket_type = stream wait = no user = news server = /usr/sbin/leafnode log_on_failure += USERID } EOS mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily cat >$RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/leafnode.cron << EOS #!/bin/sh # Uncomment the following the command to make maintenance of news # spool daily #/usr/sbin/texpire EOS for file in $RPM_BUILD_ROOT/%{_sysconfdir}/leafnode/*.example ; do NEWFN=$(basename $file .example); mv $file $RPM_BUILD_ROOT/%{_sysconfdir}/leafnode/$NEWFN done touch $RPM_BUILD_ROOT/%{_sysconfdir}/leafnode/local.groups %post service xinetd condrestart %preun service xinetd condrestart %files %defattr(-,root,root) %doc config.example filters.example COPYING COPYING.LGPL CREDITS DEBUGGING ENVIRONMENT FAQ.pdf CHANGES-FROM-LEAFNODE-1 NEWS README README-FQDN.pdf TODO %config(noreplace) %attr(640,root,news) %{_sysconfdir}/leafnode/config %config(noreplace) %attr(640,root,news) %{_sysconfdir}/leafnode/filters %config(noreplace) %{_sysconfdir}/xinetd.d/leafnode %config(noreplace) %attr(640,root,news) %{_sysconfdir}/leafnode/uucp %config(noreplace) %attr(640,root,news) %{_sysconfdir}/leafnode/local.groups %config(noreplace) %attr(751,root,root) %{_sysconfdir}/cron.daily/leafnode.cron %attr(755,root,root) %{_bindir}/leafnode-version %attr(755,root,root) %{_bindir}/lsmac.pl %attr(755,root,root) %{_bindir}/newsq %attr(755,root,root) %{_sbindir}/applyfilter %attr(755,root,root) %{_sbindir}/checkgroups %attr(755,root,root) %{_sbindir}/fetchnews %attr(755,root,root) %{_sbindir}/leafnode %attr(755,root,root) %{_sbindir}/rnews %attr(755,root,root) %{_sbindir}/sendbatch.bash %attr(755,root,root) %{_sbindir}/texpire %doc %{_mandir}/man1/* %doc %{_mandir}/man5/* %doc %{_mandir}/man8/* %doc ChangeLog AUTHORS COPYING COPYING.LGPL NEWS %doc CREDITS DEBUGGING ENVIRONMENT FAQ.pdf INSTALL %doc README TODO README-leaf.node FAQ.html FAQ.css %doc README.html DEBUGGING %attr(2755,%{runas_user},%{runas_group}) %spooldir %clean rm -rf $RPM_BUILD_ROOT %changelog * Wed May 23 2007 Matej Cepl - 2.0.0.alpha20070108a-3 - Added support for croning of texpire daily * Thu Apr 26 2007 Matej Cepl - 2.0.0.alpha20070108a-2 - Add pcre-devel to Build-Requires; thanks build.opensuse.org for catching this. - Add /etc/leafnode/local.groups * Fri Mar 23 2007 Matej Cepl - 2.0.0.alpha20070108a-1 - new upstream release - enabled pam * Tue Jan 02 2006 Matěj Cepl 2.0.0.alpha20061010a-0 - experimental build