util-vserver-pl
[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 #
13 # kernel
14 #
15 # use a package name with srpm in it:
16 # so the source rpm is created by running make srpm in the codebase
17 #
18
19 srpm-kernel-$(HOSTARCH)-MODULES := linux-patches
20 srpm-kernel-$(HOSTARCH)-SPEC := kernel-2.6-planetlab.spec
21 ifeq ($(HOSTARCH),i386)
22 srpm-kernel-$(HOSTARCH)-RPMFLAGS:= --target i686
23 else
24 srpm-kernel-$(HOSTARCH)-RPMFLAGS:= --target $(HOSTARCH)
25 endif
26 KERNELS += srpm-kernel-$(HOSTARCH)
27
28 kernel: $(KERNELS)
29 kernel-clean: $(foreach package,$(KERNELS),$(package)-clean)
30
31 # the first kernel package defined here for convenience
32 kernel_package := $(word 1,$(KERNELS))
33
34 ALL += $(KERNELS)
35 # this is to mark on which image a given rpm is supposed to go
36 IN_BOOTCD += $(KERNELS)
37 IN_VSERVER += $(KERNELS)
38 IN_BOOTSTRAPFS += $(KERNELS)
39 # turns out myplc installs kernel-vserver
40 IN_MYPLC += $(KERNELS)
41
42 #
43 # libnl
44 #
45 # [daniel]    wait for latest Fedora release 
46 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
47 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
48 #
49 libnl-MODULES := libnl
50 libnl-SPEC := libnl.spec
51 ALL += libnl
52
53 #
54 # util-vserver
55 #
56 util-vserver-MODULES := util-vserver
57 util-vserver-SPEC := util-vserver.spec
58 util-vserver-RPMFLAGS:= --without dietlibc
59 util-vserver-DEPENDDEVELS := libnl
60 #ALL += util-vserver
61 #IN_BOOTSTRAPFS += util-vserver
62
63 #
64 # util-vserver-pl
65 #
66 util-vserver-pl-MODULES := util-vserver-pl
67 util-vserver-pl-SPEC := util-vserver-pl.spec
68 util-vserver-pl-DEPENDDEVELS := libnl
69 util-vserver-pl-DEPENDDEVELRPMS := util-vserver-lib util-vserver-devel
70 ALL += util-vserver-pl
71 IN_BOOTSTRAPFS += util-vserver-pl
72
73 #
74 # NodeUpdate
75 #
76 NodeUpdate-MODULES := NodeUpdate
77 NodeUpdate-SPEC := NodeUpdate.spec
78 ALL += NodeUpdate
79 IN_BOOTSTRAPFS += NodeUpdate
80
81 #
82 # ipod
83 #
84 ipod-MODULES := PingOfDeath
85 ipod-SPEC := ipod.spec
86 ALL += ipod
87 IN_BOOTSTRAPFS += ipod
88
89 #
90 # NodeManager
91 #
92 NodeManager-MODULES := NodeManager
93 NodeManager-SPEC := NodeManager.spec
94 ALL += NodeManager
95 IN_BOOTSTRAPFS += NodeManager
96
97 #
98 # pl_sshd
99 #
100 pl_sshd-MODULES := pl_sshd
101 pl_sshd-SPEC := pl_sshd.spec
102 ALL += pl_sshd
103 IN_BOOTSTRAPFS += pl_sshd
104
105 #
106 # libhttpd++: 
107 #
108 # Deprecate when vsys takes over [sapan].
109 # keep in build for proper.
110 #
111 libhttpd-MODULES := libhttpd++
112 libhttpd-SPEC := libhttpd++.spec
113 ALL += libhttpd
114
115 #
116 # proper: Privileged Operations Service
117 #
118 proper-MODULES := proper
119 proper-SPEC := proper.spec
120 proper-DEPENDDEVELS := libhttpd
121 ALL += proper
122
123 #
124 # codemux: Port 80 demux
125 #
126 codemux-MODULES := CoDemux
127 codemux-SPEC   := codemux.spec
128 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
129 ALL += codemux
130 IN_BOOTSTRAPFS += codemux
131
132 #
133 # ulogd
134 #
135 ulogd-MODULES := ulogd
136 ulogd-SPEC := ulogd.spec
137 ulogd-DEPENDDEVELS := $(kernel_package)
138 ulogd-DEPENDDEVELRPMS := proper-libs proper-devel
139 ALL += ulogd
140 IN_VSERVER += ulogd
141
142 #
143 # fprobe-ulog
144 #
145 fprobe-ulog-MODULES := fprobe-ulog
146 fprobe-ulog-SPEC := fprobe-ulog.spec
147 ALL += fprobe-ulog
148 IN_BOOTSTRAPFS += fprobe-ulog
149
150 #
151 # netflow
152 #
153 netflow-MODULES := PlanetFlow
154 netflow-SPEC := netflow.spec
155 ALL += netflow
156 IN_BOOTSTRAPFS += netflow
157
158 #
159 # PlanetLab Mom: Cleans up your mess
160 #
161 pl_mom-MODULES := Mom
162 pl_mom-SPEC := pl_mom.spec
163 ALL += pl_mom
164 IN_BOOTSTRAPFS += pl_mom
165
166 #
167 # iptables
168 #
169 iptables-MODULES := iptables
170 iptables-SPEC := iptables.spec
171 iptables-DEPENDDEVELS := $(kernel_package)
172 ALL += iptables
173 IN_BOOTSTRAPFS += iptables
174
175 #
176 # iproute
177 #
178 iproute-MODULES := iproute2
179 iproute-SPEC := iproute.spec
180 ALL += iproute
181 IN_BOOTSTRAPFS += iproute
182
183 #
184 # vsys
185 #
186 vsys-MODULES := vsys
187 vsys-SPEC := vsys.spec
188 ifeq ($(DISTRO),"Fedora")
189 ifeq ($(RELEASE),7)
190 ALL += vsys
191 endif
192 ifeq ($(RELEASE),8)
193 ALL += vsys
194 endif
195 endif
196
197 #
198 # PLCAPI
199 #
200 PLCAPI-MODULES := PLCAPI
201 PLCAPI-SPEC := PLCAPI.spec
202 ALL += PLCAPI
203 IN_MYPLC += PLCAPI
204
205 #
206 # PLCWWW
207 #
208 PLCWWW-MODULES := WWW
209 PLCWWW-SPEC := PLCWWW.spec
210 ALL += PLCWWW
211 IN_MYPLC += PLCWWW
212
213 #
214 # bootmanager
215 #
216 bootmanager-MODULES := BootManager build
217 bootmanager-SPEC := bootmanager.spec
218 # Package must be built as root
219 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
220 ALL += bootmanager
221 IN_MYPLC += bootmanager
222
223 #
224 # pypcilib : used in bootcd
225
226 pypcilib-MODULES := pypcilib
227 pypcilib-SPEC := pypcilib.spec
228 ALL += pypcilib
229 IN_BOOTCD += pypcilib
230
231 #
232 # bootcd
233 #
234 bootcd-MODULES := BootCD build
235 bootcd-SPEC := bootcd.spec
236 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
237 # package has *some* dependencies, at least these ones
238 bootcd-DEPENDS := $(IN_BOOTCD)
239 bootcd-DEPENDFILES := RPMS/yumgroups.xml
240 ALL += bootcd
241 IN_MYPLC += bootcd
242
243 #
244 # vserver : reference image for slices
245 #
246 vserver-MODULES := VserverReference build
247 vserver-SPEC := vserver-reference.spec
248 # Package must be built as root
249 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
250 # this list is useful for manual builds only, since nightly builds 
251 # always redo all sequentially - try to keep updated
252 vserver-DEPENDS := $(IN_VSERVER)
253 vserver-DEPENDFILES := RPMS/yumgroups.xml
254 ALL += vserver
255 IN_BOOTSTRAPFS := vserver
256
257 #
258 # bootstrapfs
259 #
260 bootstrapfs-MODULES := BootstrapFS build
261 bootstrapfs-SPEC := bootstrapfs.spec
262 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
263 # package requires all regular packages
264 bootstrapfs-DEPENDS := $(IN_BOOTSTRAPFS)
265 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
266 ALL += bootstrapfs
267 IN_MYPLC += bootstrapfs
268
269 #
270 # myplc : initial, chroot-based packaging
271 #
272 myplc-MODULES := MyPLC build
273 myplc-SPEC := myplc.spec
274 # Package must be built as root
275 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
276 # myplc may require all packages
277 myplc-DEPENDS := $(IN_MYPLC)
278 myplc-DEPENDFILES := RPMS/yumgroups.xml myplc-release
279 ALL += myplc
280
281 #
282 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
283 #
284 myplc-native-MODULES := MyPLC build 
285 myplc-native-SPEC := myplc-native.spec
286 # Package must be built as root
287 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
288 # Thierry : don't depend on anything at build-time
289 #myplc-native-DEPENDS :=
290 # Thierry : dunno about this one, let's stay safe
291 myplc-native-DEPENDFILES := myplc-release
292 ALL += myplc-native
293