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 centos5 - see kexcludes in build.common
69 ifeq "$(DISTRONAME)" "centos5"
73 ifeq "$(local_libnl)" "true"
74 libnl-MODULES := libnl
75 libnl-SPEC := libnl.spec
76 libnl-BUILD-FROM-SRPM := yes
77 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
78 libnl-DEPEND-DEVEL-RPMS := kernel-devel
80 IN_BOOTSTRAPFS += libnl
86 util-vserver-pl-MODULES := util-vserver-pl
87 util-vserver-pl-SPEC := util-vserver-pl.spec
88 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core
89 ifeq "$(local_libnl)" "true"
90 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
92 ALL += util-vserver-pl
93 IN_BOOTSTRAPFS += util-vserver-pl
98 nodeupdate-MODULES := NodeUpdate
99 nodeupdate-SPEC := NodeUpdate.spec
101 IN_BOOTSTRAPFS += nodeupdate
106 ipod-MODULES := PingOfDeath
107 ipod-SPEC := ipod.spec
109 IN_BOOTSTRAPFS += ipod
114 nodemanager-MODULES := NodeManager
115 nodemanager-SPEC := NodeManager.spec
117 IN_BOOTSTRAPFS += nodemanager
122 sshd-MODULES := pl_sshd
123 sshd-SPEC := pl_sshd.spec
125 IN_BOOTSTRAPFS += sshd
128 # codemux: Port 80 demux
130 codemux-MODULES := CoDemux
131 codemux-SPEC := codemux.spec
132 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
134 IN_BOOTSTRAPFS += codemux
139 fprobe-ulog-MODULES := fprobe-ulog
140 fprobe-ulog-SPEC := fprobe-ulog.spec
142 IN_BOOTSTRAPFS += fprobe-ulog
147 pf2slice-MODULES := pf2slice
148 pf2slice-SPEC := pf2slice.spec
152 # PlanetLab Mom: Cleans up your mess
155 mom-SPEC := pl_mom.spec
157 IN_BOOTSTRAPFS += mom
162 iptables-MODULES := iptables
163 iptables-SPEC := iptables.spec
164 iptables-DEPEND-DEVEL-RPMS := kernel-devel
166 IN_BOOTSTRAPFS += iptables
171 iproute-MODULES := iproute2
172 iproute-SPEC := iproute.spec
174 IN_BOOTSTRAPFS += iproute
175 IN_VSERVER += iproute
179 # inotify-tools - local import
180 # rebuild this on centos5 (not found) - see kexcludes in build.common
182 local_inotify_tools=false
183 ifeq "$(DISTRONAME)" "centos5"
184 local_inotify_tools=true
187 ifeq "$(local_inotify_tools)" "true"
188 inotify-tools-MODULES := inotify-tools
189 inotify-tools-SPEC := inotify-tools.spec
190 inotify-tools-BUILD-FROM-SRPM := yes
191 IN_BOOTSTRAPFS += inotify-tools
199 vsys-SPEC := vsys.spec
200 ifeq "$(local_inotify_tools)" "true"
201 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
203 IN_BOOTSTRAPFS += vsys
209 PLCAPI-MODULES := PLCAPI
210 PLCAPI-SPEC := PLCAPI.spec
217 PLCWWW-MODULES := PLCWWW
218 PLCWWW-SPEC := PLCWWW.spec
225 monitor-MODULES := Monitor
226 monitor-SPEC := Monitor.spec
228 IN_BOOTSTRAPFS += monitor
233 monitor-server-MODULES := Monitor
234 monitor-server-SPEC := monitor-server.spec
235 ALL += monitor-server
240 nodeconfig-MODULES := nodeconfig build
241 nodeconfig-SPEC := nodeconfig.spec
243 IN_MYPLC += nodeconfig
248 bootmanager-MODULES := BootManager
249 bootmanager-SPEC := bootmanager.spec
251 IN_MYPLC += bootmanager
254 # pypcilib : used in bootcd
256 pypcilib-MODULES := pypcilib
257 pypcilib-SPEC := pypcilib.spec
259 IN_BOOTCD += pypcilib
264 bootcd-MODULES := BootCD build
265 bootcd-SPEC := bootcd.spec
266 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
267 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
268 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
269 bootcd-RPMDATE := yes
274 # vserver : reference image for slices
276 vserver-MODULES := VserverReference build
277 vserver-SPEC := vserver-reference.spec
278 # Package must be built as root
279 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
280 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
281 vserver-DEPEND-FILES := RPMS/yumgroups.xml
282 vserver-RPMDATE := yes
284 IN_BOOTSTRAPFS += vserver
289 bootstrapfs-MODULES := BootstrapFS build
290 bootstrapfs-SPEC := bootstrapfs.spec
291 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
292 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
293 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
294 bootstrapfs-RPMDATE := yes
296 IN_MYPLC += bootstrapfs
301 # all rpms resulting from packages marked as being in bootstrapfs and vserver
302 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
303 # replace space with +++ (specvars cannot deal with spaces)
305 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
307 noderepo-MODULES := BootstrapFS
308 noderepo-SPEC := noderepo.spec
309 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
310 # package requires all regular packages
311 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
312 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
313 #export rpm list to the specfile
314 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
315 noderepo-RPMDATE := yes
320 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
322 myplc-native-MODULES := MyPLC build
323 myplc-native-SPEC := myplc-native.spec
324 # Package must be built as root
325 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
326 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
330 ## # myplc : old-fashioned, chroot-based packaging
332 ## myplc-MODULES := MyPLC build
333 ## myplc-SPEC := myplc.spec
334 ## # Package must be built as root
335 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
336 ## # myplc may require all packages
337 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
338 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
339 ## myplc-RPMDATE := yes
342 # myplc-docs only contains docs for PLCAPI and NMAPI, but
343 # we still need to pull MyPLC, as it is where the specfile lies,
344 # together with the utility script docbook2drupal.sh
345 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
346 myplc-docs-SPEC := myplc-docs.spec