%define name cidentd %define version 0.2.1 %define release 2 %define initdir %{_sysconfdir}/rc.d/init.d Summary: cidentd is an auth (RFC 1413) daemon Name: %{name} Version: %{version} Release: %{release} Group: System Environment/Daemons License: GPL Source: %{name}-%{version}.tar.bz2 Source1: %{name}.init Source2: %{name}.sysconfig BuildRoot: %{_tmppath}/%{name}-root URL: http://www.angelfire.com/realm/beltorak/projects/cidentd/ Distribution: Red Hat Contrib-Net Prefix: / Requires: pcre Conflicts: pidentd BuildRequires: pcre-devel %description This program is (yet another) ident daemon. The uniqueness of this implementation is that it allows users to specify thier own ident response without requiring the sysadmin to restart the daemon or recompile it. Instead of using the user's home directories (which, under normal circumstances cannot be read by the daemon), it uses a shared directory to store the user's files. %prep %setup #%patch %build CPPFLAGS="-I/usr/include/pcre" %configure CPPFLAGS="-I/usr/include/pcre" make %install %makeinstall #gzip $RPM_BUILD_ROOT%{_infodir}/*.info* rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name} mkdir -p $RPM_BUILD_ROOT/%{initdir} mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{initdir}/%{name} install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} perl -pi -e 's/id: 65533/id: 99/g' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf #%clean #[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" %post /sbin/chkconfig --add cidentd %preun if [ $1 = 0 ] ; then /sbin/chkconfig --del cidentd rm -rf /var/log/ccache.log /sbin/service cidentd stop >/dev/null 2>&1 fi exit 0 %postun if [ "$1" -ge "1" ]; then %{initdir}/cidentd condrestart >/dev/null 2>&1 fi %files %defattr(-,root,root) %doc AUTHORS %doc BUGS %doc COPYING %doc ChangeLog %doc INSTALL %doc NEWS %doc README %doc README-rfc1413 %doc README-user_file.sample %doc README.security %doc TODO %{_sbindir}/%{name} %config %{_sysconfdir}/%{name}.conf %{_mandir}/man5/* %{_mandir}/man8/* %{_infodir}/*.info* %{initdir}/%{name} %{_sysconfdir}/sysconfig/%{name} %changelog * Mon Jul 26 2004 Kenny Root - Initial spec file created