annotate packages/redhat/noffle.spec @ 127:3c71e28c8eef noffle

[svn] Release-1-0 mergedocs/NOTES
author bears
date Tue, 25 Jul 2000 13:14:54 +0100
parents d23f038454d4
children 1c7303c71f66
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 Requires: textutils
d23f038454d4 [svn] First version
bears
parents:
diff changeset
16
d23f038454d4 [svn] First version
bears
parents:
diff changeset
17 %description
d23f038454d4 [svn] First version
bears
parents:
diff changeset
18 NOFFLE is a news server optimized for low speed dialup connection to the
d23f038454d4 [svn] First version
bears
parents:
diff changeset
19 Internet and few users. It allows reading news offline with many news reader
d23f038454d4 [svn] First version
bears
parents:
diff changeset
20 programs, even if they do not support offline reading by themselves.
d23f038454d4 [svn] First version
bears
parents:
diff changeset
21
d23f038454d4 [svn] First version
bears
parents:
diff changeset
22 %prep
d23f038454d4 [svn] First version
bears
parents:
diff changeset
23 %setup
d23f038454d4 [svn] First version
bears
parents:
diff changeset
24
d23f038454d4 [svn] First version
bears
parents:
diff changeset
25 %build
d23f038454d4 [svn] First version
bears
parents:
diff changeset
26 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"
d23f038454d4 [svn] First version
bears
parents:
diff changeset
27 export CFLAGS LDFLAGS
d23f038454d4 [svn] First version
bears
parents:
diff changeset
28 ./configure --prefix=/usr --enable-debug=no
d23f038454d4 [svn] First version
bears
parents:
diff changeset
29 make
d23f038454d4 [svn] First version
bears
parents:
diff changeset
30
d23f038454d4 [svn] First version
bears
parents:
diff changeset
31 %install
d23f038454d4 [svn] First version
bears
parents:
diff changeset
32 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/bin
d23f038454d4 [svn] First version
bears
parents:
diff changeset
33 install -s -m 4755 -o news -g news src/noffle $RPM_BUILD_ROOT/%{prefix}/bin
d23f038454d4 [svn] First version
bears
parents:
diff changeset
34 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/man/man1
d23f038454d4 [svn] First version
bears
parents:
diff changeset
35 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
36 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/man/man5
d23f038454d4 [svn] First version
bears
parents:
diff changeset
37 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
38 install -m 2755 -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle
d23f038454d4 [svn] First version
bears
parents:
diff changeset
39 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc
d23f038454d4 [svn] First version
bears
parents:
diff changeset
40 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/data
d23f038454d4 [svn] First version
bears
parents:
diff changeset
41 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/lock
d23f038454d4 [svn] First version
bears
parents:
diff changeset
42 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/requested
d23f038454d4 [svn] First version
bears
parents:
diff changeset
43 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/outgoing
d23f038454d4 [svn] First version
bears
parents:
diff changeset
44 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/overview
d23f038454d4 [svn] First version
bears
parents:
diff changeset
45 install -m 0600 -o news -g news noffle.conf.example $RPM_BUILD_ROOT/etc/noffle.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
46 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc/cron.daily
d23f038454d4 [svn] First version
bears
parents:
diff changeset
47 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
48
d23f038454d4 [svn] First version
bears
parents:
diff changeset
49 %post
d23f038454d4 [svn] First version
bears
parents:
diff changeset
50 # Update /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
51 if ! grep -q '^[# \t]*nntp' /etc/inetd.conf ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
52 echo >> /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
53 echo "nntp stream tcp nowait news /usr/sbin/tcpd %{prefix}/bin/noffle -r" >> /etc/inetd.conf
d23f038454d4 [svn] First version
bears
parents:
diff changeset
54 if [ -f /var/run/inetd.pid ] ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
55 kill -HUP `cat /var/run/inetd.pid`
d23f038454d4 [svn] First version
bears
parents:
diff changeset
56 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
57 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
58 if ! grep -q '^[# \t]*noffle' /etc/hosts.deny ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
59 echo >> /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
60 echo "noffle: ALL EXCEPT LOCAL" >> /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
61 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
62 echo
d23f038454d4 [svn] First version
bears
parents:
diff changeset
63 echo " Don't forget to edit /etc/noffle.conf !!! "
d23f038454d4 [svn] First version
bears
parents:
diff changeset
64 echo
d23f038454d4 [svn] First version
bears
parents:
diff changeset
65
d23f038454d4 [svn] First version
bears
parents:
diff changeset
66 %postun
d23f038454d4 [svn] First version
bears
parents:
diff changeset
67 # The script gets 0 on uninstall, 1 on upgrade. Don't remove
d23f038454d4 [svn] First version
bears
parents:
diff changeset
68 # hosts.deny/inetd.conf lines on upgrade.
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
92 %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
93 %{prefix}/bin/noffle
d23f038454d4 [svn] First version
bears
parents:
diff changeset
94 %{prefix}/man/man1/noffle.1
d23f038454d4 [svn] First version
bears
parents:
diff changeset
95 %{prefix}/man/man5/noffle.conf.5
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
105 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
106 - Version 1.0pre6-3 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
107 - Changed /etc/noffle.conf mode to 0600 in case server password is required
d23f038454d4 [svn] First version
bears
parents:
diff changeset
108 - Added noffle line to /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
109 - Make inetd.conf handling match linuxconf - don't keep old files and only
d23f038454d4 [svn] First version
bears
parents:
diff changeset
110 add entries if nntp line is not already present, even if commented out,
d23f038454d4 [svn] First version
bears
parents:
diff changeset
111 and only remove conf lines on an uninstall
d23f038454d4 [svn] First version
bears
parents:
diff changeset
112
d23f038454d4 [svn] First version
bears
parents:
diff changeset
113 * Fri Jun 16 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
114 - Version 1.0pre6-2 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
115 - Added /etc/cron.daily/noffle-expire
d23f038454d4 [svn] First version
bears
parents:
diff changeset
116
d23f038454d4 [svn] First version
bears
parents:
diff changeset
117 * Thu Jun 15 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
118 - Version 1.0pre6-1 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
119 - Modified SPEC from 1.0pre5
d23f038454d4 [svn] First version
bears
parents:
diff changeset
120
d23f038454d4 [svn] First version
bears
parents:
diff changeset
121 * Wed May 17 2000 Soenke J. Peters <peters+rpm@simprovement.com>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
122 - Version 1.0pre5-1 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
123 - built SPEC from scratch
d23f038454d4 [svn] First version
bears
parents:
diff changeset
124
d23f038454d4 [svn] First version
bears
parents:
diff changeset
125 * Mon Aug 23 1999 Mario Moder <moderm@gmx.net>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
126 - Version 1.0pre2-1 Binary only RPM, no SPEC available