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 NodeUpdate-MODULES := NodeUpdate
67 NodeUpdate-SPEC := NodeUpdate.spec
69 IN_BOOTSTRAPFS += NodeUpdate
74 ipod-MODULES := PingOfDeath
75 ipod-SPEC := ipod.spec
77 IN_BOOTSTRAPFS += ipod
82 NodeManager-MODULES := NodeManager
83 NodeManager-SPEC := NodeManager.spec
85 IN_BOOTSTRAPFS += NodeManager
90 pl_sshd-MODULES := pl_sshd
91 pl_sshd-SPEC := pl_sshd.spec
93 IN_BOOTSTRAPFS += pl_sshd
98 # Deprecate when vsys takes over [sapan].
99 # keep in build for proper.
101 libhttpd-MODULES := libhttpd++
102 libhttpd-SPEC := libhttpd++.spec
106 # proper: Privileged Operations Service
108 proper-MODULES := proper
109 proper-SPEC := proper.spec
110 proper-DEPENDDEVELS := libhttpd
114 # codemux: Port 80 demux
116 codemux-MODULES := CoDemux
117 codemux-SPEC := codemux.spec
118 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
120 IN_BOOTSTRAPFS += codemux
125 ulogd-MODULES := ulogd
126 ulogd-SPEC := ulogd.spec
127 ulogd-DEPENDDEVELS := $(kernel_package)
128 ulogd-DEPENDDEVELRPMS := proper-libs proper-devel
135 fprobe-ulog-MODULES := fprobe-ulog
136 fprobe-ulog-SPEC := fprobe-ulog.spec
138 IN_BOOTSTRAPFS += fprobe-ulog
143 netflow-MODULES := PlanetFlow
144 netflow-SPEC := netflow.spec
146 IN_BOOTSTRAPFS += netflow
149 # PlanetLab Mom: Cleans up your mess
151 pl_mom-MODULES := Mom
152 pl_mom-SPEC := pl_mom.spec
154 IN_BOOTSTRAPFS += pl_mom
159 iptables-MODULES := iptables
160 iptables-SPEC := iptables.spec
161 iptables-DEPENDDEVELS := $(kernel_package)
163 IN_BOOTSTRAPFS += iptables
168 iproute-MODULES := iproute2
169 iproute-SPEC := iproute.spec
171 IN_BOOTSTRAPFS += iproute
177 vsys-SPEC := vsys.spec
178 ifeq ($(DISTRO),"Fedora")
190 PLCAPI-MODULES := PLCAPI
191 PLCAPI-SPEC := PLCAPI.spec
198 PLCWWW-MODULES := WWW
199 PLCWWW-SPEC := PLCWWW.spec
206 bootmanager-MODULES := BootManager build
207 bootmanager-SPEC := bootmanager.spec
208 # Package must be built as root
209 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
211 IN_MYPLC += bootmanager
214 # pypcilib : used in bootcd
216 pypcilib-MODULES := pypcilib
217 pypcilib-SPEC := pypcilib.spec
219 IN_BOOTCD += pypcilib
224 bootcd-MODULES := BootCD BootManager build
225 bootcd-SPEC := bootcd.spec
226 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
227 # package has *some* dependencies, at least these ones
228 bootcd-DEPENDS := $(IN_BOOTCD)
229 bootcd-DEPENDFILES := RPMS/yumgroups.xml
234 # vserver : reference image for slices
236 vserver-MODULES := VserverReference build
237 vserver-SPEC := vserver-reference.spec
238 # Package must be built as root
239 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
240 # this list is useful for manual builds only, since nightly builds
241 # always redo all sequentially - try to keep updated
242 vserver-DEPENDS := $(IN_VSERVER)
243 vserver-DEPENDFILES := RPMS/yumgroups.xml
245 IN_BOOTSTRAPFS := vserver
250 bootstrapfs-MODULES := BootstrapFS build
251 bootstrapfs-SPEC := bootstrapfs.spec
252 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
253 # package requires all regular packages
254 bootstrapfs-DEPENDS := $(IN_BOOTSTRAPFS)
255 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
257 IN_MYPLC += bootstrapfs
260 # myplc : initial, chroot-based packaging
262 myplc-MODULES := MyPLC build
263 myplc-SPEC := myplc.spec
264 # Package must be built as root
265 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
266 # myplc may require all packages
267 myplc-DEPENDS := $(IN_MYPLC)
268 myplc-DEPENDFILES := RPMS/yumgroups.xml myplc-release
272 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
274 myplc-native-MODULES := MyPLC build
275 myplc-native-SPEC := myplc-native.spec
276 # Package must be built as root
277 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
278 # Thierry : don't depend on these at build-time
279 #myplc-native-DEPENDS := $(MyPLC-DEPENDS)
280 # Thierry : dunno about this one, let's stay safe
281 myplc-native-DEPENDFILES := $(MyPLC-DEPENDFILES)