rpms/newscache/devel newscache-1.2rc6-config.patch, NONE, 1.1 newscache.init, NONE, 1.1 newscache.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Dmitry Butskoy (buc)
fedora-extras-commits at redhat.com
Thu Nov 3 11:24:50 UTC 2005
Author: buc
Update of /cvs/extras/rpms/newscache/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10830/devel
Modified Files:
.cvsignore sources
Added Files:
newscache-1.2rc6-config.patch newscache.init newscache.spec
Log Message:
auto-import newscache-1.2-0.2.rc6 on branch devel from newscache-1.2-0.2.rc6.src.rpm
newscache-1.2rc6-config.patch:
--- NEW FILE newscache-1.2rc6-config.patch ---
--- newscache.conf 2005-09-19 20:43:51.000000000 +0400
+++ newscache.conf.OK 2005-09-19 20:43:02.000000000 +0400
@@ -67,7 +67,7 @@
Groupname news
# Put in here the local newscache administrator
-Admin tom at infosys.tuwien.ac.at
+Admin root at localhost
################################################################
## Client-access configuration
@@ -128,46 +128,55 @@
Authentication unix::::debug
# all authenticated clients are able to use the xdebug command
}
- Client .tuwien.ac.at {
- allow read post
- # list all, except for alt.* newsgroups, allow users to
- # read at.* and to post to at.*
- List *,!alt.*
- Read at.*
- PostTo at.*
- # allow users to gain additional privileges by
- # authenticating based on a password file
- # the format of the file is username:password:read:postto
- Authentication file:/usr/local/etc/tuwien.pass
- }
- Client 192.168.0.0/255.255.0.0 {
- allow read post
- # deny access to all newsgroups
- List !*
- Read !*
- PostTo !*
- # allow users to gain additional privileges by
- # authenticating using standard passwd semantics
- # allow to read * and to post to at.* after successful
- # authentication
- Authentication unix:*:at.*
- }
- Client 192.169.0.0/255.255.0.0 {
- allow read
- # deny access to all newsgroups
- List at.*
- Read at.*
- PostTo !*
- Authentication unix:*:*:*:debug,post
- # allow users to gain additional privileges by
- # authenticating using standard passwd semantics
- # allow to read * and to post to * and can use the xdebug
- # command after successful authentication.
- # Unauthenticated clients can only read from at.* groups.
- }
- Client .aol.com {
- allow none
- }
+# Client .mydomain.com {
+# allow
+# List
+# Read
+# PostTo
+# Authentication pam:*:*:*:read,post
+# # PAMServicename newscache
+# }
+
+# Client .tuwien.ac.at {
+# allow read post
+# # list all, except for alt.* newsgroups, allow users to
+# # read at.* and to post to at.*
+# List *,!alt.*
+# Read at.*
+# PostTo at.*
+# # allow users to gain additional privileges by
+# # authenticating based on a password file
+# # the format of the file is username:password:read:postto
+# Authentication file:/usr/local/etc/tuwien.pass
+# }
+# Client 192.168.0.0/255.255.0.0 {
+# allow read post
+# # deny access to all newsgroups
+# List !*
+# Read !*
+# PostTo !*
+# # allow users to gain additional privileges by
+# # authenticating using standard passwd semantics
+# # allow to read * and to post to at.* after successful
+# # authentication
+# Authentication unix:*:at.*
+# }
+# Client 192.169.0.0/255.255.0.0 {
+# allow read
+# # deny access to all newsgroups
+# List at.*
+# Read at.*
+# PostTo !*
+# Authentication unix:*:*:*:debug,post
+# # allow users to gain additional privileges by
+# # authenticating using standard passwd semantics
+# # allow to read * and to post to * and can use the xdebug
+# # command after successful authentication.
+# # Unauthenticated clients can only read from at.* groups.
+# }
+# Client .aol.com {
+# allow none
+# }
Default {
allow none
}
@@ -206,29 +215,36 @@
# To switch off, prepend the command with not-
# Support commands: listgroup, over
NewsServerList {
- Server news.tuwien.ac.at nntp {
- Retries 3
+ Server news.example.com nntp {
Read *
PostTo *
+ Retries 3
GroupTimeout 150
- User joe
- Password secret
- BindFrom 192.168.100.1
Options cached
- Commands not-over
- }
- Server news.wu-wien.ac.at nntp {
- Retries 1
- Read at.wu-wien.*
- PostTo .none.
- GroupTimeout 300
- BindFrom somehost.tuwien.ac.at
- Options offline not-setpostflag
- }
- NoServer {
- Read au.*,z-netz.*,maus.*,fido*
- PostTo au.*
}
+# Server news.tuwien.ac.at nntp {
+# Retries 3
+# Read *
+# PostTo *
+# GroupTimeout 150
+# User joe
+# Password secret
+# BindFrom 192.168.100.1
+# Options cached
+# Commands not-over
+# }
+# Server news.wu-wien.ac.at nntp {
+# Retries 1
+# Read at.wu-wien.*
+# PostTo .none.
+# GroupTimeout 300
+# BindFrom somehost.tuwien.ac.at
+# Options offline not-setpostflag
+# }
+# NoServer {
+# Read au.*,z-netz.*,maus.*,fido*
+# PostTo au.*
+# }
}
################################################################
@@ -265,7 +281,7 @@
# All the log files go here, if syslogd is not being used. This
# depends on how NewsCache has been configured. By default,
# NewsCache uses syslogd.
-LogDirectory /home/services/newscache/log
+#LogDirectory /var/log
# Log Style
# All combination of these options are valid:
@@ -284,4 +300,4 @@
# Each newsgroup listed in this file will be prefetched,
# whenever one of its articles is read by a user or whenever
# updatenews is executed.
-PrefetchFile /home/services/newscache/etc/prefetch
+#PrefetchFile /etc/prefetch
--- NEW FILE newscache.init ---
#!/bin/bash
#
# chkconfig: - 95 05
# description: NewsCache is a free cache server for USENET News.
# processname: newscache
# pidfile: /var/run/newscache.pid
# Source function library.
. /etc/init.d/functions
# Get config.
. /etc/sysconfig/network
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
[ -f /etc/newscache.conf ] || exit 0
RETVAL=0
start() {
echo -n "Starting NewsCache service: "
daemon newscache
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/newscache
echo
}
stop() {
echo -n "Stopping NewsCache service: "
killproc newscache
RETVAL=$?
rm -f /var/lock/subsys/newscache
echo
}
reload() {
echo -n "Reloading NewsCache service: "
killproc newscache -HUP
RETVAL=$?
echo
}
restart() {
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status newscache
RETVAL=$?
;;
reload)
reload
;;
restart)
restart
;;
condrestart)
if [ -f /var/lock/subsys/newscache ]; then
restart
fi
;;
*)
echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
exit 1
;;
esac
exit $RETVAL
--- NEW FILE newscache.spec ---
%define srcnamever NewsCache-1.2rc6
%define socketver 1.12.12
Name: newscache
Summary: Free cache server for USENET News
Version: 1.2
Release: 0.2.rc6%{?dist}
Group: System Environment/Daemons
License: GPL
URL: http://www.linuxhacker.at/newscache/
Source: http://www.linuxhacker.at/linux/downloads/src/%{srcnamever}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source1: http://www.linuxhacker.at/linux/downloads/src/socket++-%{socketver}.tar.gz
Source2: %{name}.init
Patch1: newscache-1.2rc6-config.patch
BuildRequires: libtool, texinfo, pam-devel
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service
%description
NewsCache is a free cache server for USENET News. NewsCache acts to
news reading clients like a news server, except that it stores only
those articles that have been requested by at least one client.
NewsCache targets problems of the current News System like network
bandwidth consumption or the IO load caused by news clients.
%prep
%setup -n %{srcnamever} -a 1
cp etc/newscache.conf-dist newscache.conf
%patch1 -p0
%build
# socket++ is a library from the same site as NewScache.
# While it is used by newscache only, there is no reason
# to ship it separately.
pushd socket++-%{socketver}
./autogen
%configure --enable-static --disable-shared
make
popd
SOCKDIR=$PWD/socket++-%{socketver}
export CFLAGS=-I$SOCKDIR
export CPPFLAGS=-I$SOCKDIR
export LDFLAGS=-L$SOCKDIR/socket++/.libs
./autogen
%configure --with-pam
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/newscache.conf-dist
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/newscache.auth-dist
# info stuff is too obsolete
rm -f $RPM_BUILD_ROOT%{_infodir}/*
install -d $RPM_BUILD_ROOT%{_localstatedir}/cache/newscache
install -d $RPM_BUILD_ROOT%{_sysconfdir}
install -m644 -p newscache.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
install -d $RPM_BUILD_ROOT%{_initrddir}
install -m755 -p %SOURCE2 $RPM_BUILD_ROOT%{_initrddir}/%{name}
install -d $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
pushd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
cat <<EOF >%{name}
#%PAM-1.0
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
EOF
popd
install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
pushd $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
cat <<EOF >%{name}
#!/bin/bash
/usr/sbin/newscacheclean
EOF
chmod 755 %{name}
popd
%post
/sbin/chkconfig --add %{name}
%preun
if [ $1 = 0 ]; then
/sbin/service %{name} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}
fi
%postun
if [ $1 != 0 ]; then
/sbin/service %{name} condrestart >/dev/null 2>&1
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%attr(755,news,news) %dir %{_localstatedir}/cache/newscache
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_initrddir}/*
%config(noreplace) %{_sysconfdir}/pam.d/*
%config(noreplace) %{_sysconfdir}/cron.daily/*
%{_bindir}/*
%{_sbindir}/*
%doc AUTHORS COPYING NEWS README THANKS TODO
%doc doc/newscache*.txt etc/*-dist
%{_mandir}/*/*
%changelog
* Wed Nov 2 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.2-0.2.rc6
- spec file cleanups
- accepted for Fedora Extra
(review by John Mahowald <jpmahowald at gmail.com>)
* Mon Sep 19 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.2-0.1.rc6
- cleanups for Fedora Extra
- add correct init script and initial config file
- create pam and cron files just at install stage
- don't include .info file -- it is too old
* Thu Mar 3 2005 Dmitry Butskoy <Dmitry at Butskoy.name>
- include libsocket++ into source package and build with them,
do not want an extra package used by newscache only (for a while...)
- some fixes for Fedora Core 3
* Sun Sep 26 2004 Herbert Straub <herbert at linuxhacker.at>
- Changing permission from 4775 to 0775 (updatenews)
- New upstream version: 1.2rc6
* Thu Sep 23 2004 Herbert Straub <herbert at linuxhacker.at>
- Conditional rpmbuild for SuSE
- restart on upgrade
- update the runlevel information
- New upstream version 1.2rc5
* Tue Jul 22 2004 Herbert Straub <herbert at linuxhacker.at>
- Updated to version 1.2rc4
* Tue Mar 18 2003 Carles Arjona <nospammer at bigfoot.com>
- version 0.99.22p1-1 RPM
* Sat Oct 26 2002 Carles Arjona <nospammer at bigfoot.com>
- fixed up spec file
- version 0.99.22-1 RPM
* Mon Jul 29 2002 Carles Arjona <nospammer at bigfoot.com>
- version 0.99.19-1 RPM
- added chkconfig support to init script
- added /etc/cron.daily/newscache
- fixed up both setguid.cc , version number and man pages
- built SPEC from scratch
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/newscache/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 3 Nov 2005 11:23:56 -0000 1.1
+++ .cvsignore 3 Nov 2005 11:24:48 -0000 1.2
@@ -0,0 +1,2 @@
+NewsCache-1.2rc6.tar.gz
+socket++-1.12.12.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/newscache/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 3 Nov 2005 11:23:56 -0000 1.1
+++ sources 3 Nov 2005 11:24:48 -0000 1.2
@@ -0,0 +1,2 @@
+a7b33314cd7701564b4947ab8615dcc2 NewsCache-1.2rc6.tar.gz
+b96e06129504ae2b4005a5834264c5a4 socket++-1.12.12.tar.gz
More information about the fedora-extras-commits
mailing list