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
71 IN_BOOTSTRAPFS += libnl
76 util-vserver-pl-MODULES := util-vserver-pl
77 util-vserver-pl-SPEC := util-vserver-pl.spec
78 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core libnl-devel
79 ALL += util-vserver-pl
80 IN_BOOTSTRAPFS += util-vserver-pl
85 nodeupdate-MODULES := NodeUpdate
86 nodeupdate-SPEC := NodeUpdate.spec
88 IN_BOOTSTRAPFS += nodeupdate
93 ipod-MODULES := PingOfDeath
94 ipod-SPEC := ipod.spec
96 IN_BOOTSTRAPFS += ipod
101 nodemanager-MODULES := NodeManager
102 nodemanager-SPEC := NodeManager.spec
104 IN_BOOTSTRAPFS += nodemanager
109 sshd-MODULES := pl_sshd
110 sshd-SPEC := pl_sshd.spec
112 IN_BOOTSTRAPFS += sshd
115 # codemux: Port 80 demux
117 codemux-MODULES := CoDemux
118 codemux-SPEC := codemux.spec
119 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
121 IN_BOOTSTRAPFS += codemux
126 fprobe-ulog-MODULES := fprobe-ulog
127 fprobe-ulog-SPEC := fprobe-ulog.spec
129 IN_BOOTSTRAPFS += fprobe-ulog
134 pf2slice-MODULES := pf2slice
135 pf2slice-SPEC := pf2slice.spec
139 # PlanetLab Mom: Cleans up your mess
142 mom-SPEC := pl_mom.spec
144 IN_BOOTSTRAPFS += mom
149 iptables-MODULES := iptables
150 iptables-SPEC := iptables.spec
151 iptables-DEPEND-DEVEL-RPMS := kernel-devel
153 IN_BOOTSTRAPFS += iptables
158 iproute-MODULES := iproute2
159 iproute-SPEC := iproute.spec
161 IN_BOOTSTRAPFS += iproute
162 IN_VSERVER += iproute
166 # inotify-tools - local import
167 # could not find this in cen
169 inotify-tools-MODULES := inotify-tools
170 inotify-tools-SPEC := inotify-tools.spec
171 inotify-tools-BUILD-FROM-SRPM := yes
172 IN_BOOTSTRAPFS += inotify-tools
179 vsys-SPEC := vsys.spec
180 vsys-DEPEND-DEVEL-RPMS := inotify-tools-devel
181 IN_BOOTSTRAPFS += vsys
187 PLCAPI-MODULES := PLCAPI
188 PLCAPI-SPEC := PLCAPI.spec
195 PLCWWW-MODULES := PLCWWW
196 PLCWWW-SPEC := PLCWWW.spec
203 monitor-MODULES := Monitor
204 monitor-SPEC := Monitor.spec
206 IN_BOOTSTRAPFS += monitor
211 monitor-server-MODULES := Monitor
212 monitor-server-SPEC := monitor-server.spec
213 ALL += monitor-server
218 nodeconfig-MODULES := nodeconfig build
219 nodeconfig-SPEC := nodeconfig.spec
221 IN_MYPLC += nodeconfig
226 bootmanager-MODULES := BootManager
227 bootmanager-SPEC := bootmanager.spec
229 IN_MYPLC += bootmanager
232 # pypcilib : used in bootcd
234 pypcilib-MODULES := pypcilib
235 pypcilib-SPEC := pypcilib.spec
237 IN_BOOTCD += pypcilib
242 bootcd-MODULES := BootCD build
243 bootcd-SPEC := bootcd.spec
244 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
245 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
246 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
247 bootcd-RPMDATE := yes
252 # vserver : reference image for slices
254 vserver-MODULES := VserverReference build
255 vserver-SPEC := vserver-reference.spec
256 # Package must be built as root
257 vserver-RPMBUILD := sudo bash ./rpmbuild.sh
258 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
259 vserver-DEPEND-FILES := RPMS/yumgroups.xml
260 vserver-RPMDATE := yes
262 IN_BOOTSTRAPFS += vserver
267 bootstrapfs-MODULES := BootstrapFS build
268 bootstrapfs-SPEC := bootstrapfs.spec
269 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
270 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
271 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
272 bootstrapfs-RPMDATE := yes
274 IN_MYPLC += bootstrapfs
279 # all rpms resulting from packages marked as being in bootstrapfs and vserver
280 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
281 # replace space with +++ (specvars cannot deal with spaces)
283 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
285 noderepo-MODULES := BootstrapFS
286 noderepo-SPEC := noderepo.spec
287 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
288 # package requires all regular packages
289 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
290 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
291 #export rpm list to the specfile
292 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
293 noderepo-RPMDATE := yes
298 # MyPLC native : lightweight packaging, dependencies are yum-installed in a vserver
300 myplc-native-MODULES := MyPLC build
301 myplc-native-SPEC := myplc-native.spec
302 # Package must be built as root
303 myplc-native-RPMBUILD := sudo bash ./rpmbuild.sh
304 myplc-native-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
308 ## # myplc : old-fashioned, chroot-based packaging
310 ## myplc-MODULES := MyPLC build
311 ## myplc-SPEC := myplc.spec
312 ## # Package must be built as root
313 ## myplc-RPMBUILD := sudo bash ./rpmbuild.sh
314 ## # myplc may require all packages
315 ## myplc-DEPEND-PACKAGES := $(IN_MYPLC)
316 ## myplc-DEPEND-FILES := RPMS/yumgroups.xml myplc-release
317 ## myplc-RPMDATE := yes
320 # myplc-docs only contains docs for PLCAPI and NMAPI, but
321 # we still need to pull MyPLC, as it is where the specfile lies,
322 # together with the utility script docbook2drupal.sh
323 myplc-docs-MODULES := MyPLC PLCAPI NodeManager
324 myplc-docs-SPEC := myplc-docs.spec