Changeset 596 in MondoRescue
- Timestamp:
- May 30, 2006, 10:50:31 PM (18 years ago)
- Location:
- branches/stable
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/distributions/rpm/mindi.spec
r564 r596 52 52 53 53 %files 54 %config(noreplace) %{_sysconfdir}/mindi55 54 %config(noreplace) %{_sysconfdir}/mindi/deplist.txt 56 55 %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log -
branches/stable/mondo-doc/distributions/rpm/mondo-doc.spec
r568 r596 3 3 # 4 4 5 # if mandriva official build (rpm --with is_official) 6 %{?is_official:%define rel %{mkrel} %{mrel}}%{!?is_official:%define rel %{mrel}} 7 %define rel RRR 5 %define mrel RRR 8 6 %define tag TTT 9 7 … … 13 11 Name: mondo-doc 14 12 Version: VVV 15 Release: %{ rel}13 Release: %{mrel} 16 14 License: GPL 17 15 Group: GRP -
branches/stable/tools/build2pkg
r574 r596 77 77 echo "Generating $p RPMS" 78 78 cd SPECS 79 tar xfz $src $pv/distributions/$ ddir/$p.spec80 mv $pv/distributions/$ ddir/$p.spec .79 tar xfz $src $pv/distributions/${ddir}-$dver/$p.spec 80 mv $pv/distributions/${ddir}-$dver/$p.spec . 81 81 rm -rf $pv 82 rm -rf ${TOPBUILDDIR}/RPMS/${ar}/* 83 rm -rf ${TOPBUILDDIR}/SRPMS/* 82 84 83 85 rpmbuild -ba $p.spec 2> $log 1> $log 86 egrep '^Wrote:' $log 84 87 if [ $? != 0 ]; then 85 88 cat $log 86 89 status=-1 87 90 fi 91 rm -rf ${TOPBUILDDIR}/BUILD/* 88 92 cd .. 89 93 elif [ _"$dtype" = _"ebuild" ]; then 90 94 log=/tmp/$p-gentoo.log 91 95 ln -sf $src . 92 tar xfz $src $pv/distributions/$ ddir/$p-${VER}-r$TAG.ebuild96 tar xfz $src $pv/distributions/${ddir}-$dver/$p-${VER}-r$TAG.ebuild 93 97 if [ _"`grep $TOPBUILDDIR/portage /etc/make.conf`" = _"" ]; then 94 98 echo "Adding $TOPBUILDDIR/portage to /etc/make.conf" … … 97 101 98 102 mkdir -p ${TOPBUILDDIR}/portage/sys-apps/$p 99 mv $pv/distributions/$ ddir/$p-${VER}-r$TAG.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p103 mv $pv/distributions/${ddir}-$dver/$p-${VER}-r$TAG.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p 100 104 rm -rf $pv 101 105 -
branches/stable/tools/build2qemu
r589 r596 39 39 if [ _"$1" == _"" ]; then 40 40 export VMS=`cat ${TOOLHOME}/DISTROS` 41 single=0 41 42 else 42 export VMS="$1" 43 export VMS="$*" 44 single=1 43 45 fi 44 46 … … 52 54 export TOOLHOME=$TOOLHOME 53 55 54 $TOOLHOME/build2pkg $LAST 55 $TOOLHOME/pkg2ftp 56 $TOOLHOME/build2pkg $LAST < /dev/null 57 $TOOLHOME/pkg2ftp $LAST 56 58 EOF 57 59 chmod 755 $TMP/mkmondo 58 60 59 $TOOLHOME/files2ftp 61 if [ $single -eq 0 ]; then 62 $TOOLHOME/file2ftp 63 fi 60 64 cd $TOOLHOME/.. 61 65 tar cfz $TMP/mkmondo.tar.gz $TOOLHOME $TMP/mkmondo $TOPDIR/${VER}-$TAG … … 68 72 exit -1 69 73 fi 74 export sp=2222 70 75 ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu 71 export sp=222272 76 if [ $? -ne 0 ]; then 73 77 # Virtual machine alreday started -
branches/stable/tools/distro-env
r590 r596 87 87 dfam="redhat" 88 88 dtype="rpm" 89 dver =`echo ${dver} | sed "s/\.//"`89 dver1=`echo ${dver} | sed "s/\.//"` 90 90 if [ $ddir = "fedora" ]; then 91 suf=".fc${dver }"91 suf=".fc${dver1}" 92 92 elif [ $ddir = "redhat" ]; then 93 suf=".rh${dver }"93 suf=".rh${dver1}" 94 94 else 95 suf=".rhel${dver }"95 suf=".rhel${dver1}" 96 96 fi 97 97 BUILDDIR=${TOPDIR}/SPECS -
branches/stable/tools/pkg2mdv
r594 r596 70 70 EOF 71 71 chmod 755 /tmp/mkmondo 72 #scp -p ${spkg} /tmp/mkmondo ${ACCOUNT}:72 scp -p ${spkg} /tmp/mkmondo ${ACCOUNT}: 73 73 scp -p /tmp/mkmondo ${ACCOUNT}: 74 74 echo "Packages rebuild on ${DSTNODE}" -
branches/stable/tools/qemu-vm.txt
r572 r596 40 40 41 41 Créer compte bruno avec répertoires nécéssaires + env necessaire 42 useradd bruno 42 mkdir /users 43 useradd bruno -d /users/bruno 43 44 passwd bruno 44 45 -
branches/stable/tools/svn2build
r594 r596 62 62 EOF 63 63 64 mkdir -p $dest/distributions/$ddir 64 mkdir -p $dest/distributions/$ddir $dest/distributions/${ddir}-$dver 65 65 if [ "$dtype" = "rpm" ]; then 66 66 if [ -f $dest/distributions/$ddir/spec.m4 ]; then … … 73 73 fi 74 74 echo "Using $inc customization to build SPEC file" 75 m4 /tmp/mondorescue.mc $inc $dest/distributions/rpm/$p.spec > $dest/distributions/$ ddir/$p.spec75 m4 /tmp/mondorescue.mc $inc $dest/distributions/rpm/$p.spec > $dest/distributions/${ddir}-$dver/$p.spec 76 76 77 77 if [ -f $dest/distributions/$ddir/changelog ]; then … … 86 86 echo "Using $log customization to build changelog file" 87 87 ddate=`LANG=C ; date "+%a %b %d %Y"` 88 cat > $dest/distributions/$ ddir/$p.changelog.new << EOF88 cat > $dest/distributions/${ddir}-$dver/$p.changelog.new << EOF 89 89 * $ddate Bruno Cornec <bruno@mondorescue.org> VVV-RRR 90 90 - Updated to VVV-r${REVISION} 91 91 92 92 EOF 93 cat $log >> $dest/distributions/$ ddir/$p.changelog.new94 m4 /tmp/mondorescue.mc $dest/distributions/$ ddir/$p.changelog.new >> $dest/distributions/$ddir/$p.spec95 rm -f $dest/distributions/$ ddir/$p.changelog.new93 cat $log >> $dest/distributions/${ddir}-$dver/$p.changelog.new 94 m4 /tmp/mondorescue.mc $dest/distributions/${ddir}-$dver/$p.changelog.new >> $dest/distributions/${ddir}-${dver}/$p.spec 95 rm -f $dest/distributions/${ddir}-$dver/$p.changelog.new 96 96 97 97 elif [ "$dtype" = "ebuild" ]; then 98 m4 /tmp/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/$ ddir/$p-$v-r$TAG.ebuild98 m4 /tmp/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/${ddir}-$dver/$p-$v-r$TAG.ebuild 99 99 elif [ "$dtype" = "deb" ]; then 100 100 # To be developped
Note:
See TracChangeset
for help on using the changeset viewer.