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