File htp.spec of Package htp

# norootforbuild

Name:				htp
Version:			0.4.10
Release:			0
Summary:			HTTP Time Protocol
Source:			http://www.rkeene.org/files/oss/htp/htp-%{version}.tar.gz
Source1:			htpd.suse.init
Patch1:			htp-destdir.patch
URL:				http://www.rkeene.org/oss/htp/
Group:			Productivity/Networking/Other
License:			GNU General Public License version 2 or later (GPLv2 or later)
BuildRoot:		%{_tmppath}/build-%{name}-%{version}
BuildRequires:	libconfig-devel libopennet-devel
BuildRequires:	gcc glibc-devel make
BuildRequires:	autoconf automake libtool

%description
The HTTP Time Protocol (HTP) system is a set of utilities to set and maintain
the system clock from the HTTP/1.1 (RFC 2616) "Date:" header.

The purpose of HTP is provide a simple to use system that can be used on any
system that is connected to the internet and can access atleast one web page
(either directly or through a proxy) to be able to maintain an accurate clock.

HTP uses basic statistical analysis to arrive at the most accurate time
possible given enough servers. The more servers HTP is configured to use the
more accurate the clock can be.

%prep
%setup -q
%patch1

%build
autoreconf -fiv

%configure
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

%__install -D -m0755 "%{SOURCE1}" "%{buildroot}/etc/init.d/htpd"

%__install -d "%{buildroot}%{_sbindir}"
%__ln_s ../../etc/init.d/htpd "%{buildroot}/usr/sbin/rchtpd"

%clean
%__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc ChangeLog README
%config(noreplace) %{_sysconfdir}/htpd.conf
%{_sbindir}/htpd
%{_bindir}/htpdate
%doc %{_mandir}/man5/htpd.conf.5*
%doc %{_mandir}/man8/htpd.8*
%doc %{_mandir}/man8/htpdate.8*
%config /etc/init.d/htpd
/usr/sbin/rchtpd

%changelog
* Fri Jan 18 2008 Pascal Bleser <guru@unixtech.be> 0.4.10
- fix permissions on /etc/init.d/htpd

* Thu Jan 17 2008 Pascal Bleser <guru@unixtech.be> 0.4.10
- fixed init script

* Thu Nov  1 2007 Pascal Bleser <guru@unixtech.be> 0.4.10
- moved to openSUSE Build Service
- new upstream version

* Mon Dec 18 2006 Pascal Bleser <guru@unixtech.be> 0.4.9-1
- rewrote spec file
- new upstream version

* Fri Jan  7 2005 Pascal Bleser <guru@unixtech.be> 0.4.6
- version 0.4.6

* Sun Jan  2 2005 Pascal Bleser <guru@unixtech.be> 0.4.5
- version 0.4.5

* Thu Dec 23 2004 Pascal Bleser <guru@unixtech.be> 0.3.25
- version 0.3.25

* Mon Dec 20 2004 Pascal Bleser <guru@unixtech.be> 0.3.12
- version 0.3.12

* Sun Nov 14 2004 Pascal Bleser <guru@unixtech.be> 0.3.6
- version 0.3.6

* Mon Nov  8 2004 Pascal Bleser <guru@unixtech.be> 0.3.4
- new package

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by