133 lines
3.9 KiB
RPMSpec
133 lines
3.9 KiB
RPMSpec
Name: xinetd
|
|
Version: 2.3.15.4
|
|
Summary: A better and secure replacement for inetd
|
|
Group: System/Servers
|
|
Release: 1mamba
|
|
License: BSD
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/openSUSE/xinetd
|
|
Source0: https://github.com/openSUSE/xinetd.git/%{version}/xinetd-%{version}.tar.bz2
|
|
#Source0: http://www.xinetd.org/xinetd-%{version}.tar.gz
|
|
Source1: xinetd.service
|
|
Source2: xinetd-etc.tar.bz2
|
|
Source3: xinetd-conf
|
|
Provides: inetd
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: ldconfig
|
|
BuildRequires: libe2fs-devel
|
|
BuildRequires: libkrb5-devel
|
|
BuildRequires: libnsl-devel
|
|
BuildRequires: libselinux-devel
|
|
BuildRequires: libtirpc-devel
|
|
BuildRequires: libwrap-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: tcp_wrappers
|
|
Obsoletes: inetd
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: tcp_wrappers >= 7.6
|
|
|
|
%description
|
|
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.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -a2
|
|
./autogen.sh
|
|
|
|
%build
|
|
export LDFLAGS=-ltirpc
|
|
%configure \
|
|
--with-libwrap \
|
|
--with-inet6
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%make_install
|
|
|
|
#make install \
|
|
# prefix=$RPM_BUILD_ROOT%{_prefix} \
|
|
# DAEMONDIR=$RPM_BUILD_ROOT%{_sbindir} \
|
|
# MANDIR=$RPM_BUILD_ROOT%{_mandir}
|
|
|
|
install -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/xinetd.service
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
|
|
install -m 600 etc/xinetd.d/* $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
|
|
install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.conf
|
|
|
|
%clean
|
|
test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
%post
|
|
%systemd_post xinetd
|
|
:
|
|
|
|
%preun
|
|
%systemd_preun xinetd
|
|
:
|
|
|
|
%postun
|
|
%systemd_postun_with_restart xinetd
|
|
:
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%dir %{_sysconfdir}/xinetd.d
|
|
%config(noreplace) %{_sysconfdir}/xinetd.d/*
|
|
%config(noreplace) %{_sysconfdir}/xinetd.conf
|
|
%{_bindir}/itox
|
|
%{_bindir}/xconv.pl
|
|
%{_sbindir}/xinetd
|
|
%{_unitdir}/xinetd.service
|
|
%{_mandir}/man5/xinetd.conf.5*
|
|
%{_mandir}/man5/xinetd.log.5*
|
|
%{_mandir}/man8/itox.8*
|
|
%{_mandir}/man8/xconv.pl.8*
|
|
%{_mandir}/man8/xinetd.8*
|
|
%doc COPYRIGHT
|
|
|
|
%changelog
|
|
* Thu Nov 19 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.15.4-1mamba
|
|
- update to 2.3.15.4
|
|
|
|
* Sat Apr 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.15-3mamba
|
|
- initscript: start with -pidfile for systemd to detect it is running
|
|
|
|
* Sat May 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.15-2mamba
|
|
- restart service on upgrade; fixes some specfile oldies
|
|
|
|
* Thu May 10 2012 Automatic Build System <autodist@mambasoft.it> 2.3.15-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Dec 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.14-3mamba
|
|
- rebuilt to remove executable requirements
|
|
|
|
* Tue Jun 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.14-2mamba
|
|
- specfile updated
|
|
|
|
* Thu Dec 01 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.14-1qilnx
|
|
- update to version 2.3.14 by autospec
|
|
|
|
* Mon Nov 29 2004 Silvan Calarco <silvan.calarco@qiinux.it> 2.3.13-2qilnx
|
|
- added tcp_wrapper requirement
|
|
- don't start service on install, just chkconfig it
|
|
|
|
* Fri Mar 12 2004 Davide Madrisan <davide.madrisan@qiinux.it> 2.3.13-1qilnx
|
|
- updated specfile and init file
|
|
- new version rebuild
|
|
|
|
* Tue Dec 02 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.12-1qilnx
|
|
- new version rebuild
|
|
- fixed initscript reload
|
|
|
|
* Sat May 24 2003 Silvan Calarco <silvan.calarco@qinet.it>
|
|
- fixed configuration and initscripts to make it work correctly
|
|
|
|
* Thu Apr 17 2003 Luca Tinelli <luca.tinelli@qinet.it>
|
|
- first build
|