#
# kexec-tools
#
-ifeq "$(DISTRO)" "Fedora"
-ifeq "$(RELEASE)" "4"
+ifeq "$(DISTRONAME)" "fc4"
kexec-tools-MODULES := kexec-tools
kexec-tools-SPEC := kexec-tools.spec
kexec-tools-CVSROOT := :pserver:anon@cvs.planet-lab.org:/cvs
ALL += kexec-tools
IN_BOOTCD += kexec-tools
endif
-endif
#
# madwifi
ALL += madwifi
IN_BOOTSTRAPFS += madwifi
-#
-# iwlwifi-ucode
-#
-iwlwifi-ucode-MODULES := iwlwifi
-iwlwifi-ucode-SPEC := iwlwifi-ucode.spec
-iwlwifi-ucode-BUILD-FROM-SRPM := yes
-ALL += iwlwifi-ucode
-# in the wireless extension
-#IN_BOOTSTRAPFS += iwlwifi-ucode
-
#
# wireless-tools
#
ALL += fprobe-ulog
IN_BOOTSTRAPFS += fprobe-ulog
+#
+# pf2slice
+#
+pf2slice-MODULES := pf2slice
+pf2slice-SPEC := pf2slice.spec
+ALL += pf2slice
+
+
#
# netflow
#
#
# vsys
#
+vsys_support=yes
+ifeq "$(DISTRONAME)" "fc4"
+vsys_support=
+endif
+ifeq "$(DISTRONAME)" "fc6"
+vsys_support=
+endif
+# cannot find the required packages (see devel.pkgs) on centos5
+ifeq "$(DISTRONAME)" "centos5"
+vsys_support=
+endif
+
+ifeq "$(vsys_support)" "yes"
vsys-MODULES := vsys
vsys-SPEC := vsys.spec
-ifeq "$(DISTRO)" "Fedora"
-ifeq "$(RELEASE)" "7"
+IN_BOOTSTRAPFS += vsys
ALL += vsys
endif
-ifeq "$(RELEASE)" "8"
-ALL += vsys
-endif
-endif
#
# PLCAPI
#
# PLCWWW
#
-PLCWWW-MODULES := WWW
+PLCWWW-MODULES := PLCWWW
PLCWWW-SPEC := PLCWWW.spec
ALL += PLCWWW
IN_MYPLC += PLCWWW
+#
+# nodeconfig
+#
+nodeconfig-MODULES := nodeconfig
+nodeconfig-SPEC := nodeconfig.spec
+ALL += nodeconfig
+IN_MYPLC += nodeconfig
+
#
# bootmanager
#
ALL += bootstrapfs
IN_MYPLC += bootstrapfs
+#
+# noderepo
+#
+# all rpms resulting from packages marked as being in bootstrapfs and vserver
+NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
+# replace space with +++ (specvars cannot deal with spaces)
+SPACE=$(subst x, ,x)
+NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
+
+noderepo-MODULES := BootstrapFS
+noderepo-SPEC := noderepo.spec
+noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
+# package requires all regular packages
+noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
+noderepo-DEPEND-FILES := RPMS/yumgroups.xml
+#export rpm list to the specfile
+noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
+ALL += noderepo
+IN_MYPLC += noderepo
+
#
# myplc : initial, chroot-based packaging
#