rename variable path -> repopath
[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 #
187 # pypcilib : used in bootcd
188
189 pypcilib-MODULES := pypcilib
190 pypcilib-SPEC := pypcilib.spec
191 ALL += pypcilib
192
193 # copy the current list, so as to keep image-building rpms out
194 ALL-REGULARS := $(ALL)
195
196 #
197 # vserver : reference image for slices
198 #
199 vserver-MODULES := VserverReference build
200 vserver-SPEC := vserver-reference.spec
201 # Package must be built as root
202 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
203 # package requires all regular packages
204 vserver-DEPENDS := $(ALL-REGULARS)
205 vserver-DEPENDFILES := RPMS/yumgroups.xml
206 ALL += vserver
207
208 #
209 # bootcd
210 #
211 bootcd-MODULES := BootCD BootManager build
212 bootcd-SPEC := bootcd.spec
213 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
214 # package has *some* dependencies, at least these ones
215 bootcd-DEPENDS := $(ALL-REGULARS)
216 bootcd-DEPENDFILES := RPMS/yumgroups.xml
217 ALL += bootcd
218
219 #
220 # bootstrapfs
221 #
222 bootstrapfs-MODULES := BootstrapFS build
223 bootstrapfs-SPEC := bootstrapfs.spec
224 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
225 # package requires all regular packages
226 bootstrapfs-DEPENDS := $(ALL-REGULARS)
227 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
228 ALL += bootstrapfs
229
230 #
231 # myplc : initial, chroot-based packaging
232 #
233 myplc-MODULES := MyPLC build
234 myplc-SPEC := myplc.spec
235 # Package must be built as root
236 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
237 # myplc may require all packages
238 myplc-DEPENDS := $(filter-out vserver,$(ALL))
239 myplc-DEPENDFILES := RPMS/yumgroups.xml
240 ALL += myplc
241
242 #
243 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
244 #
245 myplc-native-MODULES := MyPLC build 
246 myplc-native-SPEC := myplc-native.spec
247 # Package must be built as root
248 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
249 # Thierry : don't depend on these at build-time
250 #myplc-native-DEPENDS := $(MyPLC-DEPENDS)
251 # Thierry : dunno about this one, let's stay safe
252 myplc-native-DEPENDFILES := $(MyPLC-DEPENDFILES)
253 #ALL += myplc-native
254
255 #
256 # MyPLC development environment : chroot-based 
257 #
258 myplc-devel-MODULES := MyPLC build 
259 myplc-devel-SPEC := myplc-devel.spec
260 myplc-devel-RPMBUILD := sudo bash ./rpmbuild.sh
261 #ALL += myplc-devel
262
263 #
264 # MyPLC native development environment
265 #
266 myplc-devel-native-MODULES := MyPLC
267 myplc-devel-native-SPEC := myplc-devel-native.spec
268 myplc-devel-native-SPECVARS := distroname=$(DISTRO) distrorelease=$(RELEASE)
269 #ALL += myplc-devel-native