2 # PlanetLab standard components list
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
15 # use a package name with srpm in it:
16 # so the source rpm is created by running make srpm in the codebase
19 kernel-MODULES := linux-patches
20 kernel-SPEC := kernel-2.6-planetlab.spec
21 kernel-BUILD-FROM-SRPM := yes
22 ifeq ($(HOSTARCH),i386)
23 kernel-RPMFLAGS:= --target i686
25 kernel-RPMFLAGS:= --target $(HOSTARCH)
30 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
33 # this is to mark on which image a given rpm is supposed to go
34 IN_BOOTCD += $(KERNELS)
35 IN_VSERVER += $(KERNELS)
36 IN_BOOTSTRAPFS += $(KERNELS)
37 # turns out myplc installs kernel-vserver
38 IN_MYPLC += $(KERNELS)
43 # [thierry] - temporarily use onelab's svn
45 madwifi-MODULES := madwifi
46 madwifi-SPEC := madwifi.spec
47 madwifi-BUILD-FROM-SRPM := yes
48 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
49 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
50 kernel_release=$(kernel.rpm-release) \
51 kernel_arch=$(kernel.rpm-arch)
52 IN_BOOTSTRAPFS += madwifi
58 # [daniel] wait for latest Fedora release
59 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
60 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
62 libnl-MODULES := libnl
63 libnl-SPEC := libnl.spec
69 util-vserver-MODULES := util-vserver
70 util-vserver-SPEC := util-vserver.spec
71 util-vserver-RPMFLAGS:= --without dietlibc
73 IN_BOOTSTRAPFS += util-vserver
78 util-vserver-pl-MODULES := util-vserver-pl
79 util-vserver-pl-SPEC := util-vserver-pl.spec
80 util-vserver-pl-DEPEND-DEVEL-RPMS := libnl libnl-devel util-vserver-lib util-vserver-devel util-vserver-core
81 ALL += util-vserver-pl
82 IN_BOOTSTRAPFS += util-vserver-pl
87 NodeUpdate-MODULES := NodeUpdate
88 NodeUpdate-SPEC := NodeUpdate.spec
90 IN_BOOTSTRAPFS += NodeUpdate
95 ipod-MODULES := PingOfDeath
96 ipod-SPEC := ipod.spec
98 IN_BOOTSTRAPFS += ipod
103 NodeManager-MODULES := NodeManager
104 NodeManager-SPEC := NodeManager.spec
106 IN_BOOTSTRAPFS += NodeManager
111 pl_sshd-MODULES := pl_sshd
112 pl_sshd-SPEC := pl_sshd.spec
114 IN_BOOTSTRAPFS += pl_sshd
119 # Deprecate when vsys takes over [sapan].
120 # keep in build for proper.
122 libhttpd-MODULES := libhttpd++
123 libhttpd-SPEC := libhttpd++.spec
125 IN_BOOTSTRAPFS += libhttpd
128 # proper: Privileged Operations Service
130 proper-MODULES := proper
131 proper-SPEC := proper.spec
132 proper-DEPEND-DEVEL-RPMS := libhttpd++-devel
134 IN_BOOTSTRAPFS += proper
137 # codemux: Port 80 demux
139 codemux-MODULES := CoDemux
140 codemux-SPEC := codemux.spec
141 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
143 IN_BOOTSTRAPFS += codemux
148 ulogd-MODULES := ulogd
149 ulogd-SPEC := ulogd.spec
150 ulogd-DEPEND-DEVEL-RPMS := kernel-devel proper-libs proper-devel
157 fprobe-ulog-MODULES := fprobe-ulog
158 fprobe-ulog-SPEC := fprobe-ulog.spec
160 IN_BOOTSTRAPFS += fprobe-ulog
165 netflow-MODULES := PlanetFlow
166 netflow-SPEC := netflow.spec
168 IN_BOOTSTRAPFS += netflow
171 # PlanetLab Mom: Cleans up your mess
173 pl_mom-MODULES := Mom
174 pl_mom-SPEC := pl_mom.spec
176 IN_BOOTSTRAPFS += pl_mom
181 iptables-MODULES := iptables
182 iptables-SPEC := iptables.spec
183 iptables-DEPEND-DEVEL-RPMS := kernel-devel
185 IN_BOOTSTRAPFS += iptables
190 iproute-MODULES := iproute2
191 iproute-SPEC := iproute.spec
193 IN_BOOTSTRAPFS += iproute
199 vsys-SPEC := vsys.spec
200 ifeq ($(DISTRO),"Fedora")
212 PLCAPI-MODULES := PLCAPI
213 PLCAPI-SPEC := PLCAPI.spec
220 PLCWWW-MODULES := WWW
221 PLCWWW-SPEC := PLCWWW.spec
228 bootmanager-MODULES := BootManager build
229 bootmanager-SPEC := bootmanager.spec
230 # Package must be built as root
231 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
233 IN_MYPLC += bootmanager
236 # pypcilib : used in bootcd
238 pypcilib-MODULES := pypcilib
239 pypcilib-SPEC := pypcilib.spec
241 IN_BOOTCD += pypcilib
246 bootcd-MODULES := BootCD build
247 bootcd-SPEC := bootcd.spec
248 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
249 # package has *some* dependencies, at least these ones
250 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
251 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
256 # vserver : reference image for slices
258 vserver-MODULES := VserverReference build
259 vserver-SPEC := vserver-reference.spec
260 # Package must be built as root
261 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
262 # this list is useful for manual builds only, since nightly builds
263 # always redo all sequentially - try to keep updated
264 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
265 vserver-DEPEND-FILES := RPMS/yumgroups.xml
267 IN_BOOTSTRAPFS := vserver
272 bootstrapfs-MODULES := BootstrapFS build
273 bootstrapfs-SPEC := bootstrapfs.spec
274 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
275 # package requires all regular packages
276 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
277 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
279 IN_MYPLC += bootstrapfs
282 # myplc : initial, chroot-based packaging
284 myplc-MODULES := MyPLC build
285 myplc-SPEC := myplc.spec
286 # Package must be built as root
287 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
288 # myplc may require all packages
289 myplc-DEPEND-PACKAGES := $(IN_MYPLC)
290 myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
294 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
296 myplc-native-MODULES := MyPLC build
297 myplc-native-SPEC := myplc-native.spec
298 # Package must be built as root
299 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
300 # Thierry : don't depend on anything at build-time
301 #myplc-native-DEPEND-PACKAGES :=
302 # Thierry : dunno about this one, let's stay safe
303 myplc-native-DEPEND-FILES := myplc-release