annotate packages/redhat/noffle.spec @ 180:09ca6eb5c7ff noffle

[svn] * TODO,src/client.c,src/client.h,src/fetch.c,src/fetch.h,src/noffle.c: Improve error checking during fetches. A fetch is now aborted immediately if the connection times out or if an unexpected response arrives. This should fix problems with articles appearing in the wrong group, and possibly other mysterious happenings.
author bears
date Wed, 09 May 2001 12:33:43 +0100
parents 1c7303c71f66
children 79e324213734
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
1 Summary: Usenet newsserver for small sites
d23f038454d4 [svn] First version
bears
parents:
diff changeset
2 Name: noffle
d23f038454d4 [svn] First version
bears
parents:
diff changeset
3 Version: 1.0pre6
d23f038454d4 [svn] First version
bears
parents:
diff changeset
4 Release: 4
d23f038454d4 [svn] First version
bears
parents:
diff changeset
5 Group: Networking/Daemons
d23f038454d4 [svn] First version
bears
parents:
diff changeset
6 Copyright: GPL
d23f038454d4 [svn] First version
bears
parents:
diff changeset
7 Packager: Soenke J. Peters <peters+rpm@simprovement.com>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
8 URL: http://home.t-online.de/home/markus.enzenberger/noffle.html
d23f038454d4 [svn] First version
bears
parents:
diff changeset
9 BuildRoot: /var/tmp/%{name}-%{version}-root
d23f038454d4 [svn] First version
bears
parents:
diff changeset
10 Source: http://download.sourceforge.net/noffle/%{name}-%{version}.tar.gz
d23f038454d4 [svn] First version
bears
parents:
diff changeset
11 Prefix: /usr
d23f038454d4 [svn] First version
bears
parents:
diff changeset
12
d23f038454d4 [svn] First version
bears
parents:
diff changeset
13 Requires: gdbm
d23f038454d4 [svn] First version
bears
parents:
diff changeset
14 Requires: mailx
d23f038454d4 [svn] First version
bears
parents:
diff changeset
15
d23f038454d4 [svn] First version
bears
parents:
diff changeset
16 %description
d23f038454d4 [svn] First version
bears
parents:
diff changeset
17 NOFFLE is a news server optimized for low speed dialup connection to the
d23f038454d4 [svn] First version
bears
parents:
diff changeset
18 Internet and few users. It allows reading news offline with many news reader
d23f038454d4 [svn] First version
bears
parents:
diff changeset
19 programs, even if they do not support offline reading by themselves.
d23f038454d4 [svn] First version
bears
parents:
diff changeset
20
d23f038454d4 [svn] First version
bears
parents:
diff changeset
21 %prep
d23f038454d4 [svn] First version
bears
parents:
diff changeset
22 %setup
d23f038454d4 [svn] First version
bears
parents:
diff changeset
23
d23f038454d4 [svn] First version
bears
parents:
diff changeset
24 %build
d23f038454d4 [svn] First version
bears
parents:
diff changeset
25 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"
d23f038454d4 [svn] First version
bears
parents:
diff changeset
26 export CFLAGS LDFLAGS
d23f038454d4 [svn] First version
bears
parents:
diff changeset
27 ./configure --prefix=/usr --enable-debug=no
d23f038454d4 [svn] First version
bears
parents:
diff changeset
28 make
d23f038454d4 [svn] First version
bears
parents:
diff changeset
29
d23f038454d4 [svn] First version
bears
parents:
diff changeset
30 %install
d23f038454d4 [svn] First version
bears
parents:
diff changeset
31 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/bin
d23f038454d4 [svn] First version
bears
parents:
diff changeset
32 install -s -m 4755 -o news -g news src/noffle $RPM_BUILD_ROOT/%{prefix}/bin
d23f038454d4 [svn] First version
bears
parents:
diff changeset
33 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/man/man1
d23f038454d4 [svn] First version
bears
parents:
diff changeset
34 install -m 0644 -o 0 -g 0 docs/noffle.1 $RPM_BUILD_ROOT/%{prefix}/man/man1/noffle.1
d23f038454d4 [svn] First version
bears
parents:
diff changeset
35 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/man/man5
d23f038454d4 [svn] First version
bears
parents:
diff changeset
36 install -m 0644 -o 0 -g 0 docs/noffle.conf.5 $RPM_BUILD_ROOT/%{prefix}/man/man5/noffle.conf.5
d23f038454d4 [svn] First version
bears
parents:
diff changeset
37 install -m 2755 -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle
d23f038454d4 [svn] First version
bears
parents:
diff changeset
38 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc
d23f038454d4 [svn] First version
bears
parents:
diff changeset
39 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/data
d23f038454d4 [svn] First version
bears
parents:
diff changeset
40 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/lock
d23f038454d4 [svn] First version
bears
parents:
diff changeset
41 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/requested
d23f038454d4 [svn] First version
bears
parents:
diff changeset
42 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/outgoing
d23f038454d4 [svn] First version
bears
parents:
diff changeset
43 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/overview
d23f038454d4 [svn] First version
bears
parents:
diff changeset
44 install -m 0600 -o news -g news noffle.conf.example $RPM_BUILD_ROOT/etc/noffle.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
45 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc/cron.daily
d23f038454d4 [svn] First version
bears
parents:
diff changeset
46 install -m 0755 -o news -g news packages/redhat/noffle-expire $RPM_BUILD_ROOT/etc/cron.daily/noffle-expire
d23f038454d4 [svn] First version
bears
parents:
diff changeset
47
d23f038454d4 [svn] First version
bears
parents:
diff changeset
48 %post
150
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
49 # Create inews line
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
50 ln -sf $RPM_BUILD_ROOT/%{prefix}/bin/noffle $RPM_BUILD_ROOT/%{prefix}/bin/inews
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
51 # Update /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
52 if ! grep -q '^[# \t]*nntp' /etc/inetd.conf ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
53 echo >> /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
54 echo "nntp stream tcp nowait news /usr/sbin/tcpd %{prefix}/bin/noffle -r" >> /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
55 if [ -f /var/run/inetd.pid ] ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
56 kill -HUP `cat /var/run/inetd.pid`
d23f038454d4 [svn] First version
bears
parents:
diff changeset
57 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
58 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
59 if ! grep -q '^[# \t]*noffle' /etc/hosts.deny ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
60 echo >> /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
61 echo "noffle: ALL EXCEPT LOCAL" >> /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
62 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
63 echo
d23f038454d4 [svn] First version
bears
parents:
diff changeset
64 echo " Don't forget to edit /etc/noffle.conf !!! "
d23f038454d4 [svn] First version
bears
parents:
diff changeset
65 echo
d23f038454d4 [svn] First version
bears
parents:
diff changeset
66
d23f038454d4 [svn] First version
bears
parents:
diff changeset
67 %postun
d23f038454d4 [svn] First version
bears
parents:
diff changeset
68 # The script gets 0 on uninstall, 1 on upgrade. Don't remove
d23f038454d4 [svn] First version
bears
parents:
diff changeset
69 # hosts.deny/inetd.conf lines on upgrade.
150
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
70 rm $RPM_BUILD_ROOT/%{prefix}/bin/inews
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
71 if [ "$1" = 0 ] ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
72 if [ -f /etc/inetd.conf ] &&
d23f038454d4 [svn] First version
bears
parents:
diff changeset
73 grep noffle /etc/inetd.conf > /dev/null 2>&1 ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
74 if grep -v noffle /etc/inetd.conf > /tmp/inetd.$$ ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
75 mv -f /tmp/inetd.$$ /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
76 if [ -f /var/run/inetd.pid ] ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
77 kill -HUP `cat /var/run/inetd.pid`
d23f038454d4 [svn] First version
bears
parents:
diff changeset
78 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
79 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
80 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
81 if [ -f /etc/hosts.deny ] &&
d23f038454d4 [svn] First version
bears
parents:
diff changeset
82 grep noffle /etc/hosts.deny > /dev/null 2>&1 ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
83 if grep -v noffle /etc/hosts.deny > /tmp/hosts.deny.$$ ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
84 mv -f /tmp/hosts.deny.$$ /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
85 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
86 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
87 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
88
d23f038454d4 [svn] First version
bears
parents:
diff changeset
89 %clean
d23f038454d4 [svn] First version
bears
parents:
diff changeset
90 [ "$RPM_BUILD_ROOT" != "" ] && rm -rf $RPM_BUILD_ROOT
d23f038454d4 [svn] First version
bears
parents:
diff changeset
91
d23f038454d4 [svn] First version
bears
parents:
diff changeset
92 %files
d23f038454d4 [svn] First version
bears
parents:
diff changeset
93 %config /etc/noffle.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
94 %doc README INSTALL ChangeLog docs/FAQ docs/NOTES docs/INTERNALS docs/noffle.lsm COPYING noffle.conf.example
d23f038454d4 [svn] First version
bears
parents:
diff changeset
95 %{prefix}/bin/noffle
d23f038454d4 [svn] First version
bears
parents:
diff changeset
96 %{prefix}/man/man1/noffle.1
d23f038454d4 [svn] First version
bears
parents:
diff changeset
97 %{prefix}/man/man5/noffle.conf.5
150
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
98 %{prefix}/bin/inews
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
99 /etc/cron.daily/noffle-expire
d23f038454d4 [svn] First version
bears
parents:
diff changeset
100 %dir /var/spool/noffle
d23f038454d4 [svn] First version
bears
parents:
diff changeset
101 %dir /var/spool/noffle/data
d23f038454d4 [svn] First version
bears
parents:
diff changeset
102 %dir /var/spool/noffle/lock
d23f038454d4 [svn] First version
bears
parents:
diff changeset
103 %dir /var/spool/noffle/requested
d23f038454d4 [svn] First version
bears
parents:
diff changeset
104 %dir /var/spool/noffle/outgoing
d23f038454d4 [svn] First version
bears
parents:
diff changeset
105 %dir /var/spool/noffle/overview
d23f038454d4 [svn] First version
bears
parents:
diff changeset
106
d23f038454d4 [svn] First version
bears
parents:
diff changeset
107 %changelog
150
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
108 * Thu Oct 26 2000 Jim Hague <jim.hague@am.org>
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
109 - Added inews link.
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
110
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
111 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
112 - Version 1.0pre6-3 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
113 - Changed /etc/noffle.conf mode to 0600 in case server password is required
d23f038454d4 [svn] First version
bears
parents:
diff changeset
114 - Added noffle line to /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
115 - Make inetd.conf handling match linuxconf - don't keep old files and only
d23f038454d4 [svn] First version
bears
parents:
diff changeset
116 add entries if nntp line is not already present, even if commented out,
d23f038454d4 [svn] First version
bears
parents:
diff changeset
117 and only remove conf lines on an uninstall
d23f038454d4 [svn] First version
bears
parents:
diff changeset
118
d23f038454d4 [svn] First version
bears
parents:
diff changeset
119 * Fri Jun 16 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
120 - Version 1.0pre6-2 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
121 - Added /etc/cron.daily/noffle-expire
d23f038454d4 [svn] First version
bears
parents:
diff changeset
122
d23f038454d4 [svn] First version
bears
parents:
diff changeset
123 * Thu Jun 15 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
124 - Version 1.0pre6-1 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
125 - Modified SPEC from 1.0pre5
d23f038454d4 [svn] First version
bears
parents:
diff changeset
126
d23f038454d4 [svn] First version
bears
parents:
diff changeset
127 * Wed May 17 2000 Soenke J. Peters <peters+rpm@simprovement.com>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
128 - Version 1.0pre5-1 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
129 - built SPEC from scratch
d23f038454d4 [svn] First version
bears
parents:
diff changeset
130
d23f038454d4 [svn] First version
bears
parents:
diff changeset
131 * Mon Aug 23 1999 Mario Moder <moderm@gmx.net>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
132 - Version 1.0pre2-1 Binary only RPM, no SPEC available