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 # we need either 1.1 or at least 1.0.pre6
66 # rebuild this on f8 and centos5 - see kexcludes in build.common
69 ifeq "$(DISTRONAME)" "f8"
72 ifeq "$(DISTRONAME)" "centos5"
76 ifeq "$(local_libnl)" "true"
77 libnl-MODULES := libnl
78 libnl-SPEC := libnl.spec
79 libnl-BUILD-FROM-SRPM := yes
80 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
81 libnl-DEPEND-DEVEL-RPMS := kernel-devel
83 IN_BOOTSTRAPFS += libnl
89 util-vserver-pl-MODULES := util-vserver-pl
90 util-vserver-pl-SPEC := util-vserver-pl.spec
91 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
92 ifeq "$(local_libnl)" "true"
93 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
95 ALL += util-vserver-pl
96 IN_BOOTSTRAPFS += util-vserver-pl
101 nodeupdate-MODULES := NodeUpdate
102 nodeupdate-SPEC := NodeUpdate.spec
104 IN_BOOTSTRAPFS += nodeupdate
109 ipod-MODULES := PingOfDeath
110 ipod-SPEC := ipod.spec
112 IN_BOOTSTRAPFS += ipod
117 nodemanager-MODULES := NodeManager
118 nodemanager-SPEC := NodeManager.spec
120 IN_BOOTSTRAPFS += nodemanager
125 sshd-MODULES := pl_sshd
126 sshd-SPEC := pl_sshd.spec
128 IN_BOOTSTRAPFS += sshd
131 # codemux: Port 80 demux
133 codemux-MODULES := CoDemux
134 codemux-SPEC := codemux.spec
135 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
137 IN_BOOTSTRAPFS += codemux
142 fprobe-ulog-MODULES := fprobe-ulog
143 fprobe-ulog-SPEC := fprobe-ulog.spec
145 IN_BOOTSTRAPFS += fprobe-ulog
150 pf2slice-MODULES := pf2slice
151 pf2slice-SPEC := pf2slice.spec
155 # PlanetLab Mom: Cleans up your mess
158 mom-SPEC := pl_mom.spec
160 IN_BOOTSTRAPFS += mom
165 iptables-MODULES := iptables
166 iptables-SPEC := iptables.spec
167 iptables-DEPEND-DEVEL-RPMS := kernel-devel
169 IN_BOOTSTRAPFS += iptables
174 iproute-MODULES := iproute2
175 iproute-SPEC := iproute.spec
177 IN_BOOTSTRAPFS += iproute
178 IN_VSERVER += iproute
182 # inotify-tools - local import
183 # could not find this in cen
185 inotify-tools-MODULES := inotify-tools
186 inotify-tools-SPEC := inotify-tools.spec
187 inotify-tools-BUILD-FROM-SRPM := yes
188 IN_BOOTSTRAPFS += inotify-tools
195 vsys-SPEC := vsys.spec
196 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
197 IN_BOOTSTRAPFS += vsys
203 PLCAPI-MODULES := PLCAPI
204 PLCAPI-SPEC := PLCAPI.spec
211 PLCWWW-MODULES := PLCWWW
212 PLCWWW-SPEC := PLCWWW.spec
219 monitor-MODULES := Monitor
220 monitor-SPEC := Monitor.spec
222 IN_BOOTSTRAPFS += monitor
227 monitor-server-MODULES := Monitor
228 monitor-server-SPEC := monitor-server.spec
229 ALL += monitor-server
234 nodeconfig-MODULES := nodeconfig build
235 nodeconfig-SPEC := nodeconfig.spec
237 IN_MYPLC += nodeconfig
242 bootmanager-MODULES := BootManager
243 bootmanager-SPEC := bootmanager.spec
245 IN_MYPLC += bootmanager
248 # pypcilib : used in bootcd
250 pypcilib-MODULES := pypcilib
251 pypcilib-SPEC := pypcilib.spec
253 IN_BOOTCD += pypcilib
258 bootcd-MODULES := BootCD build
259 bootcd-SPEC := bootcd.spec
260 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
261 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
262 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
263 bootcd-RPMDATE := yes
268 # vserver : reference image for slices
270 vserver-MODULES := VserverReference build
271 vserver-SPEC := vserver-reference.spec
272 # Package must be built as root
273 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
274 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
275 vserver-DEPEND-FILES := RPMS/yumgroups.xml
276 vserver-RPMDATE := yes
278 IN_BOOTSTRAPFS += vserver
283 bootstrapfs-MODULES := BootstrapFS build
284 bootstrapfs-SPEC := bootstrapfs.spec
285 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
286 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
287 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
288 bootstrapfs-RPMDATE := yes
290 IN_MYPLC += bootstrapfs
295 # all rpms resulting from packages marked as being in bootstrapfs and vserver
296 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
297 # replace space with +++ (specvars cannot deal with spaces)
299 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
301 noderepo-MODULES := BootstrapFS
302 noderepo-SPEC := noderepo.spec
303 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
304 # package requires all regular packages
305 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
306 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
307 #export rpm list to the specfile
308 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
309 noderepo-RPMDATE := yes
314 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
316 myplc-native-MODULES := MyPLC build
317 myplc-native-SPEC := myplc-native.spec
318 # Package must be built as root
319 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
320 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
324 ## # myplc : old-fashioned, chroot-based packaging
326 ## myplc-MODULES := MyPLC build
327 ## myplc-SPEC := myplc.spec
328 ## # Package must be built as root
329 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
330 ## # myplc may require all packages
331 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
332 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
333 ## myplc-RPMDATE := yes
336 # myplc-docs only contains docs for PLCAPI and NMAPI, but
337 # we still need to pull MyPLC, as it is where the specfile lies,
338 # together with the utility script docbook2drupal.sh
339 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
340 myplc-docs-SPEC := myplc-docs.spec