- Timestamp:
- May 14, 2006, 7:54:15 PM (19 years ago)
- Location:
- branches/stable
- Files:
-
- 1 added
- 8 deleted
- 13 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/distributions/mandriva/spec.m4
r388 r550 2 2 dnl 3 3 dnl SSS is replaced by the source package format 4 define(`SSS', ` %{name}-%{version}.tar.bz2')dnl4 define(`SSS', `ftp://ftp.mondorescue.org/src/%{name}-%{version}.tar.bz2')dnl 5 5 dnl DDD is replaced by the list of dependencies specific to that distro 6 define(`DDD', ` %{addreqb}, which, grep >= 2.5')dnl6 define(`DDD', `, which, grep >= 2.5')dnl 7 7 dnl GRP is replaced by the RPM group of apps 8 8 define(`GRP', `Archiving/Backup')dnl -
branches/stable/mindi/distributions/redhat/spec.m4
r542 r550 2 2 dnl 3 3 dnl SSS is replaced by the source package format 4 define(`SSS', ftp://ftp.mondorescue.org/src/%{name}-%{version}.tgz)dnl4 define(`SSS', `ftp://ftp.mondorescue.org/src/%{name}-%{version}.tgz')dnl 5 5 dnl DDD is replaced by the list of dependencies specific to that distro 6 define(`DDD', %{addreqb}, which, grep >= 2.5)dnl6 define(`DDD', `, which, grep >= 2.5')dnl 7 7 dnl GRP is replaced by the RPM group of apps 8 define(`GRP', Applications/Archiving)dnl8 define(`GRP', `Applications/Archiving')dnl -
branches/stable/mindi/distributions/rpm/mindi.spec
r542 r550 2 2 # $Id$ 3 3 # 4 %define name mindi5 %define version VVV6 4 %define mrel RRR 7 %define src SSS8 %define grp GRP9 %define addreqb bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools10 %define addreq DDD11 %define rel %{mrel}12 5 13 6 Summary: Mindi creates emergency boot disks/CDs using your kernel, tools and modules 14 Name: %name15 Version: %version16 Release: % rel7 Name: mindi 8 Version: VVV 9 Release: %mrel 17 10 License: GPL 18 Group: %{grp}11 Group: GRP 19 12 Url: http://www.mondorescue.org 20 Source: %{src}13 Source: SSS 21 14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) 22 Requires: %{addreq} 23 Epoch: %(echo EEE | cut -d- -f1 | sed "s~M~~") 15 Requires: bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools DDD 24 16 # Not on all systems 25 17 #Conflicts: bonnie++ -
branches/stable/mindi/distributions/suse/spec.m4
r401 r550 2 2 dnl 3 3 dnl SSS is replaced by the source package format 4 define(`SSS', %{name}-%{version}.tgz)dnl4 define(`SSS', `ftp://ftp.mondorescue.org/src/%{name}-%{version}.tgz')dnl 5 5 dnl DDD is replaced by the list of dependencies specific to that distro 6 define(`DDD', %{addreqb}, syslinux)dnl6 define(`DDD', `, syslinux')dnl 7 7 dnl GRP is replaced by the RPM group of apps 8 define(`GRP', Productivity/Archiving/Backup)dnl8 define(`GRP', `Productivity/Archiving/Backup')dnl -
branches/stable/mondo/distributions/mandriva/changelog
r424 r550 9 9 - Add -p option 10 10 11 * Tue May 03 2005 Hugo Rabson <hugorabson@msn.com> 2.04_cvs_2005050312 13 - made mondo more clever about finding its home. Avoids mondo considering14 directories like '/usr/share/doc/momdo' as its home.15 16 * Wed Aug 04 2004 Hugo Rabson <hugorabson@msn.com> 2.0317 18 - test sanity of user-specified tempdir19 - better SLES8 support20 21 * Mon Jun 28 2004 Hugo Rabson <hugorabson@msn.com> 2.0222 23 - instead of using 'dd' to erase partition table, delete existing24 partitions w/ the same call to fdisk that is used to create the25 new partitions; this should avoids locking up the partition table26 - set bootable partition in the above same call to fdisk, for27 the same reason (avoids locking up the partition table)28 - better software RAID support29 - mount ext3 partitions as ext2 when restoring - better for Debian30 - better star, ACL support31 - added ACL, xattr support for afio users32 33 * Sat Jun 26 2004 Hugo Rabson <hugorabson@msn.com> 2.0134 35 - fixed cvs for SuSE systems36 - fixed NTFS backup/restore bug relating to partimagehack37 log file overflow and NTFS v non-NTFS differentiation38 - more reliable extraction of config info from CDs, floppies39 - better support of ISO dirs at restore-time (Conor Daly)40 - fixed spec file for SuSE users41 - added ldconfig to install section42 43 * Sat Jun 19 2004 Hugo Rabson <hugorabson@msn.com> 2.0044 45 - first 2.0 release46 - updated grub-install.patched to support SuSE and Red Hat47 - call 'mt' to set block size to 32K before opening in/out tape48 - updated mondo-prep.c to create each disk's partitions all at once49 (one call per drive) instead of one call to fdisk per partition50 - when extracting cfg file and mountlist from all.tar.gz (tape copy),51 use block size of INTERNAL_TAPE_BLK_SIZE, not TAPE_BLOCK_SIZE52 - added star and rudimentary SELinux support53 - fixed lots of bugs54 - all logging now goes to /var/log/mondo-archive.log, with symlink55 to /tmp/mondo-restore.log for restore-time log-tracking56 - added grub-install.patched57 - removed embleer & other binaries58 - added '-b' to specify block size59 - added '-R' for star support60 61 * Thu Mar 25 2004 Bruno Cornec <Bruno.Cornec@hp.com> 1.7_cvs-2004032562 63 - ia64 fixes64 65 * Fri Nov 07 2003 Joshua Oreman <oremanj@get-linux.org> 1.7_cvs-2003110766 67 - fixed symbolic links for libraries68 - added support for boot/root multi floppies69 70 - added kdelibs as xmondo dependency71 - added xmondo pixmap installation72 - better find_cdrom_device(), to cope w/ multiple CD writers73 - fixed -m and -Vc flags74 - fixed NTFS support!75 - bootable CD uses native, not El Torito, support now76 - removed mondo-makefilelist77 - added 2.6 kernel support78 - if 2.6 kernel, insist that the user specify CD device79 - drop Embleer; insist on ms-sys and parted if Windows partition80 81 * Wed Nov 05 2003 Jesse Keating <jkeating@j2solutions.net> 1.7_cvs-20031105.182 83 - added -devel package84 85 * Tue Nov 04 2003 Jesse Keating <jkeating@j2solutions.net> 1.7_cvs-20031104.186 87 - made xmondo a second package88 - added ability to specify --without xmondo at build time89 90 * Sun Nov 02 2003 Jesse Keating <jkeating@j2solutions.net> 1.7_cvs-20031102.191 92 - Clean up, added spanish translation93 - Set prefix to be /usr94 - added/fixed Requires95 - remove CVS directories prior to building96 97 * Thu Oct 23 2003 Hugo Rabson <hugorabson@msn.com> 1.75_cvs_2003102398 99 - nothing yet100 101 * Wed Oct 22 2003 Hugo Rabson <hugorabson@msn.com> 1.75102 103 - fixed chmod/chown bug (Jens Richter)104 - ask user to confirm NFS mountpoint in Interactive Mode105 - rewritten format_everything() to make sure LVMs, RAIDs and106 regular partitions are prepped in the correct order107 - better magicdev support108 - rewritten external binary caller subroutine109 - DVD support added110 - better backup-time control gui; offer to exclude nfs if appl.111 - fixed multi-tape support112 - re-implemented -D and -J113 - fixed bug in extract_config_file_from_ramdisk() which114 affected tape+floppy users115 - updated is_incoming_block_valid() to make it116 return end-of-tape if >300 flotsam blocks117 - unmount CD-ROM before burning (necessary for RH8/9)118 - fixed some stray assert()'s119 - fixed bug in grub-MR (Christian)120 - make user remove floppy/CD before restoring interactively from tape121 - fixed bug in am_I_in_disaster_recovery_mode()122 - added code to nuke_mode() to make sure NFS123 (backup) share is mounted in Nuke Mode124 - improved tape device detection code125 - better GRUB support126 - better logging of changed bigfiles at compare-time127 - better NTFS support, thanks to partimagehack-static128 - better logging129 - rewrote tape-handling code, breaking compatibility w/ previous versions130 - fixed ISO/CD biggiefile verification bug in mondoarchive131 - fixed bug which stopped boot/compare-time changelist from popping up132 - replaced mondo-makefilelist with C code - faster, cleaner133 - tweaked GUI - better feedback134 135 * Wed May 28 2003 Anonymous <root@rohan> 1.74136 137 - misc fixes (Michael Hanscho's friend)138 - added rudimentary support for SME139 - added better label support140 - fixed biggietime atime/ctime restoration bug 73141 - fixed 'default boot loader' detection bug (Joshua Oreman)142 - use single-threaded make_afioballs_and_images() if FreeBSD143 - fixed mondoarchive -Vi multi-CD verify bug (Tom Mortell)144 - superior get_phys_size_of_drive() (Joshua Oreman)145 - fixed RAID-related bug in where_is_root_mounted()146 - ISO tweaks147 - fixed silly bug in load_filelist() which stopped148 funny German filenames from being handled properly149 - fixed various calls to popup_and_get_string()150 - fixed spec file151 - reject -E /152 - added partimagehack to the mix153 154 * Tue May 20 2003 Anonymous <root@rohan> 1.73155 156 - mark devices as bootable _after_ unmounting them157 - resolve boot device (-f) if softlink158 - post_param_configuration() --- store iso-dev and isodir159 - added post-nuke-sample.tgz to package160 - Nuke Mode now checks mountlist against hardware; offer user161 opportunity to edit mountlist if insane; if user declines, abort162 - added lots of assert()'s and other checks163 - ran code thru Valgrind to catch & fix some memory leaks164 - made mondo-restore.c smaller by moving some subroutines to165 common/libmondo-raid.c and mondorestore/mondo-rstr-compare.c166 - added '-Q' to let user test mondoarchive's ability to find167 their boot loader and type168 - improved which_boot_loader()169 - when burning or comparing to a CD, defeat autorun if it is170 running, to avoid confusing mondoarchive and the user171 - if original backup media no longer available at boot-time172 then offer user chance to choose another media source173 - when booting, type 'nuke noresize' to nuke w/o resizing174 mountlist to fill your drives175 - add 'textonly' when booting, to avoid using Newt gui176 - run nice(20) to prioritize mondoarchive at start177 - don't pause and wait for next blank CD at backup-time178 unless necessary (e.g. previous CD has not been removed)179 - get_phys_size_of_drive() --- better support of older drives180 - don't eject if "donteject" is in kernel's command line181 - cleaned up segfault-handling182 - added Conor's strip_path() to improve file list display183 - added Herman Kuster's multi-level bkp patch184 - better boot-time screen/message185 - added Joshua Oreman's FreeBSD patches x3186 - fixed interactive/textonly support187 - fixed support for subdir-within-NFS-mount188 - fixed "Can't backup if ramdisk not mounted" bug189 - try to work around eccentricities of multi-CD drive PCs190 - misc clean-ups (Steve Hindle)191 192 * Tue Apr 08 2003 Hugo Rabson <hugorabson@msn.com> 1.72193 194 - LVM/RAID bugs fixed (Brian Borgeson)195 - major clean-up of code (Stan Benoit)196 - make-me-bootable fix (Juraj Ziegler)197 - fixed problem w/ multi-ISO verify cycle (Tom Mortell)198 - removed duplicate entry from makefile199 - if root is /dev/root then assume not a ramdisk200 - reject relative paths if -d flag (Alessandro Polverini)201 - fixed potentially infinite loop in log_to_screen (Tom Mortell)202 - add '/' to custom filelist as workaround for obscure bug203 - ask user speed of CDRW if writing to CD204 - find_cdrom_device() --- if nonexistent/not found then205 make sure to return '' as dev str and 1 as res206 - tweaked restore scripts tgz207 - cleaned up find_cdrom_device()208 - if user creates /usr/share/mondo/payload.tgz then untar209 payload to CD at backup-time210 - fixed insist_on_this_cd_number()211 - fixed am_i_in_disaster_recovery_mode()212 - misc clean-up (Tom Mortell)213 - made code more legible214 - fixed post-nuke support215 - added -e support216 - fixed nfs support217 - fixed iso support218 - at restore-time, only sort mountlist internally,219 in mount_all_devices() and unmount_all_devices()220 - fixed cosmetic bug in label-partitions-as-necessary221 - updated documentation222 - fixed fstab-hacking scripts223 224 * Wed Feb 12 2003 Hugo Rabson <hugorabson@msn.com> 1.71225 226 - log newt, slang, ncurses info227 - updated man page228 - handle % chars in issue.net properly (Heiko Schlittermann)229 - fixed serious NFS restore bug230 - cleaned up spec file; it should cause fewer problems now (Jesse Keating)231 - changed various strcpy() calls to strncpy() calls232 - added mondo-makefilelist to makefile (Mikael Hultgren)233 - mount_cdrom() better at handling multiple CD drives234 - exclude /media/cdrom,cdrecorder,floppy235 - sensibly_set_tmpdir_and_scratchdir() --- exclude smb and smbfs236 - better logging by eval_call_to_make_ISO()237 - accept -J <fname> to let user provide their own fs catalog238 instead of -I <paths> to backup239 - if dir excluded with -E or included with -I and dir is actually240 a softlink then exclude/include the dir pointed to, as well241 - better location for manpage242 - adjusted block size of tarball at start of tape, to help243 users w/ broken tape driver firmware244 - sort -u fstab after modifying it245 - if backup type is nfs then don't estimate noof media246 - fixed Makefile (Mikael Hultgren)247 - updated manpage248 249 * Sat Dec 07 2002 Hugo Rabson <hugo@firstlinux.net> 1.70250 251 - new devel branch opened252 253 * Mon Dec 02 2002 Hugo Rabson <hugo@firstlinux.net> 1.52254 255 - fixed bug in multithreading256 - use new grub-MR instead of grub-install257 - wipe only the partition table (not the MBR) when partitioning drives258 - ignore lilo.conf.anaconda when looking for lilo.conf file259 - accepts '-l RAW' to backup/restore original boot sector instead260 of running grub or lilo to init it after restoring261 - fixed&updated stabgrub-me script; software RAID + GRUB work now262 - mount/unmount /boot partition for Gentoo 1.2 users263 - re-enabled extra tape checksums264 - disabled spurious warnings265 - unmount/remount supermounts at start/end of live restore, if nec.266 - cleaned up mondo's tape block handling (now, TAPE_BLOCK_SIZE=128K267 and I've added INTERNAL_TAPE_BLK_SIZE=32K variable for buffering)268 - added Makefile269 - added -l RAW, to backup and restore original MBR270 - cleaned up iso_mode() and nfs restoring271 - create /mnt/RESTORING/mnt/.boot.d for Gentoo users272 - made mondorestore CD bootable for ArkLinux users273 - if user runs as 'su' not 'su -' then work around274 275 * Sun Nov 17 2002 Hugo Rabson <hugo@firstlinux.net> 1.51276 277 - pop-up list of changed files, at end of verification phase278 - better handling of changed.files list at restore-time279 - lots of CD-related fixes280 - added '-N' flag --- to let user exclude all NFS-related mounts&devices281 - better handling of 'kill'282 - restructuring of code to ease integration of mondo w/XMondo283 - fixed obscure bug in find_and_mount_actual_cd()284 - if / or /root has <50MB free then abort & complain285 - fixed install.sh286 - fixed .spec file287 - updated documentation288 - commented code289 - updated man page290 - added -v / --version flag291 - replace convoluted grep with wc (KP)292 - fixed bug affecting restoration of bigfiles from CD's created w/0 compression293 - fixed BurnProof-related bug294 - better at figuring out which is the best partition for temp/scratchdir295 - added do-not-compress-these (text file) to RPM296 - do not compress files of types listed in do-not-compress-these297 - dropped -U from call to afio - saves 20-30% runtime (Cosgrove)298 - added Cosgrove's do-not-compress-these list299 - included various patches from KP300 - chmod tmpdir, scratchdir to 700 before using301 - restore from specified backup device, even if its own cfg file disagrees302 - fixed multi-tape bug303 - fixed "Can't find first ISO when verifying nonbootable ISO" bug304 - multithreaded make_afioballs_and_images()305 - tmpdir and scratchdir are set sensibly whether mondoarchive is called with306 command-line parameters or not307 - fixed bug in strip_spaces() which stopped it from handling308 small strings correctly - affected mountlist editor309 - create a repaired copy of grub-install which is RAID-friendly;310 use it when initializing boot sector with run_grub()311 - fixed bug in mondo-makefilelist312 313 * Sun Sep 08 2002 Hugo Rabson <hugo@firstlinux.net> 1.50314 315 - if restoring, don't try to find SCSI node of CD-ROM drive; find /dev entry316 - during selective restore, skip filesets which don't contain relevant archives317 - set /dev/null's perms to 777, just in case devfs-enabled kernel mangles it318 - remove /var/run/*.pid after restoring319 - move spurious lockfiles from /home/* to /home/*/.disabled320 - ask user to confirm the tape/CD device name321 - lots of multitape-related fixes322 - added code to autodetect the hardware of the user, if possible323 - if isodir does not exist then abort324 - more sanity-checking for -d flag325 - doubled 'biggiefile' threshold... to 32MB326 - exclude /root/images/mindi327 - fixed multi-imagedev bug (Emmanuel Druon)328 - unmount/remount /mnt/floppy before/after backing up, if Mandrake329 - restructured the source files330 - fixed serious bug in line 1546 - should have been !=, not ==; stopped331 mondorestore from correctly restoring big files332 - added '#include <signal.h>' to my-stuff.h333 - exclude "incheckentry xwait()" from changed.files334 - fixed minor bug in find_cdrom_device()335 - fixed bug in friendly_sizestr...336 - insist on tape #1 when start verifying337 - added internal buffering, replacing the external 'buffer' exe338 - if differential backup then don't permit formatting or fdisking,339 whether Interactive or Nuke mode340 - if mondorestore is run on live filesystem (or from ramdisk) without341 parameters then mondorestore will ask which backup media (tape, CD, etc.)342 was used; it will read the config file from the media and proceed from there343 - if tape streamer is softlink then resolve it first344 - incorporate post-nuke tarball345 - if user doesn't specify tape size, proceed anyway; behave intelligently346 in the event of end-of-tape347 - prefix bkpinfo->restore_path to biggiefile fname before generating348 checksum & comparing to archived biggiefile349 - if /etc/lilo.conf not found not /etc/lilo.conf.anaconda found350 then create a softlink from the former to the latter, to work351 around RH7.3's b0rken LILO support352 - LFS support (mharris, michele, hugo)353 - fixed verify bug --- CD#1 was being verified again & again & ...354 - differential mode fixed; supported again355 - ask user for boot loader + device if not detectible356 - list up to 512 files in file selection window at once (was 128)357 - better handling of bigfiles' checksums, perms and owns358 - delete final filelist if <=2 bytes long359 - if kernel not found and mondo in graphics mode then popup and ask360 for kernel path+filename361 362 * Sun Jul 14 2002 Hugo Rabson <hugo@firstlinux.net> 1.45-1363 364 - 1.5x branch forked off from 1.4x branch365 -
branches/stable/mondo/distributions/mandriva/spec.m4
r543 r550 2 2 dnl 3 3 dnl SSS is replaced by the source package format 4 define(`SSS', ` %{name}-%{version}.tar.bz2')dnl4 define(`SSS', `ftp://ftp.mondorescue.org/src/%{name}-%{version}.tar.bz2')dnl 5 5 dnl DDD is replaced by the list of dependencies specific to that distro 6 define(`DDD', `%{addreqb}')dnl6 define(`DDD', )dnl 7 7 dnl GRP is replaced by the RPM group of apps 8 8 define(`GRP', `Archiving/Backup')dnl -
branches/stable/mondo/distributions/redhat/changelog
r543 r550 1 * Fri Feb 17 2006 Bruno Cornec <bruno@mondorescue.org> VVV1 * Fri Feb 17 2006 Bruno Cornec <bruno@mondorescue.org> 2.0.7-1 2 2 - Updated to 2.0.7 3 3 - RPM sepc files are now generated -
branches/stable/mondo/distributions/redhat/spec.m4
r543 r550 2 2 dnl 3 3 dnl SSS is replaced by the source package format 4 define(`SSS', ftp://ftp.mondorescue.org/src/%{name}-%{version}.tgz)dnl4 define(`SSS', `ftp://ftp.mondorescue.org/src/%{name}-%{version}.tgz')dnl 5 5 dnl DDD is replaced by the list of dependencies specific to that distro 6 define(`DDD', %{addreqb})dnl6 define(`DDD', )dnl 7 7 dnl GRP is replaced by the RPM group of apps 8 define(`GRP', Applications/Archiving)dnl8 define(`GRP', `Applications/Archiving')dnl 9 9 dnl OBS is replaced vy what is being obsoleted 10 10 define(`OBS', )dnl -
branches/stable/mondo/distributions/rpm/mondo.spec
r543 r550 3 3 # 4 4 5 %define name mondo6 %define version VVV7 5 %define mrel RRR 8 6 # if mandriva official build (rpm --with is_official) 9 7 %{?is_official:%define rel %{mkrel} %{mrel}}%{!?is_official:%define rel %{mrel}} 10 %define src SSS 11 %define grp GRP 12 %define addreqb mindi >= 1.0.7, bzip2 >= 0.9, afio, mkisofs, binutils, newt >= 0.50, slang >= 1.4.1 13 %define addreq DDD 14 %define rel %{mrel} 8 %define addreq mindi >= 1.0.7, bzip2 >= 0.9, afio, mkisofs, binutils, newt >= 0.50, slang >= 1.4.1 DDD 15 9 16 10 Summary: A program which a Linux user can utilize to create a rescue/restore CD/tape … … 19 13 Summary(sp): Un programa para los usuarios de Linux por crear una CD/cinta de restoracion/rescate 20 14 21 Name: %{name}22 Version: %{version}23 Release: %{ rel}15 Name: mondo 16 Version: VVV 17 Release: %{mrel} 24 18 License: GPL 25 Group: %{grp}19 Group: GRP 26 20 Url: http://www.mondorescue.org 27 Source: %{src}21 Source: SSS 28 22 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) 29 23 BuildRequires: newt-devel >= 0.50, slang-devel >= 1.4.1, gcc 30 Epoch: %(echo EEE | cut -d- -f1 | sed "s~M~~")31 24 OBS 32 25 %ifarch ia64 -
branches/stable/mondo/distributions/suse/spec.m4
r542 r550 2 2 dnl 3 3 dnl SSS is replaced by the source package format 4 define(`SSS', %{name}-%{version}.tgz)dnl4 define(`SSS', `ftp://ftp.mondorescue.org/src/%{name}-%{version}.tgz')dnl 5 5 dnl DDD is replaced by the list of dependencies specific to that distro 6 define(`DDD', %{addreqb}, buffer, cdrecord)dnl6 define(`DDD', `, buffer, cdrecord')dnl 7 7 dnl GRP is replaced by the RPM group of apps 8 define(`GRP', Productivity/Archiving/Backup)dnl8 define(`GRP', `Productivity/Archiving/Backup')dnl 9 9 dnl OBS is replaced vy what is being obsoleted 10 10 define(`OBS', )dnl -
branches/stable/tools/build-env
r549 r550 1 1 #!/bin/bash 2 2 # 3 # Creates RPMs environment from SVN repository 3 # Creates build environment for packages 4 # Executed on a VM (non-SVN) 4 5 # 5 6 # $Id$ 6 7 # 7 8 dname=`dirname $0`9 prem=`echo $dname |cut -c1`10 if [ ${prem} == "/" ]; then11 export TOOLHOME=$dname12 else13 export TOOLHOME=${PWD}/$dname14 fi15 16 . $TOOLHOME/common-env17 18 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`19 8 20 9 # Should not be modified below … … 22 11 export opt="" 23 12 24 if [ -f ${HOME}/.rpmmacros ]; then25 export TOPDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`26 else27 export TOPDIR=${BASE}/RPMS28 fi29 mkdir -p ${TOPDIR}30 cd ${TOPDIR}31 mkdir -p RPMS SRPMS SPECS SOURCES BUILD32 33 13 if [ -e /etc/mandriva-release ]; then 14 export dtype="rpm" 34 15 export dfam="mandriva" 35 16 export ddir="mandriva" … … 37 18 export suf=".`echo $dver | sed 's/\.//'`mdk" 38 19 elif [ -e /etc/mandrake-release ]; then 20 export dtype="rpm" 39 21 export dfam="mandriva" 40 22 export ddir="mandrake" … … 42 24 export suf=".`echo $dver | sed 's/\.//'`mdk" 43 25 elif [ -e /etc/redhat-release ]; then 26 export dtype="rpm" 44 27 grep -q Enterprise /etc/redhat-release 45 28 if [ $? -eq 0 ]; then … … 60 43 fi 61 44 elif [ -e /etc/SuSE-release ]; then 45 export dtype="rpm" 62 46 grep -q Enterprise /etc/SuSE-release 63 47 if [ $? -eq 0 ]; then … … 71 55 fi 72 56 else 57 export dtype="unknown" 73 58 export dfam="generic" 74 59 export dver="" … … 79 64 export suf=".${ddir}${dver}" 80 65 fi 66 67 if [ $dtype == "rpm" ]; then 68 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'` 69 if [ -f ${HOME}/.rpmmacros ]; then 70 export TOPDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'` 71 else 72 export TOPDIR=${BASE}/build 73 fi 74 mkdir -p ${TOPDIR} 75 cd ${TOPDIR} 76 mkdir -p RPMS SRPMS SPECS SOURCES BUILD 77 fi 78 -
branches/stable/tools/common-env
r549 r550 8 8 # Adapt to your needs 9 9 export BASE=${HOME}/mondo 10 export TOPDIR=${BASE}/ RPMS10 export TOPDIR=${BASE}/build 11 11 mkdir -p ${TOPDIR} 12 12 export TMP=${BASE}/tmp -
branches/stable/tools/svn-env
r549 r550 13 13 cd $TOOLHOME/.. 14 14 export REVISION=`svnversion .` 15 export TAG=`cat ${TOOLHOME}/TAG 15 export TAG=`cat ${TOOLHOME}/TAG` -
branches/stable/tools/svn2build
r549 r550 1 1 #!/bin/bash 2 2 # 3 # Creates build file for packagesfrom SVN repository3 # Creates build environment and files for packages creation from SVN repository 4 4 # 5 5 # $Id$ 6 6 # 7 8 7 9 8 umask 022 … … 20 19 . ./svn-env 21 20 22 mkdir -p ${TOPDIR}/S PECS21 mkdir -p ${TOPDIR}/SOURCES 23 22 24 23 if [ "$1" = "" ]; then … … 35 34 cd ${BASE}/svn 36 35 37 for d in `cat $TOOLHOME/DISTROS`; do 38 for p in $c; do 39 v=`cat ${SVNBRANCH}/$p/VERSION` 40 echo "Management of build of $v-$REVISION" 41 rm -fr $p-$v 42 svn export ${SVNBRANCH}/$p $p-$v 43 echo "$REVISION" > $p-$v/REVISION 44 echo "Generating SVN log file ..." 45 svn log -v ${SVNBRANCH}/$p > $p-$v/svn.log 46 47 if [ _"`echo $p | grep mondo-doc`" != _"" ]; then 48 cd ${p}-${v} 49 $TOOLHOME/expandver mondorescue-howto.sgml *8 50 make -f Makefile.howto 51 if [ $? != 0 ]; then 36 for p in $c; do 37 v=`cat ${SVNBRANCH}/$p/VERSION` 38 echo "Management of $p $v-$REVISION" 39 rm -fr $p-$v 40 svn export ${SVNBRANCH}/$p $p-$v 41 echo "$REVISION" > $p-$v/REVISION 42 echo "Generating SVN log file ..." 43 svn log -v ${SVNBRANCH}/$p > $p-$v/svn.log 44 45 for d in `cat ${TOOLHOME}/DISTROS`; do 46 ddir=`echo $d | cut -f'_' -d1` 47 dver=`echo $d | cut -f'_' -d2` 48 echo "Generating build files for $ddir ($dver)" 49 if [ $ddir = "debian" ]; then 50 dfam="debian" 51 dtype="deb" 52 suf=".${dfam}${dver}" 53 BUILDDIR=${TOPDIR}/debian 54 elif [ $ddir = "gentoo" ]; then 55 dfam="gentoo" 56 dtype="ebuild" 57 suf=".${ddir}${dver}" 58 BUILDDIR=${TOPDIR}/ebuild 59 elif [ $ddir = "slackware" ]; then 60 dfam="slack" 61 dtype="tgz" 62 suf=".${dfam}${dver}" 63 BUILDDIR=${TOPDIR}/slack 64 elif [ $ddir = "sles" || $ddir = "suse" ]; then 65 dfam="suse" 66 dtype="rpm" 67 suf=".${ddir}${dver}" 68 BUILDDIR=${TOPDIR}/SPECS 69 elif [ $ddir = "fedora" || $ddir = "redhat" || $ddir = "rhel" ]; then 70 dfam="redhat" 71 dtype="rpm" 72 dver=`echo ${dver} | sed "s/\.//"` 73 if [ $ddir = "fedora" ]; then 74 suf=".fc${dver}" 75 elif [ $ddir = "redhat" ]; then 76 suf=".rh${dver}" 77 else 78 suf=".rhel${dver}" 79 fi 80 BUILDDIR=${TOPDIR}/SPECS 81 elif [ $ddir = "mandrake" || $ddir = "mandriva" ]; then 82 dfam="mandriva" 83 dtype="rpm" 84 suf=".`echo $dver | sed 's/\.//'`mdk" 85 BUILDDIR=${TOPDIR}/SPECS 86 else 87 dfam="unknown" 88 dtype="unknown" 89 BUILDDIR=${TOPDIR}/SPECS 90 suf="unknown" 91 fi 92 93 # Create conf file dir 94 mkdir -p ${BUILDDIR} 95 96 if [ $dtype = "rpm" ]; then 97 if [ -f $p-$v/distributions/$ddir/spec.m4 ]; then 98 inc=$p-$v/distributions/$ddir/spec.m4 99 elif [ -f $p-$v/distributions/$dfam/spec.m4 ]; then 100 inc=$p-$v/distributions/$dfam/spec.m4 101 else 102 echo "Unable to build the RPM specfile for this distro. Please report to authors" 52 103 exit -1 53 104 fi 54 make -f Makefile.man 55 if [ $? != 0 ]; then 105 cp $inc /tmp/mondorescue.mc 106 ddd=`LANG=C ; date '+%Y-%m-%d'` 107 cat >> /tmp/mondorescue.mc << EOF 108 define(\`RRR', ${TAG}${suf})dnl 109 define(\`VVV', ${v})dnl 110 define(\`DDD', ${ddd})dnl 111 EOF 112 echo "Using $inc customization to build SPEC file" 113 m4 /tmp/mondorescue.mc $p-$v/distributions/rpm/$p.spec > $p-$v/distributions/$ddir/$p.spec 114 115 if [ -f $p-$v/distributions/$ddir/changelog ]; then 116 log=$p-$v/distributions/$ddir/changelog 117 elif [ -f $p-$v/distributions/$dfam/changelog ]; then 118 log=$p-$v/distributions/$dfam/changelog 119 else 120 echo "Unable to build RPM changelog for this distro. Please report to authors" 56 121 exit -1 57 122 fi 58 cd .. 123 124 echo "Using $log customization to build changelog file" 125 ddate=`LANG=C ; date "+%a %b %d %Y"` 126 cat > $p-$v/distributions/$ddir/$p.changelog.new << EOF 127 * $ddate Bruno Cornec <bruno@mondorescue.org> VVV-RRR 128 - Updated to VVV-r${REVISION} 129 130 EOF 131 cat $log >> $p-$v/distributions/$ddir/$p.changelog.new 132 m4 /tmp/mondorescue.mc $p-$v/distributions/$ddir/$p.changelog.new > $p-$v/distributions/$ddir/$p.changelog 133 rm -f $p-$v/distributions/$ddir/$p.changelog.new 134 135 elif [ $dtype = "ebuild" ]; then 136 echo "Gentoo Buid" 137 else 138 echo "Unknown Buid" 59 139 fi 60 61 if [ _"`echo $p | grep -v kernel | grep mindi`" != _"" ]; then 62 v1=`cat ${SVNBRANCH}/mondo-doc/VERSION` 63 if [ ! -d mondo-doc-$v1 ]; then 64 echo "mondo-doc should be created before $p" 65 exit -1 66 fi 67 (cd mondo-doc-$v1 ; make -f Makefile.man install-$p INSTALLDIR=../$p-$v) 68 rm -f $p-$v/rootfs/sbin/parted2fdisk-ia64 140 done 141 142 if [ _"`echo $p | grep mondo-doc`" != _"" ]; then 143 cd ${p}-${v} 144 for f in mondorescue-howto.sgml *8; do 145 m4 /tmp/mondorescue.mc $f > ${f}.new 146 mv ${f}.new $f 147 done 148 make -f Makefile.howto 149 if [ $? != 0 ]; then 150 exit -1 69 151 fi 70 if [ "`echo $p | grep -v doc | grep mondo`" != "" ]; then 71 v1=`cat ${SVNBRANCH}/mondo-doc/VERSION` 72 if [ ! -d mondo-doc-$v1 ]; then 73 echo "mondo-doc should be created before $p" 74 exit -1 75 fi 76 (cd mondo-doc-$v1 ; make -f Makefile.howto install INSTALLDIR=../$p-$v/docs/en ; make -f Makefile.man install-$p INSTALLDIR=../$p-$v/docs/man) 77 (cd $p-$v ; echo "Bootstraping mondo ... " ; ./bootstrap) 152 make -f Makefile.man 153 if [ $? != 0 ]; then 154 exit -1 78 155 fi 79 80 # Finally creates the tar files 81 echo "Creating $p tar files" 82 tar cfhz ${TOPDIR}/SOURCES/$p-$v-$TAG.tgz $p-$v 83 tar cfhj ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2 $p-$v 84 done 156 cd .. 157 fi 158 159 if [ _"`echo $p | grep -v kernel | grep mindi`" != _"" ]; then 160 v1=`cat ${SVNBRANCH}/mondo-doc/VERSION` 161 if [ ! -d mondo-doc-$v1 ]; then 162 echo "mondo-doc should be created before $p" 163 exit -1 164 fi 165 (cd mondo-doc-$v1 ; make -f Makefile.man install-$p INSTALLDIR=../$p-$v) 166 rm -f $p-$v/rootfs/sbin/parted2fdisk-ia64 167 fi 168 if [ "`echo $p | grep -v doc | grep mondo`" != "" ]; then 169 v1=`cat ${SVNBRANCH}/mondo-doc/VERSION` 170 if [ ! -d mondo-doc-$v1 ]; then 171 echo "mondo-doc should be created before $p" 172 exit -1 173 fi 174 (cd mondo-doc-$v1 ; make -f Makefile.howto install INSTALLDIR=../$p-$v/docs/en ; make -f Makefile.man install-$p INSTALLDIR=../$p-$v/docs/man) 175 (cd $p-$v ; echo "Bootstraping mondo ... " ; ./bootstrap) 176 fi 177 178 # Finally creates the tar files 179 echo "Creating $p tar files" 180 tar cfhz ${TOPDIR}/SOURCES/$p-$v-$TAG.tgz $p-$v 181 tar cfhj ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2 $p-$v 85 182 done 183 184 rm -f /tmp/mondorescue.mc
Note:
See TracChangeset
for help on using the changeset viewer.