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 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
24 srpm-kernel-$(HOSTARCH)-RPMFLAGS:= --target $(HOSTARCH)
26 KERNELS += srpm-kernel-$(HOSTARCH)
29 kernel-clean: $(foreach package,$(KERNELS),$(package)-clean)
31 # the first kernel package defined here for convenience
32 kernel_package := $(word 1,$(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)
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.
49 libnl-MODULES := libnl
50 libnl-SPEC := libnl.spec
56 util-vserver-MODULES := util-vserver
57 util-vserver-SPEC := util-vserver.spec
58 util-vserver-RPMFLAGS:= --without dietlibc
59 util-vserver-DEPENDDEVELS := libnl
61 #IN_BOOTSTRAPFS += util-vserver
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
76 NodeUpdate-MODULES := NodeUpdate
77 NodeUpdate-SPEC := NodeUpdate.spec
79 IN_BOOTSTRAPFS += NodeUpdate
84 ipod-MODULES := PingOfDeath
85 ipod-SPEC := ipod.spec
87 IN_BOOTSTRAPFS += ipod
92 NodeManager-MODULES := NodeManager
93 NodeManager-SPEC := NodeManager.spec
95 IN_BOOTSTRAPFS += NodeManager
100 pl_sshd-MODULES := pl_sshd
101 pl_sshd-SPEC := pl_sshd.spec
103 IN_BOOTSTRAPFS += pl_sshd
108 # Deprecate when vsys takes over [sapan].
109 # keep in build for proper.
111 libhttpd-MODULES := libhttpd++
112 libhttpd-SPEC := libhttpd++.spec
116 # proper: Privileged Operations Service
118 proper-MODULES := proper
119 proper-SPEC := proper.spec
120 proper-DEPENDDEVELS := libhttpd
124 # codemux: Port 80 demux
126 codemux-MODULES := CoDemux
127 codemux-SPEC := codemux.spec
128 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
130 IN_BOOTSTRAPFS += codemux
135 ulogd-MODULES := ulogd
136 ulogd-SPEC := ulogd.spec
137 ulogd-DEPENDDEVELS := $(kernel_package)
138 ulogd-DEPENDDEVELRPMS := proper-libs proper-devel
145 fprobe-ulog-MODULES := fprobe-ulog
146 fprobe-ulog-SPEC := fprobe-ulog.spec
148 IN_BOOTSTRAPFS += fprobe-ulog
153 netflow-MODULES := PlanetFlow
154 netflow-SPEC := netflow.spec
156 IN_BOOTSTRAPFS += netflow
159 # PlanetLab Mom: Cleans up your mess
161 pl_mom-MODULES := Mom
162 pl_mom-SPEC := pl_mom.spec
164 IN_BOOTSTRAPFS += pl_mom
169 iptables-MODULES := iptables
170 iptables-SPEC := iptables.spec
171 iptables-DEPENDDEVELS := $(kernel_package)
173 IN_BOOTSTRAPFS += iptables
178 iproute-MODULES := iproute2
179 iproute-SPEC := iproute.spec
181 IN_BOOTSTRAPFS += iproute
187 vsys-SPEC := vsys.spec
188 ifeq ($(DISTRO),"Fedora")
200 PLCAPI-MODULES := PLCAPI
201 PLCAPI-SPEC := PLCAPI.spec
208 PLCWWW-MODULES := WWW
209 PLCWWW-SPEC := PLCWWW.spec
216 bootmanager-MODULES := BootManager build
217 bootmanager-SPEC := bootmanager.spec
218 # Package must be built as root
219 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
221 IN_MYPLC += bootmanager
224 # pypcilib : used in bootcd
226 pypcilib-MODULES := pypcilib
227 pypcilib-SPEC := pypcilib.spec
229 IN_BOOTCD += pypcilib
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
244 # vserver : reference image for slices
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
255 IN_BOOTSTRAPFS := vserver
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
267 IN_MYPLC += bootstrapfs
270 # myplc : initial, chroot-based packaging
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
282 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
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