xinetd.spec   [plain text]

Summary:	xinetd -- A better inetd.
Name:		xinetd
Version:	2.3.12
Release:	1
License:	BSD
Vendor: (Rob Braun)
Group:		System Environment/Daemons
Packager:	Steve Grubb <>
Source:		%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Provides:	inetd
Prereq:		/sbin/chkconfig 
BuildRequires:  tcp_wrappers >= 7.6
Obsoletes:	inetd

Xinetd is a powerful inetd replacement. Xinetd has access control 
mechanisms, extensive logging capabilities, the ability to make 
services available based on time, can place limits on the number 
of servers that can be started, and has a configurable defence 
mechanism to protect against port scanners, among other things.


  CFLAGS="$RPM_OPT_FLAGS" ./configure \
	--sbindir=$RPM_BUILD_ROOT/usr/sbin \
	--mandir=$RPM_BUILD_ROOT/usr/share/man \
	--with-libwrap \
  strip xinetd/xinetd
  cp xinetd/xinetd xinetd6
  make distclean
  CFLAGS="$RPM_OPT_FLAGS" ./configure \
	--sbindir=$RPM_BUILD_ROOT/usr/sbin \
	--mandir=$RPM_BUILD_ROOT/usr/share/man \
  strip xinetd/xinetd

mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
mkdir -p $RPM_BUILD_ROOT/usr/sbin

install -m 0755 xinetd6 $RPM_BUILD_ROOT/usr/sbin
install -m 0755 contrib/xinetd $RPM_BUILD_ROOT/etc/rc.d/init.d/xinetd

  rm -rf $RPM_BUILD_ROOT

chkconfig --add xinetd
/etc/rc.d/init.d/xinetd restart

/etc/rc.d/init.d/xinetd stop
chkconfig --del xinetd

%defattr(-, root, root)
%doc CHANGELOG COPYRIGHT README xinetd/sample.conf 
%config(noreplace) /etc/rc.d/init.d/xinetd