Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > 8fab363ace195a2e4688001dd01d1de3 > files > 3

sleuth-1.3-1mdk.src.rpm

%define	name	sleuth
%define	version	1.3
%define	release	1mdk

Summary:	Perl script for easy checking (DNS, common errors and etc.)
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Networking/Other
URL:		ftp://atrey.karlin.mff.cuni.cz/pub/local/mj/net/
Source0:	%{name}-%{version}.tar.bz2
patch0:		%{name}-%{version}-relpath.patch.bz2
Requires:	perl-Net-DNS
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildArchitectures: noarch

%description
Sleuth is a Perl script designed for easy checking of DNS zones
for common errors and also for processing of secondary name
service requests.

Sleuth also lists the corresponding RFC references with most of
its error messages, so that the people upset with their zones
being buggy can simply look up what exactly is going wrong and
how to fix it.

%prep

%setup -q
%patch0 -p1

%build

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}/var/www/cgi-bin
install -m644 sleuth.conf %{buildroot}%{_sysconfdir}/
install -m755 sleuth %{buildroot}%{_bindir}/
install -m755 check.cgi %{buildroot}/var/www/cgi-bin/
install -m644 check.conf %{buildroot}/var/www/cgi-bin/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog README THANKS TODO
%attr(0644,root,root) %config(noreplace,missingok) %{_sysconfdir}/sleuth.conf
%attr(0755,root,root) %{_bindir}/sleuth
%attr(0755,root,root) /var/www/cgi-bin/check.cgi
%attr(0644,root,root) /var/www/cgi-bin/check.conf

%changelog
* Mon Aug 26 2002 <oden.eriksson@kvikkjokk.net> 1.3-1mdk
- initial cooker contrib