File oidentd.spec of Package oidentd
#
# spec file for package oidentd (Version 2.0.8)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: oidentd
Version: 2.0.8
Release: 1
License: GPL
Group: Productivity/Networking/System
URL: http://dev.ojnk.net/
Autoreqprov: on
Summary: Configurable IDENT Server That Supports NAT/IP Masquerading
Source: http://prdownloads.sourceforge.net/ojnk/oidentd-%{version}.tar.bz2
Source1: sysconfig.oidentd
Source2: rc.oidentd
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %insserv_prereq %fillup_prereq
%description
Oidentd is an ident (rfc1413 compliant) daemon that runs on Linux,
Darwin, FreeBSD, OpenBSD, NetBSD, and Solaris. oidentd can handle IP
masqueraded/NAT connections on Linux, Darwin, FreeBSD (ipf only),
OpenBSD, and NetBSD. Oidentd has a flexible mechanism for specifying
ident responses. Users can be granted permission to specify their own
ident responses. Responses can be specified according to host and port
pairs.
Authors:
--------
Kamil Andrusz <wizz at mniam dot net>
Daniel Brafford <pod at charter dot net>
Bjarni R. Einarsson <bre at mmedia dot is>
Slawomir Piotrowski <slawek at telsatgp dot com dot pl>
Guus Sliepen <sliepen at phys dot uu dot nl>
Ryan McCabe <ryan at numb dot org>
%prep
%setup
%build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf --install --force
export CFLAGS="$RPM_OPT_FLAGS"
./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir}
%{__make} all
%install
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
mkdir -p \
${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d \
${RPM_BUILD_ROOT}/%{_var}/adm/fillup-templates
touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/oidentd.conf
touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/oidentd_masq.conf
cp -p ${RPM_SOURCE_DIR}/rc.oidentd ${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d/oidentd
ln -fs %{_sysconfdir}/init.d/oidentd ${RPM_BUILD_ROOT}/%{_sbindir}/rcoidentd
cp -p ${RPM_SOURCE_DIR}/sysconfig.oidentd ${RPM_BUILD_ROOT}/%{_var}/adm/fillup-templates
%clean
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
%post
%{fillup_and_insserv}
%postun
%{restart_on_update}
%{insserv_cleanup}
%files
%defattr(-,root,root)
%config(noreplace) %ghost %{_sysconfdir}/oidentd.conf
%config(noreplace) %ghost %{_sysconfdir}/oidentd_masq.conf
%config %{_sysconfdir}/init.d/oidentd
%{_sbindir}/oidentd
%{_sbindir}/rcoidentd
%{_mandir}/man5/oidentd.conf.5.gz
%{_mandir}/man5/oidentd_masq.conf.5.gz
%{_mandir}/man8/oidentd.8.gz
%{_var}/adm/fillup-templates/sysconfig.oidentd
%doc AUTHORS COPYING* ChangeLog* INSTALL NEWS README TODO
%changelog -n oidentd
* Mon Aug 28 2006 - lmuelle@suse.de
- Update to version 2.0.8.
+ Removed spaces between commas and colons from responses.
+ Pulled in patches for Linux from Debian.
+ Open masquerading options before dropping permissions on linux.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 30 2004 - mc@suse.de
- Add missing PreReq (#46479)
* Wed Mar 17 2004 - lmuelle@suse.de
- inital SuSE RPM