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-MODULES := linux-patches
20 srpm-kernel-SPEC := kernel-2.6-planetlab.spec
21 ifeq ($(HOSTARCH),i386)
22 srpm-kernel-RPMFLAGS:= --target i686
24 srpm-kernel-RPMFLAGS:= --target $(HOSTARCH)
26 KERNELS += srpm-kernel
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-DEPEND-DEVEL-RPMS := 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
112 IN_BOOTSTRAPFS += libhttpd
115 # proper: Privileged Operations Service
117 proper-MODULES := proper
118 proper-SPEC := proper.spec
119 proper-DEPEND-DEVEL-RPMS := libhttpd++-devel
121 IN_BOOTSTRAPFS += proper
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-DEPEND-DEVEL-RPMS := kernel-devel proper-libs proper-devel
144 fprobe-ulog-MODULES := fprobe-ulog
145 fprobe-ulog-SPEC := fprobe-ulog.spec
147 IN_BOOTSTRAPFS += fprobe-ulog
152 netflow-MODULES := PlanetFlow
153 netflow-SPEC := netflow.spec
155 IN_BOOTSTRAPFS += netflow
158 # PlanetLab Mom: Cleans up your mess
160 pl_mom-MODULES := Mom
161 pl_mom-SPEC := pl_mom.spec
163 IN_BOOTSTRAPFS += pl_mom
168 iptables-MODULES := iptables
169 iptables-SPEC := iptables.spec
170 iptables-DEPEND-DEVEL-RPMS := kernel-devel
172 IN_BOOTSTRAPFS += iptables
177 iproute-MODULES := iproute2
178 iproute-SPEC := iproute.spec
180 IN_BOOTSTRAPFS += iproute
186 vsys-SPEC := vsys.spec
187 ifeq ($(DISTRO),"Fedora")
199 PLCAPI-MODULES := PLCAPI
200 PLCAPI-SPEC := PLCAPI.spec
207 PLCWWW-MODULES := WWW
208 PLCWWW-SPEC := PLCWWW.spec
215 bootmanager-MODULES := BootManager build
216 bootmanager-SPEC := bootmanager.spec
217 # Package must be built as root
218 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
220 IN_MYPLC += bootmanager
223 # pypcilib : used in bootcd
225 pypcilib-MODULES := pypcilib
226 pypcilib-SPEC := pypcilib.spec
228 IN_BOOTCD += pypcilib
233 bootcd-MODULES := BootCD build
234 bootcd-SPEC := bootcd.spec
235 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
236 # package has *some* dependencies, at least these ones
237 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
238 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
243 # vserver : reference image for slices
245 vserver-MODULES := VserverReference build
246 vserver-SPEC := vserver-reference.spec
247 # Package must be built as root
248 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
249 # this list is useful for manual builds only, since nightly builds
250 # always redo all sequentially - try to keep updated
251 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
252 vserver-DEPEND-FILES := RPMS/yumgroups.xml
254 IN_BOOTSTRAPFS := vserver
259 bootstrapfs-MODULES := BootstrapFS build
260 bootstrapfs-SPEC := bootstrapfs.spec
261 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
262 # package requires all regular packages
263 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
264 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
266 IN_MYPLC += bootstrapfs
269 # myplc : initial, chroot-based packaging
271 myplc-MODULES := MyPLC build
272 myplc-SPEC := myplc.spec
273 # Package must be built as root
274 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
275 # myplc may require all packages
276 myplc-DEPEND-PACKAGES := $(IN_MYPLC)
277 myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
281 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
283 myplc-native-MODULES := MyPLC build
284 myplc-native-SPEC := myplc-native.spec
285 # Package must be built as root
286 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
287 # Thierry : don't depend on anything at build-time
288 #myplc-native-DEPEND-PACKAGES :=
289 # Thierry : dunno about this one, let's stay safe
290 myplc-native-DEPEND-FILES := myplc-release