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
60 IN_BOOTSTRAPFS += util-vserver
65 util-vserver-pl-MODULES := util-vserver-pl
66 util-vserver-pl-SPEC := util-vserver-pl.spec
67 util-vserver-pl-DEPENDDEVELRPMS := libnl libnl-devel util-vserver-lib util-vserver-devel util-vserver-core
68 ALL += util-vserver-pl
69 IN_BOOTSTRAPFS += util-vserver-pl
74 NodeUpdate-MODULES := NodeUpdate
75 NodeUpdate-SPEC := NodeUpdate.spec
77 IN_BOOTSTRAPFS += NodeUpdate
82 ipod-MODULES := PingOfDeath
83 ipod-SPEC := ipod.spec
85 IN_BOOTSTRAPFS += ipod
90 NodeManager-MODULES := NodeManager
91 NodeManager-SPEC := NodeManager.spec
93 IN_BOOTSTRAPFS += NodeManager
98 pl_sshd-MODULES := pl_sshd
99 pl_sshd-SPEC := pl_sshd.spec
101 IN_BOOTSTRAPFS += pl_sshd
106 # Deprecate when vsys takes over [sapan].
107 # keep in build for proper.
109 libhttpd-MODULES := libhttpd++
110 libhttpd-SPEC := libhttpd++.spec
114 # proper: Privileged Operations Service
116 proper-MODULES := proper
117 proper-SPEC := proper.spec
118 proper-DEPENDDEVELRPMS := libhttpd++-devel
122 # codemux: Port 80 demux
124 codemux-MODULES := CoDemux
125 codemux-SPEC := codemux.spec
126 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
128 IN_BOOTSTRAPFS += codemux
133 ulogd-MODULES := ulogd
134 ulogd-SPEC := ulogd.spec
135 ulogd-DEPENDDEVELRPMS := kernel-devel proper-libs proper-devel
142 fprobe-ulog-MODULES := fprobe-ulog
143 fprobe-ulog-SPEC := fprobe-ulog.spec
145 IN_BOOTSTRAPFS += fprobe-ulog
150 netflow-MODULES := PlanetFlow
151 netflow-SPEC := netflow.spec
153 IN_BOOTSTRAPFS += netflow
156 # PlanetLab Mom: Cleans up your mess
158 pl_mom-MODULES := Mom
159 pl_mom-SPEC := pl_mom.spec
161 IN_BOOTSTRAPFS += pl_mom
166 iptables-MODULES := iptables
167 iptables-SPEC := iptables.spec
168 iptables-DEPENDDEVELRPMS := kernel-devel
170 IN_BOOTSTRAPFS += iptables
175 iproute-MODULES := iproute2
176 iproute-SPEC := iproute.spec
178 IN_BOOTSTRAPFS += iproute
184 vsys-SPEC := vsys.spec
185 ifeq ($(DISTRO),"Fedora")
197 PLCAPI-MODULES := PLCAPI
198 PLCAPI-SPEC := PLCAPI.spec
205 PLCWWW-MODULES := WWW
206 PLCWWW-SPEC := PLCWWW.spec
213 bootmanager-MODULES := BootManager build
214 bootmanager-SPEC := bootmanager.spec
215 # Package must be built as root
216 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
218 IN_MYPLC += bootmanager
221 # pypcilib : used in bootcd
223 pypcilib-MODULES := pypcilib
224 pypcilib-SPEC := pypcilib.spec
226 IN_BOOTCD += pypcilib
231 bootcd-MODULES := BootCD build
232 bootcd-SPEC := bootcd.spec
233 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
234 # package has *some* dependencies, at least these ones
235 bootcd-DEPENDS := $(IN_BOOTCD)
236 bootcd-DEPENDFILES := RPMS/yumgroups.xml
241 # vserver : reference image for slices
243 vserver-MODULES := VserverReference build
244 vserver-SPEC := vserver-reference.spec
245 # Package must be built as root
246 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
247 # this list is useful for manual builds only, since nightly builds
248 # always redo all sequentially - try to keep updated
249 vserver-DEPENDS := $(IN_VSERVER)
250 vserver-DEPENDFILES := RPMS/yumgroups.xml
252 IN_BOOTSTRAPFS := vserver
257 bootstrapfs-MODULES := BootstrapFS build
258 bootstrapfs-SPEC := bootstrapfs.spec
259 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
260 # package requires all regular packages
261 bootstrapfs-DEPENDS := $(IN_BOOTSTRAPFS)
262 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
264 IN_MYPLC += bootstrapfs
267 # myplc : initial, chroot-based packaging
269 myplc-MODULES := MyPLC build
270 myplc-SPEC := myplc.spec
271 # Package must be built as root
272 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
273 # myplc may require all packages
274 myplc-DEPENDS := $(IN_MYPLC)
275 myplc-DEPENDFILES := RPMS/yumgroups.xml myplc-release
279 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
281 myplc-native-MODULES := MyPLC build
282 myplc-native-SPEC := myplc-native.spec
283 # Package must be built as root
284 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
285 # Thierry : don't depend on anything at build-time
286 #myplc-native-DEPENDS :=
287 # Thierry : dunno about this one, let's stay safe
288 myplc-native-DEPENDFILES := myplc-release