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