comparison packages/redhat/noffle.spec @ 198:79e324213734 noffle

[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some items causing RPM3 vs RPM4 problems. * configure,configure.in: Bump version to 1.1.1-unstable-develop, and add --with-spooldir and --with-configfile options (idea due to Mirko Liss).
author bears
date Tue, 06 Nov 2001 21:22:19 +0000
parents 1c7303c71f66
children 9fb4b7d7e64b
comparison
equal deleted inserted replaced
197:24d4cd032da5 198:79e324213734
1 Summary: Usenet newsserver for small sites 1 Summary: Usenet newsserver for small sites
2 Name: noffle 2 Name: noffle
3 Version: 1.0pre6 3 Version: 1.1
4 Release: 4 4 Release: 1
5 Group: Networking/Daemons 5 Group: Networking/Daemons
6 Copyright: GPL 6 Copyright: GPL
7 Packager: Soenke J. Peters <peters+rpm@simprovement.com> 7 Packager: Soenke J. Peters <peters+rpm@simprovement.com>
8 URL: http://home.t-online.de/home/markus.enzenberger/noffle.html 8 URL: http://home.t-online.de/home/markus.enzenberger/noffle.html
9 BuildRoot: /var/tmp/%{name}-%{version}-root 9 BuildRoot: /var/tmp/%{name}-%{version}-root
10 Source: http://download.sourceforge.net/noffle/%{name}-%{version}.tar.gz 10 Source: http://download.sourceforge.net/noffle/%{name}-%{version}.tar.gz
11 Prefix: /usr
12
13 Requires: gdbm 11 Requires: gdbm
14 Requires: mailx 12 Requires: sendmail
15 13
16 %description 14 %description
17 NOFFLE is a news server optimized for low speed dialup connection to the 15 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 16 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. 17 programs, even if they do not support offline reading by themselves.
26 export CFLAGS LDFLAGS 24 export CFLAGS LDFLAGS
27 ./configure --prefix=/usr --enable-debug=no 25 ./configure --prefix=/usr --enable-debug=no
28 make 26 make
29 27
30 %install 28 %install
31 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/bin 29 install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/bin
32 install -s -m 4755 -o news -g news src/noffle $RPM_BUILD_ROOT/%{prefix}/bin 30 install -s -m 4755 -o news -g news src/noffle $RPM_BUILD_ROOT/usr/bin
33 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/man/man1 31 install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/man/man1
34 install -m 0644 -o 0 -g 0 docs/noffle.1 $RPM_BUILD_ROOT/%{prefix}/man/man1/noffle.1 32 install -m 0644 -o 0 -g 0 docs/noffle.1 $RPM_BUILD_ROOT/usr/man/man1/noffle.1
35 install -o 0 -g 0 -d $RPM_BUILD_ROOT/%{prefix}/man/man5 33 install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/man/man5
36 install -m 0644 -o 0 -g 0 docs/noffle.conf.5 $RPM_BUILD_ROOT/%{prefix}/man/man5/noffle.conf.5 34 install -m 0644 -o 0 -g 0 docs/noffle.conf.5 $RPM_BUILD_ROOT/usr/man/man5/noffle.conf.5
37 install -m 2755 -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle 35 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 36 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc
39 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/data 37 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 38 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 39 install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/requested
45 install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc/cron.daily 43 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 44 install -m 0755 -o news -g news packages/redhat/noffle-expire $RPM_BUILD_ROOT/etc/cron.daily/noffle-expire
47 45
48 %post 46 %post
49 # Create inews line 47 # Create inews line
50 ln -sf $RPM_BUILD_ROOT/%{prefix}/bin/noffle $RPM_BUILD_ROOT/%{prefix}/bin/inews 48 ln -sf /usr/bin/noffle /usr/bin/inews
51 # Update /etc/inetd.conf 49 # Update /etc/inetd.conf
52 if ! grep -q '^[# \t]*nntp' /etc/inetd.conf ; then 50 if ! grep -q '^[# \t]*nntp' /etc/inetd.conf ; then
53 echo >> /etc/inetd.conf 51 echo >> /etc/inetd.conf
54 echo "nntp stream tcp nowait news /usr/sbin/tcpd %{prefix}/bin/noffle -r" >> /etc/inetd.conf 52 echo "nntp stream tcp nowait news /usr/sbin/tcpd usr/bin/noffle -r" >> /etc/inetd.conf
55 if [ -f /var/run/inetd.pid ] ; then 53 if [ -f /var/run/inetd.pid ] ; then
56 kill -HUP `cat /var/run/inetd.pid` 54 kill -HUP `cat /var/run/inetd.pid`
57 fi 55 fi
58 fi 56 fi
59 if ! grep -q '^[# \t]*noffle' /etc/hosts.deny ; then 57 if ! grep -q '^[# \t]*noffle' /etc/hosts.deny ; then
65 echo 63 echo
66 64
67 %postun 65 %postun
68 # The script gets 0 on uninstall, 1 on upgrade. Don't remove 66 # The script gets 0 on uninstall, 1 on upgrade. Don't remove
69 # hosts.deny/inetd.conf lines on upgrade. 67 # hosts.deny/inetd.conf lines on upgrade.
70 rm $RPM_BUILD_ROOT/%{prefix}/bin/inews 68 rm /usr/bin/inews
71 if [ "$1" = 0 ] ; then 69 if [ "$1" = 0 ] ; then
72 if [ -f /etc/inetd.conf ] && 70 if [ -f /etc/inetd.conf ] &&
73 grep noffle /etc/inetd.conf > /dev/null 2>&1 ; then 71 grep noffle /etc/inetd.conf > /dev/null 2>&1 ; then
74 if grep -v noffle /etc/inetd.conf > /tmp/inetd.$$ ; then 72 if grep -v noffle /etc/inetd.conf > /tmp/inetd.$$ ; then
75 mv -f /tmp/inetd.$$ /etc/inetd.conf 73 mv -f /tmp/inetd.$$ /etc/inetd.conf
89 %clean 87 %clean
90 [ "$RPM_BUILD_ROOT" != "" ] && rm -rf $RPM_BUILD_ROOT 88 [ "$RPM_BUILD_ROOT" != "" ] && rm -rf $RPM_BUILD_ROOT
91 89
92 %files 90 %files
93 %config /etc/noffle.conf 91 %config /etc/noffle.conf
94 %doc README INSTALL ChangeLog docs/FAQ docs/NOTES docs/INTERNALS docs/noffle.lsm COPYING noffle.conf.example 92 %doc README INSTALL ChangeLog docs/FAQ docs/NOTES docs/INTERNALS
95 %{prefix}/bin/noffle 93 %doc docs/noffle.lsm COPYING noffle.conf.example
96 %{prefix}/man/man1/noffle.1 94 /usr/bin/noffle
97 %{prefix}/man/man5/noffle.conf.5 95 /usr/man/*
98 %{prefix}/bin/inews
99 /etc/cron.daily/noffle-expire 96 /etc/cron.daily/noffle-expire
100 %dir /var/spool/noffle 97 %dir /var/spool/noffle
101 %dir /var/spool/noffle/data 98 %dir /var/spool/noffle/data
102 %dir /var/spool/noffle/lock 99 %dir /var/spool/noffle/lock
103 %dir /var/spool/noffle/requested 100 %dir /var/spool/noffle/requested
104 %dir /var/spool/noffle/outgoing 101 %dir /var/spool/noffle/outgoing
105 %dir /var/spool/noffle/overview 102 %dir /var/spool/noffle/overview
106 103
107 %changelog 104 %changelog
105 * Wed Oct 31 2001 Jim Hague <jim.hague@acm.org>
106 - Up version to 1.1-1, and remove inews from %files as it is created by %post.
107 Remove relocation prefix - it wasn't working properly. Also
108 RPM 4 seems to automatically compress man pages, so put man pages in
109 %files as /usr/man/* so we pick up whatever is there, compressed or not.
110
108 * Thu Oct 26 2000 Jim Hague <jim.hague@am.org> 111 * Thu Oct 26 2000 Jim Hague <jim.hague@am.org>
109 - Added inews link. 112 - Added inews link.
110 113
111 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org> 114 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org>
112 - Version 1.0pre6-3 RPM 115 - Version 1.0pre6-3 RPM