e791f006740a3919542b79dbd1161f6b4da9d9a4
[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 # fprobe-ulog
124 #
125 fprobe-ulog-MODULES := fprobe-ulog
126 fprobe-ulog-SPEC := fprobe-ulog.spec
127 ALL += fprobe-ulog
128
129 #
130 # netflow
131 #
132 netflow-MODULES := PlanetFlow
133 netflow-SPEC := netflow.spec
134 ALL += netflow
135
136 #
137 # PlanetLab Mom: Cleans up your mess
138 #
139 pl_mom-MODULES := Mom
140 pl_mom-SPEC := pl_mom.spec
141 ALL += pl_mom
142
143 #
144 # iptables
145 #
146 iptables-MODULES := iptables
147 iptables-SPEC := iptables.spec
148 iptables-DEPENDS := $(KERNELS)
149 ALL += iptables
150
151 #
152 # iproute
153 #
154 iproute-MODULES := iproute2
155 iproute-SPEC := iproute.spec
156 ALL += iproute
157
158 #
159 # util-python
160 #
161 # [marc]    deprecate with proper
162 #
163 util-python-MODULES := util-python
164 util-python-SPEC := util-python.spec
165 ALL += util-python
166
167 #
168 # vsys
169 #
170 vsys-MODULES := vsys
171 vsys-SPEC := vsys.spec
172 ifeq ($(DISTRO),"Fedora")
173 ifeq ($(RELEASE),7)
174 ALL += vsys
175 endif
176 endif
177
178 #
179 # PLCAPI
180 #
181 PLCAPI-MODULES := PLCAPI
182 PLCAPI-SPEC := PLCAPI.spec
183 ALL += PLCAPI
184
185 #
186 # PLCWWW
187 #
188 PLCWWW-MODULES := WWW
189 PLCWWW-SPEC := PLCWWW.spec
190 ALL += PLCWWW
191
192 #
193 # bootmanager
194 #
195 bootmanager-MODULES := BootManager build
196 bootmanager-SPEC := bootmanager.spec
197 # Package must be built as root
198 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
199 ALL += bootmanager
200
201 #
202 # pypcilib : used in bootcd
203
204 pypcilib-MODULES := pypcilib
205 pypcilib-SPEC := pypcilib.spec
206 ALL += pypcilib
207
208 # copy the current list, so as to keep image-building rpms out
209 ALL-REGULARS := $(ALL)
210
211 #
212 # vserver : reference image for slices
213 #
214 vserver-MODULES := VserverReference build
215 vserver-SPEC := vserver-reference.spec
216 # Package must be built as root
217 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
218 # package requires all regular packages
219 vserver-DEPENDS := $(ALL-REGULARS)
220 vserver-DEPENDFILES := RPMS/yumgroups.xml
221 ALL += vserver
222
223 #
224 # bootcd
225 #
226 bootcd-MODULES := BootCD BootManager build
227 bootcd-SPEC := bootcd.spec
228 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
229 # package has *some* dependencies, at least these ones
230 bootcd-DEPENDS := $(ALL-REGULARS)
231 bootcd-DEPENDFILES := RPMS/yumgroups.xml
232 ALL += bootcd
233
234 #
235 # bootstrapfs
236 #
237 bootstrapfs-MODULES := BootstrapFS build
238 bootstrapfs-SPEC := bootstrapfs.spec
239 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
240 # package requires all regular packages
241 bootstrapfs-DEPENDS := $(ALL-REGULARS)
242 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
243 ALL += bootstrapfs
244
245 #
246 # myplc : initial, chroot-based packaging
247 #
248 myplc-MODULES := MyPLC build
249 myplc-SPEC := myplc.spec
250 # Package must be built as root
251 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
252 # myplc may require all packages
253 myplc-DEPENDS := $(filter-out vserver,$(ALL))
254 myplc-DEPENDFILES := RPMS/yumgroups.xml
255 ALL += myplc
256
257 #
258 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
259 #
260 myplc-native-MODULES := MyPLC build 
261 myplc-native-SPEC := myplc-native.spec
262 # Package must be built as root
263 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
264 # Thierry : don't depend on these at build-time
265 #myplc-native-DEPENDS := $(MyPLC-DEPENDS)
266 # Thierry : dunno about this one, let's stay safe
267 myplc-native-DEPENDFILES := $(MyPLC-DEPENDFILES)
268 #ALL += myplc-native
269
270 #
271 # MyPLC development environment : chroot-based 
272 #
273 myplc-devel-MODULES := MyPLC build 
274 myplc-devel-SPEC := myplc-devel.spec
275 myplc-devel-RPMBUILD := sudo bash ./rpmbuild.sh
276 #ALL += myplc-devel
277
278 #
279 # MyPLC native development environment
280 #
281 myplc-devel-native-MODULES := MyPLC
282 myplc-devel-native-SPEC := myplc-devel-native.spec
283 #ALL += myplc-devel-native