auto-import changelog data from xinetd-2.1.8.9pre9-6.src.rpm

Fri Aug 18 2000 Trond Eivind Glomsrd <teg@redhat.com
- use the server name not the service name for libwrap checking (#16516).
    The new way was better, but this is sacrificed so old systems will
    continue to work and the documentation for tcp_wrappers can be correct.
Wed Aug 16 2000 Than Ngo <than@redhat.com>
- fix initscript, test network file before source it (Bug #16247)
Tue Aug 15 2000 Trond Eivind Glomsrd <teg@redhat.com
- make the pidfile 0644, not 0300 (#16256)
Tue Aug 08 2000 Trond Eivind Glomsrd <teg@redhat.com>
- added support for "-pidfile" option (#15531)
Fri Aug 04 2000 Trond Eivind Glomsrd <teg@redhat.com>
- added patch to ignore .rpmsave, .rpmorig, .rpmnew, ~ suffixed files
    (#15304)
Thu Aug 03 2000 Trond Eivind Glomsrd <teg@redhat.com>
- 2.1.8.9pre9, old patches are now integrated.
Wed Aug 02 2000 Trond Eivind Glomsrd <teg@redhat.com>
- fix converting of "wait" argument (#13884)
- remove tcpd and /usr/sbin/tcpd from inetd.conf services before converting
    - xinetd is linked against tcp_wrappers
Mon Jul 31 2000 Trond Eivind Glomsrd <teg@redhat.com>
- fix linuxconf restart problem (#14856)
- fix conditional restart
- mark /etc/xinetd.conf as a configuration file
Tue Jul 25 2000 Bill Nottingham <notting@redhat.com>
- um, we *need* to prereq /etc/init.d
Mon Jul 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Don't require /etc/init.d
Sat Jul 22 2000 Bill Nottingham <notting@redhat.com>
- rebuild
Tue Jul 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
- fix the sections of the man pages (#14244)
Tue Jul 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
- remove itox, as it wouldn't do the right thing with our configuration
- same with xconv.pl
- some changes to the installation process
Mon Jul 17 2000 Trond Eivind Glomsrd <teg@redhat.com>
- move initscript back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrd <teg@redhat.com>
- change process name in init file
Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Fri Jul 07 2000 Nalin Dahyabhai <nalin@redhat.com>
- start the daemon with the "-reuse" flag
Thu Jul 06 2000 Trond Eivind Glomsrd <teg@redhat.com>
- "Prereq:", not "Requires:" for /etc/init.d
Thu Jul 06 2000 Trond Eivind Glomsrd <teg@redhat.com>
- require /etc/init.d
Wed Jul 05 2000 Florian La Roche <Florian.LaRoche@redhat.com>
- upper the number of instances to 60
Sun Jul 02 2000 Nalin Dahyabhai <nalin@redhat.com>
- fix a memory-allocation bug
Wed Jun 28 2000 Trond Eivind Glomsrd <teg@redhat.com>
- 2.1.8.9pre8
Wed Jun 21 2000 Trond Eivind Glomsrd <teg@redhat.com>
- moved to /etc/init.d
Wed Jun 21 2000 Trond Eivind Glomsrd <teg@redhat.com>
- changed specfile and initfile to implement conditional restart
Sun Jun 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
- 2.1.8.9pre7
- now obsoletes inetd
- use %{_tmppath}
Sun Jun 04 2000 Trond Eivind Glomsrd <teg@redhat.com>
- 2.1.8.9pre6
- added converter script which can convert specified or remaing uncoverted
    services
- use %{_mandir}
- removed +x on xinetd.conf
Wed May 24 2000 Trond Eivind Glomsrd <teg@redhat.com>
- 2.1.8.9pre4
- authpriv patch no longer needed
Tue May 23 2000 Trond Eivind Glomsrd <teg@redhat.com>
- /etc/xinetd.d is now part of the filesystem package
- more fixes to xinetd.init
Mon May 22 2000 Trond Eivind Glomsrd <teg@redhat.com>
- fixed some obvious bugs in xinetd.init
- added a default xinetd.conf
- patched xinetd to understand LOG_AUTHPRIV
Fri May 19 2000 Trond Eivind Glomsrd <teg@redhat.com>
- updated version
- removed a define %ver (we already have 2.1.8.9pre9)
- removed some extra CFLAGS declarations
- added configuration directory, /etc/xinetd.d
Mon Feb 21 2000 Tim Powers <timp@redhat.com>
- fixed broken postun sections, should have been *preun*
- fixed broken gzip of manpages
Wed Jan 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 2.1.8.8p8
- Fix the init script (Bug #7277)
- remove our patches (no longer required)
Tue Sep 21 1999 Bill Nottingham <notting@redhat.com>
- add -lnsl
Tue Sep 07 1999 Tim Powers <timp@redhat.com>
- modification top install routine
Mon Jul 26 1999 Tim Powers <timp@redhat.com>
- updated source to 2.1.8.6b6
- built for 6.1
Mon Apr 26 1999 Bill Nottingham <notting@redhat.com>
- update to 2.1.8.6b5
- build for PowerTools
Sun Jan 10 1999 Bill Nottingham <notting@redhat.com>
- update to 2.1.8.5p2
Tue Dec 01 1998 Bill Nottingham <notting@redhat.com>
- intial build
This commit is contained in:
cvsdist 2004-09-09 14:47:09 +00:00
commit f76da59ed6
5 changed files with 546 additions and 0 deletions

View file

@ -0,0 +1 @@
xinetd-2.1.8.9pre9.tar.gz

View file

@ -0,0 +1 @@
89d1a8de01950f4a0006da2a7c346f6a xinetd-2.1.8.9pre9.tar.gz

222
xinetd-inetdconvert Executable file
View file

@ -0,0 +1,222 @@
#!/usr/bin/python
#
# A helper program to convert from an existing inetd.conf to
# individual files in /etc/xinetd.d (specifyable)
#
# This program is Copyright 2000 Red Hat, Inc. and is GPLed
#
# teg@redhat.com
import re
import string
import os
import sys
class InetdFile:
# Intialize a inetd file, with the name of the file
# as the argument
def __init__(self,filename):
self.filename=filename
file=open(filename,"r")
self.lines=file.readlines()
file.close()
# matches a service line in /etc/inetd.conf
self.groupuser=re.compile(r"(\w+)\.(\w+)")
# converts a a specified service given to a separate file in the
# directory given
def writeServiceFile(self,directory,service):
content=self.convertService(service)
if(not content):
raise "No such service"
file=open(directory+"/"+service,"w")
file.write(content)
file.close()
# convert a service by name - return a string with configuration
# info for xinetd if present, None otherwise
def convertService(self,service):
for line in self.lines:
try:
parts=string.split(line)
if(parts[0]==service):
return self.makeService(line)
except:
junk=0 # Need to do something
return None
# Return a list of enabled services
def returnEnabledServices(self):
services={}
for line in self.lines:
try:
parts=string.split(line)
if(parts[0][0]!="#"):
services[parts[0]]=1
except:
junk=0 # Need to do something
return services
# Returns a string containing the xinetd.d/ equivalent of a line
# in inetd.conf - None if inactive or the line does not pass a
# simple check
def makeService(self,line):
parts=string.split(line)
if(len(parts)<6): # Not a configuration line
return None
elif(parts[0][0]=="#"): # commented out
return None
# Handle tcpd and /usr/sbin/tcpd - no longer
# necesarry, as we ship with tcp_wrapper support
# included
if((parts[5]=="tcpd") or (parts[5]=="/usr/sbin/tcpd")):
parts[5:]=parts[6:]
# Write the file
res="# Converted by inetdconvert\n"
res=res+"service "+parts[0]+"\n{\n"
res=res+"\tsocket_type\t\t= "+parts[1]+"\n"
res=res+"\tprotocol\t\t= "+parts[2]+"\n"
# Don't wait on tcp
if( (parts[3]=="nowait") or (parts[2] == "tcp")):
res=res+"\twait\t\t\t= no\n"
else:
res=res+"\twait\t\t\t= yes\n"
hits2=self.groupuser.match(parts[4])
if(hits2):
res=res+"\tuser\t\t\t= "+hits2.group(1)+"\n"
res=res+"\tgroup\t\t\t= "+hits2.group(2)+"\n"
else:
res=res+"\tuser\t\t\t= "+parts[4]+"\n"
res=res+"\tserver\t\t\t= "+parts[5]+"\n"
args=""
for i in range(6,len(parts)):
args=args+parts[i]+" "
if(args!=""):
res=res+"\tserver_args\t\t= "+args+"\n"
res=res+"\tdisable\t\t\t= no\n}\n"
return res
# A class for a xinetd service file (for a single service)
# Doesn't do anything but return the name of the service
class XinetdFile:
def __init__(self,filename):
self.filename=filename
file=open(filename,"r")
self.service=None
line=" "
while line:
line=file.readline()
parts=string.split(line)
if((len(parts)>=2) and (parts[0]=="service")):
self.service=parts[1]
break
file.close()
def getService(self):
return self.service
# A class for a directory of xinetd service files
# Doesn't do anything but return the name of the services
class XinetdServices:
def __init__(self,directory):
self.directory=directory
def findServices(self):
files=os.listdir(self.directory)
services={}
for file in files:
xf=XinetdFile(self.directory+"/"+file)
services[xf.getService()]=1
return services
# Converts a service from the requested inetd configuration file to an
# xinetd service file in the requested directory Note: It will
# overwrite an existing file with same name
def convertService(inetdfile,directory,service):
ifile=InetdFile(inetdfile)
ifile.writeServiceFile(directory,service)
# Converts all services from the requested inetd configuration files,
# except those already enabled in the same directory
# Note - doesn't handle multiple names on same service
def convertRemaining(inetdfile,directory):
ifile=InetdFile(inetdfile)
existingservices=XinetdServices(directory)
xinetdservices=existingservices.findServices()
inetdservices=ifile.returnEnabledServices()
for service in inetdservices.keys():
if(not xinetdservices.has_key(service)):
print "Converting "+service
ifile.writeServiceFile(directory,service)
else:
print service+" is already present"
# Prints a help message
def printHelp():
print """
inetdconvert version 0.1 - Copyright (C) 2000 Red Hat Software
This may be freely redistributed under the terms of the GNU Public License.
usage: inetdconvert <-h|--help>
Display this help message
inetdconvert <<-d|--directory> directory> <--inetdfile file> service
Converts the service "service" - this must
match an entry in /etc/inetd.conf and will create a file
in /etc/xinetd.d by default, alternatively in "directory".
The service will be read from /etc/inetd.conf
inetdconvert <<-d|--directory> directory> <--inetdfile file>
--convertremaining Converts all nonconverted services
"""
if __name__ == "__main__":
argv=sys.argv
directory="/etc/xinetd.d"
inetdfile="/etc/inetd.conf"
if(("-h" in argv) or ("--help" in argv) or (len(argv)==1)):
printHelp()
sys.exit(0)
if("-d" in argv):
directory=argv[argv.index("-d")+1]
argv.remove("-d")
argv.remove(directory)
elif ("--directory" in argv):
directory=argv[argv.index("--directory")+1]
argv.remove("--directory")
argv.remove(directory)
if("--inetdfile" in argv):
inetdfile=argv[argv.index("--inetdfile")+1]
argv.remove("--inetdfile")
argv.remove(inetdfile)
if("--convertremaining" in argv):
convertRemaining(inetdfile,directory)
sys.exit(0)
if(len(argv) < 2):
printHelp()
sys.exit(1)
convertService(inetdfile,directory,argv[1])
sys.exit(0)

97
xinetd.init Normal file
View file

@ -0,0 +1,97 @@
#! /bin/sh
#
# xinetd This starts and stops xinetd.
#
# chkconfig: 345 50 50
# description: xinetd is a powerful replacement for inetd. \
# xinetd has access control machanisms, extensive \
# logging capabilities, the ability to make services \
# available based on time, and can place \
# limits on the number of servers that can be started, \
# among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid
PATH=/sbin:/bin:/usr/bin:/usr/sbin
# Source function library.
. /etc/init.d/functions
# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "yes" ] || exit 0
[ -f /usr/sbin/xinetd ] || exit 1
[ -f /etc/xinetd.conf ] || exit 1
RETVAL=0
start(){
echo -n "Starting xinetd: "
daemon xinetd -reuse -pidfile /var/run/xinetd.pid
RETVAL=$?
echo
touch /var/lock/subsys/xinetd
return $RETVAL
}
stop(){
echo -n "Stopping xinetd: "
killproc xinetd
RETVAL=$?
echo
rm -f /var/lock/subsys/xinetd
return $RETVAL
}
reload(){
echo -n "Reloading configuration: "
killproc xinetd -USR2
RETVAL=$?
echo
return $RETVAL
}
restart(){
stop
start
}
condrestart(){
[ -e /var/lock/subsys/xinetd ] && restart
return 0
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status xinetd
;;
restart)
restart
;;
reload)
reload
;;
condrestart)
condrestart
;;
*)
echo "Usage: xinetd {start|stop|status|restart|condrestart|reload}"
RETVAL=1
esac
exit $RETVAL

225
xinetd.spec Normal file
View file

@ -0,0 +1,225 @@
Summary: A secure replacement for inetd.
Name: xinetd
Version: 2.1.8.9pre9
Release: 6
License: Distributable (BSD-like)
Group: System Environment/Daemons
Source: http://synack.net/xinetd/xinetd-%{version}.tar.gz
Source1: xinetd.init
Source2: xinetd.conf
Source3: xinetd-inetdconvert
Patch0: xinetd-2.1.8.9pre9-skipjunkfiles.patch
Patch1: xinetd-2.1.8.9pre9-pidfile.patch
Patch2: xinetd-2.1.8.9pre9-tcpwrapper.patch
Provides: inetd
Prereq: /sbin/chkconfig /etc/init.d /sbin/service
BuildRequires: tcp_wrappers
Requires: filesystem >= 2.0.1
URL: http://synack.net/xinetd/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Obsoletes: inetd
%description
Xinetd is a secure replacement for inetd, the Internet services
daemon. Xinetd provides access control for all services based on the
address of the remote host and/or on time of access and can prevent
denial-of-access attacks. Xinetd provides extensive logging, has no
limit on the number of server arguments and you can bind specific
services to specific IP addresses on your host machine. It also enables
information of a service to be in a separate file
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
autoconf
%configure --with-libwrap
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
%makeinstall DAEMONDIR=$RPM_BUILD_ROOT/usr/sbin MANDIR=$RPM_BUILD_ROOT/%{_mandir}
install -m 755 %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/xinetd
install -m 644 %SOURCE2 $RPM_BUILD_ROOT/etc/xinetd.conf
install -m 755 %SOURCE3 $RPM_BUILD_ROOT/usr/sbin/inetdconvert
rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/itox*
rm -f $RPM_BUILD_ROOT/usr/sbin/itox
rm -f $RPM_BUILD_ROOT/usr/sbin/xconv.pl
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 = 1 ]; then
/sbin/chkconfig --add xinetd
fi
%preun
if [ $1 = 0 ]; then
/sbin/chkconfig --del xinetd
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service xinetd condrestart >/dev/null 2>&1
fi
%files
%defattr(-,root,root)
%doc INSTALL xinetd/CHANGELOG xinetd/COPYRIGHT README xinetd/sample.conf
%config /etc/xinetd.conf
/usr/sbin/*
%{_mandir}/*/*
%config /etc/rc.d/init.d/xinetd
%changelog
* Thu Aug 18 2000 Trond Eivind Glomsrød <teg@redhat.com
- use the server name not the service name for libwrap
checking (#16516). The new way was better, but
this is sacrificed so old systems will continue to work
and the documentation for tcp_wrappers can be correct.
* Wed Aug 16 2000 Than Ngo <than@redhat.com>
- fix initscript, test network file before source it (Bug #16247)
* Tue Aug 15 2000 Trond Eivind Glomsrød <teg@redhat.com
- make the pidfile 0644, not 0300 (#16256)
* Tue Aug 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- added support for "-pidfile" option (#15531)
* Fri Aug 04 2000 Trond Eivind Glomsrød <teg@redhat.com>
- added patch to ignore .rpmsave, .rpmorig, .rpmnew, ~
suffixed files (#15304)
* Thu Aug 03 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 2.1.8.9pre9, old patches are now integrated.
* Wed Aug 02 2000 Trond Eivind Glomsrød <teg@redhat.com>
- fix converting of "wait" argument (#13884)
- remove tcpd and /usr/sbin/tcpd from inetd.conf services
before converting - xinetd is linked against tcp_wrappers
* Mon Jul 31 2000 Trond Eivind Glomsrød <teg@redhat.com>
- fix linuxconf restart problem (#14856)
- fix conditional restart
- mark /etc/xinetd.conf as a configuration file
* Tue Jul 25 2000 Bill Nottingham <notting@redhat.com>
- um, we *need* to prereq /etc/init.d
* Mon Jul 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Don't require /etc/init.d
* Sat Jul 22 2000 Bill Nottingham <notting@redhat.com>
- rebuild
* Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- fix the sections of the man pages (#14244)
* Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- remove itox, as it wouldn't do the right thing with our
configuration
- same with xconv.pl
- some changes to the installation process
* Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move initscript back to /etc/rc.d/init.d
* Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- change process name in init file
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Fri Jul 7 2000 Nalin Dahyabhai <nalin@redhat.com>
- start the daemon with the "-reuse" flag
* Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
- "Prereq:", not "Requires:" for /etc/init.d
* Wed Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
- require /etc/init.d
* Wed Jul 5 2000 Florian La Roche <Florian.LaRoche@redhat.com>
- upper the number of instances to 60
* Sun Jul 2 2000 Nalin Dahyabhai <nalin@redhat.com>
- fix a memory-allocation bug
* Wed Jun 28 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 2.1.8.9pre8
* Wed Jun 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
- moved to /etc/init.d
* Wed Jun 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
- changed specfile and initfile to implement conditional
restart
* Sun Jun 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 2.1.8.9pre7
- now obsoletes inetd
- use %%{_tmppath}
* Sun Jun 04 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 2.1.8.9pre6
- added converter script which can convert specified or
remaing uncoverted services
- use %%{_mandir}
- removed +x on xinetd.conf
* Wed May 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 2.1.8.9pre4
- authpriv patch no longer needed
* Tue May 23 2000 Trond Eivind Glomsrød <teg@redhat.com>
- /etc/xinetd.d is now part of the filesystem package
- more fixes to xinetd.init
* Mon May 22 2000 Trond Eivind Glomsrød <teg@redhat.com>
- fixed some obvious bugs in xinetd.init
- added a default xinetd.conf
- patched xinetd to understand LOG_AUTHPRIV
* Fri May 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- updated version
- removed a define %ver (we already have %version)
- removed some extra CFLAGS declarations
- added configuration directory, /etc/xinetd.d
* Mon Feb 21 2000 Tim Powers <timp@redhat.com>
- fixed broken postun sections, should have been *preun*
- fixed broken gzip of manpages
* Wed Jan 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 2.1.8.8p8
- Fix the init script (Bug #7277)
- remove our patches (no longer required)
* Tue Sep 21 1999 Bill Nottingham <notting@redhat.com>
- add -lnsl
* Tue Sep 7 1999 Tim Powers <timp@redhat.com>
- modification top install routine
* Mon Jul 26 1999 Tim Powers <timp@redhat.com>
- updated source to 2.1.8.6b6
- built for 6.1
* Mon Apr 26 1999 Bill Nottingham <notting@redhat.com>
- update to 2.1.8.6b5
- build for PowerTools
* Mon Jan 10 1999 Bill Nottingham <notting@redhat.com>
- update to 2.1.8.5p2
* Tue Dec 1 1998 Bill Nottingham <notting@redhat.com>
- intial build