File dhcp-tools.spec of Package dhcp-tools

# spec file for package dhcp-tools (Version 1.6)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           dhcp-tools
%define DUMP dhcpdump-1.6
%define PING dhcping-1.2
License:        BSD 3-Clause
Group:          Productivity/Networking/Boot/Utilities
AutoReqProv:    on
Version:        1.6
Release:        165
Summary:        DHCP Tools
Source:         dhcpdump-1.6.tar.gz
Source1:        dhcping-1.2.tar.gz
Patch1:         dhcpdump-1.6-tcpdump-3.8.1.dif
Patch2:         dhcpdump-1.6-tcpdump-3.8.2.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Two utilities, written by Edwin Groothuis, to test and debug DHCP:

dhcpdump This parses tcpdump output to display the dhcp-packets for
easier checking and debugging.

dhcping This allows the system administrator to check if a remote DHCP
server is still functioning.

Home page:

    Edwin Groothuis <>

%setup -c -n %{name}
%setup -n %{name} -T -D -a 1
%if %suse_version > 900
%if %suse_version > 910
pushd dhcpdump*
%patch2 -p1

export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
for i in %{DUMP} %{PING}; do
	pushd $i
	automake --add-missing
	touch *.pod
	make *.pod

mkdir dhcpdump dhcping
cp -p %{DUMP}/{CHANGES,CONTACT,FILES,dhcp_options.h,LICENSE} dhcpdump/

if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi

%doc dhcpdump
%doc dhcping

* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005
- add norootforbuild
* Fri Sep 10 2004
- fix parsing of IP header and data packages for output of
  tcpdump-3.8.[23] [#44946], and apply the fix on 9.2 or newer
- apply previous patch on 9.1 or newer
* Mon May 10 2004
- fix parsing of IP header for output of tcpdump-3.8.1 [#38528]
* Wed Mar 03 2004
- update dhcpdump to 1.5
  - Option 82, submitted by Phil Pennock <>
  - Add fflush(), submitted by Gary Colman <>
  - Fix problem with padding, they were not handled properly
  and caused old memory to be reused.
- compile with -fno-strict-aliasing
* Fri Jul 25 2003
- update dhcpdump to 1.5. Rephrased changelog:
  - better input checking regarding validity of the header of the UDP packet
  - Added some DHCP options from the INIA website (not all are parsed yet)
  - added chaddr filter, contributed by Peter Apian-Bennewitz
  - client-identifier is now printed as long as it is.
  - autoconfiscated
- update dhcping to 1.2 (no significant changes)
- install CHANGES and other accompanying files
- use %%defattr
- re-create man pages
* Fri Aug 24 2001
- update dhcpdump to 1.2 and dhcping to 1.1
* Wed Mar 21 2001
- new package
openSUSE Build Service is sponsored by