2 # declare the packages to be built and their dependencies
3 # initial version from Mark Huang
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
6 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
16 # use a package name with srpm in it:
17 # so the source rpm is created by running make srpm in the codebase
20 kernel-MODULES := linux-2.6
21 kernel-SPEC := kernel-2.6.spec
22 kernel-BUILD-FROM-SRPM := yes
23 ifeq "$(HOSTARCH)" "i386"
24 kernel-RPMFLAGS:= --target i686
26 kernel-RPMFLAGS:= --target $(HOSTARCH)
31 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
34 # this is to mark on which image a given rpm is supposed to go
35 IN_BOOTCD += $(KERNELS)
36 IN_VSERVER += $(KERNELS)
37 IN_BOOTSTRAPFS += $(KERNELS)
38 # turns out myplc installs kernel-vserver
39 IN_MYPLC += $(KERNELS)
44 madwifi-MODULES := madwifi
45 madwifi-SPEC := madwifi.spec
46 madwifi-BUILD-FROM-SRPM := yes
47 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
48 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
49 kernel_release=$(kernel.rpm-release) \
50 kernel_arch=$(kernel.rpm-arch)
52 IN_BOOTSTRAPFS += madwifi
57 util-vserver-MODULES := util-vserver
58 util-vserver-SPEC := util-vserver.spec
59 util-vserver-RPMFLAGS:= --without dietlibc
61 IN_BOOTSTRAPFS += util-vserver
64 # libnl - local import
65 # the version available in centos 5.2 is too old
66 # we need either 1.1 or at least 1.0.pre6
68 libnl-MODULES := libnl
69 libnl-SPEC := libnl.spec
70 libnl-BUILD-FROM-SRPM := yes
72 IN_BOOTSTRAPFS += libnl
77 util-vserver-pl-MODULES := util-vserver-pl
78 util-vserver-pl-SPEC := util-vserver-pl.spec
79 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core libnl-devel
80 ALL += util-vserver-pl
81 IN_BOOTSTRAPFS += util-vserver-pl
86 nodeupdate-MODULES := NodeUpdate
87 nodeupdate-SPEC := NodeUpdate.spec
89 IN_BOOTSTRAPFS += nodeupdate
94 ipod-MODULES := PingOfDeath
95 ipod-SPEC := ipod.spec
97 IN_BOOTSTRAPFS += ipod
102 nodemanager-MODULES := NodeManager
103 nodemanager-SPEC := NodeManager.spec
105 IN_BOOTSTRAPFS += nodemanager
110 sshd-MODULES := pl_sshd
111 sshd-SPEC := pl_sshd.spec
113 IN_BOOTSTRAPFS += sshd
116 # codemux: Port 80 demux
118 codemux-MODULES := CoDemux
119 codemux-SPEC := codemux.spec
120 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
122 IN_BOOTSTRAPFS += codemux
127 fprobe-ulog-MODULES := fprobe-ulog
128 fprobe-ulog-SPEC := fprobe-ulog.spec
130 IN_BOOTSTRAPFS += fprobe-ulog
135 pf2slice-MODULES := pf2slice
136 pf2slice-SPEC := pf2slice.spec
140 # PlanetLab Mom: Cleans up your mess
143 mom-SPEC := pl_mom.spec
145 IN_BOOTSTRAPFS += mom
150 iptables-MODULES := iptables
151 iptables-SPEC := iptables.spec
152 iptables-DEPEND-DEVEL-RPMS := kernel-devel
154 IN_BOOTSTRAPFS += iptables
159 iproute-MODULES := iproute2
160 iproute-SPEC := iproute.spec
162 IN_BOOTSTRAPFS += iproute
163 IN_VSERVER += iproute
167 # inotify-tools - local import
168 # could not find this in cen
170 inotify-tools-MODULES := inotify-tools
171 inotify-tools-SPEC := inotify-tools.spec
172 inotify-tools-BUILD-FROM-SRPM := yes
173 IN_BOOTSTRAPFS += inotify-tools
180 vsys-SPEC := vsys.spec
181 vsys-DEPEND-DEVEL-RPMS := inotify-tools-devel
182 IN_BOOTSTRAPFS += vsys
188 PLCAPI-MODULES := PLCAPI
189 PLCAPI-SPEC := PLCAPI.spec
196 PLCWWW-MODULES := PLCWWW
197 PLCWWW-SPEC := PLCWWW.spec
204 monitor-MODULES := Monitor
205 monitor-SPEC := Monitor.spec
207 IN_BOOTSTRAPFS += monitor
212 monitor-server-MODULES := Monitor
213 monitor-server-SPEC := monitor-server.spec
214 ALL += monitor-server
219 nodeconfig-MODULES := nodeconfig build
220 nodeconfig-SPEC := nodeconfig.spec
222 IN_MYPLC += nodeconfig
227 bootmanager-MODULES := BootManager
228 bootmanager-SPEC := bootmanager.spec
230 IN_MYPLC += bootmanager
233 # pypcilib : used in bootcd
235 pypcilib-MODULES := pypcilib
236 pypcilib-SPEC := pypcilib.spec
238 IN_BOOTCD += pypcilib
243 bootcd-MODULES := BootCD build
244 bootcd-SPEC := bootcd.spec
245 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
246 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
247 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
248 bootcd-RPMDATE := yes
253 # vserver : reference image for slices
255 vserver-MODULES := VserverReference build
256 vserver-SPEC := vserver-reference.spec
257 # Package must be built as root
258 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
259 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
260 vserver-DEPEND-FILES := RPMS/yumgroups.xml
261 vserver-RPMDATE := yes
263 IN_BOOTSTRAPFS += vserver
268 bootstrapfs-MODULES := BootstrapFS build
269 bootstrapfs-SPEC := bootstrapfs.spec
270 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
271 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
272 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
273 bootstrapfs-RPMDATE := yes
275 IN_MYPLC += bootstrapfs
280 # all rpms resulting from packages marked as being in bootstrapfs and vserver
281 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
282 # replace space with +++ (specvars cannot deal with spaces)
284 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
286 noderepo-MODULES := BootstrapFS
287 noderepo-SPEC := noderepo.spec
288 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
289 # package requires all regular packages
290 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
291 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
292 #export rpm list to the specfile
293 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
294 noderepo-RPMDATE := yes
299 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
301 myplc-native-MODULES := MyPLC build
302 myplc-native-SPEC := myplc-native.spec
303 # Package must be built as root
304 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
305 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
309 ## # myplc : old-fashioned, chroot-based packaging
311 ## myplc-MODULES := MyPLC build
312 ## myplc-SPEC := myplc.spec
313 ## # Package must be built as root
314 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
315 ## # myplc may require all packages
316 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
317 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
318 ## myplc-RPMDATE := yes
321 # myplc-docs only contains docs for PLCAPI and NMAPI, but
322 # we still need to pull MyPLC, as it is where the specfile lies,
323 # together with the utility script docbook2drupal.sh
324 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
325 myplc-docs-SPEC := myplc-docs.spec