]> git.ipfire.org Git - ipfire-3.x.git/blob - lfs/iputils
Rootfile update.
[ipfire-3.x.git] / lfs / iputils
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 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 Config
26
27 PKG_NAME = iputils
28 VER = s20071127
29
30 THISAPP = $(PKG_NAME)-$(VER)
31 DL_FILE = $(THISAPP).tar.bz2
32 DIR_APP = $(DIR_SRC)/$(THISAPP)
33
34 OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
35
36 ###############################################################################
37 # Top-level Rules
38 ###############################################################################
39
40 objects = $(DL_FILE) \
41 $(THISAPP)-addrcache.patch \
42 $(THISAPP)-arping-infiniband.patch \
43 $(THISAPP)-arping_timeout.patch \
44 $(THISAPP)-countermeasures.patch \
45 $(THISAPP)-idn.patch \
46 $(THISAPP)-open-max.patch \
47 $(THISAPP)-output.patch \
48 $(THISAPP)-ping-subint.patch \
49 $(THISAPP)-ping_cleanup.patch \
50 $(THISAPP)-rh.patch \
51 $(THISAPP)-traffic_class.patch \
52 $(THISAPP)-warnings.patch
53
54 install : $(OBJECT)
55
56 download : $(objects)
57
58 $(objects) :
59 @$(LOAD)
60
61 ###############################################################################
62 # Installation Details
63 ###############################################################################
64
65 $(OBJECT) :
66 @$(PREBUILD)
67 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
68
69 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-addrcache.patch
70 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-arping-infiniband.patch
71 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-arping_timeout.patch
72 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-countermeasures.patch
73 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-idn.patch
74 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-open-max.patch
75 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-ping-subint.patch
76 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-ping_cleanup.patch
77 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-rh.patch
78 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-traffic_class.patch
79 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-warnings.patch
80 cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-output.patch
81
82 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
83
84 cd $(DIR_APP) && install -cp clockdiff /usr/sbin/
85 cd $(DIR_APP) && install -cp arping /sbin/
86 cd $(DIR_APP) && install -cp ping /bin/
87 cd $(DIR_APP) && install -cp rdisc /sbin/
88 cd $(DIR_APP) && install -cp ping6 /bin/
89 cd $(DIR_APP) && install -cp tracepath /bin/
90 cd $(DIR_APP) && install -cp tracepath6 /bin/
91 ln -svf ../../sbin/arping /usr/sbin/arping
92 ln -svf ../../bin/ping6 /usr/sbin/
93 ln -svf ../../bin/tracepath /usr/sbin/
94 ln -svf ../../bin/tracepath6 /usr/sbin/
95
96 #setcap cap_net_admin=ep /bin/ping
97 @rm -rf $(DIR_APP)
98 @$(POSTBUILD)