]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/iputils/iputils.nm
Remove legacy build system.
[people/ms/ipfire-3.x.git] / pkgs / iputils / iputils.nm
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
29 PKG_REL = 0
30
31 PKG_MAINTAINER =
32 PKG_GROUP = Networking/Tools
33 PKG_URL = http://www.skbuff.net/iputils
34 PKG_LICENSE = BSD
35 PKG_SUMMARY = Network monitoring tools including ping.
36
37 PKG_BUILD_DEPS+= libcap-devel libidn-devel
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
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
61 define STAGE_BUILD
62 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
63 endef
64
65 define STAGE_INSTALL
66 -mkdir -pv $(BUILDROOT)/{bin,sbin} $(BUILDROOT)/usr/sbin
67
68 cd $(DIR_APP) && install -cp clockdiff $(BUILDROOT)/usr/sbin/
69 cd $(DIR_APP) && install -cp arping $(BUILDROOT)/sbin/
70 cd $(DIR_APP) && install -cp ping $(BUILDROOT)/bin/
71 cd $(DIR_APP) && install -cp ping6 $(BUILDROOT)/bin/
72 cd $(DIR_APP) && install -cp rdisc $(BUILDROOT)/sbin/
73 cd $(DIR_APP) && install -cp tracepath $(BUILDROOT)/bin/
74 cd $(DIR_APP) && install -cp tracepath6 $(BUILDROOT)/bin/
75
76 ln -svf ../../sbin/arping $(BUILDROOT)/usr/sbin/arping
77 ln -svf ../../bin/ping6 $(BUILDROOT)/usr/sbin/
78 ln -svf ../../bin/tracepath $(BUILDROOT)/usr/sbin/
79 ln -svf ../../bin/tracepath6 $(BUILDROOT)/usr/sbin/
80
81 setcap cap_net_admin=ep $(BUILDROOT)/bin/ping
82 setcap cap_net_admin=ep $(BUILDROOT)/bin/ping6
83 endef