annotate packages/redhat/noffle.spec @ 222:bf290632d29e noffle

[svn] * src/post.c: Always replace message ID in posted message if existing message ID fails Prt_isValidMsgId. * noffle.conf.example,docs/noffle.conf.5,src/configfile.c: Change replace-messageid default from 'yes' to 'no'. These days bad message IDs from newsreaders shouldn't happen (or should be more easily fixable from the newsreader config), and replacing message IDs causes havoc if you're gatewaying mailing lists or similar.
author bears
date Sun, 09 Dec 2001 11:32:31 +0000
parents 79e324213734
children 9fb4b7d7e64b
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
198
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
3 Version: 1.1
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
4 Release: 1
110
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 Requires: gdbm
198
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
12 Requires: sendmail
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
13
d23f038454d4 [svn] First version
bears
parents:
diff changeset
14 %description
d23f038454d4 [svn] First version
bears
parents:
diff changeset
15 NOFFLE is a news server optimized for low speed dialup connection to the
d23f038454d4 [svn] First version
bears
parents:
diff changeset
16 Internet and few users. It allows reading news offline with many news reader
d23f038454d4 [svn] First version
bears
parents:
diff changeset
17 programs, even if they do not support offline reading by themselves.
d23f038454d4 [svn] First version
bears
parents:
diff changeset
18
d23f038454d4 [svn] First version
bears
parents:
diff changeset
19 %prep
d23f038454d4 [svn] First version
bears
parents:
diff changeset
20 %setup
d23f038454d4 [svn] First version
bears
parents:
diff changeset
21
d23f038454d4 [svn] First version
bears
parents:
diff changeset
22 %build
d23f038454d4 [svn] First version
bears
parents:
diff changeset
23 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"
d23f038454d4 [svn] First version
bears
parents:
diff changeset
24 export CFLAGS LDFLAGS
d23f038454d4 [svn] First version
bears
parents:
diff changeset
25 ./configure --prefix=/usr --enable-debug=no
d23f038454d4 [svn] First version
bears
parents:
diff changeset
26 make
d23f038454d4 [svn] First version
bears
parents:
diff changeset
27
d23f038454d4 [svn] First version
bears
parents:
diff changeset
28 %install
198
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
29 install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/bin
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
30 install -s -m 4755 -o news -g news src/noffle $RPM_BUILD_ROOT/usr/bin
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
31 install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/man/man1
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
32 install -m 0644 -o 0 -g 0 docs/noffle.1 $RPM_BUILD_ROOT/usr/man/man1/noffle.1
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
33 install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/man/man5
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
34 install -m 0644 -o 0 -g 0 docs/noffle.conf.5 $RPM_BUILD_ROOT/usr/man/man5/noffle.conf.5
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
35 install -m 2755 -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle
d23f038454d4 [svn] First version
bears
parents:
diff changeset
36 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc
d23f038454d4 [svn] First version
bears
parents:
diff changeset
37 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/data
d23f038454d4 [svn] First version
bears
parents:
diff changeset
38 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/lock
d23f038454d4 [svn] First version
bears
parents:
diff changeset
39 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/requested
d23f038454d4 [svn] First version
bears
parents:
diff changeset
40 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/outgoing
d23f038454d4 [svn] First version
bears
parents:
diff changeset
41 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/overview
d23f038454d4 [svn] First version
bears
parents:
diff changeset
42 install -m 0600 -o news -g news noffle.conf.example $RPM_BUILD_ROOT/etc/noffle.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
43 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc/cron.daily
d23f038454d4 [svn] First version
bears
parents:
diff changeset
44 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
45
d23f038454d4 [svn] First version
bears
parents:
diff changeset
46 %post
150
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
47 # Create inews line
198
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
48 ln -sf /usr/bin/noffle /usr/bin/inews
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
49 # Update /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
50 if ! grep -q '^[# \t]*nntp' /etc/inetd.conf ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
51 echo >> /etc/inetd.conf
198
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
52 echo "nntp stream tcp nowait news /usr/sbin/tcpd usr/bin/noffle -r" >> /etc/inetd.conf
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
53 if [ -f /var/run/inetd.pid ] ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
54 kill -HUP `cat /var/run/inetd.pid`
d23f038454d4 [svn] First version
bears
parents:
diff changeset
55 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
56 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
57 if ! grep -q '^[# \t]*noffle' /etc/hosts.deny ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
58 echo >> /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
59 echo "noffle: ALL EXCEPT LOCAL" >> /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
60 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
61 echo
d23f038454d4 [svn] First version
bears
parents:
diff changeset
62 echo " Don't forget to edit /etc/noffle.conf !!! "
d23f038454d4 [svn] First version
bears
parents:
diff changeset
63 echo
d23f038454d4 [svn] First version
bears
parents:
diff changeset
64
d23f038454d4 [svn] First version
bears
parents:
diff changeset
65 %postun
d23f038454d4 [svn] First version
bears
parents:
diff changeset
66 # The script gets 0 on uninstall, 1 on upgrade. Don't remove
d23f038454d4 [svn] First version
bears
parents:
diff changeset
67 # hosts.deny/inetd.conf lines on upgrade.
198
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
68 rm /usr/bin/inews
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
69 if [ "$1" = 0 ] ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
70 if [ -f /etc/inetd.conf ] &&
d23f038454d4 [svn] First version
bears
parents:
diff changeset
71 grep noffle /etc/inetd.conf > /dev/null 2>&1 ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
72 if grep -v noffle /etc/inetd.conf > /tmp/inetd.$$ ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
73 mv -f /tmp/inetd.$$ /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
74 if [ -f /var/run/inetd.pid ] ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
75 kill -HUP `cat /var/run/inetd.pid`
d23f038454d4 [svn] First version
bears
parents:
diff changeset
76 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
77 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
78 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
79 if [ -f /etc/hosts.deny ] &&
d23f038454d4 [svn] First version
bears
parents:
diff changeset
80 grep noffle /etc/hosts.deny > /dev/null 2>&1 ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
81 if grep -v noffle /etc/hosts.deny > /tmp/hosts.deny.$$ ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
82 mv -f /tmp/hosts.deny.$$ /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
83 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
84 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
85 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
86
d23f038454d4 [svn] First version
bears
parents:
diff changeset
87 %clean
d23f038454d4 [svn] First version
bears
parents:
diff changeset
88 [ "$RPM_BUILD_ROOT" != "" ] && rm -rf $RPM_BUILD_ROOT
d23f038454d4 [svn] First version
bears
parents:
diff changeset
89
d23f038454d4 [svn] First version
bears
parents:
diff changeset
90 %files
d23f038454d4 [svn] First version
bears
parents:
diff changeset
91 %config /etc/noffle.conf
198
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
92 %doc README INSTALL ChangeLog docs/FAQ docs/NOTES docs/INTERNALS
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
93 %doc docs/noffle.lsm COPYING noffle.conf.example
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
94 /usr/bin/noffle
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
95 /usr/man/*
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
96 /etc/cron.daily/noffle-expire
d23f038454d4 [svn] First version
bears
parents:
diff changeset
97 %dir /var/spool/noffle
d23f038454d4 [svn] First version
bears
parents:
diff changeset
98 %dir /var/spool/noffle/data
d23f038454d4 [svn] First version
bears
parents:
diff changeset
99 %dir /var/spool/noffle/lock
d23f038454d4 [svn] First version
bears
parents:
diff changeset
100 %dir /var/spool/noffle/requested
d23f038454d4 [svn] First version
bears
parents:
diff changeset
101 %dir /var/spool/noffle/outgoing
d23f038454d4 [svn] First version
bears
parents:
diff changeset
102 %dir /var/spool/noffle/overview
d23f038454d4 [svn] First version
bears
parents:
diff changeset
103
d23f038454d4 [svn] First version
bears
parents:
diff changeset
104 %changelog
198
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
105 * Wed Oct 31 2001 Jim Hague <jim.hague@acm.org>
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
106 - Up version to 1.1-1, and remove inews from %files as it is created by %post.
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
107 Remove relocation prefix - it wasn't working properly. Also
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
108 RPM 4 seems to automatically compress man pages, so put man pages in
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
109 %files as /usr/man/* so we pick up whatever is there, compressed or not.
79e324213734 [svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents: 150
diff changeset
110
150
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
111 * 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
112 - Added inews link.
1c7303c71f66 [svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents: 110
diff changeset
113
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
114 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
115 - Version 1.0pre6-3 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
116 - Changed /etc/noffle.conf mode to 0600 in case server password is required
d23f038454d4 [svn] First version
bears
parents:
diff changeset
117 - Added noffle line to /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
118 - Make inetd.conf handling match linuxconf - don't keep old files and only
d23f038454d4 [svn] First version
bears
parents:
diff changeset
119 add entries if nntp line is not already present, even if commented out,
d23f038454d4 [svn] First version
bears
parents:
diff changeset
120 and only remove conf lines on an uninstall
d23f038454d4 [svn] First version
bears
parents:
diff changeset
121
d23f038454d4 [svn] First version
bears
parents:
diff changeset
122 * Fri Jun 16 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
123 - Version 1.0pre6-2 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
124 - Added /etc/cron.daily/noffle-expire
d23f038454d4 [svn] First version
bears
parents:
diff changeset
125
d23f038454d4 [svn] First version
bears
parents:
diff changeset
126 * Thu Jun 15 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
127 - Version 1.0pre6-1 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
128 - Modified SPEC from 1.0pre5
d23f038454d4 [svn] First version
bears
parents:
diff changeset
129
d23f038454d4 [svn] First version
bears
parents:
diff changeset
130 * Wed May 17 2000 Soenke J. Peters <peters+rpm@simprovement.com>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
131 - Version 1.0pre5-1 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
132 - built SPEC from scratch
d23f038454d4 [svn] First version
bears
parents:
diff changeset
133
d23f038454d4 [svn] First version
bears
parents:
diff changeset
134 * Mon Aug 23 1999 Mario Moder <moderm@gmx.net>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
135 - Version 1.0pre2-1 Binary only RPM, no SPEC available