Rename netboot2 target to netboot
[catalyst.git] / examples / netboot_template.spec
index 11a40da0ffc8e1607971be2623daa53a1bed9b86..4f76b8ff44ba605c05e3356342bc114ef5eeaedc 100644 (file)
-# generic netboot image specfile
-# used to build a network bootable image
+subarch: mips3
+version_stamp: 2006.0
+target: netboot
+rel_type: default
+profile: uclibc/mips
+snapshot: 20060107
+source_subpath: default/stage3-mips-uclibc-mips3-2006.126
 
-# The subarch can be any of the supported catalyst subarches (like athlon-xp).
-# Refer to the catalyst reference manual for suppurted subarches.
-# http://www.gentoo.org/proj/en/releng/catalyst/reference.xml
+# This option specifies the location to a portage overlay that you would like to
+# have used when building this target.
 # example:
-# subarch: athlon-xp
-subarch:
+# portage_overlay: /usr/local/portage
+portage_overlay:
 
-# The version stamp is an identifier for the build.  It can be anything you wish# it to be, but it is usually a date.
-# example:
-# version_stamp: 2005.0
-version_stamp:
+boot/kernel: ip22r4k ip22r5k ip27r10k ip28r10k ip30r10k ip32r5k
+boot/kernel/ip22r4k/sources: =mips-sources-2.6.14.5
+boot/kernel/ip22r5k/sources: =mips-sources-2.6.14.5
+boot/kernel/ip27r10k/sources: =mips-sources-2.6.14.5
+boot/kernel/ip28r10k/sources: =mips-sources-2.6.14.5
+boot/kernel/ip30r10k/sources: =mips-sources-2.6.14.5
+boot/kernel/ip32r5k/sources: =mips-sources-2.6.14.5
 
-# The target specifies what target we want catalyst to do.  For building a
-# netboot image, we use the netboot target.
-# example:
-# target: netboot
-target:
+boot/kernel/ip22r4k/config: /usr/share/genkernel/mips/ip22r4k-2006_0.cf
+boot/kernel/ip22r5k/config: /usr/share/genkernel/mips/ip22r5k-2006_0.cf
+boot/kernel/ip27r10k/config: /usr/share/genkernel/mips/ip27r10k-2006_0.cf
+boot/kernel/ip28r10k/config: /usr/share/genkernel/mips/ip28r10k-2006_0.cf
+boot/kernel/ip30r10k/config: /usr/share/genkernel/mips/ip30r10k-2006_0.cf
+boot/kernel/ip32r5k/config: /usr/share/genkernel/mips/ip32r5k-2006_0.cf
 
-# The rel_type defines what kind of build we are doing.  This is merely another
-# identifier, but it useful for allowing multiple concurrent builds.  Usually,
-# default will suffice.
-# example:
-# rel_type: default
-rel_type:
+boot/kernel/ip22r4k/use: -doc
+boot/kernel/ip22r5k/use: -doc
+boot/kernel/ip27r10k/use: -doc ip27
+boot/kernel/ip28r10k/use: -doc ip28
+boot/kernel/ip30r10k/use: -doc ip30
+boot/kernel/ip32r5k/use: -doc
 
-# This is the system profile to be used by catalyst to build this target.  It is# specified as a relative path from /usr/portage/profiles.
-# example:
-# profile: default-linux/x86/2005.0
-profile:
+boot/kernel/ip22r4k/gk_kernargs: --kernel-cross-compile=mips-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip22r5k/gk_kernargs: --kernel-cross-compile=mips-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip27r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip28r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip30r10k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2
+boot/kernel/ip32r5k/gk_kernargs: --kernel-cross-compile=mips64-unknown-linux-gnu- --makeopts=-j2
 
-# This specifies which snapshot to use for building this target.
-# example:
-# snapshot: 20050324
-snapshot:
+netboot/builddate: 20060107
+netboot/busybox_config: /usr/share/genkernel/mips/nb-busybox.cf
 
-# This specifies where the seed stage comes from for this target,  The path is
-# relative to $clst_sharedir/builds.  The rel_type is also used as a path prefix# for the seed.
-# example:
-# default/stage3-x86-2004.3
-source_subpath:
+netboot/use:
+       -*
+       multicall
+       readline
+       ssl
 
-# These are the hosts used as distcc slaves when distcc is enabled in your
-# catalyst.conf.  It follows the same syntax as distcc-config --set-hosts and
-# is entirely optional.
-# example:
-# distcc_hosts: 127.0.0.1 192.168.0.1
-distcc_hosts:
+netboot/packages:
+       com_err
+       dropbear
+       dvhtool
+       e2fsprogs
+       gcc-mips64
+       jfsutils
+       mdadm
+       nano
+       ncurses
+       openssl
+       popt
+       portmap
+       reiserfsprogs
+       rsync
+       sdparm
+       ss
+       ttcp
+       uclibc
+       util-linux
+       wget
+       xfsprogs
 
-# This is an optional directory containing portage configuration files.  It
-# follows the same syntax as /etc/portage and should be consistent across all
-# targets to minimize problems.
-# example:
-# portage_confdir: /etc/portage
-portage_confdir:
+netboot/packages/com_err/files:
+       /lib/libcom_err.so
+       /lib/libcom_err.so.2
+       /lib/libcom_err.so.2.1
+       /usr/bin/compile_et
+       /usr/lib/libcom_err.so
 
-# This option specifies the location to a portage overlay that you would like to
-# have used when building this target.
-# example:
-# portage_overlay: /usr/local/portage
-portage_overlay:
+netboot/packages/dropbear/files:
+       /usr/bin/dbclient
+       /usr/bin/dbscp
+       /usr/bin/dropbearconvert
+       /usr/bin/dropbearkey
+       /usr/bin/dropbearmulti
+       /usr/sbin/dropbear
 
-# This allows the optional directory containing the output packages for
-# catalyst.  Mainly used as a way for different spec files to access the same
-# cache directory.  Default behavior is for this location to be autogenerated
-# by catalyst based on the spec file.
-# example:
-# pkgcache_path: /tmp/packages
-pkgcache_path:
+netboot/packages/dvhtool/files:
+       /usr/sbin/dvhtool
 
-# This allows the optional directory containing the output packages for kernel
-# builds.  Mainly used as a way for different spec files to access the same
-# cache directory.  Default behavior is for this location to be autogenerated
-# by catalyst based on the spec file.
-# example:
-# kerncache_path: /tmp/kernel
-kerncache_path:
+netboot/packages/e2fsprogs/files:
+       /bin/chattr
+       /bin/lsattr
+       /bin/uuidgen
+       /lib/libblkid.so
+       /lib/libblkid.so.1
+       /lib/libblkid.so.1.0
+       /lib/libe2p.so
+       /lib/libe2p.so.2
+       /lib/libe2p.so.2.3
+       /lib/libext2fs.so
+       /lib/libext2fs.so.2
+       /lib/libext2fs.so.2.4
+       /lib/libuuid.so
+       /lib/libuuid.so.1
+       /lib/libuuid.so.1.2
+       /sbin/badblocks
+       /sbin/blkid
+       /sbin/debugfs
+       /sbin/dumpe2fs
+       /sbin/e2fsck
+       /sbin/e2image
+       /sbin/e2label
+       /sbin/filefrag
+       /sbin/findfs
+       /sbin/fsck
+       /sbin/fsck.ext2
+       /sbin/fsck.ext3
+       /sbin/logsave
+       /sbin/mke2fs
+       /sbin/mkfs.ext2
+       /sbin/mkfs.ext3
+       /sbin/resize2fs
+       /sbin/tune2fs
+       /usr/lib/e2initrd_helper
+       /usr/lib/libblkid.so
+       /usr/lib/libe2p.so
+       /usr/lib/libext2fs.so
+       /usr/lib/libuuid.so
+       /usr/sbin/mklost+found
 
-# This option tells catalyst which kernel sources to merge for building this
-# image.  This can use normal portage atoms to specify a specific version.
-# example:
-# netboot/kernel/sources: gentoo-sources
-netboot/kernel/sources:
+netboot/packages/jfsutils/files:
+       /sbin/fsck.jfs
+       /sbin/jfs_fsck
+       /sbin/jfs_mkfs
+       /sbin/jfs_tune
+       /sbin/mkfs.jfs
 
-# This option is the full path and filename to a kernel .config file that is
-# used by genkernel to compile the kernel for this image.
-# example:
-# netboot/kernel/config: /tmp/2.6.11-netboot.config
-netboot/kernel/config:
+netboot/packages/mdadm/files:
+       /etc/mdadm.conf
+       /sbin/mdadm
 
-# This option sets the USE flags used to build the kernel.  These USE flags are
-# additive from the default USE for the specified profile.
-# example:
-# netboot/kernel/use: ultra1
-netboot/kernel/use:
+netboot/packages/nano/files:
+       /bin/nano
+       /bin/rnano
+       /usr/bin/nano
 
-# This option sets the USE flags with which the optional packages below are
-# built.  Like the kernel USE, they are additive.
-# example:
-# netboot/use:
-netboot/use:
+netboot/packages/ncurses/files:
+       /etc/terminfo
+       /lib/libcurses.so
+       /lib/libncurses.so
+       /lib/libncurses.so.5
+       /lib/libncurses.so.5.4
+       /usr/bin/toe
+       /usr/lib/libcurses.so
+       /usr/lib/libform.so
+       /usr/lib/libform.so.5
+       /usr/lib/libform.so.5.4
+       /usr/lib/libmenu.so
+       /usr/lib/libmenu.so.5
+       /usr/lib/libmenu.so.5.4
+       /usr/lib/libncurses.so
+       /usr/lib/libpanel.so
+       /usr/lib/libpanel.so.5
+       /usr/lib/libpanel.so.5.4
+       /usr/lib/terminfo
+       /usr/share/tabset/std
+       /usr/share/tabset/stdcrt
+       /usr/share/tabset/vt100
+       /usr/share/tabset/vt300
+       /usr/share/terminfo/a/ansi
+       /usr/share/terminfo/d/dumb
+       /usr/share/terminfo/e/eterm
+       /usr/share/terminfo/l/linux
+       /usr/share/terminfo/r/rxvt
+       /usr/share/terminfo/s/screen
+       /usr/share/terminfo/s/sun
+       /usr/share/terminfo/v/vt100
+       /usr/share/terminfo/v/vt102
+       /usr/share/terminfo/v/vt200
+       /usr/share/terminfo/v/vt220
+       /usr/share/terminfo/v/vt52
+       /usr/share/terminfo/x/xterm
+       /usr/share/terminfo/x/xterm-color
+       /usr/share/terminfo/x/xterm-xfree86
 
-# The netboot target builds busybox for its root filesystem.  This option is
-# where you specify the full path and filename to your busybox configuration.
-# example
-# netboot/busybox_config: /tmp/busybox.config
-netboot/busybox_config:
+netboot/packages/openssl/files:
+       /usr/lib/libcrypto.so
+       /usr/lib/libcrypto.so.0
+       /usr/lib/libcrypto.so.0.9.7
+       /usr/lib/libssl.so
+       /usr/lib/libssl.so.0
+       /usr/lib/libssl.so.0.9.7
 
-# This is the full path and filename to the tarball to use as the base for the
-# netboot image.
-# example:
-# netboot/base_tarball: /usr/lib/catalyst/netboot/netboot-base.tar.bz2
-netboot/base_tarball:
+netboot/packages/popt/files:
+       /usr/lib/libpopt.so
+       /usr/lib/libpopt.so.0
+       /usr/lib/libpopt.so.0.0.0
 
-# These are the packages that will be built for your netboot image using the USE
-# flags set in netboot/use.  These package names are also labels used later when
-# determining what files to copy into your netboot image.
-# example:
-# netboot/packages: raidtools xfsprogs e2fsprogs reiserfsprogs
+netboot/packages/portmap/files:
+       /sbin/portmap
 
-# This is where you tell catalyst which files from each package to copy into the
-# netboot image.
-# example:
-# netboot/packages/raidtools/files: /sbin/raidstart /sbin/mkraid /sbin/detect_multipath /sbin/raidreconf /sbin/raidstop /sbin/raidhotadd /sbin/raidhotremove /sbin/raidsetfaulty /sbin/raid0run
-netboot/packages/raidtools/files:
+netboot/packages/reiserfsprogs/files:
+       /sbin/fsck.reiserfs
+       /sbin/mkfs.reiserfs
+       /sbin/mkreiserfs
+       /sbin/reiserfsck
+       /sbin/reiserfstune
 
-# Here is the same thing for xfsprogs.
-# example:
-# netboot/packages/xfsprogs/files: /sbin/mkfs.xfs /sbin/xfs_repair /bin/xfs_check
-netboot/packages/xfsprogs/files:
+netboot/packages/rsync/files:
+       /usr/bin/rsync
 
-# Here is the same thing for e2fsprogs.
-# example:
-# netboot/packages/e2fsprogs/files: /sbin/mke2fs
-netboot/packages/e2fsprogs/files:
+netboot/packages/sdparm/files:
+       /usr/bin/sdparm
 
-# Here is the same thing for reiserfsprogs.
-# example:
-# netboot/packages/reiserfsprogs/files: /sbin/mkreiserfs
-netboot/packages/reiserfsprogs/files:
+netboot/packages/ss/files:
+       /lib/libss.so
+       /lib/libss.so.2
+       /lib/libss.so.2.0
+       /usr/bin/mk_cmds
+       /usr/lib/libss.so
 
-# This is a list of any other files, not belonging to the above packages, that
-# you would wish to have copied into your netboot image.
-# example:
-# netboot/extra_files: /lib/libresolv.so.2 /lib/libnss_compat.so.2 /lib/libnss_dns.so.2 /lib/libnss_files.so.2 /sbin/consoletype
-netboot/extra_files:
+netboot/packages/ttcp/files:
+       /usr/bin/ttcp
+
+netboot/packages/uclibc/files:
+       /etc/ld.so.cache
+       /lib/ld-uClibc-0.9.27.so
+       /lib/ld-uClibc.so.0
+       /lib/libc.so.0
+       /lib/libcrypt-0.9.27.so
+       /lib/libcrypt.so.0
+       /lib/libdl-0.9.27.so
+       /lib/libdl.so.0
+       /lib/libm-0.9.27.so
+       /lib/libm.so.0
+       /lib/libnsl-0.9.27.so
+       /lib/libnsl.so.0
+       /lib/libpthread-0.9.27.so
+       /lib/libpthread.so.0
+       /lib/libresolv-0.9.27.so
+       /lib/libresolv.so.0
+       /lib/librt-0.9.27.so
+       /lib/librt.so.0
+       /lib/libthread_db-0.9.27.so
+       /lib/libthread_db.so.1
+       /lib/libuClibc-0.9.27.so
+       /lib/libutil-0.9.27.so
+       /lib/libutil.so.0
+       /sbin/ldconfig
+       /usr/bin/getent
+       /usr/bin/ldd
+       /usr/lib/Scrt1.o
+       /usr/lib/crt0.o
+       /usr/lib/crt1.o
+       /usr/lib/crti.o
+       /usr/lib/crtn.o
+       /usr/lib/libc.so
+       /usr/lib/libcrypt.so
+       /usr/lib/libdl.so
+       /usr/lib/libm.so
+       /usr/lib/libnsl.so
+       /usr/lib/libpthread.so
+       /usr/lib/libresolv.so
+       /usr/lib/librt.so
+       /usr/lib/libthread_db.so
+       /usr/lib/libutil.so
+
+netboot/packages/util-linux/files:
+       /sbin/fdisk
+       /sbin/mkfs
+       /sbin/mkswap
+       /sbin/swapoff
+       /sbin/swapon
+       /usr/bin/ddate
+       /usr/bin/setterm
+       /usr/bin/whereis
+
+netboot/packages/wget/files:
+       /usr/bin/wget
+
+netboot/packages/xfsprogs/files:
+       /bin/xfs_copy
+       /bin/xfs_growfs
+       /bin/xfs_info
+       /lib/libhandle.so
+       /lib/libhandle.so.1
+       /lib/libhandle.so.1.0.3
+       /sbin/fsck.xfs
+       /sbin/mkfs.xfs
+       /sbin/xfs_repair
 
 # Setting the option overrides the location of the pkgcache
 pkgcache_path: