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 sudo rpm -Uvh RPMS/i686/kernel-devel*.rpm
46 kernel-clean: $(foreach package,$(KERNELS),$(package)-clean)
48 kernel-devel: $(KERNELS)
55 # [daniel] wait for latest Fedora release
56 # (03:29:46 PM) daniel_hozac: interfacing with the kernel directly when dealing with netlink was fugly, so... i had to find something nicer.
57 # (03:29:53 PM) daniel_hozac: the one in Fedora is lacking certain APIs i need.
59 libnl-MODULES := libnl
60 libnl-SPEC := libnl.spec
66 util-vserver-MODULES := util-vserver
67 util-vserver-SPEC := util-vserver.spec
68 util-vserver-RPMFLAGS:= --without dietlibc
69 util-vserver-DEPENDS := libnl
75 NodeUpdate-MODULES := NodeUpdate
76 NodeUpdate-SPEC := NodeUpdate.spec
82 PingOfDeath-MODULES := PingOfDeath
83 PingOfDeath-SPEC := ipod.spec
89 NodeManager-MODULES := NodeManager
90 NodeManager-SPEC := NodeManager.spec
96 pl_sshd-MODULES := pl_sshd
97 pl_sshd-SPEC := pl_sshd.spec
103 # Deprecate when vsys takes over [sapan].
104 # keep in build for proper.
106 libhttpd++-MODULES := libhttpd++
107 libhttpd++-SPEC := libhttpd++.spec
111 # proper: Privileged Operations Service
113 proper-MODULES := proper
114 proper-SPEC := proper.spec
115 proper-RPMBUILD := sudo bash ./rpmbuild.sh
116 # proper uses scripts in util-python for building
117 proper-DEPENDS := libhttpd++ util-python
118 # disabled temporarily (or ?)
122 # codemux: Port 80 demux
124 codemux-MODULES := CoDemux
125 codemux-SPEC := codemux.spec
126 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
132 ulogd-MODULES := ulogd
133 ulogd-SPEC := ulogd.spec
134 ulogd-DEPENDS := kernel-devel proper
140 fprobe-ulog-MODULES := fprobe-ulog
141 fprobe-ulog-SPEC := fprobe-ulog.spec
147 netflow-MODULES := PlanetFlow
148 netflow-SPEC := netflow.spec
152 # PlanetLab Mom: Cleans up your mess
154 pl_mom-MODULES := Mom
155 pl_mom-SPEC := pl_mom.spec
161 iptables-MODULES := iptables
162 iptables-SPEC := iptables.spec
163 iptables-DEPENDS :=kernel-devel
169 iproute-MODULES := iproute2
170 iproute-SPEC := iproute.spec
176 # [marc] deprecate with proper
178 util-python-MODULES := util-python
179 util-python-SPEC := util-python.spec
186 vsys-SPEC := vsys.spec
187 ifeq ($(DISTRO),"Fedora")
196 PLCAPI-MODULES := PLCAPI
197 PLCAPI-SPEC := PLCAPI.spec
203 PLCWWW-MODULES := WWW
204 PLCWWW-SPEC := PLCWWW.spec
210 bootmanager-MODULES := BootManager build
211 bootmanager-SPEC := bootmanager.spec
212 # Package must be built as root
213 bootmanager-RPMBUILD := sudo bash ./rpmbuild.sh
217 # pypcilib : used in bootcd
219 pypcilib-MODULES := pypcilib
220 pypcilib-SPEC := pypcilib.spec
223 # copy the current list, so as to keep image-building rpms out
224 ALL-REGULARS := $(ALL)
227 # vserver : reference image for slices
229 vserver-MODULES := VserverReference build
230 vserver-SPEC := vserver-reference.spec
231 # Package must be built as root
232 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
233 # package requires all regular packages
234 vserver-DEPENDS := $(ALL-REGULARS)
235 vserver-DEPENDFILES := RPMS/yumgroups.xml
241 bootcd-MODULES := BootCD BootManager build
242 bootcd-SPEC := bootcd.spec
243 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
244 # package has *some* dependencies, at least these ones
245 bootcd-DEPENDS := $(ALL-REGULARS)
246 bootcd-DEPENDFILES := RPMS/yumgroups.xml
252 bootstrapfs-MODULES := BootstrapFS build
253 bootstrapfs-SPEC := bootstrapfs.spec
254 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
255 # package requires all regular packages
256 bootstrapfs-DEPENDS := $(ALL-REGULARS)
257 bootstrapfs-DEPENDFILES := RPMS/yumgroups.xml
261 # myplc : initial, chroot-based packaging
263 myplc-MODULES := MyPLC build
264 myplc-SPEC := myplc.spec
265 # Package must be built as root
266 myplc-RPMBUILD := sudo bash ./rpmbuild.sh
267 # myplc may require all packages
268 myplc-DEPENDS := $(filter-out vserver,$(ALL))
269 myplc-DEPENDFILES := RPMS/yumgroups.xml
273 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
275 myplc-native-MODULES := MyPLC build
276 myplc-native-SPEC := myplc-native.spec
277 # Package must be built as root
278 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
279 # Thierry : don't depend on these at build-time
280 #myplc-native-DEPENDS := $(MyPLC-DEPENDS)
281 # Thierry : dunno about this one, let's stay safe
282 myplc-native-DEPENDFILES := $(MyPLC-DEPENDFILES)
286 # MyPLC development environment : chroot-based
288 myplc-devel-MODULES := MyPLC build
289 myplc-devel-SPEC := myplc-devel.spec
290 myplc-devel-RPMBUILD := sudo bash ./rpmbuild.sh
294 # MyPLC native development environment
296 myplc-devel-native-MODULES := MyPLC
297 myplc-devel-native-SPEC := myplc-devel-native.spec
298 #ALL += myplc-devel-native