BUILDINSTDIR= $(shell $(CONFIG_SHELL) ) BUILDINSTALL = buildinstall #KERNSOURCE = /misc/pbuild/SGI_RH KERNSOURCE = /misc/build1/SGI2 ANACONDA_SOURCE = /misc/build1/SGI RH_ISO_SOURCE = /misc/xfs2/psyche #RH_ISO_SOURCE = ../psyche BOOTGEN = /misc/xfs2/PSYCHEinst/bootGen CMD_SOURCE = /misc/xfs2/XFS/xfs-cmds_2.4.x-xfs-r1.2 KERNVERSION = 2.4.18-18SGI_XFS_1.2.0 CDVERS = "1031690066.345824\nPsyche 8.0\ni386\n6\nRedHat/base\nRedHat/RPMS\nRedHat/pixmaps\n" MKISOFS = mkisofs IMPLANTISOMD5 = /usr/lib/anaconda-runtime/implantisomd5 ISO = xfs-`date "+%b%d-%H"`.iso UPDATEIMG = updates-`date "+%b%d-%H"`.img LOOPDEV = /dev/loop5 COMMANDS = xfsprogs xfsdump acl dmapi attr COMMANDRPMS = attr libattr-devel libattr \ xfsprogs xfsprogs-devel xfsdump \ acl libacl-devel libacl \ dmapi dmapi-devel up_kernel: -rm -f genhdlist/sgi_disc/RedHat/RPMS/kernel-*2.4.18* -rm -f genhdlist/disc?/RedHat/RPMS/kernel-*2.4.18* -rm -f bootGen/RedHat/RPMS/kernel-*2.4.18* rsync -v ${KERNSOURCE}/RPMS/i?86/kernel-*${KERNVERSION}* genhdlist/sgi_disc/RedHat/RPMS/ rsync -v ${KERNSOURCE}/RPMS/athlon/kernel-*${KERNVERSION}* genhdlist/sgi_disc/RedHat/RPMS/ (cd bootGen/RedHat/RPMS; ln -s ../../../genhdlist/sgi_disc/RedHat/RPMS/kernel-BOOT-${KERNVERSION}* .) ls -l genhdlist/sgi_disc/RedHat/RPMS/ -rm -f sgiSRPMS/SRPMS/kernel-*2.4.18* rsync -v ${KERNSOURCE}/SRPMS/kernel-${KERNVERSION}* sgiSRPMS/SRPMS/ ls -l sgiSRPMS/SRPMS/ up_cmds: -for d in $(COMMANDRPMS); do \ rm -f genhdlist/sgi_disc/RedHat/RPMS/*$$d-*.i?86.rpm; \ rm -f genhdlist/disc?/RedHat/RPMS/*$$d-*i?86.rpm; \ rm -f bootGen/RedHat/RPMS/*$$d-*i?86.rpm; \ rm -f sgiSRPMS/SRPMS/*$$d-*.src.rpm; \ done for d in $(COMMANDS); do \ rsync -v ${CMD_SOURCE}/$$d/build/rpm/*$$d-*.i?86.rpm genhdlist/sgi_disc/RedHat/RPMS/; \ rsync -v ${CMD_SOURCE}/$$d/build/rpm/*$$d-*.src.rpm sgiSRPMS/SRPMS/; \ (cd bootGen/RedHat/RPMS; ln -s ../../../genhdlist/sgi_disc/RedHat/RPMS/*$$d-*.i?86.rpm .); \ ls -l bootGen/RedHat/RPMS/*$$d-*i?86.rpm; \ done # -rm sgiSRPMS/SRPMS/quota-*.src.rpm # -rm genhdlist/sgi_disc/RedHat/RPMS/quota-*.i?86.rpm # rsync -v ${CMD_SOURCE}/../../x2.4-xfs-r1.0/RPMS/*/quota-*.i?86.rpm genhdlist/sgi_disc/RedHat/RPMS/ # rsync -v ${CMD_SOURCE}/../../x2.4-xfs-r1.0/SRPMS/quota-*.src.rpm sgiSRPMS/SRPMS/ ls -l genhdlist/sgi_disc/RedHat/RPMS/ sgiSRPMS/SRPMS/ up_genhdlist: anaconda-xfs/utils/genhdlist --withnumbers \ --hdlist bootGen/RedHat/base/hdlist \ `pwd`/genhdlist/disc1 \ `pwd`/genhdlist/disc2 \ `pwd`/genhdlist/disc3 \ `pwd`/genhdlist/disc4 \ `pwd`/genhdlist/disc5 \ `pwd`/genhdlist/sgi_disc up_genhdlist-neworder: anaconda-xfs/utils/genhdlist --withnumbers \ --hdlist bootGen/RedHat/base/hdlist \ --fileorder anaconda-xfs/scripts/pkgorder-modified \ `pwd`/genhdlist/disc1 \ `pwd`/genhdlist/disc2 \ `pwd`/genhdlist/disc3 \ `pwd`/genhdlist/disc4 \ `pwd`/genhdlist/disc5 \ `pwd`/genhdlist/sgi_disc #pkgorder-default: # anaconda/anaconda-xfs/scripts/pkgorderHERE \ # `pwd`/bootGen i386 > anaconda/anaconda-xfs/scripts/pkgorder-default # implantisomd5: isofs $(IMPLANTISOMD5) -f ./$(ISO) isofs: $(MKISOFS) -V "SGI XFS 1.2" \ -P SGI -p "xfs-masters@xxxxxxxxxxx" \ -A "SGI Linux XFS 1.2 Installer" \ -boot-load-size 4 \ -boot-info-table \ -no-emul-boot \ -b isolinux/isolinux.bin \ -c isolinux/boot.cat \ -l -f -r -R -J -V -T \ -o ./$(ISO) sgiInstall up_anaconda: -rm -f genhdlist/sgi_disc/RedHat/RPMS/anaconda-* -rm -f sgiSRPMS/SRPMS/anaconda-* -rm -f bootGen/RedHat/RPMS/anaconda-*.rpm -rm -f genhdlist/disc?/RedHat/RPMS/anaconda-*.rpm rsync -v ${ANACONDA_SOURCE}/RPMS/*/anaconda-*XFS* genhdlist/sgi_disc/RedHat/RPMS/ rsync -v ${ANACONDA_SOURCE}/SRPMS/anaconda-*XFS* sgiSRPMS/SRPMS/ (cd bootGen/RedHat/RPMS; ln -s ../../../genhdlist/sgi_disc/RedHat/RPMS/anaconda-* .) buildimg: (cd anaconda-xfs/scripts; ./buildinstall --comp i386 --release SGI-XFS ${BOOTGEN} ) cdlinks: -mkdir -p sgiInstall/RedHat -(cd sgiInstall; ln -s ../sgiSRPMS/SRPMS .; ln -s ../bootGen/dosutils . ; \ ln -s ../bootGen/images . ; ln -s ../bootGen/isolinux . ) -(cd sgiInstall/RedHat; ln -s ../../genhdlist/sgi_disc/RedHat/RPMS . ; \ ln -s ../../bootGen/RedHat/base . ) (cd sgiInstall; printf ${CDVERS} > .discinfo) updatedisk: /sbin/modprobe loop dd if=/dev/zero of=anaconda/updates/$(UPDATEIMG) bs=1k count=1440 /sbin/losetup $(LOOPDEV) anaconda/updates/$(UPDATEIMG) /sbin/mke2fs $(LOOPDEV) 1440 mkdir anaconda/updates/foo mount -t ext2 -o loop anaconda/updates/$(UPDATEIMG) anaconda/updates/foo cp anaconda/updates/*.py anaconda/updates/foo umount anaconda/updates/foo rmdir anaconda/updates/foo /sbin/losetup -d $(LOOPDEV) mkdirs: -mkdir -p genhdlist/sgi_disc/RedHat/RPMS -mkdir -p genhdlist/disc1/RedHat/RPMS -mkdir -p genhdlist/disc2/RedHat/RPMS -mkdir -p genhdlist/disc3/RedHat/RPMS -mkdir -p genhdlist/disc4/RedHat/RPMS -mkdir -p genhdlist/disc5/RedHat/RPMS -mkdir -p sgiSRPMS/SRPMS/ seedbootgen: -mkdir -p bootGen/RedHat/RPMS -mkdir -p bootGen/images -mkdir -p bootGen/RedHat/base -mkdir -p bootGen/dosutils (cd bootGen/RedHat/RPMS;rm -f *.rpm; ln -s ${RH_ISO_SOURCE}/disc?/RedHat/RPMS/*.rpm .) (cd genhdlist/disc1/RedHat/RPMS;rm -f *.rpm; ln -s ${RH_ISO_SOURCE}/disc1/RedHat/RPMS/*.rpm .) (cd genhdlist/disc2/RedHat/RPMS;rm -f *.rpm; ln -s ${RH_ISO_SOURCE}/disc2/RedHat/RPMS/*.rpm .) (cd genhdlist/disc3/RedHat/RPMS;rm -f *.rpm; ln -s ${RH_ISO_SOURCE}/disc3/RedHat/RPMS/*.rpm .) cp ${RH_ISO_SOURCE}/disc1/RedHat/base/comps.rpm bootGen/RedHat/base/ (cd bootGen/RedHat/base; ln -s ../../../compsXFS.xml comps.xml)