Changeset 753 in MondoRescue for branches/stable
- Timestamp:
- Aug 6, 2006, 1:43:13 PM (18 years ago)
- Location:
- branches/stable/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/build2pkg
r733 r753 55 55 src=${TOPDIR}/${VER}-$TAG/$p-[1-9st]*.tar.gz 56 56 pv=`basename $src .tar.gz` 57 PVER=`echo $pv | sed "s|^$p-||" | cut -d- -f1` 57 58 58 59 if [ _"$dtype" = _"rpm" ]; then … … 77 78 echo "Generating $p RPMS" 78 79 cd SPECS 79 tar xfz $src $p-${ VER}/distributions/${ddir}-$dver/$p.spec80 mv $p-${ VER}/distributions/${ddir}-$dver/$p.spec .81 rm -rf $p-${ VER}80 tar xfz $src $p-${PVER}/distributions/${ddir}-$dver/$p.spec 81 mv $p-${PVER}/distributions/${ddir}-$dver/$p.spec . 82 rm -rf $p-${PVER} 82 83 83 84 rpmbuild -ba $p.spec 2> $log 1> $log … … 97 98 elif [ _"$dtype" = _"ebuild" ]; then 98 99 log=$TMP/$p-gentoo.log 99 tar xfz $src $p-${ VER}/distributions/${ddir}-$dver/$p-${VER}.ebuild100 tar xfz $src $p-${PVER}/distributions/${ddir}-$dver/$p-${VER}.ebuild 100 101 if [ _"`grep $TOPBUILDDIR/portage /etc/make.conf`" = _"" ]; then 101 102 echo "Adding $TOPBUILDDIR/portage to /etc/make.conf" … … 104 105 105 106 mkdir -p ${TOPBUILDDIR}/portage/sys-apps/$p 106 mv $p-${ VER}/distributions/${ddir}-$dver/$p-${VER}.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p/$p-${VER}.ebuild107 rm -rf $p-${ VER}107 mv $p-${PVER}/distributions/${ddir}-$dver/$p-${PVER}.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p/$p-${PVER}.ebuild 108 rm -rf $p-${PVER} 108 109 109 110 cd ${TOPBUILDDIR}/portage/sys-apps/$p 110 ebuild $p-${ VER}.ebuild digest 2> $log 1> $log111 ebuild $p-${PVER}.ebuild digest 2> $log 1> $log 111 112 if [ $? != 0 ]; then 112 113 cat $log 113 114 status=-1 114 115 fi 115 ebuild $p-${ VER}.ebuild install 2>> $log 1>> $log116 ebuild $p-${PVER}.ebuild install 2>> $log 1>> $log 116 117 if [ $? != 0 ]; then 117 118 cat $log … … 123 124 cd $TOPBUILDDIR 124 125 tar xfz $src 125 cd ${p}-${ VER}126 cd ${p}-${PVER} 126 127 # point to the right debian conf 127 128 ln -s distributions/${ddir}-$dver debian -
branches/stable/tools/qemu-vm.txt
r629 r753 1 Booting CD1 #Booting CD 2 2 qemu-img create -f qcow image.qemu 3G 3 3 qemu -cdrom /dev/hdc -m 256 -boot d image.qemu 4 4 5 5 # RPM based : urpmi, yum install, yast2 6 neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man patch 6 urpmi neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gvim/vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man patch mindi mondo 7 7 8 8 # gentoo 9 Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo9 #Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo 10 10 emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue 11 11 12 Changing CD during install:12 #Changing CD during install: 13 13 Ctrl-Alt-2 14 14 eject cdrom … … 16 16 change cdrom /dev/cdrom 17 17 18 Boot single user pour change passwd root 19 Clavier fr: 18 # Slack: put loadkeys fr in /etc/rc.d/rc.keymap 20 19 21 loadkeys fr 22 perl -pi -e 's/"us"/"fr"/' /etc/sysconfig/keyboard 23 perl -pi -e 's/"us"/"fr"/' /etc/X11/XF86Config 24 perl -pi -e 's/"us"/"fr"/' /etc/X11/xorg.conf 25 Slack: put loadkeys fr in /etc/rc.d/rc.keymap 26 27 Conf IP: 28 Ajout machine dans DNS interne (/usr/local/etc/named/etc/db.mondo.*) 29 Reload named 30 31 Clé SSH: 32 Ajout clé ssh pour root: 20 #Clé SSH: 21 # Ajout clé ssh pour root: 33 22 mkdir /root/.ssh 34 23 chmod 700 /root/.ssh … … 36 25 chmod 600 /root/.ssh/authorized_keys 37 26 38 Install packages manquant pour mondo: 39 afio buffer 40 41 Créer compte bruno avec répertoires nécéssaires + env necessaire 27 #Créer compte bruno avec répertoires nécéssaires + env necessaire 42 28 mkdir /users 43 29 useradd bruno -d /users/bruno … … 60 46 chmod 700 ~/.ssh 61 47 scp -p victoria2.home.musique-ancienne.org:.ssh/id'*' ~/.ssh 48 # Passwd asked above 62 49 cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys 63 50 chmod 600 ~/.ssh/authorized_keys … … 68 55 EOF 69 56 70 rebuild paquets necessaires mondo:57 #rebuild paquets necessaires mondo: 71 58 wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm 72 59 wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm 73 60 rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm 74 mkdir -p build/BUILD build/RPMS/i386 61 mkdir -p build/BUILD build/RPMS/i386 build/SRPMS 75 62 rpmbuild -ba build/SPECS/afio.spec 76 63 rpmbuild -ba build/SPECS/buffer.spec 77 64 chmod 644 build/RPMS/i386/* 78 scp -p build/RPMS/i 386/afio-[0-9]* build/RPMS/i386/buffer-[0-9]* ftp.mondorescue.org:/mondo/ftp/rhel/3/65 scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* ftp.mondorescue.org:/mondo/ftp/rhel/3/ 79 66 80 67 81 68 root: 82 rpm -ivh ~bruno/RPMS/RPMS/i386/afio-[0-9]* ~bruno/RPMS/RPMS/i386/buffer-[0-9]* 69 rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]* 70 # In case 71 scp bruno@10.0.2.2:/usr/bin/man2dvi /usr/local/bin 83 72 84 pour gentoo73 #for gentoo 85 74 chown bruno /etc/make.conf 86 75 bruno in portage group -
branches/stable/tools/svn2build
r731 r753 136 136 # Finally creates the tar files 137 137 echo "Creating $p tar files" 138 tar cf hz ${DEST}/$p-$v-$TAG.tar.gz $dest138 tar cfphz ${DEST}/$p-$v-$TAG.tar.gz $dest 139 139 #gzip -cd ${DEST}/$p-$v-$TAG.tar.gz | bzip2 -c3 > ${DEST}/$p-$v-$TAG.tar.bz2 140 140 #tar cfhj ${DEST}/$p-$v-$TAG.tar.bz2 $dest
Note:
See TracChangeset
for help on using the changeset viewer.