]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - pkgs/iputils/iputils.nm
avahi: Update to 0.6.30.
[people/amarx/ipfire-3.x.git] / pkgs / iputils / iputils.nm
CommitLineData
9bb99a82
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = iputils
28PKG_VER = s20071127
4f01f867 29PKG_REL = 1
9bb99a82
MT
30
31PKG_MAINTAINER =
b42a752b 32PKG_GROUPS = Base Networking/Tools
9bb99a82
MT
33PKG_URL = http://www.skbuff.net/iputils
34PKG_LICENSE = BSD
35PKG_SUMMARY = Network monitoring tools including ping.
36
6343726c 37PKG_BUILD_DEPS+= libcap-devel libidn-devel
9bb99a82
MT
38
39define PKG_DESCRIPTION
40 The iputils package contains basic utilities for monitoring a network, \
41 including ping. The ping command sends a series of ICMP protocol \
42 ECHO_REQUEST packets to a specified network host to discover whether \
43 the target machine is alive and receiving network traffic.
44endef
45
46PKG_TARBALL = $(THISAPP).tar.bz2
47
adb3e60c
MT
48PKG_PATCHES = $(THISAPP)-addrcache.patch
49PKG_PATCHES += $(THISAPP)-arping-infiniband.patch
50PKG_PATCHES += $(THISAPP)-arping_timeout.patch
51PKG_PATCHES += $(THISAPP)-countermeasures.patch
52PKG_PATCHES += $(THISAPP)-idn.patch
53PKG_PATCHES += $(THISAPP)-open-max.patch
54PKG_PATCHES += $(THISAPP)-ping-subint.patch
55PKG_PATCHES += $(THISAPP)-ping_cleanup.patch
56PKG_PATCHES += $(THISAPP)-rh.patch
57PKG_PATCHES += $(THISAPP)-traffic_class.patch
58PKG_PATCHES += $(THISAPP)-warnings.patch
59PKG_PATCHES += $(THISAPP)-output.patch
60
9bb99a82
MT
61define STAGE_INSTALL
62 -mkdir -pv $(BUILDROOT)/{bin,sbin} $(BUILDROOT)/usr/sbin
63
64 cd $(DIR_APP) && install -cp clockdiff $(BUILDROOT)/usr/sbin/
65 cd $(DIR_APP) && install -cp arping $(BUILDROOT)/sbin/
66 cd $(DIR_APP) && install -cp ping $(BUILDROOT)/bin/
67 cd $(DIR_APP) && install -cp ping6 $(BUILDROOT)/bin/
68 cd $(DIR_APP) && install -cp rdisc $(BUILDROOT)/sbin/
69 cd $(DIR_APP) && install -cp tracepath $(BUILDROOT)/bin/
70 cd $(DIR_APP) && install -cp tracepath6 $(BUILDROOT)/bin/
71
72 ln -svf ../../sbin/arping $(BUILDROOT)/usr/sbin/arping
73 ln -svf ../../bin/ping6 $(BUILDROOT)/usr/sbin/
74 ln -svf ../../bin/tracepath $(BUILDROOT)/usr/sbin/
75 ln -svf ../../bin/tracepath6 $(BUILDROOT)/usr/sbin/
76
77 setcap cap_net_admin=ep $(BUILDROOT)/bin/ping
78 setcap cap_net_admin=ep $(BUILDROOT)/bin/ping6
79endef