2 # PlanetLab standard components list
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
14 # until we are able to build the new kernel layout:
15 # use the old exploded-tree, 2.6.20-based, version on fc4, 6 & 7
16 # and the new one on f8 - that requires the build-id patch
19 # use a package name with srpm in it:
20 # in this case the srpm is created by running make srpm in the codebase
23 srpm-kernel-$(HOSTARCH)-MODULES := linux-patches
24 srpm-kernel-$(HOSTARCH)-SPEC := kernel-2.6-planetlab.spec
25 ifeq ($(HOSTARCH),i386)
26 srpm-kernel-$(HOSTARCH)-RPMFLAGS:= --target i686
28 srpm-kernel-$(HOSTARCH)-RPMFLAGS:= --target $(HOSTARCH)
30 KERNELS += srpm-kernel-$(HOSTARCH)
33 #kernel-$(HOSTARCH)-MODULES := linux-tree
34 #kernel-$(HOSTARCH)-SPEC := scripts/kernel-2.6-planetlab.spec
35 #ifeq ($(HOSTARCH),i386)
36 #kernel-$(HOSTARCH)-RPMFLAGS:= --target i686
38 #kernel-$(HOSTARCH)-RPMFLAGS:= --target $(HOSTARCH)
40 #KERNELS += kernel-$(HOSTARCH)
44 kernel-clean: $(foreach package,$(KERNELS),$(package)-clean)
48 # the first kernel package defined here
49 kernel_package := $(word 1,$(KERNELS))
54 # [daniel] wait for latest Fedora release
55 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
56 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
58 libnl-MODULES := libnl
59 libnl-SPEC := libnl.spec
65 util-vserver-MODULES := util-vserver
66 util-vserver-SPEC := util-vserver.spec
67 util-vserver-RPMFLAGS:= --without dietlibc
68 util-vserver-DEPENDDEVELS := libnl
74 NodeUpdate-MODULES := NodeUpdate
75 NodeUpdate-SPEC := NodeUpdate.spec
81 PingOfDeath-MODULES := PingOfDeath
82 PingOfDeath-SPEC := ipod.spec
88 NodeManager-MODULES := NodeManager
89 NodeManager-SPEC := NodeManager.spec
95 pl_sshd-MODULES := pl_sshd
96 pl_sshd-SPEC := pl_sshd.spec
102 # Deprecate when vsys takes over [sapan].
103 # keep in build for proper.
105 libhttpd-MODULES := libhttpd++
106 libhttpd-SPEC := libhttpd++.spec
110 # proper: Privileged Operations Service
112 proper-MODULES := proper
113 proper-SPEC := proper.spec
114 #proper-RPMBUILD := sudo bash ./rpmbuild.sh
115 proper-DEPENDS := libhttpd
116 proper-DEPENDDEVELRPMS := libhttpd++
120 # codemux: Port 80 demux
122 codemux-MODULES := CoDemux
123 codemux-SPEC := codemux.spec
124 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
130 ulogd-MODULES := ulogd
131 ulogd-SPEC := ulogd.spec
132 ulogd-DEPENDDEVELS := $(kernel_package) proper
138 fprobe-ulog-MODULES := fprobe-ulog
139 fprobe-ulog-SPEC := fprobe-ulog.spec
145 netflow-MODULES := PlanetFlow
146 netflow-SPEC := netflow.spec
150 # PlanetLab Mom: Cleans up your mess
152 pl_mom-MODULES := Mom
153 pl_mom-SPEC := pl_mom.spec
159 iptables-MODULES := iptables
160 iptables-SPEC := iptables.spec
161 iptables-DEPENDDEVELS := $(kernel_package)
167 iproute-MODULES := iproute2
168 iproute-SPEC := iproute.spec
174 # [marc] deprecate with proper
176 #util-python-MODULES := util-python
177 #util-python-SPEC := util-python.spec
184 vsys-SPEC := vsys.spec
185 ifeq ($(DISTRO),"Fedora")
194 PLCAPI-MODULES := PLCAPI
195 PLCAPI-SPEC := PLCAPI.spec
201 PLCWWW-MODULES := WWW
202 PLCWWW-SPEC := PLCWWW.spec
208 bootmanager-MODULES := BootManager build
209 bootmanager-SPEC := bootmanager.spec
210 # Package must be built as root
211 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
215 # pypcilib : used in bootcd
217 pypcilib-MODULES := pypcilib
218 pypcilib-SPEC := pypcilib.spec
221 # copy the current list, so as to keep image-building rpms out
222 ALL-REGULARS := $(ALL)
225 # vserver : reference image for slices
227 vserver-MODULES := VserverReference build
228 vserver-SPEC := vserver-reference.spec
229 # Package must be built as root
230 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
231 # package requires all regular packages
232 vserver-DEPENDS := $(ALL-REGULARS)
233 vserver-DEPENDFILES := RPMS/yumgroups.xml
239 bootcd-MODULES := BootCD BootManager build
240 bootcd-SPEC := bootcd.spec
241 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
242 # package has *some* dependencies, at least these ones
243 bootcd-DEPENDS := $(ALL-REGULARS)
244 bootcd-DEPENDFILES := RPMS/yumgroups.xml
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 := $(ALL-REGULARS)
255 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
259 # myplc : initial, chroot-based packaging
261 myplc-MODULES := MyPLC build
262 myplc-SPEC := myplc.spec
263 # Package must be built as root
264 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
265 # myplc may require all packages
266 myplc-DEPENDS := $(filter-out vserver,$(ALL))
267 myplc-DEPENDFILES := RPMS/yumgroups.xml
271 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
273 myplc-native-MODULES := MyPLC build
274 myplc-native-SPEC := myplc-native.spec
275 # Package must be built as root
276 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
277 # Thierry : don't depend on these at build-time
278 #myplc-native-DEPENDS := $(MyPLC-DEPENDS)
279 # Thierry : dunno about this one, let's stay safe
280 myplc-native-DEPENDFILES := $(MyPLC-DEPENDFILES)
284 # MyPLC development environment : chroot-based
286 myplc-devel-MODULES := MyPLC build
287 myplc-devel-SPEC := myplc-devel.spec
288 myplc-devel-RPMBUILD := sudo bash ./rpmbuild.sh
292 # MyPLC native development environment
294 myplc-devel-native-MODULES := MyPLC
295 myplc-devel-native-SPEC := myplc-devel-native.spec
296 #ALL += myplc-devel-native