comparison packages/redhat/noffle.spec @ 150:1c7303c71f66 noffle

[svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line starting with '\0' - according to the leafnode mailing list, this has been seen in the wild. * docs/inews.1,docs/noffle.1,docs/noffle.conf.5, packages/redhat/noffle.spec,src/configfile.h,src/configfile.c, src/noffle.c,src/post.h,src/post.c: Removed use of getopt_long, and added inews mode - the Noffle executable behaves as inews is invoked as inews. This includes adding From: and Organization: headers if necessary - add configs to override defaults for the From: domain and specify the organization. For all my fellow trn-heads out there, and users of any other ageing newsreader that expects inews. Updated RPM spec to create inews link to noffle on install.
author bears
date Thu, 26 Oct 2000 22:21:13 +0100
parents d23f038454d4
children 79e324213734
comparison
equal deleted inserted replaced
149:bfeea2bc09b6 150:1c7303c71f66
10 Source: http://download.sourceforge.net/noffle/%{name}-%{version}.tar.gz 10 Source: http://download.sourceforge.net/noffle/%{name}-%{version}.tar.gz
11 Prefix: /usr 11 Prefix: /usr
12 12
13 Requires: gdbm 13 Requires: gdbm
14 Requires: mailx 14 Requires: mailx
15 Requires: textutils
16 15
17 %description 16 %description
18 NOFFLE is a news server optimized for low speed dialup connection to the 17 NOFFLE is a news server optimized for low speed dialup connection to the
19 Internet and few users. It allows reading news offline with many news reader 18 Internet and few users. It allows reading news offline with many news reader
20 programs, even if they do not support offline reading by themselves. 19 programs, even if they do not support offline reading by themselves.
45 install -m 0600 -o news -g news noffle.conf.example $RPM_BUILD_ROOT/etc/noffle.conf 44 install -m 0600 -o news -g news noffle.conf.example $RPM_BUILD_ROOT/etc/noffle.conf
46 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc/cron.daily 45 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc/cron.daily
47 install -m 0755 -o news -g news packages/redhat/noffle-expire $RPM_BUILD_ROOT/etc/cron.daily/noffle-expire 46 install -m 0755 -o news -g news packages/redhat/noffle-expire $RPM_BUILD_ROOT/etc/cron.daily/noffle-expire
48 47
49 %post 48 %post
49 # Create inews line
50 ln -sf $RPM_BUILD_ROOT/%{prefix}/bin/noffle $RPM_BUILD_ROOT/%{prefix}/bin/inews
50 # Update /etc/inetd.conf 51 # Update /etc/inetd.conf
51 if ! grep -q '^[# \t]*nntp' /etc/inetd.conf ; then 52 if ! grep -q '^[# \t]*nntp' /etc/inetd.conf ; then
52 echo >> /etc/inetd.conf 53 echo >> /etc/inetd.conf
53 echo "nntp stream tcp nowait news /usr/sbin/tcpd %{prefix}/bin/noffle -r" >> /etc/inetd.conf 54 echo "nntp stream tcp nowait news /usr/sbin/tcpd %{prefix}/bin/noffle -r" >> /etc/inetd.conf
54 if [ -f /var/run/inetd.pid ] ; then 55 if [ -f /var/run/inetd.pid ] ; then
64 echo 65 echo
65 66
66 %postun 67 %postun
67 # The script gets 0 on uninstall, 1 on upgrade. Don't remove 68 # The script gets 0 on uninstall, 1 on upgrade. Don't remove
68 # hosts.deny/inetd.conf lines on upgrade. 69 # hosts.deny/inetd.conf lines on upgrade.
70 rm $RPM_BUILD_ROOT/%{prefix}/bin/inews
69 if [ "$1" = 0 ] ; then 71 if [ "$1" = 0 ] ; then
70 if [ -f /etc/inetd.conf ] && 72 if [ -f /etc/inetd.conf ] &&
71 grep noffle /etc/inetd.conf > /dev/null 2>&1 ; then 73 grep noffle /etc/inetd.conf > /dev/null 2>&1 ; then
72 if grep -v noffle /etc/inetd.conf > /tmp/inetd.$$ ; then 74 if grep -v noffle /etc/inetd.conf > /tmp/inetd.$$ ; then
73 mv -f /tmp/inetd.$$ /etc/inetd.conf 75 mv -f /tmp/inetd.$$ /etc/inetd.conf
91 %config /etc/noffle.conf 93 %config /etc/noffle.conf
92 %doc README INSTALL ChangeLog docs/FAQ docs/NOTES docs/INTERNALS docs/noffle.lsm COPYING noffle.conf.example 94 %doc README INSTALL ChangeLog docs/FAQ docs/NOTES docs/INTERNALS docs/noffle.lsm COPYING noffle.conf.example
93 %{prefix}/bin/noffle 95 %{prefix}/bin/noffle
94 %{prefix}/man/man1/noffle.1 96 %{prefix}/man/man1/noffle.1
95 %{prefix}/man/man5/noffle.conf.5 97 %{prefix}/man/man5/noffle.conf.5
98 %{prefix}/bin/inews
96 /etc/cron.daily/noffle-expire 99 /etc/cron.daily/noffle-expire
97 %dir /var/spool/noffle 100 %dir /var/spool/noffle
98 %dir /var/spool/noffle/data 101 %dir /var/spool/noffle/data
99 %dir /var/spool/noffle/lock 102 %dir /var/spool/noffle/lock
100 %dir /var/spool/noffle/requested 103 %dir /var/spool/noffle/requested
101 %dir /var/spool/noffle/outgoing 104 %dir /var/spool/noffle/outgoing
102 %dir /var/spool/noffle/overview 105 %dir /var/spool/noffle/overview
103 106
104 %changelog 107 %changelog
108 * Thu Oct 26 2000 Jim Hague <jim.hague@am.org>
109 - Added inews link.
110
105 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org> 111 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org>
106 - Version 1.0pre6-3 RPM 112 - Version 1.0pre6-3 RPM
107 - Changed /etc/noffle.conf mode to 0600 in case server password is required 113 - Changed /etc/noffle.conf mode to 0600 in case server password is required
108 - Added noffle line to /etc/hosts.deny 114 - Added noffle line to /etc/hosts.deny
109 - Make inetd.conf handling match linuxconf - don't keep old files and only 115 - Make inetd.conf handling match linuxconf - don't keep old files and only