]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/core/iputils/iputils.nm
util-linux-ng: Remove old patches.
[ipfire-3.x.git] / pkgs / core / 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
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Networking/Tools
33PKG_URL = http://www.skbuff.net/iputils
34PKG_LICENSE = BSD
35PKG_SUMMARY = Network monitoring tools including ping.
36
37PKG_BUILD_DEPS+= libcap
38PKG_DEPS += libidn
39
40define PKG_DESCRIPTION
41 The iputils package contains basic utilities for monitoring a network, \
42 including ping. The ping command sends a series of ICMP protocol \
43 ECHO_REQUEST packets to a specified network host to discover whether \
44 the target machine is alive and receiving network traffic.
45endef
46
47PKG_TARBALL = $(THISAPP).tar.bz2
48
9bb99a82
MT
49###############################################################################
50# Installation Details
51###############################################################################
52
53define STAGE_BUILD
54 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
55endef
56
57define STAGE_INSTALL
58 -mkdir -pv $(BUILDROOT)/{bin,sbin} $(BUILDROOT)/usr/sbin
59
60 cd $(DIR_APP) && install -cp clockdiff $(BUILDROOT)/usr/sbin/
61 cd $(DIR_APP) && install -cp arping $(BUILDROOT)/sbin/
62 cd $(DIR_APP) && install -cp ping $(BUILDROOT)/bin/
63 cd $(DIR_APP) && install -cp ping6 $(BUILDROOT)/bin/
64 cd $(DIR_APP) && install -cp rdisc $(BUILDROOT)/sbin/
65 cd $(DIR_APP) && install -cp tracepath $(BUILDROOT)/bin/
66 cd $(DIR_APP) && install -cp tracepath6 $(BUILDROOT)/bin/
67
68 ln -svf ../../sbin/arping $(BUILDROOT)/usr/sbin/arping
69 ln -svf ../../bin/ping6 $(BUILDROOT)/usr/sbin/
70 ln -svf ../../bin/tracepath $(BUILDROOT)/usr/sbin/
71 ln -svf ../../bin/tracepath6 $(BUILDROOT)/usr/sbin/
72
73 setcap cap_net_admin=ep $(BUILDROOT)/bin/ping
74 setcap cap_net_admin=ep $(BUILDROOT)/bin/ping6
75endef