c44593bdfc60b4ff8ed290a13678dcbdb755bc2a
[build.git] / planetlab.mk
1 #
2 # PlanetLab standard components list
3 #
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
6 #
7 # $Id$
8 #
9 # see doc in Makefile  
10 #
11 #
12 # kernel
13 #
14 # until we are able to build the new kernel layout:
15 # use the old exploded-tree, 2.6.20-based, version on fc4, 6 & 7
16 # and the new one on f8 - that requires the build-id patch
17 #
18 ifeq "$(RELEASE)" "8"
19 kernel-$(HOSTARCH)-MODULES := linux-patches
20 kernel-$(HOSTARCH)-SPEC := kernel-2.6-planetlab.spec
21 else
22 kernel-$(HOSTARCH)-MODULES := linux-tree
23 kernel-$(HOSTARCH)-SPEC := scripts/kernel-2.6-planetlab.spec
24 endif
25 ifeq ($(HOSTARCH),i386)
26 kernel-$(HOSTARCH)-RPMFLAGS:= --target i686
27 else
28 kernel-$(HOSTARCH)-RPMFLAGS:= --target $(HOSTARCH)
29 endif
30
31 KERNELS += kernel-$(HOSTARCH)
32
33 kernel: $(KERNELS)
34 kernel-clean: $(foreach package,$(KERNELS),$(package)-clean)
35
36 ALL += $(KERNELS)
37
38 #
39 # libnl
40 #
41 # [daniel]    wait for latest Fedora release 
42 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
43 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
44 #
45 libnl-MODULES := libnl
46 libnl-SPEC := libnl.spec
47 ALL += libnl
48
49 #
50 # util-vserver
51 #
52 util-vserver-MODULES := util-vserver
53 util-vserver-SPEC := util-vserver.spec
54 util-vserver-RPMFLAGS:= --without dietlibc
55 util-vserver-DEPENDS := libnl
56 ALL += util-vserver
57
58 #
59 # NodeUpdate
60 #
61 NodeUpdate-MODULES := NodeUpdate
62 NodeUpdate-SPEC := NodeUpdate.spec
63 ALL += NodeUpdate
64
65 #
66 # ipod
67 #
68 PingOfDeath-MODULES := PingOfDeath
69 PingOfDeath-SPEC := ipod.spec
70 ALL += PingOfDeath
71
72 #
73 # NodeManager
74 #
75 NodeManager-MODULES := NodeManager
76 NodeManager-SPEC := NodeManager.spec
77 ALL += NodeManager
78
79 #
80 # pl_sshd
81 #
82 pl_sshd-MODULES := pl_sshd
83 pl_sshd-SPEC := pl_sshd.spec
84 ALL += pl_sshd
85
86 #
87 # libhttpd++: 
88 #
89 # Deprecate when vsys takes over [sapan].
90 # keep in build for proper.
91 #
92 libhttpd++-MODULES := libhttpd++
93 libhttpd++-SPEC := libhttpd++.spec
94 ALL += libhttpd++
95
96 #
97 # proper: Privileged Operations Service
98 #
99 proper-MODULES := proper
100 proper-SPEC := proper.spec
101 proper-RPMBUILD := sudo bash ./rpmbuild.sh
102 # proper uses scripts in util-python for building
103 proper-DEPENDS := libhttpd++ util-python
104 ALL += proper
105
106 #
107 # codemux: Port 80 demux
108 #
109 codemux-MODULES := CoDemux
110 codemux-SPEC   := codemux.spec
111 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
112 ALL += codemux
113
114 #
115 # ulogd
116 #
117 ulogd-MODULES := ulogd
118 ulogd-SPEC := ulogd.spec
119 ulogd-DEPENDS := $(KERNELS) proper
120 ALL += ulogd
121
122 #
123 # netflow
124 #
125 netflow-MODULES := PlanetFlow
126 netflow-SPEC := netflow.spec
127 ALL += netflow
128
129 #
130 # PlanetLab Mom: Cleans up your mess
131 #
132 pl_mom-MODULES := Mom
133 pl_mom-SPEC := pl_mom.spec
134 ALL += pl_mom
135
136 #
137 # iptables
138 #
139 iptables-MODULES := iptables
140 iptables-SPEC := iptables.spec
141 iptables-DEPENDS := $(KERNELS)
142 ALL += iptables
143
144 #
145 # iproute
146 #
147 iproute-MODULES := iproute2
148 iproute-SPEC := iproute.spec
149 ALL += iproute
150
151 #
152 # util-python
153 #
154 # [marc]    deprecate with proper
155 #
156 util-python-MODULES := util-python
157 util-python-SPEC := util-python.spec
158 ALL += util-python
159
160 #
161 # vsys
162 #
163 vsys-MODULES := vsys
164 vsys-SPEC := vsys.spec
165 ifeq ($(DISTRO),"Fedora")
166 ifeq ($(RELEASE),7)
167 ALL += vsys
168 endif
169 endif
170
171 #
172 # PLCAPI
173 #
174 PLCAPI-MODULES := PLCAPI
175 PLCAPI-SPEC := PLCAPI.spec
176 ALL += PLCAPI
177
178 #
179 # PLCWWW
180 #
181 PLCWWW-MODULES := WWW
182 PLCWWW-SPEC := PLCWWW.spec
183 ALL += PLCWWW
184
185 #
186 # bootmanager
187 #
188 bootmanager-MODULES := BootManager build
189 bootmanager-SPEC := bootmanager.spec
190 # Package must be built as root
191 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
192 ALL += bootmanager
193
194 #
195 # pypcilib : used in bootcd
196
197 pypcilib-MODULES := pypcilib
198 pypcilib-SPEC := pypcilib.spec
199 ALL += pypcilib
200
201 # copy the current list, so as to keep image-building rpms out
202 ALL-REGULARS := $(ALL)
203
204 #
205 # vserver : reference image for slices
206 #
207 vserver-MODULES := VserverReference build
208 vserver-SPEC := vserver-reference.spec
209 # Package must be built as root
210 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
211 # package requires all regular packages
212 vserver-DEPENDS := $(ALL-REGULARS)
213 vserver-DEPENDFILES := RPMS/yumgroups.xml
214 ALL += vserver
215
216 #
217 # bootcd
218 #
219 bootcd-MODULES := BootCD BootManager build
220 bootcd-SPEC := bootcd.spec
221 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
222 # package has *some* dependencies, at least these ones
223 bootcd-DEPENDS := $(ALL-REGULARS)
224 bootcd-DEPENDFILES := RPMS/yumgroups.xml
225 ALL += bootcd
226
227 #
228 # bootstrapfs
229 #
230 bootstrapfs-MODULES := BootstrapFS build
231 bootstrapfs-SPEC := bootstrapfs.spec
232 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
233 # package requires all regular packages
234 bootstrapfs-DEPENDS := $(ALL-REGULARS)
235 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
236 ALL += bootstrapfs
237
238 #
239 # myplc : initial, chroot-based packaging
240 #
241 myplc-MODULES := MyPLC build
242 myplc-SPEC := myplc.spec
243 # Package must be built as root
244 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
245 # myplc may require all packages
246 myplc-DEPENDS := $(filter-out vserver,$(ALL))
247 myplc-DEPENDFILES := RPMS/yumgroups.xml
248 ALL += myplc
249
250 #
251 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
252 #
253 myplc-native-MODULES := MyPLC build 
254 myplc-native-SPEC := myplc-native.spec
255 # Package must be built as root
256 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
257 # Thierry : don't depend on these at build-time
258 #myplc-native-DEPENDS := $(MyPLC-DEPENDS)
259 # Thierry : dunno about this one, let's stay safe
260 myplc-native-DEPENDFILES := $(MyPLC-DEPENDFILES)
261 #ALL += myplc-native
262
263 #
264 # MyPLC development environment : chroot-based 
265 #
266 myplc-devel-MODULES := MyPLC build 
267 myplc-devel-SPEC := myplc-devel.spec
268 myplc-devel-RPMBUILD := sudo bash ./rpmbuild.sh
269 #ALL += myplc-devel
270
271 #
272 # MyPLC native development environment
273 #
274 myplc-devel-native-MODULES := MyPLC
275 myplc-devel-native-SPEC := myplc-devel-native.spec
276 #ALL += myplc-devel-native