]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = iputils | |
28 | PKG_VER = s20071127 | |
4f01f867 | 29 | PKG_REL = 1 |
9bb99a82 MT |
30 | |
31 | PKG_MAINTAINER = | |
b42a752b | 32 | PKG_GROUPS = Base Networking/Tools |
9bb99a82 MT |
33 | PKG_URL = http://www.skbuff.net/iputils |
34 | PKG_LICENSE = BSD | |
35 | PKG_SUMMARY = Network monitoring tools including ping. | |
36 | ||
6343726c | 37 | PKG_BUILD_DEPS+= libcap-devel libidn-devel |
9bb99a82 MT |
38 | |
39 | define 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. | |
44 | endef | |
45 | ||
46 | PKG_TARBALL = $(THISAPP).tar.bz2 | |
47 | ||
adb3e60c MT |
48 | PKG_PATCHES = $(THISAPP)-addrcache.patch |
49 | PKG_PATCHES += $(THISAPP)-arping-infiniband.patch | |
50 | PKG_PATCHES += $(THISAPP)-arping_timeout.patch | |
51 | PKG_PATCHES += $(THISAPP)-countermeasures.patch | |
52 | PKG_PATCHES += $(THISAPP)-idn.patch | |
53 | PKG_PATCHES += $(THISAPP)-open-max.patch | |
54 | PKG_PATCHES += $(THISAPP)-ping-subint.patch | |
55 | PKG_PATCHES += $(THISAPP)-ping_cleanup.patch | |
56 | PKG_PATCHES += $(THISAPP)-rh.patch | |
57 | PKG_PATCHES += $(THISAPP)-traffic_class.patch | |
58 | PKG_PATCHES += $(THISAPP)-warnings.patch | |
59 | PKG_PATCHES += $(THISAPP)-output.patch | |
60 | ||
9bb99a82 MT |
61 | define 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 | |
79 | endef |