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 kernel-clean: $(foreach package,$(KERNELS),$(package)-clean)
32 # the first kernel package defined here for convenience
33 kernel_package := $(word 1,$(KERNELS))
36 # this is to mark on which image a given rpm is supposed to go
37 IN_BOOTCD += $(KERNELS)
38 IN_VSERVER += $(KERNELS)
39 IN_BOOTSTRAPFS += $(KERNELS)
40 # turns out myplc installs kernel-vserver
41 IN_MYPLC += $(KERNELS)
46 # [thierry] - temporarily use onelab's svn
48 madwifi-MODULES := madwifi
49 madwifi-SPEC := madwifi.spec
50 madwifi-BUILD-FROM-SRPM := yes
51 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
52 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
53 kernel_release=$(kernel.rpm-release) \
54 kernel_arch=$(kernel.rpm-arch)
55 IN_BOOTSTRAPFS += madwifi
61 # [daniel] wait for latest Fedora release
62 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
63 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
65 libnl-MODULES := libnl
66 libnl-SPEC := libnl.spec
72 util-vserver-MODULES := util-vserver
73 util-vserver-SPEC := util-vserver.spec
74 util-vserver-RPMFLAGS:= --without dietlibc
76 IN_BOOTSTRAPFS += util-vserver
81 util-vserver-pl-MODULES := util-vserver-pl
82 util-vserver-pl-SPEC := util-vserver-pl.spec
83 util-vserver-pl-DEPEND-DEVEL-RPMS := libnl libnl-devel util-vserver-lib util-vserver-devel util-vserver-core
84 ALL += util-vserver-pl
85 IN_BOOTSTRAPFS += util-vserver-pl
90 NodeUpdate-MODULES := NodeUpdate
91 NodeUpdate-SPEC := NodeUpdate.spec
93 IN_BOOTSTRAPFS += NodeUpdate
98 ipod-MODULES := PingOfDeath
99 ipod-SPEC := ipod.spec
101 IN_BOOTSTRAPFS += ipod
106 NodeManager-MODULES := NodeManager
107 NodeManager-SPEC := NodeManager.spec
109 IN_BOOTSTRAPFS += NodeManager
114 pl_sshd-MODULES := pl_sshd
115 pl_sshd-SPEC := pl_sshd.spec
117 IN_BOOTSTRAPFS += pl_sshd
122 # Deprecate when vsys takes over [sapan].
123 # keep in build for proper.
125 libhttpd-MODULES := libhttpd++
126 libhttpd-SPEC := libhttpd++.spec
128 IN_BOOTSTRAPFS += libhttpd
131 # proper: Privileged Operations Service
133 proper-MODULES := proper
134 proper-SPEC := proper.spec
135 proper-DEPEND-DEVEL-RPMS := libhttpd++-devel
137 IN_BOOTSTRAPFS += proper
140 # codemux: Port 80 demux
142 codemux-MODULES := CoDemux
143 codemux-SPEC := codemux.spec
144 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
146 IN_BOOTSTRAPFS += codemux
151 ulogd-MODULES := ulogd
152 ulogd-SPEC := ulogd.spec
153 ulogd-DEPEND-DEVEL-RPMS := kernel-devel proper-libs proper-devel
160 fprobe-ulog-MODULES := fprobe-ulog
161 fprobe-ulog-SPEC := fprobe-ulog.spec
163 IN_BOOTSTRAPFS += fprobe-ulog
168 netflow-MODULES := PlanetFlow
169 netflow-SPEC := netflow.spec
171 IN_BOOTSTRAPFS += netflow
174 # PlanetLab Mom: Cleans up your mess
176 pl_mom-MODULES := Mom
177 pl_mom-SPEC := pl_mom.spec
179 IN_BOOTSTRAPFS += pl_mom
184 iptables-MODULES := iptables
185 iptables-SPEC := iptables.spec
186 iptables-DEPEND-DEVEL-RPMS := kernel-devel
188 IN_BOOTSTRAPFS += iptables
193 iproute-MODULES := iproute2
194 iproute-SPEC := iproute.spec
196 IN_BOOTSTRAPFS += iproute
202 vsys-SPEC := vsys.spec
203 ifeq ($(DISTRO),"Fedora")
215 PLCAPI-MODULES := PLCAPI
216 PLCAPI-SPEC := PLCAPI.spec
223 PLCWWW-MODULES := WWW
224 PLCWWW-SPEC := PLCWWW.spec
231 bootmanager-MODULES := BootManager build
232 bootmanager-SPEC := bootmanager.spec
233 # Package must be built as root
234 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
236 IN_MYPLC += bootmanager
239 # pypcilib : used in bootcd
241 pypcilib-MODULES := pypcilib
242 pypcilib-SPEC := pypcilib.spec
244 IN_BOOTCD += pypcilib
249 bootcd-MODULES := BootCD build
250 bootcd-SPEC := bootcd.spec
251 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
252 # package has *some* dependencies, at least these ones
253 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
254 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
259 # vserver : reference image for slices
261 vserver-MODULES := VserverReference build
262 vserver-SPEC := vserver-reference.spec
263 # Package must be built as root
264 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
265 # this list is useful for manual builds only, since nightly builds
266 # always redo all sequentially - try to keep updated
267 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
268 vserver-DEPEND-FILES := RPMS/yumgroups.xml
270 IN_BOOTSTRAPFS := vserver
275 bootstrapfs-MODULES := BootstrapFS build
276 bootstrapfs-SPEC := bootstrapfs.spec
277 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
278 # package requires all regular packages
279 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
280 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
282 IN_MYPLC += bootstrapfs
285 # myplc : initial, chroot-based packaging
287 myplc-MODULES := MyPLC build
288 myplc-SPEC := myplc.spec
289 # Package must be built as root
290 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
291 # myplc may require all packages
292 myplc-DEPEND-PACKAGES := $(IN_MYPLC)
293 myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
297 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
299 myplc-native-MODULES := MyPLC build
300 myplc-native-SPEC := myplc-native.spec
301 # Package must be built as root
302 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
303 # Thierry : don't depend on anything at build-time
304 #myplc-native-DEPEND-PACKAGES :=
305 # Thierry : dunno about this one, let's stay safe
306 myplc-native-DEPEND-FILES := myplc-release