Mercurial > noffle
annotate packages/redhat/noffle.spec @ 233:91c91d102564 noffle
[svn] * src/client.c: Fix memory leak in filter code.
author | bears |
---|---|
date | Fri, 08 Feb 2002 17:06:25 +0000 |
parents | 9fb4b7d7e64b |
children | dbafa3954bbe |
rev | line source |
---|---|
110 | 1 Summary: Usenet newsserver for small sites |
2 Name: noffle | |
225
9fb4b7d7e64b
[svn] * docs/Makefile.in: Add testing.txt to documents.
bears
parents:
198
diff
changeset
|
3 Version: 1.1.1 |
198
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 | 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 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 | 13 |
14 %description | |
15 NOFFLE is a news server optimized for low speed dialup connection to the | |
16 Internet and few users. It allows reading news offline with many news reader | |
17 programs, even if they do not support offline reading by themselves. | |
18 | |
19 %prep | |
20 %setup | |
21 | |
22 %build | |
23 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" | |
24 export CFLAGS LDFLAGS | |
25 ./configure --prefix=/usr --enable-debug=no | |
26 make | |
27 | |
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 | 35 install -m 2755 -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle |
36 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc | |
37 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/data | |
38 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/lock | |
39 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/requested | |
40 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/outgoing | |
41 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/overview | |
42 install -m 0600 -o news -g news noffle.conf.example $RPM_BUILD_ROOT/etc/noffle.conf | |
43 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc/cron.daily | |
44 install -m 0755 -o news -g news packages/redhat/noffle-expire $RPM_BUILD_ROOT/etc/cron.daily/noffle-expire | |
45 | |
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 | 49 # Update /etc/inetd.conf |
50 if ! grep -q '^[# \t]*nntp' /etc/inetd.conf ; then | |
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 | 53 if [ -f /var/run/inetd.pid ] ; then |
54 kill -HUP `cat /var/run/inetd.pid` | |
55 fi | |
56 fi | |
57 if ! grep -q '^[# \t]*noffle' /etc/hosts.deny ; then | |
58 echo >> /etc/hosts.deny | |
59 echo "noffle: ALL EXCEPT LOCAL" >> /etc/hosts.deny | |
60 fi | |
61 echo | |
62 echo " Don't forget to edit /etc/noffle.conf !!! " | |
63 echo | |
64 | |
65 %postun | |
66 # The script gets 0 on uninstall, 1 on upgrade. Don't remove | |
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 | 69 if [ "$1" = 0 ] ; then |
70 if [ -f /etc/inetd.conf ] && | |
71 grep noffle /etc/inetd.conf > /dev/null 2>&1 ; then | |
72 if grep -v noffle /etc/inetd.conf > /tmp/inetd.$$ ; then | |
73 mv -f /tmp/inetd.$$ /etc/inetd.conf | |
74 if [ -f /var/run/inetd.pid ] ; then | |
75 kill -HUP `cat /var/run/inetd.pid` | |
76 fi | |
77 fi | |
78 fi | |
79 if [ -f /etc/hosts.deny ] && | |
80 grep noffle /etc/hosts.deny > /dev/null 2>&1 ; then | |
81 if grep -v noffle /etc/hosts.deny > /tmp/hosts.deny.$$ ; then | |
82 mv -f /tmp/hosts.deny.$$ /etc/hosts.deny | |
83 fi | |
84 fi | |
85 fi | |
86 | |
87 %clean | |
88 [ "$RPM_BUILD_ROOT" != "" ] && rm -rf $RPM_BUILD_ROOT | |
89 | |
90 %files | |
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 | 96 /etc/cron.daily/noffle-expire |
97 %dir /var/spool/noffle | |
98 %dir /var/spool/noffle/data | |
99 %dir /var/spool/noffle/lock | |
100 %dir /var/spool/noffle/requested | |
101 %dir /var/spool/noffle/outgoing | |
102 %dir /var/spool/noffle/overview | |
103 | |
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 | 114 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org> |
115 - Version 1.0pre6-3 RPM | |
116 - Changed /etc/noffle.conf mode to 0600 in case server password is required | |
117 - Added noffle line to /etc/hosts.deny | |
118 - Make inetd.conf handling match linuxconf - don't keep old files and only | |
119 add entries if nntp line is not already present, even if commented out, | |
120 and only remove conf lines on an uninstall | |
121 | |
122 * Fri Jun 16 2000 Jim Hague <jim.hague@am.org> | |
123 - Version 1.0pre6-2 RPM | |
124 - Added /etc/cron.daily/noffle-expire | |
125 | |
126 * Thu Jun 15 2000 Jim Hague <jim.hague@am.org> | |
127 - Version 1.0pre6-1 RPM | |
128 - Modified SPEC from 1.0pre5 | |
129 | |
130 * Wed May 17 2000 Soenke J. Peters <peters+rpm@simprovement.com> | |
131 - Version 1.0pre5-1 RPM | |
132 - built SPEC from scratch | |
133 | |
134 * Mon Aug 23 1999 Mario Moder <moderm@gmx.net> | |
135 - Version 1.0pre2-1 Binary only RPM, no SPEC available |