From: Kern Sibbald Date: Mon, 11 Apr 2005 08:01:37 +0000 (+0000) Subject: Remove unwanted directory X-Git-Tag: Release-1.38.0~566 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a44152fa1e9814e4b03e60811a54ec5b7fdda5eb;p=bacula%2Frescue Remove unwanted directory --- diff --git a/rescue/linux/cdrom/yaird-0.0.5/AUTHORS b/rescue/linux/cdrom/yaird-0.0.5/AUTHORS deleted file mode 100644 index c6f361c..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/AUTHORS +++ /dev/null @@ -1,2 +0,0 @@ -Sun Feb 13 21:41:02 CET 2005 - GNU Autoconf wants this. diff --git a/rescue/linux/cdrom/yaird-0.0.5/COPYING b/rescue/linux/cdrom/yaird-0.0.5/COPYING deleted file mode 100644 index caa0a06..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/COPYING +++ /dev/null @@ -1,341 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) 19yy - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) 19yy name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/rescue/linux/cdrom/yaird-0.0.5/ChangeLog b/rescue/linux/cdrom/yaird-0.0.5/ChangeLog deleted file mode 100644 index 9114020..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/ChangeLog +++ /dev/null @@ -1,833 +0,0 @@ -# do not edit -- automatically generated by arch changelog -# arch-tag: automatic-ChangeLog--ekonijn@xs4all.nl--debian/yaird--devo--0.1 -# - -2005-03-20 22:08:17 GMT Erik van Konijnenburg patch-33 - - Summary: - 0.0.5 - finalise - Revision: - yaird--devo--0.1--patch-33 - - * clean up NEWS, README, docs - - modified files: - ChangeLog NEWS README TODO configure.in doc/concepts.xml - doc/shlibs.xml doc/tools.xml - - -2005-03-19 23:44:53 GMT Erik van Konijnenburg patch-32 - - Summary: - pre-0.0.5 add klibc shared libraries - Revision: - yaird--devo--0.1--patch-32 - - * Add executable findlibs, to determine dynamic loader and - basename of shared libraries, independent of which C library - is used. Since we don't know what path the loader will use - we cannot resolve shared libraries given as relative paths. - * factor out the finding of shared libraries from building - the image. - * Writeup on shared libraries and klibc. - - new files: - doc/.arch-ids/shlibs.xml.id doc/shlibs.xml - exec/.arch-ids/findlibs.c.id exec/findlibs.c - perl/.arch-ids/SharedLibraries.pm.id perl/SharedLibraries.pm - - modified files: - ChangeLog NEWS README TODO doc/Makefile.am doc/concepts.xml - doc/raid.xml doc/spec.xml doc/tools.xml doc/yaird.xml.in - exec/Makefile.am perl/Image.pm perl/Makefile.am perl/Plan.pm - perl/TestSet.pm - - -2005-03-06 17:50:32 GMT Erik van Konijnenburg patch-31 - - Summary: - pre-0.0.5 debian to initramfs - Revision: - yaird--devo--0.1--patch-31 - - * Document building with klibc in the README file. - * Adapt the Debian template to use initramfs instead of initrd. - The old template is available as Debian-initrd. - * Adapt Fedora template to use run_init. - * correct dependencies in doc makefile. - * doc: writup on initramfs and run_init; de-emphasize initrd. - - new files: - templates/.arch-ids/Debian-initrd.pm.id - templates/Debian-initrd.pm - - modified files: - ChangeLog NEWS README TODO doc/Makefile.am doc/concepts.xml - doc/input.xml doc/intro.xml doc/kernel.xml doc/raid.xml - doc/security.xml doc/spec.xml doc/yaird.xml.in - templates/Debian.pm templates/Fedora.pm - - -2005-03-01 22:29:08 GMT Erik van Konijnenburg patch-30 - - Summary: - post-0.0.4 - add run_init - Revision: - yaird--devo--0.1--patch-30 - - * rename directory src to perl - * add directory exec for stuff intended to go onto the image - * add exec/run_init, based on klibc; - not compiled with klibc in standard configuration. - * wrap the nuking of rootfs in ifdefs; these may go away once tested. - add --enable-nuke config flag to set the ifdef. - * automake mods to support C compilation - * let all templates know about location of exec, about yaird version. - * generate Conf.pm based on exec dir, yaird version. - * change install directory: lib not share since there's object code now. - * note the klibc licence in documentation. - - new files: - .arch-ids/LICENCE.KLIBC.id .arch-ids/Makefile.incl.id - LICENCE.KLIBC Makefile.incl exec/.arch-ids/=id - exec/.arch-ids/Makefile.am.id exec/.arch-ids/run_init.c.id - exec/Makefile.am exec/run_init.c include/.arch-ids/=id - include/.arch-ids/config.h.in.id include/config.h.in - - modified files: - ChangeLog Makefile.am NEWS TODO bootstrap.sh configure.in - doc/license.xml perl/ActionList.pm perl/Conf.pm.in - perl/Makefile.am perl/main.pl templates/Debian.pm - templates/Fedora.pm templates/Makefile.am - - renamed files: - src/.arch-ids/=id - ==> perl/.arch-ids/=id - src/.arch-ids/ActionList.pm.id - ==> perl/.arch-ids/ActionList.pm.id - src/.arch-ids/ActiveBlockDev.pm.id - ==> perl/.arch-ids/ActiveBlockDev.pm.id - src/.arch-ids/ActiveBlockDevTab.pm.id - ==> perl/.arch-ids/ActiveBlockDevTab.pm.id - src/.arch-ids/Base.pm.id - ==> perl/.arch-ids/Base.pm.id - src/.arch-ids/Blacklist.pm.id - ==> perl/.arch-ids/Blacklist.pm.id - src/.arch-ids/BlockSpecialFile.pm.id - ==> perl/.arch-ids/BlockSpecialFile.pm.id - src/.arch-ids/BlockSpecialFileTab.pm.id - ==> perl/.arch-ids/BlockSpecialFileTab.pm.id - src/.arch-ids/Conf.pm.id - ==> perl/.arch-ids/Conf.pm.in.id - src/.arch-ids/FsEntry.pm.id - ==> perl/.arch-ids/FsEntry.pm.id - src/.arch-ids/FsOpts.pm.id - ==> perl/.arch-ids/FsOpts.pm.id - src/.arch-ids/FsTab.pm.id - ==> perl/.arch-ids/FsTab.pm.id - src/.arch-ids/Hardware.pm.id - ==> perl/.arch-ids/Hardware.pm.id - src/.arch-ids/IdeDev.pm.id - ==> perl/.arch-ids/IdeDev.pm.id - src/.arch-ids/Image.pm.id - ==> perl/.arch-ids/Image.pm.id - src/.arch-ids/Input.pm.id - ==> perl/.arch-ids/Input.pm.id - src/.arch-ids/InputTab.pm.id - ==> perl/.arch-ids/InputTab.pm.id - src/.arch-ids/KConfig.pm.id - ==> perl/.arch-ids/KConfig.pm.id - src/.arch-ids/LabeledPartition.pm.id - ==> perl/.arch-ids/LabeledPartition.pm.id - src/.arch-ids/LabeledPartitionTab.pm.id - ==> perl/.arch-ids/LabeledPartitionTab.pm.id - src/.arch-ids/LogicalVolume.pm.id - ==> perl/.arch-ids/LogicalVolume.pm.id - src/.arch-ids/LvmTab.pm.id - ==> perl/.arch-ids/LvmTab.pm.id - src/.arch-ids/Makefile.am.id - ==> perl/.arch-ids/Makefile.am.id - src/.arch-ids/ModDep.pm.id - ==> perl/.arch-ids/ModDep.pm.id - src/.arch-ids/ModDepTab.pm.id - ==> perl/.arch-ids/ModDepTab.pm.id - src/.arch-ids/Obj.pm.id - ==> perl/.arch-ids/Obj.pm.id - src/.arch-ids/Pack.pm.id - ==> perl/.arch-ids/Pack.pm.id - src/.arch-ids/PciDev.pm.id - ==> perl/.arch-ids/PciDev.pm.id - src/.arch-ids/PciMapEntry.pm.id - ==> perl/.arch-ids/PciMapEntry.pm.id - src/.arch-ids/PciTab.pm.id - ==> perl/.arch-ids/PciTab.pm.id - src/.arch-ids/PhysicalVolume.pm.id - ==> perl/.arch-ids/PhysicalVolume.pm.id - src/.arch-ids/Plan.pm.id - ==> perl/.arch-ids/Plan.pm.id - src/.arch-ids/RaidDev.pm.id - ==> perl/.arch-ids/RaidDev.pm.id - src/.arch-ids/RaidTab.pm.id - ==> perl/.arch-ids/RaidTab.pm.id - src/.arch-ids/ScsiDev.pm.id - ==> perl/.arch-ids/ScsiDev.pm.id - src/.arch-ids/TestSet.pm.id - ==> perl/.arch-ids/TestSet.pm.id - src/.arch-ids/UsbDev.pm.id - ==> perl/.arch-ids/UsbDev.pm.id - src/.arch-ids/UsbMapEntry.pm.id - ==> perl/.arch-ids/UsbMapEntry.pm.id - src/.arch-ids/UsbTab.pm.id - ==> perl/.arch-ids/UsbTab.pm.id - src/.arch-ids/VolumeGroup.pm.id - ==> perl/.arch-ids/VolumeGroup.pm.id - src/.arch-ids/main.pl.id - ==> perl/.arch-ids/main.pl.id - src/Conf.pm - ==> perl/Conf.pm.in - - new directories: - exec exec/.arch-ids include include/.arch-ids perl/.arch-ids - - removed directories: - src/.arch-ids - - renamed directories: - src - ==> perl - - -2005-02-24 23:13:31 GMT Erik van Konijnenburg patch-29 - - Summary: - post-0.0.4 add tree copying - Revision: - yaird--devo--0.1--patch-29 - - * Add tree copy code to templates, to actionlist - processing, to image generation. - * Canonise filenames in templates to avoid - problems with eg /lib/modules/2.6.10-smp/kernel//./. - * In ActionList, add kernel version to every hash; - this allows template to refer to /lib/modules/version/kernel. - - modified files: - ChangeLog NEWS TODO doc/concepts.xml src/ActionList.pm - src/Image.pm templates/Debian.pm templates/Fedora.pm - - -2005-02-23 22:17:56 GMT Erik van Konijnenburg patch-28 - - Summary: - post-0.0.4 - Revision: - yaird--devo--0.1--patch-28 - - * Add --root=/dev/hdb option. - Since this needs to be in fstab, it's odd to - use a device name rather than a mount point, - but it's the conventional thing to do, so should - give rise to less confusion than changing it. - - modified files: - ChangeLog NEWS README TODO src/FsTab.pm src/Plan.pm - src/main.pl - - -2005-02-23 14:26:44 GMT Erik van Konijnenburg patch-27 - - Summary: - 0.0.4 - Revision: - yaird--devo--0.1--patch-27 - - * doc corrections: kernel command line no longer unsupported. - * bring fedora and debian templates to same level. - - modified files: - ChangeLog NEWS doc/spec.xml templates/Debian.pm - templates/Fedora.pm - - -2005-02-23 11:42:32 GMT Erik van Konijnenburg patch-26 - - Summary: - pre-0.0.4 - kernel args - Revision: - yaird--devo--0.1--patch-26 - - * enough features for this week, time for some testing. - bump version number to 0.0.4 - * Process kernel args, for now only init, ro, rw. - * as a consequence, single user mode boot now works. - * Ro/rw requires a new action attribute for mount: isRoot. - * options now only is fstab options, not the extra -n -t - stuff you may want to provide. - * new action attribute for mount: fsType. - * Document kernel args that may need support. - - - modified files: - ChangeLog TODO configure.in doc/kernel.xml src/Plan.pm - templates/Debian.pm - - -2005-02-20 15:57:02 GMT Erik van Konijnenburg patch-25 - - Summary: - post 0.0.3 - oops - Revision: - yaird--devo--0.1--patch-25 - - * oops, add src/ModDep.pm to version control - - new files: - src/.arch-ids/ModDep.pm.id src/ModDep.pm - - modified files: - ChangeLog - - -2005-02-20 15:55:10 GMT Erik van Konijnenburg patch-24 - - Summary: - post 0.0.3 - Revision: - yaird--devo--0.1--patch-24 - - * Find module files based on listing in modules.dep, - not on scanning /lib/modules. - * Like modprobe, accept *any* suffix for a module - * But warn if the suffix is not .ko or .ko.gz, - and thus not likely to be generated by depmod. - * Remove ModDir; this is now redundant. - * Add ModDep.pm to encapsulate filename and - dependencies in a modules.dep line. - * Check against duplicate module names - * Add line numbers to module.dep parsing. - * Bugfix: ModDepTab::all returned hash not array. - * Stay closer to modprobe syntax regarding comment conventions - * In Debian template, verify existence of device - before making a node for it. - - removed files: - src/.arch-ids/ModDir.pm.id src/ModDir.pm - - modified files: - ChangeLog TODO src/Conf.pm src/Makefile.am src/ModDepTab.pm - src/Plan.pm src/TestSet.pm templates/Debian.pm - - -2005-02-19 12:41:23 GMT Erik van Konijnenburg patch-23 - - Summary: - post 0.0.3 - Revision: - yaird--devo--0.1--patch-23 - - * In Hardware, recognise target\d+:\d+:\d+ - as a new SCSI grouping, introduced in 2.6.10. - * In Hardware, warn about any unrecognised path component - * In TestSet, clean up harmless typo uncovered by warning. - - modified files: - ChangeLog TODO src/Hardware.pm src/TestSet.pm - - -2005-02-19 00:45:15 GMT Erik van Konijnenburg patch-22 - - Summary: - post-0.0.3 patches - Revision: - yaird--devo--0.1--patch-22 - - * Empty lines in /etc/fstab are valid. - (Patch Goffredo Baroncelli) - - modified files: - ChangeLog TODO src/FsTab.pm - - -2005-02-16 15:51:52 GMT Erik van Konijnenburg patch-21 - - Summary: - implement formats - Revision: - yaird--devo--0.1--patch-21 - - * implement --format options: directory, cramfs, cpio - * use 3rd open arg to avoid filename interpretation. - * adapt readme, concepts and security doc accordingly. - - modified files: - ChangeLog README doc/concepts.xml doc/security.xml src/Base.pm - src/Blacklist.pm src/FsTab.pm src/Image.pm src/InputTab.pm - src/KConfig.pm src/LabeledPartition.pm src/LvmTab.pm - src/ModDepTab.pm src/Pack.pm src/PciTab.pm src/RaidTab.pm - src/UsbTab.pm - - -2005-02-16 12:30:41 GMT Erik van Konijnenburg patch-20 - - Summary: - recognise amd64 linux-gate - Revision: - yaird--devo--0.1--patch-20 - - * New ldd output pattern, cf debian Bug#295412. - Untested, I don't have 64bit. - * add framework for output formats. - - new files: - src/.arch-ids/Pack.pm.id src/Pack.pm - - modified files: - ChangeLog src/Image.pm src/Makefile.am src/main.pl - - -2005-02-16 09:54:08 GMT Erik van Konijnenburg patch-19 - - Summary: - gnu automake - Revision: - yaird--devo--0.1--patch-19 - - * factor out template/Makefile - * note automake in doc. - * add command line processing in main. - * add support for -v, -q, -d in Base.pm. - * correpsonding change in doc/spec, doc/security - * rewritten the README - * TODO now included - - new files: - .arch-ids/TODO.id TODO templates/.arch-ids/Makefile.am.id - templates/Makefile.am - - modified files: - ChangeLog Makefile.am README configure.in doc/security.xml - doc/spec.xml doc/tools.xml src/Base.pm src/main.pl - - -2005-02-13 23:38:48 GMT Erik van Konijnenburg patch-18 - - Summary: - oops in src/Makefile - Revision: - yaird--devo--0.1--patch-18 - - * Add to configure.in, or Makefile.in is not built from Makefile.am - - modified files: - ChangeLog configure.in - - -2005-02-13 23:36:27 GMT Erik van Konijnenburg patch-17 - - Summary: - changelog misery, factoring makefile - Revision: - yaird--devo--0.1--patch-17 - - * remove, re-add changelog. Now it should get the log for this branch. - Is this what we want? - * Factor out src/Makefile.am - - new files: - .arch-ids/ChangeLog.id ChangeLog src/.arch-ids/Makefile.am.id - src/Makefile.am - - removed files: - .arch-ids/ChangeLog.id ChangeLog - - modified files: - Makefile.am - - -2005-02-13 23:27:22 GMT Erik van Konijnenburg patch-16 - - Summary: - oops, wrong changelog. - Revision: - yaird--devo--0.1--patch-16 - - * Sigh, changelog from branch is copied unchanged. - It may be necessary to get rid of automatic tag. - - modified files: - ChangeLog - - -2005-02-13 23:23:33 GMT Erik van Konijnenburg patch-15 - - Summary: - convert to automake - Revision: - yaird--devo--0.1--patch-15 - - * Bump to 0.0.3, use GNU automake - - Patches applied: - - * ekonijn@xs4all.nl--debian/yaird--gnu--0.1--base-0 - tag of ekonijn@xs4all.nl--debian/yaird--devo--0.1--patch-14 - - * ekonijn@xs4all.nl--debian/yaird--gnu--0.1--patch-1 - add GNU autoconf support - - * ekonijn@xs4all.nl--debian/yaird--gnu--0.1--patch-2 - add required files - - * ekonijn@xs4all.nl--debian/yaird--gnu--0.1--patch-3 - debug gnu automake - - * ekonijn@xs4all.nl--debian/yaird--gnu--0.1--patch-4 - tuning automake - - - new files: - .arch-ids/AUTHORS.id .arch-ids/ChangeLog.id - .arch-ids/Makefile.am.id .arch-ids/NEWS.id - .arch-ids/bootstrap.sh.id .arch-ids/configure.in.id AUTHORS - ChangeLog Makefile.am NEWS bootstrap.sh configure.in - doc/.arch-ids/Makefile.am.id doc/Makefile.am - templates/.arch-ids/=id - - removed files: - doc/.arch-ids/Makefile.id doc/Makefile - - modified files: - doc/yaird.xml.in src/main.pl - - renamed files: - doc/.arch-ids/yaird.xml.id - ==> doc/.arch-ids/yaird.xml.in.id - doc/yaird.xml - ==> doc/yaird.xml.in - src/.arch-ids/Template.pm-Fedora.id - ==> templates/.arch-ids/Fedora.pm.id - src/.arch-ids/Template.pm.id - ==> templates/.arch-ids/Debian.pm.id - src/Template.pm - ==> templates/Debian.pm - src/Template.pm-Fedora - ==> templates/Fedora.pm - - new directories: - templates templates/.arch-ids - - new patches: - ekonijn@xs4all.nl--debian/yaird--gnu--0.1--base-0 - ekonijn@xs4all.nl--debian/yaird--gnu--0.1--patch-1 - ekonijn@xs4all.nl--debian/yaird--gnu--0.1--patch-2 - ekonijn@xs4all.nl--debian/yaird--gnu--0.1--patch-3 - ekonijn@xs4all.nl--debian/yaird--gnu--0.1--patch-4 - - -2005-02-12 01:48:49 GMT Erik van Konijnenburg patch-14 - - Summary: - beware of last minute cleanup - Revision: - yaird--devo--0.1--patch-14 - - * Fedora template: removing ls caused a shared library - for /mnt/bin/cp to go missing. Fix. - - modified files: - src/Template.pm-Fedora - - -2005-02-09 23:40:12 GMT Erik van Konijnenburg patch-13 - - Summary: - finalise before shipping. - Revision: - yaird--devo--0.1--patch-13 - - * Warning against ill advised use in README. - * Sample output in README. - * more detailed planner output. - * String method for actionList. - * typo prolog -> prologue. - * adapt TestSet to templating introduced in previous version. - * doc/intro: remove ref to non-existent manual page. - - modified files: - README doc/intro.xml src/ActionList.pm src/Plan.pm - src/Template.pm src/Template.pm-Fedora src/TestSet.pm - - -2005-02-09 22:04:21 GMT Erik van Konijnenburg patch-12 - - Summary: - docs and finishing fedora - Revision: - yaird--devo--0.1--patch-12 - - * More info on initramfs found in Fedora port; - * Drop ls and more from the templates. - * Include Fedora sample template. - * Confess odd scripting for initramfs. - * Rename LICENSE to COPYING - * TestPlan has bugs, introduced while adding templating. - - new files: - src/.arch-ids/Template.pm-Fedora.id src/Template.pm-Fedora - - modified files: - README doc/kernel.xml doc/spec.xml src/Template.pm - - renamed files: - .arch-ids/LICENSE.id - ==> .arch-ids/COPYING.id - LICENSE - ==> COPYING - - -2005-02-09 16:16:35 GMT Erik van Konijnenburg patch-11 - - Summary: - avoid error message on non-shared executable ldd - Revision: - yaird--devo--0.1--patch-11 - - * avoid error message on non-shared executable ldd, - needed because of strange file modes in FC3. - - modified files: - src/Image.pm - - -2005-02-09 16:05:04 GMT Erik van Konijnenburg patch-10 - - Summary: - oops - Revision: - yaird--devo--0.1--patch-10 - - * Inverted pattern in previous fix to ldd. - - modified files: - src/Image.pm - - -2005-02-09 16:00:50 GMT Erik van Konijnenburg patch-9 - - Summary: - other ldd output format - Revision: - yaird--devo--0.1--patch-9 - - * In FC3 ldd (v2.3.3), the => is omitted - if names on both sides are identical. - - - modified files: - src/Image.pm - - -2005-02-09 13:14:52 GMT Erik van Konijnenburg patch-8 - - Summary: - document templating - Revision: - yaird--devo--0.1--patch-8 - - * Discusse templating infrastructure under toolchain - * More logical ordering in concepts chapter, - discuss use of templates. - * Minor cleanup in security and licence chapters. - - removed files: - doc/.arch-ids/templating.xml.id doc/templating.xml - - modified files: - doc/concepts.xml doc/license.xml doc/security.xml doc/spec.xml - doc/tools.xml doc/yaird.xml - - -2005-02-09 10:37:39 GMT Erik van Konijnenburg patch-7 - - Summary: - implement template system - Revision: - yaird--devo--0.1--patch-7 - - Patches applied: - - * ekonijn@xs4all.nl--debian/yaird--templ--0.1--base-0 - tag of ekonijn@xs4all.nl--debian/yaird--devo--0.1--patch-6 - - * ekonijn@xs4all.nl--debian/yaird--templ--0.1--patch-1 - implement template system: - * Note initramfs in FC3. - * Add chapter on templating to doc; unsatisfactory. - Specs chapter unchanged. - * Add debug, assert functions to Base. - * Add debug calls to Image. - * Fix bug in addDevicePlan for loop and duplicate detection: eq vs ==. - * Add templating infrastructure, based on HTML::Template. - * Ad Debian specific template. - * Adapt Plan to use templating infrastructure. - * Drop ad hoc plan expansion code. - - new files: - doc/.arch-ids/templating.xml.id doc/templating.xml - src/.arch-ids/ActionList.pm.id src/.arch-ids/Template.pm.id - src/ActionList.pm src/Template.pm - - modified files: - doc/kernel.xml doc/yaird.xml src/Base.pm src/Conf.pm - src/Image.pm src/Obj.pm src/Plan.pm src/main.pl - - new patches: - ekonijn@xs4all.nl--debian/yaird--templ--0.1--base-0 - ekonijn@xs4all.nl--debian/yaird--templ--0.1--patch-1 - - -2005-02-06 11:47:03 GMT Erik van Konijnenburg patch-6 - - Summary: - oops, add KConfig.pm - Revision: - yaird--devo--0.1--patch-6 - - * oops, KConfig.pm needs to be added to tla archive. - previous version non-functional for this reason. - - new files: - src/.arch-ids/KConfig.pm.id src/KConfig.pm - - -2005-02-05 22:46:13 GMT Erik van Konijnenburg patch-5 - - Summary: - preparations for Fedora port - Revision: - yaird--devo--0.1--patch-5 - - * divide concept.xml into simplesect's. - * correct USB_HID remark in input.xml - * add kernel config file reader - * add mapping module name to kernel config var. - * document kernel config interpretation. - * added test case for kernel config interpretation - * when resolving module names, drop the modules - that are built into the kernel. - * /etc/hotplug/blacklist.d does not have to exist. - * swap in /etc/fstab can have mount point 'swap' - as well as 'none'. - * No absolute path when using LVM tools: Debian - has them in /sbin, Fedora in /usr/sbin; - Including /sbin,/usr/sbin in $PATH solves this. - * Don't load modules for swap partitions, - since we don't do software suspend yet. - * Known issue: Fedora does not have dash, does - not have /etc/lvm-200. We'll need templating - to configure that away. - - modified files: - doc/concepts.xml doc/input.xml doc/security.xml doc/spec.xml - src/Blacklist.pm src/Conf.pm src/FsTab.pm src/LvmTab.pm - src/ModDepTab.pm src/Plan.pm src/TestSet.pm src/main.pl - - -2005-02-05 11:12:27 GMT Erik van Konijnenburg patch-4 - - Summary: - reiser tested, limit PCI sibling awakening - Revision: - yaird--devo--0.1--patch-4 - - * Drop the todo item "test reiser"; completed succesfully. - * Drop 'redundant action' messages. - * Reduce PCI sibling awakening to USB functions only; - Note in doc. - - modified files: - doc/concepts.xml doc/spec.xml src/Hardware.pm src/Plan.pm - - -2005-02-05 00:11:33 GMT Erik van Konijnenburg patch-3 - - Summary: - document UHCI/EHCI, fix LVM mknod - Revision: - yaird--devo--0.1--patch-3 - - * add a paragraph on EHCI/UHCI and load a module for - every function of a PCI slot to the concepts chapter. - * fix bug in generated mknod calls. Devices cannot always - be called /dev/hda, with hda the kernel name: the counter - example is /dev/vg0/root, device nodes generated by LVM. - Add function yspecial to activeBlockDev, to generate - a name appropriate for the block device. - * known bug: the PCI alternate function code is too generous. - Consider a chipset that has sound, ide and USB all as one - PCI slot. to be done. - - modified files: - doc/concepts.xml src/ActiveBlockDev.pm src/LvmTab.pm - src/Plan.pm src/TestSet.pm - - -2005-02-03 23:50:39 GMT Erik van Konijnenburg patch-2 - - Summary: - fix EHCI/UHCI interference - Revision: - yaird--devo--0.1--patch-2 - - * It turns out some PCI EHCI drivers work best if the UHCI - driver is also loaded. Generalise to: always load modules - for every function of a PCI slot you need. - - modified files: - src/Hardware.pm - - -2005-02-03 21:26:53 GMT Erik van Konijnenburg patch-1 - - Summary: - get rid of debug code - Revision: - yaird--devo--0.1--patch-1 - - * Drop hacked in 'sleep' action, leave sleep - on the image. - - modified files: - src/Plan.pm - - -2005-02-03 21:10:19 GMT Erik van Konijnenburg base-0 - - Summary: - initial import - Revision: - yaird--devo--0.1--base-0 - - * first edition under version control. - seems to work in some simple cases, - still need to remove some debugging code. - - new files: - LICENSE README doc/Makefile doc/authors.xml doc/concepts.xml - doc/figures/console.dia doc/figures/console.png doc/input.xml - doc/intro.xml doc/kernel.xml doc/license.xml doc/raid.xml - doc/security.xml doc/spec.xml doc/tools.xml doc/yaird.xml - src/ActiveBlockDev.pm src/ActiveBlockDevTab.pm src/Base.pm - src/Blacklist.pm src/BlockSpecialFile.pm - src/BlockSpecialFileTab.pm src/Conf.pm src/FsEntry.pm - src/FsOpts.pm src/FsTab.pm src/Hardware.pm src/IdeDev.pm - src/Image.pm src/Input.pm src/InputTab.pm - src/LabeledPartition.pm src/LabeledPartitionTab.pm - src/LogicalVolume.pm src/LvmTab.pm src/ModDepTab.pm - src/ModDir.pm src/Obj.pm src/PciDev.pm src/PciMapEntry.pm - src/PciTab.pm src/PhysicalVolume.pm src/Plan.pm src/RaidDev.pm - src/RaidTab.pm src/ScsiDev.pm src/TestSet.pm src/UsbDev.pm - src/UsbMapEntry.pm src/UsbTab.pm src/VolumeGroup.pm - src/main.pl - - diff --git a/rescue/linux/cdrom/yaird-0.0.5/INSTALL b/rescue/linux/cdrom/yaird-0.0.5/INSTALL deleted file mode 100644 index 56b077d..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/INSTALL +++ /dev/null @@ -1,236 +0,0 @@ -Installation Instructions -************************* - -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free -Software Foundation, Inc. - -This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. - -Basic Installation -================== - -These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, and a -file `config.log' containing compiler output (useful mainly for -debugging `configure'). - - It can also use an optional file (typically called `config.cache' -and enabled with `--cache-file=config.cache' or simply `-C') that saves -the results of its tests to speed up reconfiguring. (Caching is -disabled by default to prevent problems with accidental use of stale -cache files.) - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If you are using the cache, and at -some point `config.cache' contains results you don't want to keep, you -may remove or edit it. - - The file `configure.ac' (or `configure.in') is used to create -`configure' by a program called `autoconf'. You only need -`configure.ac' if you want to change it or regenerate `configure' using -a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - -Some systems require unusual options for compilation or linking that the -`configure' script does not know about. Run `./configure --help' for -details on some of the pertinent environment variables. - - You can give `configure' initial values for configuration parameters -by setting variables in the command line or in the environment. Here -is an example: - - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - - *Note Defining Variables::, for more details. - -Compiling For Multiple Architectures -==================================== - -You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not support the `VPATH' -variable, you have to compile the package for one architecture at a -time in the source code directory. After you have installed the -package for one architecture, use `make distclean' before reconfiguring -for another architecture. - -Installation Names -================== - -By default, `make install' will install the package's files in -`/usr/local/bin', `/usr/local/man', etc. You can specify an -installation prefix other than `/usr/local' by giving `configure' the -option `--prefix=PREFIX'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -give `configure' the option `--exec-prefix=PREFIX', the package will -use PREFIX as the prefix for installing programs and libraries. -Documentation and other data files will still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=DIR' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Optional Features -================= - -Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - -Specifying the System Type -========================== - -There may be some features `configure' cannot figure out automatically, -but needs to determine by the type of machine the package will run on. -Usually, assuming the package is built to be run on the _same_ -architectures, `configure' can figure that out, but if it prints a -message saying it cannot guess the machine type, give it the -`--build=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name which has the form: - - CPU-COMPANY-SYSTEM - -where SYSTEM can have one of these forms: - - OS KERNEL-OS - - See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the machine type. - - If you are _building_ compiler tools for cross-compiling, you should -use the `--target=TYPE' option to select the type of system they will -produce code for. - - If you want to _use_ a cross compiler, that generates code for a -platform different from the build platform, you should specify the -"host" platform (i.e., that on which the generated programs will -eventually be run) with `--host=TYPE'. - -Sharing Defaults -================ - -If you want to set default values for `configure' scripts to share, you -can create a site shell script called `config.site' that gives default -values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Defining Variables -================== - -Variables not defined in a site shell script can be set in the -environment passed to `configure'. However, some packages may run -configure again during the build, and the customized values of these -variables may be lost. In order to avoid this problem, you should set -them in the `configure' command line, using `VAR=value'. For example: - - ./configure CC=/usr/local2/bin/gcc - -causes the specified `gcc' to be used as the C compiler (unless it is -overridden in the site shell script). Here is a another example: - - /bin/bash ./configure CONFIG_SHELL=/bin/bash - -Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent -configuration-related scripts to be executed by `/bin/bash'. - -`configure' Invocation -====================== - -`configure' recognizes the following options to control how it operates. - -`--help' -`-h' - Print a summary of the options to `configure', and exit. - -`--version' -`-V' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--cache-file=FILE' - Enable the cache: use and save the results of the tests in FILE, - traditionally `config.cache'. FILE defaults to `/dev/null' to - disable caching. - -`--config-cache' -`-C' - Alias for `--cache-file=config.cache'. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`configure' also accepts some other, not widely useful, options. Run -`configure --help' for more details. - diff --git a/rescue/linux/cdrom/yaird-0.0.5/Makefile b/rescue/linux/cdrom/yaird-0.0.5/Makefile deleted file mode 100644 index c4423af..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/Makefile +++ /dev/null @@ -1,601 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# Makefile. Generated from Makefile.in by configure. - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - - -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains executables that may be included in the generated -# image -# - perldir contains perl modules to be included by the main program -# -srcdir = . -top_srcdir = . - -pkgdatadir = $(datadir)/yaird -pkglibdir = $(libdir)/yaird -pkgincludedir = $(includedir)/yaird -top_builddir = . -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = /usr/bin/install -c -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -subdir = . -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/configure \ - $(top_srcdir)/include/config.h.in AUTHORS COPYING ChangeLog \ - INSTALL NEWS TODO depcomp install-sh missing -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno configure.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run aclocal-1.9 -AMDEP_FALSE = # -AMDEP_TRUE = -AMTAR = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run tar -AUTOCONF = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoconf -AUTOHEADER = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoheader -AUTOMAKE = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run automake-1.9 -AWK = gawk -CC = gcc -CCDEPMODE = depmode=gcc3 -CFLAGS = -g -O2 -CPPFLAGS = -CYGPATH_W = echo -DEFS = -DHAVE_CONFIG_H -DEPDIR = .deps -ECHO_C = -ECHO_N = -n -ECHO_T = -EXEEXT = -INITRD_TEMPLATE = Fedora -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_PROGRAM = ${INSTALL} -INSTALL_SCRIPT = ${INSTALL} -INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s -LDFLAGS = -LIBOBJS = -LIBS = -LTLIBOBJS = -MAKEINFO = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run makeinfo -OBJEXT = o -PACKAGE = yaird -PACKAGE_BUGREPORT = -PACKAGE_NAME = -PACKAGE_STRING = -PACKAGE_TARNAME = -PACKAGE_VERSION = -PATH_SEPARATOR = : -PERL = /usr/bin/perl -SET_MAKE = -SHELL = /bin/sh -STRIP = -VERSION = 0.0.5 -XMLTO = /usr/bin/xmlto -ac_ct_CC = gcc -ac_ct_STRIP = -am__fastdepCC_FALSE = # -am__fastdepCC_TRUE = -am__include = include -am__leading_dot = . -am__quote = -am__tar = ${AMTAR} chof - "$$tardir" -am__untar = ${AMTAR} xf - -bindir = ${exec_prefix}/bin -build_alias = -datadir = ${prefix}/share -exec_prefix = ${prefix} -host_alias = -includedir = ${prefix}/include -infodir = ${prefix}/info -install_sh = /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/install-sh -libdir = ${exec_prefix}/lib -libexecdir = ${exec_prefix}/libexec -localstatedir = ${prefix}/var -mandir = ${prefix}/man -mkdir_p = mkdir -p -- -oldincludedir = /usr/include -prefix = /usr/local -program_transform_name = s,x,x, -sbindir = ${exec_prefix}/sbin -sharedstatedir = ${prefix}/com -sysconfdir = ${prefix}/etc -target_alias = -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl -SUBDIRS = perl templates doc exec - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - bootstrap.sh - -all: all-recursive - -.SUFFIXES: -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -include/config.h: include/stamp-h1 - @if test ! -f $@; then \ - rm -f include/stamp-h1; \ - $(MAKE) include/stamp-h1; \ - else :; fi - -include/stamp-h1: $(top_srcdir)/include/config.h.in $(top_builddir)/config.status - @rm -f include/stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status include/config.h -$(top_srcdir)/include/config.h.in: $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) - rm -f include/stamp-h1 - touch $@ - -distclean-hdr: - -rm -f include/config.h include/stamp-h1 -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - mkdir $(distdir) - $(mkdir_p) $(distdir)/doc $(distdir)/include - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ - check-am clean clean-generic clean-recursive ctags \ - ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \ - dist-tarZ dist-zip distcheck distclean distclean-generic \ - distclean-hdr distclean-recursive distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ - pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-info-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/Makefile.am b/rescue/linux/cdrom/yaird-0.0.5/Makefile.am deleted file mode 100644 index 8a63a4c..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/Makefile.am +++ /dev/null @@ -1,31 +0,0 @@ -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains executables that may be included in the generated -# image -# - perldir contains perl modules to be included by the main program -# - -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl - -SUBDIRS = perl templates doc exec - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - bootstrap.sh diff --git a/rescue/linux/cdrom/yaird-0.0.5/Makefile.in b/rescue/linux/cdrom/yaird-0.0.5/Makefile.in deleted file mode 100644 index 71363b1..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/Makefile.in +++ /dev/null @@ -1,601 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains executables that may be included in the generated -# image -# - perldir contains perl modules to be included by the main program -# -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = . -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -subdir = . -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/configure \ - $(top_srcdir)/include/config.h.in AUTHORS COPYING ChangeLog \ - INSTALL NEWS TODO depcomp install-sh missing -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno configure.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INITRD_TEMPLATE = @INITRD_TEMPLATE@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMLTO = @XMLTO@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build_alias = @build_alias@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host_alias = @host_alias@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl -SUBDIRS = perl templates doc exec - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - bootstrap.sh - -all: all-recursive - -.SUFFIXES: -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -include/config.h: include/stamp-h1 - @if test ! -f $@; then \ - rm -f include/stamp-h1; \ - $(MAKE) include/stamp-h1; \ - else :; fi - -include/stamp-h1: $(top_srcdir)/include/config.h.in $(top_builddir)/config.status - @rm -f include/stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status include/config.h -$(top_srcdir)/include/config.h.in: $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) - rm -f include/stamp-h1 - touch $@ - -distclean-hdr: - -rm -f include/config.h include/stamp-h1 -uninstall-info-am: - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - mkdir $(distdir) - $(mkdir_p) $(distdir)/doc $(distdir)/include - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-recursive - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-info-am - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ - check-am clean clean-generic clean-recursive ctags \ - ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \ - dist-tarZ dist-zip distcheck distclean distclean-generic \ - distclean-hdr distclean-recursive distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive \ - mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ - pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-info-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/Makefile.incl b/rescue/linux/cdrom/yaird-0.0.5/Makefile.incl deleted file mode 100644 index f9fed0a..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/Makefile.incl +++ /dev/null @@ -1,28 +0,0 @@ -# -# Makefile.incl -- shared defines between makefiles -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains package specific executables that may be included -# in the generated image -# - perldir contains perl modules to be included by the main program -# -# This cannot be simply passed from the master makefile; that would -# be invisible to automake. - -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl - diff --git a/rescue/linux/cdrom/yaird-0.0.5/NEWS b/rescue/linux/cdrom/yaird-0.0.5/NEWS deleted file mode 100644 index 1184a22..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/NEWS +++ /dev/null @@ -1,35 +0,0 @@ -Version 0.0.5, 2005-03-21 - * change installation directory from /usr/local/share/yaird/ - to /usr/local/lib/yaird/, since there are executables included now. - * add run_init: executable to make the move to the real root - device in initramfs context. - * README: new section on (optional) use of klibc, - new section on replacing mkinitrd during kernel install. - * more reliable shared library detection: works with glibc and - klibc; if other C libraries use shared libraries, an error - message results. - * adapt Debian template to use initramfs rather than initrd. - The old initrd template is available as Debian-initrd. - * add command line option --root=/dev/hdb, to simplify testing. - * allow template to see requested kernel version, - and to copy a complete tree to the image. This makes it - possible to put /lib/modules/2.6.10-smp on the image and do hotplug. - * Documentation: writeup on initramfs, notes on shared libraries. - -Version 0.0.4, 2005-02-23 - * Process kernel command line options: init=, ro, rw. - * Boot into single user mode supported - * Support modules outside /lib/modules - * Support modules with extension other than .ko - * Warn about duplicates in modules.dep - * Generated image now waits for device to become visible in /sys, - and gives error message if it doesn't - * Support 2.6.10 sysfs layout: SCSI now has a - new subdirectory 'target'. - * Warn about unrecognised paths in /sys - * Allow empty lines in /etc/fstab. - * Empty lines in /etc/fstab are valid. - (Patch Goffredo Baroncelli) - -Version 0.0.3, 2005-02-16 - * First public release. diff --git a/rescue/linux/cdrom/yaird-0.0.5/README b/rescue/linux/cdrom/yaird-0.0.5/README deleted file mode 100644 index 33512cb..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/README +++ /dev/null @@ -1,218 +0,0 @@ - -YAIRD -- Yet Another MkInitRd -============================= - -This is a proof of concept rewrite of mkinitrd, intended to test the -idea that we can get a more accurate picture of the modules needed -to boot a linux system by fully utilizing the information in sysfs. -It comes with templates that make it possible to generate different -initrd images for different distributions. - -Proof of concept means this software is barely tested: it may -produce a working initrd image, or it may eat your disk. This -is a good moment to re-read the "NO WARRANTY" part of the licence, -and decide whether you want to test this software. - - -Installation -============ - -You'll need HTML::Template to run the application; a standard package -under Debian, in Fedora FC3 available via extras. - -Unpack, then configure and install: - - $ ./configure --prefix=$HOME/local --enable-template=Debian - $ make install - -The --enable-template option is required; it picks one of the templates -from the template directory to install. - -If you want to regenerate the html documentation, you need the xmlto -package. - -If you're installing from version control rather than a tarball, -you'll also need to have autmake and autoconf available, and -need to run bootstrap.sh before doing 'configure; make'. - - -Installing with klibc -===================== - -Yaird comes with a small C program to manage the transfer from the initial -root file system to the real root. To avoid the overhead of the GNU -C library, you may want to compile this with klibc. Note however that -this is only effective if every other program that is copied to the -initial root filesystem (such as mount, mknod and a shell) is compiled -in the same manner. - -Recent versions of klibc provide klcc, a wrapper around gcc that makes -it easier to port programs to klibc. Installation is faily simple; -the most important point is to make a symlink to a configured linux -source tree. The SHLIBDIR determines where the shared library version -ends up. If you want to use klibc for programs used early in the -boot process it makes sense to put it on the root file system. - - $ cd klibc-0.207 - $ ln -s /usr/src/linux... linux - $ make bindir=$HOME/local/bin \ - mandir=$HOME/local/man \ - INSTALLDIR=$HOME/local \ - SHLIBDIR=$HOME/local/shlib \ - install - $ - -Once you have klibc, you can configure yaird to make use of it -as follows: - - $ ./configure CFLAGS=-static CC=$HOME/local/bin/klcc \ - --prefix=$HOME/local --enable-template=Debian - ... - $ make install - -The use of CFLAGS=-shared is optional. - - -Using the application -===================== - -To make a new initrd image for the current kernel: - - # yaird --format directory --output initrd.d - -This creates a directory initrd.d to look at or to package -manually to a form suitable for booting. - -To get an image suitable for use under debian: - - # yaird --format cramfs --output /boot/initrd.img - -For Fedora, a cpio file is needed: - - # yaird --format cpio --output /boot/initrd.img - -Note that there is no strong relation between distribution -and image format: nothing stops you from building a template -that uses initramfs and cpio under Debian. However, the template -and the image format do have to match. - -To produce a boot image for another kernel: - - # yaird --format directory --output initrd.d 2.6.10-1-686-smp - -There is also a '--test' option that will produce an overview -of block special files, devices, modules etc that may be helpful -in debugging boot problems. - -If you want the generated image to boot into something other than -the current root, use the --root option. The block device specified -must occur in /etc/fstab to allow yaird to find the required file system -type. - - # yaird --format cramfs --output /boot/tst.img --root /dev/hdb7 - -Use '--help' for an overview of other command line options. - - -Using yaird as a replacement for mkinitrd -========================================= - -If you install a new kernel from your distribution, that means -making a new initial boot image. The postinstall script that -comes with the kernel will normally do this using mkinitrd; -if you want yaird to be used instead, some tweaking is necessary. - -In Debian, there are a lot of configuration options for the kernel -installation, but replacing mkinitrd is not among them, so you'll -have to replace /usr/sbin/mkinitrd with a wrapper around yaird. -The following worked with debian 2.6.10-1-686: - - #!/bin/sh - # - # mkinitrd - emulate mkinitrd with yaird for kernel-image installs. - # - # Copyright (C) 2001-2003 Herbert Xu - # - # This program is free software; you can redistribute it and/or modify - # it under the terms of the GNU General Public License as published by - # the Free Software Foundation; either version 2 of the License, or - # (at your option) any later version. - # - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY; without even the implied warranty of - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - # GNU General Public License for more details. - # - # You should have received a copy of the GNU General Public License - # along with this program; if not, write to the Free Software - # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - # - # $Id$ - - PROG=mkinitrd-shimmy - outfile='' - - while getopts "d:km:o:r:" flag; do - case $flag in - d) - echo "$PROG: -d unsupported" - exit 1 - ;; - k) - echo "$PROG: -k unsupported" - exit 1 - ;; - m) - # ignore - ;; - o) - outfile="$OPTARG" - ;; - r) - echo "$PROG: -d unsupported" - exit 1 - ;; - *) - echo "$PROG: unknown option $flag" - exit 1 - ;; - esac - done - shift $(($OPTIND - 1)) - - if [ "$outfile" = "" ]; then - echo "$PROG: no output file specified" - exit 1 - fi - if [ $# -gt 1 ]; then - echo "$PROG: extra arguments found" - exit 1 - fi - - # Note that version may be a pathname; - # this is used by the installer for Debian kernel image packages. - VERSION=$1 - [ $# -gt 0 ] || unset VERSION - case $VERSION in - /lib/modules/*/[!/]*) - ;; - /lib/modules/[!/]*) - VERSION=${VERSION#/lib/modules/} - VERSION=${VERSION%%/*} - ;; - esac - - case $VERSION in - */*) - echo $PROG: $VERSION is not a valid kernel version >&2 - exit 1 - ;; - esac - - VERSION="${VERSION-$(uname -r)}" - - exec $HOME/local/sbin/yaird \ - --verbose --format cpio --output "$outfile" "$VERSION" - -For Fedora, you'll have to modify /sbin/new-kernel-package; -not tested yet. diff --git a/rescue/linux/cdrom/yaird-0.0.5/TODO b/rescue/linux/cdrom/yaird-0.0.5/TODO deleted file mode 100644 index 9e79b90..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/TODO +++ /dev/null @@ -1,12 +0,0 @@ -Todo: - - support modprobe.conf - - support dm_crypt - - support loopback devices as root - - add manual page - - kernel command line processing: root=, - - support multipath - - define option to load extra modules? - - read config file - - ext2 migration, still necessary? - - software suspend support - - add debian packaging, spec file? diff --git a/rescue/linux/cdrom/yaird-0.0.5/aclocal.m4 b/rescue/linux/cdrom/yaird-0.0.5/aclocal.m4 deleted file mode 100644 index 74de4a1..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/aclocal.m4 +++ /dev/null @@ -1,862 +0,0 @@ -# generated automatically by aclocal 1.9.5 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION so it can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], - [AM_AUTOMAKE_VERSION([1.9.5])]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 7 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE]) -AC_SUBST([$1_FALSE]) -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH]) -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.58])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"$am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. -# -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories -# created by `make install' are always world readable, even if the -# installer happens to have an overly restrictive umask (e.g. 077). -# This was a mistake. There are at least two reasons why we must not -# use `-m 0755': -# - it causes special bits like SGID to be ignored, -# - it may be too restrictive (some setups expect 775 directories). -# -# Do not use -m 0755 and let people choose whatever they expect by -# setting umask. -# -# We cannot accept any implementation of `mkdir' that recognizes `-p'. -# Some implementations (such as Solaris 8's) are not thread-safe: if a -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' -# concurrently, both version can detect that a/ is missing, but only -# one can create it and the other will error out. Consequently we -# restrict ourselves to GNU make (using the --version option ensures -# this.) -AC_DEFUN([AM_PROG_MKDIR_P], -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi -AC_SUBST([mkdir_p])]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - diff --git a/rescue/linux/cdrom/yaird-0.0.5/bootstrap.sh b/rescue/linux/cdrom/yaird-0.0.5/bootstrap.sh deleted file mode 100644 index f250918..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/bootstrap.sh +++ /dev/null @@ -1,34 +0,0 @@ -# -# Bootstrap.sh -# -# Use this if you got yaird from version control and need -# to generate the configure scripts that come with the tarball. -# -# See http://sources.redhat.com/autobook/. -# See http://www.gnu.org/software/autoconf/manual/autoconf-2.57/ -# -# V=--verbose -# Q=--quiet -# set -x - -# to build makefiles for shared libraries -# libtoolize --force || exit 1 - -# copy definitions from /usr/share to ./aclocal.m4 -# for macros that are used in configure.in -aclocal $V || exit 1 - -# use aclocal.m4 to create a configure file from configure.in -autoconf $V || exit 1 - -# Build config.h.in, needed if you have C code. -autoheader || exit 1 - -# transform makefile.am to makefile.in; -# copy helpful scripts such as install-sh from /usr/share to here. -automake $V --add-missing || exit 1 - -# At this point, the tree can be tarred, transplanted to the target -# system and installed with: -# configure --prefix=/home/santaclaus/testing --enable-template=Debian -# make install diff --git a/rescue/linux/cdrom/yaird-0.0.5/config.log b/rescue/linux/cdrom/yaird-0.0.5/config.log deleted file mode 100644 index d065009..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/config.log +++ /dev/null @@ -1,281 +0,0 @@ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by configure, which was -generated by GNU Autoconf 2.59. Invocation command line was - - $ ./configure --enable-template=Fedora - -## --------- ## -## Platform. ## -## --------- ## - -hostname = rufus.sibbald.com -uname -m = i686 -uname -r = 2.6.10-1.770_FC3smp -uname -s = Linux -uname -v = #1 SMP Thu Feb 24 14:20:06 EST 2005 - -/usr/bin/uname -p = unknown -/bin/uname -X = unknown - -/bin/arch = i686 -/usr/bin/arch -k = unknown -/usr/convex/getsysinfo = unknown -hostinfo = unknown -/bin/machine = unknown -/usr/bin/oslevel = unknown -/bin/universe = unknown - -PATH: /usr/kerberos/bin -PATH: /usr/local/bin -PATH: /usr/bin -PATH: /bin -PATH: /usr/X11R6/bin -PATH: /usr/sbin -PATH: /sbin -PATH: /home/kern/bin -PATH: /usr/sbin -PATH: /sbin - - -## ----------- ## -## Core tests. ## -## ----------- ## - -configure:1300: checking for a BSD-compatible install -configure:1355: result: /usr/bin/install -c -configure:1366: checking whether build environment is sane -configure:1409: result: yes -configure:1474: checking for gawk -configure:1490: found /usr/bin/gawk -configure:1500: result: gawk -configure:1510: checking whether make sets $(MAKE) -configure:1530: result: yes -configure:1753: checking for perl -configure:1771: found /usr/bin/perl -configure:1783: result: /usr/bin/perl -configure:1836: checking for gcc -configure:1852: found /usr/bin/gcc -configure:1862: result: gcc -configure:2106: checking for C compiler version -configure:2109: gcc --version &5 -gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) -Copyright (C) 2004 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -configure:2112: $? = 0 -configure:2114: gcc -v &5 -Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs -Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux -Thread model: posix -gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) -configure:2117: $? = 0 -configure:2119: gcc -V &5 -gcc: `-V' option must have argument -configure:2122: $? = 1 -configure:2145: checking for C compiler default output file name -configure:2148: gcc conftest.c >&5 -configure:2151: $? = 0 -configure:2197: result: a.out -configure:2202: checking whether the C compiler works -configure:2208: ./a.out -configure:2211: $? = 0 -configure:2228: result: yes -configure:2235: checking whether we are cross compiling -configure:2237: result: no -configure:2240: checking for suffix of executables -configure:2242: gcc -o conftest conftest.c >&5 -configure:2245: $? = 0 -configure:2270: result: -configure:2276: checking for suffix of object files -configure:2297: gcc -c conftest.c >&5 -configure:2300: $? = 0 -configure:2322: result: o -configure:2326: checking whether we are using the GNU C compiler -configure:2350: gcc -c conftest.c >&5 -configure:2356: $? = 0 -configure:2359: test -z || test ! -s conftest.err -configure:2362: $? = 0 -configure:2365: test -s conftest.o -configure:2368: $? = 0 -configure:2381: result: yes -configure:2387: checking whether gcc accepts -g -configure:2408: gcc -c -g conftest.c >&5 -configure:2414: $? = 0 -configure:2417: test -z || test ! -s conftest.err -configure:2420: $? = 0 -configure:2423: test -s conftest.o -configure:2426: $? = 0 -configure:2437: result: yes -configure:2454: checking for gcc option to accept ANSI C -configure:2524: gcc -c -g -O2 conftest.c >&5 -configure:2530: $? = 0 -configure:2533: test -z || test ! -s conftest.err -configure:2536: $? = 0 -configure:2539: test -s conftest.o -configure:2542: $? = 0 -configure:2560: result: none needed -configure:2578: gcc -c -g -O2 conftest.c >&5 -conftest.c:2: error: syntax error before "me" -configure:2584: $? = 1 -configure: failed program was: -| #ifndef __cplusplus -| choke me -| #endif -configure:2725: checking for style of include used by make -configure:2753: result: GNU -configure:2781: checking dependency style of gcc -configure:2871: result: gcc3 -configure:2894: checking for xmlto -configure:2912: found /usr/bin/xmlto -configure:2925: result: /usr/bin/xmlto -configure:3053: creating ./config.status - -## ---------------------- ## -## Running config.status. ## -## ---------------------- ## - -This file was extended by config.status, which was -generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = - CONFIG_HEADERS = - CONFIG_LINKS = - CONFIG_COMMANDS = - $ ./config.status - -on rufus.sibbald.com - -config.status:734: creating Makefile -config.status:734: creating templates/Makefile -config.status:734: creating perl/Makefile -config.status:734: creating doc/Makefile -config.status:734: creating exec/Makefile -config.status:734: creating doc/yaird.xml -config.status:800: creating include/config.h -config.status:1066: executing depfiles commands - -## ---------------- ## -## Cache variables. ## -## ---------------- ## - -ac_cv_c_compiler_gnu=yes -ac_cv_env_CC_set= -ac_cv_env_CC_value= -ac_cv_env_CFLAGS_set= -ac_cv_env_CFLAGS_value= -ac_cv_env_CPPFLAGS_set= -ac_cv_env_CPPFLAGS_value= -ac_cv_env_LDFLAGS_set= -ac_cv_env_LDFLAGS_value= -ac_cv_env_build_alias_set= -ac_cv_env_build_alias_value= -ac_cv_env_host_alias_set= -ac_cv_env_host_alias_value= -ac_cv_env_target_alias_set= -ac_cv_env_target_alias_value= -ac_cv_exeext= -ac_cv_objext=o -ac_cv_path_PERL=/usr/bin/perl -ac_cv_path_XMLTO=/usr/bin/xmlto -ac_cv_path_install='/usr/bin/install -c' -ac_cv_prog_AWK=gawk -ac_cv_prog_ac_ct_CC=gcc -ac_cv_prog_cc_g=yes -ac_cv_prog_cc_stdc= -ac_cv_prog_make_make_set=yes -am_cv_CC_dependencies_compiler_type=gcc3 - -## ----------------- ## -## Output variables. ## -## ----------------- ## - -ACLOCAL='${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run aclocal-1.9' -AMDEPBACKSLASH='\' -AMDEP_FALSE='#' -AMDEP_TRUE='' -AMTAR='${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run tar' -AUTOCONF='${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoconf' -AUTOHEADER='${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoheader' -AUTOMAKE='${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run automake-1.9' -AWK='gawk' -CC='gcc' -CCDEPMODE='depmode=gcc3' -CFLAGS='-g -O2' -CPPFLAGS='' -CYGPATH_W='echo' -DEFS='-DHAVE_CONFIG_H' -DEPDIR='.deps' -ECHO_C='' -ECHO_N='-n' -ECHO_T='' -EXEEXT='' -INITRD_TEMPLATE='Fedora' -INSTALL_DATA='${INSTALL} -m 644' -INSTALL_PROGRAM='${INSTALL}' -INSTALL_SCRIPT='${INSTALL}' -INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' -LDFLAGS='' -LIBOBJS='' -LIBS='' -LTLIBOBJS='' -MAKEINFO='${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run makeinfo' -OBJEXT='o' -PACKAGE='yaird' -PACKAGE_BUGREPORT='' -PACKAGE_NAME='' -PACKAGE_STRING='' -PACKAGE_TARNAME='' -PACKAGE_VERSION='' -PATH_SEPARATOR=':' -PERL='/usr/bin/perl' -SET_MAKE='' -SHELL='/bin/sh' -STRIP='' -VERSION='0.0.5' -XMLTO='/usr/bin/xmlto' -ac_ct_CC='gcc' -ac_ct_STRIP='' -am__fastdepCC_FALSE='#' -am__fastdepCC_TRUE='' -am__include='include' -am__leading_dot='.' -am__quote='' -am__tar='${AMTAR} chof - "$$tardir"' -am__untar='${AMTAR} xf -' -bindir='${exec_prefix}/bin' -build_alias='' -datadir='${prefix}/share' -exec_prefix='${prefix}' -host_alias='' -includedir='${prefix}/include' -infodir='${prefix}/info' -install_sh='/home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/install-sh' -libdir='${exec_prefix}/lib' -libexecdir='${exec_prefix}/libexec' -localstatedir='${prefix}/var' -mandir='${prefix}/man' -mkdir_p='mkdir -p --' -oldincludedir='/usr/include' -prefix='/usr/local' -program_transform_name='s,x,x,' -sbindir='${exec_prefix}/sbin' -sharedstatedir='${prefix}/com' -sysconfdir='${prefix}/etc' -target_alias='' - -## ----------- ## -## confdefs.h. ## -## ----------- ## - -#define PACKAGE "yaird" -#define PACKAGE_BUGREPORT "" -#define PACKAGE_NAME "" -#define PACKAGE_STRING "" -#define PACKAGE_TARNAME "" -#define PACKAGE_VERSION "" -#define VERSION "0.0.5" - -configure: exit 0 diff --git a/rescue/linux/cdrom/yaird-0.0.5/config.status b/rescue/linux/cdrom/yaird-0.0.5/config.status deleted file mode 100755 index afa833b..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/config.status +++ /dev/null @@ -1,1157 +0,0 @@ -#! /bin/sh -# Generated by configure. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=${CONFIG_SHELL-/bin/sh} -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - -exec 6>&1 - -# Open the log real soon, to keep \$[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. Logging --version etc. is OK. -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX -} >&5 -cat >&5 <<_CSEOF - -This file was extended by $as_me, which was -generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -_CSEOF -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -echo >&5 -config_files=" Makefile templates/Makefile perl/Makefile doc/Makefile exec/Makefile doc/yaird.xml" -config_headers=" include/config.h" -config_commands=" depfiles" - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Configuration commands: -$config_commands - -Report bugs to ." -ac_cs_version="\ -config.status -configured by ./configure, generated by GNU Autoconf 2.59, - with options \"'--enable-template=Fedora'\" - -Copyright (C) 2003 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." -srcdir=. -INSTALL="/usr/bin/install -c" -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` - ac_shift=: - ;; - -*) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_option=$1 - ac_need_defaults=false;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:$LINENO: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -if $ac_cs_recheck; then - echo "running /bin/sh ./configure " '--enable-template=Fedora' $ac_configure_extra_args " --no-create --no-recursion" >&6 - exec /bin/sh ./configure '--enable-template=Fedora' $ac_configure_extra_args --no-create --no-recursion -fi - -# -# INIT-COMMANDS section. -# - -AMDEP_TRUE="" ac_aux_dir="." - -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "templates/Makefile" ) CONFIG_FILES="$CONFIG_FILES templates/Makefile" ;; - "perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;; - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; - "exec/Makefile" ) CONFIG_FILES="$CONFIG_FILES exec/Makefile" ;; - "doc/yaird.xml" ) CONFIG_FILES="$CONFIG_FILES doc/yaird.xml" ;; - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason to put it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./confstat$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - - -# -# CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - # Protect against being on the right side of a sed subst in config.status. - sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g; - s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF -s,@SHELL@,/bin/sh,;t t -s,@PATH_SEPARATOR@,:,;t t -s,@PACKAGE_NAME@,,;t t -s,@PACKAGE_TARNAME@,,;t t -s,@PACKAGE_VERSION@,,;t t -s,@PACKAGE_STRING@,,;t t -s,@PACKAGE_BUGREPORT@,,;t t -s,@exec_prefix@,${prefix},;t t -s,@prefix@,/usr/local,;t t -s,@program_transform_name@,s,x,x,,;t t -s,@bindir@,${exec_prefix}/bin,;t t -s,@sbindir@,${exec_prefix}/sbin,;t t -s,@libexecdir@,${exec_prefix}/libexec,;t t -s,@datadir@,${prefix}/share,;t t -s,@sysconfdir@,${prefix}/etc,;t t -s,@sharedstatedir@,${prefix}/com,;t t -s,@localstatedir@,${prefix}/var,;t t -s,@libdir@,${exec_prefix}/lib,;t t -s,@includedir@,${prefix}/include,;t t -s,@oldincludedir@,/usr/include,;t t -s,@infodir@,${prefix}/info,;t t -s,@mandir@,${prefix}/man,;t t -s,@build_alias@,,;t t -s,@host_alias@,,;t t -s,@target_alias@,,;t t -s,@DEFS@,-DHAVE_CONFIG_H,;t t -s,@ECHO_C@,,;t t -s,@ECHO_N@,-n,;t t -s,@ECHO_T@,,;t t -s,@LIBS@,,;t t -s,@INSTALL_PROGRAM@,${INSTALL},;t t -s,@INSTALL_SCRIPT@,${INSTALL},;t t -s,@INSTALL_DATA@,${INSTALL} -m 644,;t t -s,@CYGPATH_W@,echo,;t t -s,@PACKAGE@,yaird,;t t -s,@VERSION@,0.0.5,;t t -s,@ACLOCAL@,${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run aclocal-1.9,;t t -s,@AUTOCONF@,${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoconf,;t t -s,@AUTOMAKE@,${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run automake-1.9,;t t -s,@AUTOHEADER@,${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoheader,;t t -s,@MAKEINFO@,${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run makeinfo,;t t -s,@install_sh@,/home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/install-sh,;t t -s,@STRIP@,,;t t -s,@ac_ct_STRIP@,,;t t -s,@INSTALL_STRIP_PROGRAM@,${SHELL} $(install_sh) -c -s,;t t -s,@mkdir_p@,mkdir -p --,;t t -s,@AWK@,gawk,;t t -s,@SET_MAKE@,,;t t -s,@am__leading_dot@,.,;t t -s,@AMTAR@,${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run tar,;t t -s,@am__tar@,${AMTAR} chof - "$$tardir",;t t -s,@am__untar@,${AMTAR} xf -,;t t -s,@INITRD_TEMPLATE@,Fedora,;t t -s,@PERL@,/usr/bin/perl,;t t -s,@CC@,gcc,;t t -s,@CFLAGS@,-g -O2,;t t -s,@LDFLAGS@,,;t t -s,@CPPFLAGS@,,;t t -s,@ac_ct_CC@,gcc,;t t -s,@EXEEXT@,,;t t -s,@OBJEXT@,o,;t t -s,@DEPDIR@,.deps,;t t -s,@am__include@,include,;t t -s,@am__quote@,,;t t -s,@AMDEP_TRUE@,,;t t -s,@AMDEP_FALSE@,#,;t t -s,@AMDEPBACKSLASH@,\,;t t -s,@CCDEPMODE@,depmode=gcc3,;t t -s,@am__fastdepCC_TRUE@,,;t t -s,@am__fastdepCC_FALSE@,#,;t t -s,@XMLTO@,/usr/bin/xmlto,;t t -s,@LIBOBJS@,,;t t -s,@LTLIBOBJS@,,;t t -CEOF - - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`(dirname "$ac_file") 2>/dev/null || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; - esac - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - configure_input= - else - configure_input="$ac_file. " - fi - configure_input=$configure_input"Generated from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } - - if test x"$ac_file" != x-; then - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - sed "/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -} - -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@abs_srcdir@,$ac_abs_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -s,@builddir@,$ac_builddir,;t t -s,@abs_builddir@,$ac_abs_builddir,;t t -s,@top_builddir@,$ac_top_builddir,;t t -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -s,@INSTALL@,$ac_INSTALL,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -done - -# -# CONFIG_HEADER section. -# - -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where -# NAME is the cpp macro being defined and VALUE is the value it is being given. -# -# ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='[ ].*$,\1#\2' -ac_dC=' ' -ac_dD=',;t' -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='$,\1#\2define\3' -ac_uC=' ' -ac_uD=',;t' - -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - # Do quote $f, to prevent DOS paths from being IFS'd. - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } - # Remove the trailing spaces. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in - - # Handle all the #define templates only if necessary. - if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then - # If there are no defines, we may have an empty if/fi - : - cat >$tmp/defines.sed <$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in - - fi # grep - - # Handle all the #undef templates - cat >$tmp/undefs.sed <$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - echo "/* Generated by configure. */" >$tmp/config.h - else - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h - fi - cat $tmp/in >>$tmp/config.h - rm -f $tmp/in - if test x"$ac_file" != x-; then - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - ac_dir=`(dirname "$ac_file") 2>/dev/null || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - rm -f $ac_file - mv $tmp/config.h $ac_file - fi - else - cat $tmp/config.h - rm -f $tmp/config.h - fi -# Compute $ac_file's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $ac_file | $ac_file:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X$ac_file : 'X\(//\)[^/]' \| \ - X$ac_file : 'X\(//\)$' \| \ - X$ac_file : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X$ac_file | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'`/stamp-h$_am_stamp_count -done - -# -# CONFIG_COMMANDS section. -# -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue - ac_dest=`echo "$ac_file" | sed 's,:.*,,'` - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_dir=`(dirname "$ac_dest") 2>/dev/null || -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_dest" : 'X\(//\)[^/]' \| \ - X"$ac_dest" : 'X\(//\)$' \| \ - X"$ac_dest" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_dest" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 -echo "$as_me: executing $ac_dest commands" >&6;} - case $ac_dest in - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then - dirpart=`(dirname "$mf") 2>/dev/null || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`(dirname "$file") 2>/dev/null || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p $dirpart/$fdir - else - as_dir=$dirpart/$fdir - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} - { (exit 1); exit 1; }; }; } - - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - esac -done - -{ (exit 0); exit 0; } diff --git a/rescue/linux/cdrom/yaird-0.0.5/configure b/rescue/linux/cdrom/yaird-0.0.5/configure deleted file mode 100755 index 2be1d15..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/configure +++ /dev/null @@ -1,4345 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59. -# -# Copyright (C) 2003 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -exec 6>&1 - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_config_libobj_dir=. -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="perl/main.pl" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar INITRD_TEMPLATE PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE XMLTO LIBOBJS LTLIBOBJS' -ac_subst_files='' - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_option in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "enable_$ac_feature='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "with_$ac_package='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_confdir=`(dirname "$0") 2>/dev/null || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 - { (exit 1); exit 1; }; } -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias -ac_env_CC_set=${CC+set} -ac_env_CC_value=$CC -ac_cv_env_CC_set=${CC+set} -ac_cv_env_CC_value=$CC -ac_env_CFLAGS_set=${CFLAGS+set} -ac_env_CFLAGS_value=$CFLAGS -ac_cv_env_CFLAGS_set=${CFLAGS+set} -ac_cv_env_CFLAGS_value=$CFLAGS -ac_env_LDFLAGS_set=${LDFLAGS+set} -ac_env_LDFLAGS_value=$LDFLAGS -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} -ac_cv_env_LDFLAGS_value=$LDFLAGS -ac_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_env_CPPFLAGS_value=$CPPFLAGS -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_cv_env_CPPFLAGS_value=$CPPFLAGS - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -_ACEOF - - cat <<_ACEOF -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data [PREFIX/share] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --infodir=DIR info documentation [PREFIX/info] - --mandir=DIR man documentation [PREFIX/man] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-template=name install templates/name.pm as initrd template (no - default) - --enable-nuke Nuke initramfs before moving to real root - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have - headers in a nonstandard directory - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - ac_popdir=`pwd` - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d $ac_dir || continue - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - cd $ac_dir - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_srcdir/configure.gnu; then - echo - $SHELL $ac_srcdir/configure.gnu --help=recursive - elif test -f $ac_srcdir/configure; then - echo - $SHELL $ac_srcdir/configure --help=recursive - elif test -f $ac_srcdir/configure.ac || - test -f $ac_srcdir/configure.in; then - echo - $ac_configure --help - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi - cd "$ac_popdir" - done -fi - -test -n "$ac_init_help" && exit 0 -if $ac_init_version; then - cat <<\_ACEOF - -Copyright (C) 2003 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit 0 -fi -exec 5>config.log -cat >&5 <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.59. Invocation command line was - - $ $0 $@ - -_ACEOF -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_sep= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - # Get rid of the leading space. - ac_sep=" " - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Be sure not to use single quotes in there, as some shells, -# such as our DU 5.0 friend, will then `close' the trap. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -{ - (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) - sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; - *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------- ## -## Output files. ## -## ------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - sed "/^$/d" confdefs.h | sort - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core && - rm -rf conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status - ' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - - - - - - - - - - - - - - - - - -YAIRD_VERSION=0.0.5 -am__api_version="1.9" -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f $ac_dir/shtool; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} - { (exit 1); exit 1; }; } -fi -ac_config_guess="$SHELL $ac_aux_dir/config.guess" -ac_config_sub="$SHELL $ac_aux_dir/config.sub" -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -test "$program_prefix" != NONE && - program_transform_name="s,^,$program_prefix,;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$,$program_suffix,;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$AWK" && break -done - -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -all: - @echo 'ac_maketemp="$(MAKE)"' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftest.make -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - SET_MAKE= -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=yaird - VERSION=${YAIRD_VERSION} - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"$am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - STRIP=$ac_ct_STRIP -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - - -# -# Required optional feature to determine which template to install. -# Packagers are expected to put their own template in ./templates -# before configuring, so this should not get in their way. -# This should go away once we have option file parsing. -# -# Check whether --enable-template or --disable-template was given. -if test "${enable_template+set}" = set; then - enableval="$enable_template" - - if test -f "templates/$enableval.pm" - then - INITRD_TEMPLATE="$enableval" - - else - { { echo "$as_me:$LINENO: error: Template '$enableval' not found in ./templates" >&5 -echo "$as_me: error: Template '$enableval' not found in ./templates" >&2;} - { (exit 1); exit 1; }; } - fi - -else - { { echo "$as_me:$LINENO: error: required option --enable-template=xxx is missing" >&5 -echo "$as_me: error: required option --enable-template=xxx is missing" >&2;} - { (exit 1); exit 1; }; } -fi; - -# Check whether --enable-nuke or --disable-nuke was given. -if test "${enable_nuke+set}" = set; then - enableval="$enable_nuke" - - case "${enableval}" in - yes) enable_nuke=true ;; - no) enable_nuke=false ;; - *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-nuke" >&5 -echo "$as_me: error: bad value ${enableval} for --enable-nuke" >&2;} - { (exit 1); exit 1; }; } ;; - esac - -else - - enable_nuke=false - -fi; -if test "$enable_nuke" = true; then - -cat >>confdefs.h <<\_ACEOF -#define ENABLE_NUKE 1 -_ACEOF - -fi - -# Checks for programs. -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - ;; -esac -fi -PERL=$ac_cv_path_PERL - -if test -n "$PERL"; then - echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$ac_ct_CC" && break -done - - CC=$ac_ct_CC -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO:" \ - "checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 - (eval $ac_compiler --version &5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 - (eval $ac_compiler -v &5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 - (eval $ac_compiler -V &5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 - (eval $ac_link_default) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Find the output, starting from the most likely. This scheme is -# not robust to junk in `.', hence go to wildcards (a.*) only as a last -# resort. - -# Be careful to initialize this variable, since it used to be cached. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. -ac_cv_exeext= -# b.out is created by i960 compilers. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) - ;; - conftest.$ac_ext ) - # This is the source file. - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - # FIXME: I believe we export ac_cv_exeext for Libtool, - # but it would be cool to find out if it's true. Does anybody - # maintain Libtool? --akim. - export ac_cv_exeext - break;; - * ) - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext -echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6 - -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6 - -echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6 - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6 -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_compiler_gnu=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -CFLAGS="-g" -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_prog_cc_g=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_stdc=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std1 is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std1. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -# Don't try gcc -ansi; that turns off useful extensions and -# breaks some systems' header files. -# AIX -qlanglvl=ansi -# Ultrix and OSF/1 -std1 -# HP-UX 10.20 and later -Ae -# HP-UX older versions -Aa -D_HPUX_SOURCE -# SVR4 -Xc -D__EXTENSIONS__ -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_stdc=$ac_arg -break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext -done -rm -f conftest.$ac_ext conftest.$ac_objext -CC=$ac_save_CC - -fi - -case "x$ac_cv_prog_cc_stdc" in - x|xno) - echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6 ;; - *) - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 - CC="$CC $ac_cv_prog_cc_stdc" ;; -esac - -# Some people use a C++ compiler to compile C. Since we use `exit', -# in C++ we need to declare it. In case someone uses the same compiler -# for both compiling C and C++ we need to have the C++ compiler decide -# the declaration of exit, since it's the most demanding environment. -cat >conftest.$ac_ext <<_ACEOF -#ifndef __cplusplus - choke me -#endif -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ - '' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_declaration -#include -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -continue -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -rm -f conftest* -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - - ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6 -rm -f confinc confmf - -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval="$enable_dependency_tracking" - -fi; -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - - -if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - - -depcc="$CC" am_compiler_list= - -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - - -if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - -# -# XML formatting; unclear what processor is most widely available. -# -# Extract the first word of "xmlto", so it can be a program name with args. -set dummy xmlto; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_XMLTO+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $XMLTO in - [\\/]* | ?:[\\/]*) - ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_path_XMLTO" && ac_cv_path_XMLTO=":" - ;; -esac -fi -XMLTO=$ac_cv_path_XMLTO - -if test -n "$XMLTO"; then - echo "$as_me:$LINENO: result: $XMLTO" >&5 -echo "${ECHO_T}$XMLTO" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - -# Checks for libraries. -# Checks for header files. -# Checks for typedefs, structures, and compiler characteristics. -# Checks for library functions. - -# Use this when we need to compile C programs. - ac_config_headers="$ac_config_headers include/config.h" - - - ac_config_files="$ac_config_files Makefile templates/Makefile perl/Makefile doc/Makefile exec/Makefile doc/yaird.xml" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - -DEFS=-DHAVE_CONFIG_H - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_i=`echo "$ac_i" | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Add them. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - -exec 6>&1 - -# Open the log real soon, to keep \$[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. Logging --version etc. is OK. -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX -} >&5 -cat >&5 <<_CSEOF - -This file was extended by $as_me, which was -generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -_CSEOF -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -echo >&5 -_ACEOF - -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi - -cat >>$CONFIG_STATUS <<\_ACEOF - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Configuration commands: -$config_commands - -Report bugs to ." -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.59, - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2003 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." -srcdir=$srcdir -INSTALL="$INSTALL" -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` - ac_shift=: - ;; - -*) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_option=$1 - ac_need_defaults=false;; - esac - - case $ac_option in - # Handling of the options. -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:$LINENO: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS section. -# - -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - - - -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "templates/Makefile" ) CONFIG_FILES="$CONFIG_FILES templates/Makefile" ;; - "perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;; - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; - "exec/Makefile" ) CONFIG_FILES="$CONFIG_FILES exec/Makefile" ;; - "doc/yaird.xml" ) CONFIG_FILES="$CONFIG_FILES doc/yaird.xml" ;; - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason to put it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./confstat$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF - -# -# CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "\$CONFIG_FILES"; then - # Protect against being on the right side of a sed subst in config.status. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@DEFS@,$DEFS,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@LIBS@,$LIBS,;t t -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -s,@INSTALL_DATA@,$INSTALL_DATA,;t t -s,@CYGPATH_W@,$CYGPATH_W,;t t -s,@PACKAGE@,$PACKAGE,;t t -s,@VERSION@,$VERSION,;t t -s,@ACLOCAL@,$ACLOCAL,;t t -s,@AUTOCONF@,$AUTOCONF,;t t -s,@AUTOMAKE@,$AUTOMAKE,;t t -s,@AUTOHEADER@,$AUTOHEADER,;t t -s,@MAKEINFO@,$MAKEINFO,;t t -s,@install_sh@,$install_sh,;t t -s,@STRIP@,$STRIP,;t t -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t -s,@mkdir_p@,$mkdir_p,;t t -s,@AWK@,$AWK,;t t -s,@SET_MAKE@,$SET_MAKE,;t t -s,@am__leading_dot@,$am__leading_dot,;t t -s,@AMTAR@,$AMTAR,;t t -s,@am__tar@,$am__tar,;t t -s,@am__untar@,$am__untar,;t t -s,@INITRD_TEMPLATE@,$INITRD_TEMPLATE,;t t -s,@PERL@,$PERL,;t t -s,@CC@,$CC,;t t -s,@CFLAGS@,$CFLAGS,;t t -s,@LDFLAGS@,$LDFLAGS,;t t -s,@CPPFLAGS@,$CPPFLAGS,;t t -s,@ac_ct_CC@,$ac_ct_CC,;t t -s,@EXEEXT@,$EXEEXT,;t t -s,@OBJEXT@,$OBJEXT,;t t -s,@DEPDIR@,$DEPDIR,;t t -s,@am__include@,$am__include,;t t -s,@am__quote@,$am__quote,;t t -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t -s,@CCDEPMODE@,$CCDEPMODE,;t t -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t -s,@XMLTO@,$XMLTO,;t t -s,@LIBOBJS@,$LIBOBJS,;t t -s,@LTLIBOBJS@,$LTLIBOBJS,;t t -CEOF - -_ACEOF - - cat >>$CONFIG_STATUS <<\_ACEOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`(dirname "$ac_file") 2>/dev/null || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; - esac - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - configure_input= - else - configure_input="$ac_file. " - fi - configure_input=$configure_input"Generated from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } - - if test x"$ac_file" != x-; then - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@abs_srcdir@,$ac_abs_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -s,@builddir@,$ac_builddir,;t t -s,@abs_builddir@,$ac_abs_builddir,;t t -s,@top_builddir@,$ac_top_builddir,;t t -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -s,@INSTALL@,$ac_INSTALL,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -done -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF - -# -# CONFIG_HEADER section. -# - -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where -# NAME is the cpp macro being defined and VALUE is the value it is being given. -# -# ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='[ ].*$,\1#\2' -ac_dC=' ' -ac_dD=',;t' -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='$,\1#\2define\3' -ac_uC=' ' -ac_uD=',;t' - -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - # Do quote $f, to prevent DOS paths from being IFS'd. - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } - # Remove the trailing spaces. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in - -_ACEOF - -# Transform confdefs.h into two sed scripts, `conftest.defines' and -# `conftest.undefs', that substitutes the proper values into -# config.h.in to produce config.h. The first handles `#define' -# templates, and the second `#undef' templates. -# And first: Protect against being on the right side of a sed subst in -# config.status. Protect against being in an unquoted here document -# in config.status. -rm -f conftest.defines conftest.undefs -# Using a here document instead of a string reduces the quoting nightmare. -# Putting comments in sed scripts is not portable. -# -# `end' is used to avoid that the second main sed command (meant for -# 0-ary CPP macros) applies to n-ary macro definitions. -# See the Autoconf documentation for `clear'. -cat >confdef2sed.sed <<\_ACEOF -s/[\\&,]/\\&/g -s,[\\$`],\\&,g -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp -t end -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp -: end -_ACEOF -# If some macros were called several times there might be several times -# the same #defines, which is useless. Nevertheless, we may not want to -# sort them, since we want the *last* AC-DEFINE to be honored. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs -rm -f confdef2sed.sed - -# This sed command replaces #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -cat >>conftest.undefs <<\_ACEOF -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, -_ACEOF - -# Break up conftest.defines because some shells have a limit on the size -# of here documents, and old seds have small limits too (100 cmds). -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS -echo ' :' >>$CONFIG_STATUS -rm -f conftest.tail -while grep . conftest.defines >/dev/null -do - # Write a limited-size here document to $tmp/defines.sed. - echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS - # Speed up: don't consider the non `#define' lines. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS - # Work around the forget-to-reset-the-flag bug. - echo 't clr' >>$CONFIG_STATUS - echo ': clr' >>$CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f $tmp/defines.sed $tmp/in >$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in -' >>$CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines -echo ' fi # grep' >>$CONFIG_STATUS -echo >>$CONFIG_STATUS - -# Break up conftest.undefs because some shells have a limit on the size -# of here documents, and old seds have small limits too (100 cmds). -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS -rm -f conftest.tail -while grep . conftest.undefs >/dev/null -do - # Write a limited-size here document to $tmp/undefs.sed. - echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS - # Speed up: don't consider the non `#undef' - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS - # Work around the forget-to-reset-the-flag bug. - echo 't clr' >>$CONFIG_STATUS - echo ': clr' >>$CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS - echo 'CEOF - sed -f $tmp/undefs.sed $tmp/in >$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in -' >>$CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail - rm -f conftest.undefs - mv conftest.tail conftest.undefs -done -rm -f conftest.undefs - -cat >>$CONFIG_STATUS <<\_ACEOF - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - echo "/* Generated by configure. */" >$tmp/config.h - else - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h - fi - cat $tmp/in >>$tmp/config.h - rm -f $tmp/in - if test x"$ac_file" != x-; then - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - ac_dir=`(dirname "$ac_file") 2>/dev/null || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - rm -f $ac_file - mv $tmp/config.h $ac_file - fi - else - cat $tmp/config.h - rm -f $tmp/config.h - fi -# Compute $ac_file's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $ac_file | $ac_file:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X$ac_file : 'X\(//\)[^/]' \| \ - X$ac_file : 'X\(//\)$' \| \ - X$ac_file : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X$ac_file | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'`/stamp-h$_am_stamp_count -done -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF - -# -# CONFIG_COMMANDS section. -# -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue - ac_dest=`echo "$ac_file" | sed 's,:.*,,'` - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_dir=`(dirname "$ac_dest") 2>/dev/null || -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_dest" : 'X\(//\)[^/]' \| \ - X"$ac_dest" : 'X\(//\)$' \| \ - X"$ac_dest" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_dest" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 -echo "$as_me: executing $ac_dest commands" >&6;} - case $ac_dest in - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then - dirpart=`(dirname "$mf") 2>/dev/null || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`(dirname "$file") 2>/dev/null || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p $dirpart/$fdir - else - as_dir=$dirpart/$fdir - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} - { (exit 1); exit 1; }; }; } - - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - esac -done -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - - diff --git a/rescue/linux/cdrom/yaird-0.0.5/configure.in b/rescue/linux/cdrom/yaird-0.0.5/configure.in deleted file mode 100644 index 0a38911..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/configure.in +++ /dev/null @@ -1,75 +0,0 @@ -# -# Process this file with autoconf to produce a configure script. -# - -# autoconf claims that this should be package name; -# but it seems that the name of a randomly choosen but -# existing file is required. -AC_INIT(perl/main.pl) - -YAIRD_VERSION=0.0.5 -AM_INIT_AUTOMAKE(yaird,${YAIRD_VERSION}) - -# -# Required optional feature to determine which template to install. -# Packagers are expected to put their own template in ./templates -# before configuring, so this should not get in their way. -# This should go away once we have option file parsing. -# -AC_ARG_ENABLE(template, - AC_HELP_STRING([--enable-template=name],[install templates/name.pm as initrd template (no default)]), - [ - if test -f "templates/$enableval.pm" - then - INITRD_TEMPLATE="$enableval" - AC_SUBST(INITRD_TEMPLATE) - else - AC_MSG_ERROR(Template '$enableval' not found in ./templates) - fi - ], - [ AC_MSG_ERROR(required option --enable-template=xxx is missing) ]) - -AC_ARG_ENABLE(nuke, - AC_HELP_STRING([--enable-nuke], - [Nuke initramfs before moving to real root]), - [ - case "${enableval}" in - yes) enable_nuke=true ;; - no) enable_nuke=false ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-nuke) ;; - esac - ],[ - enable_nuke=false - ]) -if test "$enable_nuke" = true; then - AC_DEFINE(ENABLE_NUKE,1, - [Define to nuke initramfs before moving to real root]) -fi - -# Checks for programs. -AC_PATH_PROG(PERL,perl) -AC_PROG_CC - -# -# XML formatting; unclear what processor is most widely available. -# -AC_PATH_PROG(XMLTO,xmlto,:) - -# Checks for libraries. -# Checks for header files. -# Checks for typedefs, structures, and compiler characteristics. -# Checks for library functions. - -# Use this when we need to compile C programs. -AM_CONFIG_HEADER(include/config.h) - -AC_CONFIG_FILES([ - Makefile - templates/Makefile - perl/Makefile - doc/Makefile - exec/Makefile - doc/yaird.xml - ]) -AC_OUTPUT() - diff --git a/rescue/linux/cdrom/yaird-0.0.5/depcomp b/rescue/linux/cdrom/yaird-0.0.5/depcomp deleted file mode 100755 index ffcd540..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/depcomp +++ /dev/null @@ -1,529 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2005-02-09.22 - -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Alexandre Oliva . - -case $1 in - '') - echo "$0: No command. Try \`$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp [--help] [--version] PROGRAM [ARGS] - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by `PROGRAMS ARGS'. - object Object file output by `PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputing dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## There are various ways to get dependency output from gcc. Here's -## why we pick this rather obscure method: -## - Don't want to use -MD because we'd like the dependencies to end -## up in a subdir. Having to rename by hand is ugly. -## (We might end up doing this anyway to support other compilers.) -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). -## - Using -M directly means running the compiler twice (even worse -## than renaming). - if test -z "$gccflag"; then - gccflag=-MD, - fi - "$@" -Wp,"$gccflag$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz -## The second -e expression handles DOS-style file names with drive letters. - sed -e 's/^[^:]*: / /' \ - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" -## This next piece of magic avoids the `deleted header file' problem. -## The problem is that when a header file which appears in a .P file -## is deleted, the dependency causes make to die (because there is -## typically no way to rebuild the header). We avoid this by adding -## dummy dependencies for each header file. Too bad gcc doesn't do -## this for us directly. - tr ' ' ' -' < "$tmpdepfile" | -## Some versions of gcc put a space before the `:'. On the theory -## that the space means something, we add a space to the output as -## well. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like `#:fec' to the end of the - # dependency line. - tr ' ' ' -' < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ - tr ' -' ' ' >> $depfile - echo >> $depfile - - # The second pass generates a dummy entry for each header file. - tr ' ' ' -' < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> $depfile - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts `$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` - tmpdepfile="$stripped.u" - if test "$libtool" = yes; then - "$@" -Wc,-M - else - "$@" -M - fi - stat=$? - - if test -f "$tmpdepfile"; then : - else - stripped=`echo "$stripped" | sed 's,^.*/,,'` - tmpdepfile="$stripped.u" - fi - - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - - if test -f "$tmpdepfile"; then - outname="$stripped.o" - # Each line is of the form `foo.o: dependent.h'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -icc) - # Intel's C compiler understands `-MD -MF file'. However on - # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c - # ICC 7.0 will fill foo.d with something like - # foo.o: sub/foo.c - # foo.o: sub/foo.h - # which is wrong. We want: - # sub/foo.o: sub/foo.c - # sub/foo.o: sub/foo.h - # sub/foo.c: - # sub/foo.h: - # ICC 7.1 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using \ : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form `foo.o: dependent.h', - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | - sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -tru64) - # The Tru64 compiler uses -MD to generate dependencies as a side - # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put - # dependencies in `foo.d' instead, so we check for that too. - # Subdirectories are respected. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - - if test "$libtool" = yes; then - # With Tru64 cc, shared objects can also be used to make a - # static library. This mecanism is used in libtool 1.4 series to - # handle both shared and static libraries in a single compilation. - # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. - # - # With libtool 1.5 this exception was removed, and libtool now - # generates 2 separate objects for the 2 libraries. These two - # compilations output dependencies in in $dir.libs/$base.o.d and - # in $dir$base.o.d. We have to check for both files, because - # one of the two compilations can be disabled. We should prefer - # $dir$base.o.d over $dir.libs/$base.o.d because the latter is - # automatically cleaned when .libs/ is deleted, while ignoring - # the former would cause a distcleancheck panic. - tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 - tmpdepfile2=$dir$base.o.d # libtool 1.5 - tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 - tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.o.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - tmpdepfile4=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" - # That's a tab and a space in the []. - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" - else - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do - shift - done - shift - fi - - # Remove `-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for `:' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. - "$@" $dashmflag | - sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - tr ' ' ' -' < "$tmpdepfile" | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no - for arg in "$@"; do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix="`echo $object | sed 's/^.*\././'`" - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - sed '1,2d' "$tmpdepfile" | tr ' ' ' -' | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do - shift - done - shift - fi - - # Remove `-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E | - sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | - sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o, - # because we must use -o when running libtool. - "$@" || exit $? - IFS=" " - for arg - do - case "$arg" in - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" - echo " " >> "$depfile" - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile b/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile deleted file mode 100644 index dc7ff51..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile +++ /dev/null @@ -1,326 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# doc/Makefile. Generated from Makefile.in by configure. - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - - -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Quick hack of a makefile, based on dia xml documentation. -# using the XSL sheets with xsltproc is a lot quicker than -# using jade via db2html; the generated html also is a lot more -# readable. On the other hand, jade's validation looks more robust. -# - -srcdir = . -top_srcdir = .. - -pkgdatadir = $(datadir)/yaird -pkglibdir = $(libdir)/yaird -pkgincludedir = $(includedir)/yaird -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = /usr/bin/install -c -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -subdir = doc -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/yaird.xml.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = yaird.xml -SOURCES = -DIST_SOURCES = -DATA = $(noinst_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run aclocal-1.9 -AMDEP_FALSE = # -AMDEP_TRUE = -AMTAR = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run tar -AUTOCONF = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoconf -AUTOHEADER = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoheader -AUTOMAKE = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run automake-1.9 -AWK = gawk -CC = gcc -CCDEPMODE = depmode=gcc3 -CFLAGS = -g -O2 -CPPFLAGS = -CYGPATH_W = echo -DEFS = -DHAVE_CONFIG_H -DEPDIR = .deps -ECHO_C = -ECHO_N = -n -ECHO_T = -EXEEXT = -INITRD_TEMPLATE = Fedora -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_PROGRAM = ${INSTALL} -INSTALL_SCRIPT = ${INSTALL} -INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s -LDFLAGS = -LIBOBJS = -LIBS = -LTLIBOBJS = -MAKEINFO = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run makeinfo -OBJEXT = o -PACKAGE = yaird -PACKAGE_BUGREPORT = -PACKAGE_NAME = -PACKAGE_STRING = -PACKAGE_TARNAME = -PACKAGE_VERSION = -PATH_SEPARATOR = : -PERL = /usr/bin/perl -SET_MAKE = -SHELL = /bin/sh -STRIP = -VERSION = 0.0.5 -XMLTO = /usr/bin/xmlto -ac_ct_CC = gcc -ac_ct_STRIP = -am__fastdepCC_FALSE = # -am__fastdepCC_TRUE = -am__include = include -am__leading_dot = . -am__quote = -am__tar = ${AMTAR} chof - "$$tardir" -am__untar = ${AMTAR} xf - -bindir = ${exec_prefix}/bin -build_alias = -datadir = ${prefix}/share -exec_prefix = ${prefix} -host_alias = -includedir = ${prefix}/include -infodir = ${prefix}/info -install_sh = /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/install-sh -libdir = ${exec_prefix}/lib -libexecdir = ${exec_prefix}/libexec -localstatedir = ${prefix}/var -mandir = ${prefix}/man -mkdir_p = mkdir -p -- -oldincludedir = /usr/include -prefix = /usr/local -program_transform_name = s,x,x, -sbindir = ${exec_prefix}/sbin -sharedstatedir = ${prefix}/com -sysconfdir = ${prefix}/etc -target_alias = -noinst_DATA = yaird.html -CLEANFILES = $(noinst_DATA) - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - authors.xml \ - concepts.xml \ - figures/console.dia \ - figures/console.png \ - input.xml \ - intro.xml \ - kernel.xml \ - license.xml \ - raid.xml \ - security.xml \ - shlibs.xml \ - spec.xml \ - tools.xml \ - yaird.xml - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -yaird.xml: $(top_builddir)/config.status $(srcdir)/yaird.xml.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/figures - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - - -yaird.html: $(EXTRA_DIST) - $(XMLTO) xhtml-nochunks yaird.xml -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile.am b/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile.am deleted file mode 100644 index aae0c4a..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile.am +++ /dev/null @@ -1,48 +0,0 @@ -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Quick hack of a makefile, based on dia xml documentation. -# using the XSL sheets with xsltproc is a lot quicker than -# using jade via db2html; the generated html also is a lot more -# readable. On the other hand, jade's validation looks more robust. -# - -noinst_DATA = yaird.html -CLEANFILES = $(noinst_DATA) - -yaird.html: $(EXTRA_DIST) - $(XMLTO) xhtml-nochunks yaird.xml - - - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - authors.xml \ - concepts.xml \ - figures/console.dia \ - figures/console.png \ - input.xml \ - intro.xml \ - kernel.xml \ - license.xml \ - raid.xml \ - security.xml \ - shlibs.xml \ - spec.xml \ - tools.xml \ - yaird.xml diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile.in b/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile.in deleted file mode 100644 index d399043..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/Makefile.in +++ /dev/null @@ -1,326 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Quick hack of a makefile, based on dia xml documentation. -# using the XSL sheets with xsltproc is a lot quicker than -# using jade via db2html; the generated html also is a lot more -# readable. On the other hand, jade's validation looks more robust. -# - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -subdir = doc -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/yaird.xml.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = yaird.xml -SOURCES = -DIST_SOURCES = -DATA = $(noinst_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INITRD_TEMPLATE = @INITRD_TEMPLATE@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMLTO = @XMLTO@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build_alias = @build_alias@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host_alias = @host_alias@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -noinst_DATA = yaird.html -CLEANFILES = $(noinst_DATA) - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - authors.xml \ - concepts.xml \ - figures/console.dia \ - figures/console.png \ - input.xml \ - intro.xml \ - kernel.xml \ - license.xml \ - raid.xml \ - security.xml \ - shlibs.xml \ - spec.xml \ - tools.xml \ - yaird.xml - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -yaird.xml: $(top_builddir)/config.status $(srcdir)/yaird.xml.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/figures - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am - - -yaird.html: $(EXTRA_DIST) - $(XMLTO) xhtml-nochunks yaird.xml -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/authors.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/authors.xml deleted file mode 100644 index 68ed2bf..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/authors.xml +++ /dev/null @@ -1,9 +0,0 @@ -
- Authors - - This is a place holder section. - Yaird was written by ... - website here ... comments to ... bug reports ... - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/concepts.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/concepts.xml deleted file mode 100644 index 27722de..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/concepts.xml +++ /dev/null @@ -1,450 +0,0 @@ -
- Concepts - - This section discusses the basic concepts underlying - yaird. - - - - The basic operation is simple: - - - - - make a plan to build an image, - - - - - - transform the plan to a detailed description of the image, - - - - - - build and pack the image. - - - - - - - - - The plan consists of a number of goals to be achieved: a loaded - device driver, a block special file created, a device mounted. - The plan does not specify details such as the exact path of the - mknod executable or the shared libraries - needed to run that executable. - - - - Making the Plan - - - The most interesting part is making the plan. At the top level, - the plan is governed by some ultimate goals. For now, the only - goal is to get a working keyboard and to mount the root file system, - but if we're going to support swsusp, the swap devices also need to - be activated. To realise the goal, subgoals need to be realised. - As an example, before mounting a file system, the modules containing - the implementation of the file system need to be loaded. - - - - To refine the goal of loading a kernel module, - the ModDepTab module interprets - modules.dep for the new kernel. Given a - module name, this will return a list of required modules with all - dependencies recursively resolved. It knows about the equivalence - between hyphen and underscore in module names, it also knows how - to search for modules in the /lib/modules - directory. - - - - The KConfig module determines if loading a - module can be omitted because the module is hardcoded into the - kernel. As an example, it is aware of the fact that the module - ext3 is not needed if the new kernel configuration - contains CONFIG_EXT3_FS=y. - - Having knowledge of the relation between module names and - kernel defines hardcoded into yaird - is hardly elegant. Perhaps it is possible to generate this - mapping based on the kernel Makefiles when building the - kernel, but that's too complex just now. - - - Only a few modules are known: yaird - looks for modules such as ext3 when that filesystem - is used, so it makes sense to check whether a missing module - is compiled in. On the other hand, hardware modules that are - compiled in never show up in modules.pcimap - and friends, so they remain completely outside the view of - yaird. - - - - Module aliases and options as supported by - modprobe are unsupported for the moment. - - - - Before a device as listed in /etc/fstab can be - mounted, that device needs to be enabled. That device could be an - NFS mount, a loopback mount or it could be a block device. The NFS - and loopback cases are not supported yet, but block devices are. - This support is based on a number of sources of information: - - - - - Scanning the /dev directory gives us the - relation between all block special files and major/minor - numbers. - - - - - - Scanning the /sys/block directory gives us the - relation between all major/minor numbers and kernel names - such as dm-0 or sda1; it - also gives the relation between partitions and complete - devices. - - - - - - If there is a symlink in a /sys/block - subdirectory to the /sys/devices - directory, it also gives is the relation between a block - device and the underlying hardware. - - - - - - - - Based on the kernel name and partition relationships of the device, - we determine the steps needed to activate the device. As an example, - to activate sda1, we need to activate sda, - then create a block special file for sda1. As - another example, to activate dm-0, our first bet is - to check whether this is an LVM logical - volume, - - It could also be an encrypted device; this case is not handled - yet. - - and if so activate the - physical volumes underlying the volume group, and finally running - vgchange -a y. - - - - - Hardware Planning - - - Some devices, such as sdx or hdy, are - expected to have underlying hardware; as an example, sda - may be backed by pci0000:00/0000:00:1f.2/host0/0:0:0:0. - This represents a hardware path, in this case a controller on the PCI - bus that connects to a SCSI device. In order to use the device, - every component on the path needs to be activated, the component - closest to the CPU first. - Based on the pathname in /sys/devices and on - files within the directory for the component, we can determine - what kind of component we're dealing with, and how to find the - required modules. - - - - Finding modules closely follows the methods used in the - hotplug package, and the - hotplug approach in turn is an almost - literal translation of the code that the kernel uses to find a - driver for a newly detected piece of hardware. - - - - For components that talk some protocol over a bus, like SCSI or - IDE disks or CDROMs, this is a simple hard coded selection; as an - example, the ScsiDev module knows that a SCSI device - with a type file containing "5" is a CDROM, - and that sr-mod is the appropriate driver. - - - - Devices such as PCI or USB devices cannot be classified into - a few simple categories. These devices have properties such - as "Vendor", "Device" and "Class" that are visible in sysfs. - The source code of kernel driver modules for these devices - contains a table listing which combination of properties mark a - device that the driver is prepared to handle. When the kernel - is compiled, these tables are summarised in a text file such - as modules.pcimap. Based on this table, - we find a driver module needed for the device and mark it for - inclusion on the image. - - - - Multiple modules can match the same hardware: as an example, - usb-storage and ub both match an USB - stick. In such cases, we load all matching modules into the - kernel and leave it to kernel to decide who gets to manage the - device. There's one complication: some modules, such as - usb-core, match any device (probably to maintain some - administration of their own, or to provide an ultra-generic - interface), but do not actually provide access to the device. - Such devices are weeded out by the Blacklist module, - based on information in - /etc/hotplug/blacklist and - /etc/hotplug/blacklist.d. - - - - It turns out that the "load modules for every component in the sysfs - path" approach is not always sufficient: sometimes you have to load - siblings as well. As an example, consider a combined EHCI/UHCI - USB controller on a single chip. The same ports can show up as EHCI - or UHCI devices, different PCI functions in the same PCI slot, with - different sysfs directories, depending on what kind of hardware is - connected. Purely following the sysfs path, we would only need to load - the EHCI driver, but it appears that on this kind of chip, EHCI devices - are not reliably detected unless the UHCI driver is loaded as well. - For this reason, we extend the algorithm with a rule: "for PCI devices, - load modules for every function in the PCI slot". - - - - That's actually a bit much: it would load all of ALSA if you have a - combined ISA/IDE/USB/Multimedia chipset. So we limit the above - to those PCI functions that provide USB ports. - - - - - - Plan Transformation - - - The plan generated in the first phase is a collection of general - intentions, stuff like 'load this module', but it does not - specify exactly what files must be placed on the image and what - lines are to be added to the initialisation scripts. - - - - The module ActionList represents this plan with a - list of hashes; every hash contains at least 'action' and - 'target', with other keys added to provide extra information - as needed. If two steps in the plan have identical action and - target, the last one is considered redundant and silently omitted. - - - - This plan is transformed to an exact image description with - the help of templates. The module Template - contains a hash with for every type of action: - - - - a list of files to be copied from the mother system to the - image; - - - - - - a list of directories to be created on the image; these do - not have to exist on the mother system; - - - - - - a list of trees to be copied recursively from the mother - system to the image; - - - - - - a hash, with as key the name of a script to be appended to - and as value that which is to be appended. - - - - All of the above are fed through HTML-Template, with the hash - describing this step as parameters. In practice, this looks - like so: - - insmod => { - files => [ - '<TMPL_VAR NAME=target>', - '/sbin/insmod', - ], - directories => [], - trees => [], - scripts => { - '/init' => <<'//', - /sbin/insmod '<TMPL_VAR NAME=target>' -// - }, - }, - - - - - There are a few attributes that are available to every template: - - - - - version - - - - The kernel version we're generating an image for. - Useful if you want your image to include a complete copy - of /lib/modules/(version)/kernel. - - - - - - - appVersion - - - - The version of yaird used to - build the image. - - - - - - - auxDir - - - - The directory where yaird - keeps executables intended to go on the image, such as - run_init. - - - - - - - - - Currently, there are templates for Debian and for Fedora, plus - a template showing how to use the older initrd approach. - - - - - - Image Generation - - The detailed image description consists of a collection of names of - files, directories, symbolic links and block or character devices, - plus a number of lines of shell script. The image description does - not contain permission or ownership information: files always have - mode 444, executables and directories always 555, devices always - mode 600, - - Having device files on the image is wrong: it will - break if the new kernel uses different device numbers. Mostly - this can be avoided by using the dev - files provided by sysfs, but there is a bootstrap problem: - the mount command needed to - access sysfs assumes /dev/null and - /dev/console are available. - - and everything is owned by root. - - - - The Image module contains the image description and - can write the image to a directory. It understands about symlinks: - if /sbin/vgscan is added to the image and it - happens to be a symlink to lvmiopversion, both - vgscan and lvmiopversion - will be added to the image. Shared libraries are supported - via the SharedLibraries module, as discussed in - . Invocations of other executables are not - recognised automatically: if lvmiopversion executes - /etc/lvm-200/vgscan, the latter needs to be - added explicitly to the image. - - - - The copying of complete trees to the image is influenced by the - copying for executables: if there is a symlink in the tree, it's - target is also included on the image, but if the target is a - directory, its contents are not copied recursively. This - approach avoids loops in image generation. - Note that the target of a symlink must exist: - yaird refuses to copy dangling links. - - - - - Packing the Image - - The final step is packing the image in a format that the - bootloader can process; this is handled by the module - Pack. The following formats are supported: - - - - - cpio - - - - A zipped cpio file (new ASCII format), required for the - initramfs model as used in the templates for Debian and - Fedora. - - - - - - - directory - - - - An unpacked directory, good for debugging or manually - creating odd formats. - - - - - - - cramfs - - - - A cramfs filesystem, used for Debian initrd images. - - - - - - - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/figures/console.dia b/rescue/linux/cdrom/yaird-0.0.5/doc/figures/console.dia deleted file mode 100644 index 0707eb5..0000000 Binary files a/rescue/linux/cdrom/yaird-0.0.5/doc/figures/console.dia and /dev/null differ diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/figures/console.png b/rescue/linux/cdrom/yaird-0.0.5/doc/figures/console.png deleted file mode 100644 index 8ea4465..0000000 Binary files a/rescue/linux/cdrom/yaird-0.0.5/doc/figures/console.png and /dev/null differ diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/input.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/input.xml deleted file mode 100644 index 362d967..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/input.xml +++ /dev/null @@ -1,443 +0,0 @@ -
- Supporting Input Devices - - - A working console and keyboard during the initial boot image execution - is needed to enter a password for encrypted file systems; it also - helps while debugging. This section discusses the kernel input - layer and how it can be supported during image generation. - - - - The console is a designated terminal, where kernel output goes, and that - is the initial I/O device for /sbin/init. Like all - terminal devices, it provides a number of functions: you can read - and write to it, plus it has a number of ioctl() - functions to manage line buffering, interrupt characters and - baudrate or parity where applicable. - - - - Terminals come in different types: it can be a VT100 or terminal - emulator connected via an RS232 cable, or it can be a combination - of a CRT and a keyboard. The keyboard can be connected via - USB or it can talk a byte oriented protocol via a legacy UART - chip. - - - - The CRT is managed in two layers. The top layer, "virtual - terminal", manages a two dimensional array describing which letter - should go in which position of the screen. In fact, there are a - number of different arrays, and which one is actually visible on - the screen is selected by a keyboard combination. - Below the virtual terminals is a layer that actually places the - letters on the screen. This can be done a letter at a time, - using a VGA interface, or the letters can be painted pixel by - pixel, using a frame buffer. - - - - Below the terminal concept we find the input layer. This provides a - unified interface to the various user input devices: mouse, keyboard, - PC speaker, joystick, tablet. These input devices not only - generate data, they can also receive input from the computer. As - an example, the keyboard needs computer input to operate the NUM - LOCK indicator. Hardware devices such as keyboards register - themselves with the input layer, describing their capabilities - (I can send relative position, have two buttons and no LEDs), - and the input layer assigns a handler to the hardware device. - The handler presents the device to upper layers, either as a char - special file or as the input part of a terminal device. - This is not a one-to-one mapping: every mouse gets its own - handler, but keyboard and PC speaker share a handler, so it looks - to userland like you have a keyboard that can do "beep". - - - - In addition to handlers for specific type of upper layers (mouse, - joystick, touch screen) there is a generic handler that provides a - character device file such as /dev/input/event0 - for every input device detected; input events are presented through - these devices in a unified format. The input layer generates - hotplug events for these generic event handlers; hotplug uses - modules.inputmap to load a module containing a - suitable upper layer event handler. The keyboard handler is a special - case that does not occur in this map, so for image generation there - is little to be learned from hotplug input support. - - - - To guarantee a working console, yaird - should examine /dev/console, determine - whether it's RS232 or hardware directly connected to the computer, - and then load modules for either serial port, or for virtual - terminals, the input layer and any hardware underlying it. - Unfortunately, /dev/console does not give - a hint what is below the terminal interface, and unfortunately, - lots of input devices are legacy hardware that is hard to probe - and only sketchily described by sysfs in kernel 2.6.10. - - - - This means that a guarantee for a working console cannot be made, - which is why distribution kernels come with components such as the - keyboard and serial port driver compiled into the kernel. We can - do something else though: provide modules for keyboard devices - provided the kernel provides correct information. That covers the - case of USB keyboards, and that's something that's not compiled - into distribution kernels, so that the administrator has to add - modules explictly in order to get the keyboard working in - the initial boot image. - - - - Lets examine the sources of information we have to find which input - hardware we have to support. - - - - - In /sys/class/input, all input devices - are enumerated. Mostly, these only contain a - dev file containing major/minor number, - but USB devices also have a device - symlink into /sys/devices identifying - the underlying hardware. - - - - - - In /boot/menu/grub.lst, kernel options - can be defined that determine whether to use a serial line as - console and whether to use a frame buffer. The consequence - is that it is fundamentally impossible to determine by looking - at the hardware alone what's needed to get an image that will - boot without problems. This probably means we'll have to consider - supplying some modules in the image that will only get loaded - depending on kernel options. - - - - - - The file /proc/bus/input/devices gives - a formatted overview of all known input devices; entries look - like this: - - I: Bus=0003 Vendor=413c Product=2003 Version=0100 - N: Name="DELL DELL USB Keyboard" - P: Phys=usb-0000:00:1d.7-4.1/input1 - H: Handlers=kbd event2 - B: EV=100003 - B: KEY=7f f0000 0 3878 d801d101 1e0000 0 0 0 - - Here the "I" line shows identification information passed to - the input layer by the hardware driver that is used to look - up the appropiate handler. "N" is a printable name provided - by the hardware driver. "P" is a hint at location in a bus - of the device; note how this line is completely unrelated to - the location of the hardware in - /sys/devices. - The H (Handlers) line is obvious; The B lines specify - capabilities of the device, plus extra information for each - capability. Known capabilities include: - - - - - Capability - Description - - - - - SYN - Input event is completed - - - KEY - Key press/release event - - - REL - Relative measure, as in mouse movement - - - ABS - Absolute position, as in graphics - tablet - - - MSC - Miscelanious - - - SND - Beep - - - REP - Set hardware repeat - - - FF - Don't know - - - PWR - Power event: on/off switch pressed. - - - FF_STATUS - Don't know. - - - - - - - - - - - Finally, let's consider some kernel configuration defines, the - corresponding modules and their function. This could be used as a - start to check whether all components required to make an - operational console are available on the generated image: - - - - - Define - Module - Description - - - - - - VT - (bool) - - Support multiple virtual terminals, irrespective of what - hardware is used to display letters from the virtual - terminal on the CRT. - - - - - VT_CONSOLE - (bool) - - Make the VT a candidate for console output. The alternative - is a serial line to a VT100 or terminal emulator - - - - - VGA_CONSOLE - (bool) - - Display a terminal on CRT using the VGA interface. - - - - - FRAMEBUFFER_CONSOLE - fbcon - - Display a terminal on a framebuffer, painting letters a - pixel at a time. This has to know about fonts. - - - - - FB_VESA - vesafb - - Implement a framebuffer based on VESA (a common standard - for PC graphic cards), a place where an X server or - the framebuffer console can write pixels to be displayed - on CRT. - There are many different framebuffer modules that - optimise for different graphics cards. - Note that while vesafb and other drivers such as intelfb - can be built as a module, they only function correctly - when built into the kernel. Most framebuffer modules - depend on three other modules to function correctly: - cfbfillrect, cfbcopyarea, cfbimgblt. - - - - - ATKBD - atkbd - - Interpret input from a standard AT or PS/2 keyboard. - Other keyboards use other byte codes, see for example - the Acorn keyboard (rpckbd). - - - - - SERIO - serio - - Module that manages a stream of bytes from and to an IO port. - It includes a kernel thread (kseriod) that handles the queue - needed to talk to slow ports. It is normally used for - dedicated IO ports talking to PS/2 mouse and keyboard, - but can also be interfaced to serial ports (COM1, COM2). - The atkbd driver uses a serio driver to communicate with - the keyboard. - - - - - SERIO_I8042 - i8042 - - Implement a serio stream on top of the i8042 chip, the chip - that connects the standard AT keyboard and PS/2 mouse to - the computer. - This is legacy hardware: it's not connected via PCI but - directly to the 'platform bus'. - When a chip such as i8042 that implements - serio is detected, it registers itself with the input - layer. The input layer then lets drivers that use serio - (such as atkbd and psmouse) probe whether a known device - is connected via the chip; if such a device is found, - it is registered as a new input device. - - - - - SERIAL_8250 - serial - - Support for serial ports (COM1, COM2) on PC hardware. - Lots of other configuration options exist to support - multiple cards and fiddle with interrupts. - If compiled in rather than modular, a further option, - SERIAL_8250_CONSOLE, allows using the serial port as a - console. - - - - - USB_HID - usbhid - - Driver for USB keyboards and mice. - Another define, USB_HIDINPUT, needs to be true for - these devices to actually work. - - - - - USB_KBD - usbkbd - - Severely limited form of USB keyboard; uses the "boot - protocol". This conflicts with the complete driver. - - - - - - - - - - - The following figure gives an example of how the various modules - can fit together. - - -
- - Module relation for common console setup - - - - - - -
- - - In practical terms, a first step toward a more robust boot image - is to support new keyboard types, such as USB keyboards. - The following algorithm should do that. - - - - - - Interpret /proc/bus/input/devices. - - - - - - Look for devices that have handler kbd and - that have buttons. Mice and the PC speaker don't match that - criterium, keyboards do. - - - - - - You could interpret the name field of such devices if you're - interested in supporting legacy keyboards. - - - - - - The devices that have handler 'kbd' also have a handler 'event\d', - where input is presented in a generalised event format; - look up this device in /sys/class/input/event\d/. - - - - - - If it's got a device symlink, load the hardware drivers for that - hardware device (most likely it's usbhid plus a usb core driver). - - - - - - Don't bother with a mknod, the input is handled via - /dev/console. - - - - - - Otherwise it's presumable a legacy device; you could check for - the existence of - /sys/devices/platform/i8042/serio\d/, - or you could just assume the appropriate driver to be compiled in. - - - - - - Implement support for - /etc/hotplug/blacklist, - since some USB keyboards publish two interfaces (full HID - and the limited boot protocol), the input layer makes both - visible in /proc/bus/input/devices and - the corresponding modules are mutually conflicting. - The blacklist is used to filter out one of these modules. - - - - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/intro.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/intro.xml deleted file mode 100644 index 8b80409..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/intro.xml +++ /dev/null @@ -1,31 +0,0 @@ -
- Introduction - - Yaird (Yet Another mkInitRD) is an - application to create an initial boot image, a minimal filesystem used - to bring a booting Linux kernel to a level where it can access - the root file system and use startup scripts to bring the system - to the normal run level. - - - - It differs from earlier mkinitrd - implementations in that it attempts to leverage the information in - sysfs to minimise the number of special cases that the application - has to know about, and in that it uses a template system to separate - the analysis of the system from the building of the image. - - - - This document gives an overview of the design and implementation - of Yaird; see the README file for - usage information. This text assumes familiarity with Linux - system administration and the basics of hotplug and sysfs. - - - - This document describes version &VERSION; - of Yaird. - This is a very rough, proof of concept, version. - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/kernel.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/kernel.xml deleted file mode 100644 index e2d0f79..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/kernel.xml +++ /dev/null @@ -1,491 +0,0 @@ -
- The interface between kernel and image - - - The initial boot image is supposed to load enough modules to let - the real root device be mounted cleanly. It starts up in a - very bare environment and it has to do tricky - stuff like juggling root filesystems; to pull that off successfully - it makes sense to take a close look at the environment that the - kernel creates for the image and what the kernel expects it to do. - This section contains raw design notes based on kernel 2.6.8. - - - - The processing of the image starts even before the kernel is - activated. The bootloader, grub or lilo for example, reads two - files from the boot file system into ram: the kernel and image. - The bootloader somehow manages to set two variables in the kernel: - initrd_start and initrd_end; these variables - point to the copy of the image in ram. The bootloader now - hands over control to the kernel. - - - - During setup, the kernel creates a special file system, rootfs. - This mostly reuses ramfs code, but there are a few twists: it can - never be mounted from userspace, there's only one copy, and it's not - mounted on top of anything else. The existence of rootfs means that - the rest of the kernel always can assume there's a place to mount - other file systems. It also is a place where temporary files can - be created during the boot sequence. - - - - In initramfs.c:populate_rootfs(), there are two - possibilities. If the image looks like a cpio.gz file, it is - unpacked into rootfs. If the file /init is - among the files unpacked from the cpio file, the initramfs model - is used; otherwise we get a more complex interaction between kernel - and initrd, discussed in . - - - - Booting with Initramfs - - If the image was a cpio file, and it contains a file - /init, the initram model is used. - The kernel does some basic setup and hands over control to - /init; it is then up to - /init to make a real root available and to - transfer control to the /sbin/init command - on the real root. - - - - The tricky part is to do that in such a way that there - is no way for user processes to gain access to the rootfs - filesystem; and in such a way that rootfs remains empty and - hidden under the user root file system. This is best done - using some C code; yaird uses - run_init, a small tool based on - klibc. - - # invoked as last command in /init, with no other processes running, - # as follows: - # exec run_init /newroot /sbin/init "$@" - - chdir /newroot - # following after lots of sanity checks and not across mounts: - - rm -rf /* - - mount --move . / - - chroot . - - chdir / - - open /dev/console - - exec /sbin/init "$@" - - - - - - - Booting with initrd - - If the image was not a cpio file, the kernel copies the - initrd image from where ever the boot loader left it to - rootfs:/initrd.image, and frees the ram used - by the bootloader for the initrd image. - - - - After reading initrd, the kernel does more setup to the point where - we have: - - - - - working CPU and memory management - - - - - - working process management - - - - - - compiled in drivers activated - - - - - - a number of support processes such as ksoftirqd are created. - (These processes have the rootfs as root; they can get a new - root when the pivot_root() system call is used.) - - - - - - something like a console. Console_init() is - called before PCI or USB probes, so expect only compiled in - console devices to work. - - - - - - - - At this point, in do_mounts.c:prepare_namespace(), - the kernel looks for a root filesystem to mount. That root file - system can come from a number of places: NFS, a raid device, a plain - disk or an initrd. If it's an initrd, the sequence is as follows - (where devfs can fail if it's not compiled into the kernel) - - - - mount -t devfs devfs /dev - - md_run_setup() - - process initrd - - umount /dev - - mount --move . / - - chroot . - - mount -t devfs devfs /dev - - - - - - Once that returns, in init/main.c:init(), - initialisation memory is freed and /sbin/init - is executed with /dev/console as file descriptor 0, 1 - and 2. /sbin/init can be overruled with - an init=/usr/bin/firefox parameter passed to the - boot loader; if /sbin/init is not found, - /etc/init and a number of other fallbacks - are tried. We're in business. - - - - The processing of initrd starts in - do_mounts_initrd.c:initrd_load(). It creates - rootfs:/dev/ram, then copies - rootfs:/initrd.image there and unlinks - rootfs:/initrd.image. Now we have the initrd - image in a block device, which is good for mounting. It calls - handle_initrd(), which does: - - - # make another block special file for ram0 - - mknod /dev/root.old b 1 0 - # try mounting initrd with all known file systems, - # optionally read-only - - mount -t xxx /dev/root.old /root - - mkdir rootfs:/old - - cd /root - - mount --move . / - - chroot . - - mount -t devfs devfs /dev - - system ("/linuxrc"); - - cd rootfs:/old - - mount --move / . - - cd rootfs:/ - - chroot . - - umount rootfs:/old/dev - - ... more ... - - - - - - So initrd:/linuxrc runs in an environment where - initrd is the root, with devfs mounted if available, and rootfs is - invisible (except that there are open file handles to directories - in rootfs, needed to change back to the old environment). - - - - Now the idea seems to have been that /linuxrc - would mount the real root and pivot_root into it, then start - /sbin/init. Thus, linuxrc would never return. - However, main.c:init() does some usefull stuff only - after linuxrc returns: freeing init memory segments and starting numa - policy, so in eg Debian and Fedora, /linuxrc - will end, and /sbin/init - is started by main.c:init(). - - - - After linuxrc returns, the variable real_root_dev - determines what happens. This variable can be read and written - via /proc/sys/kernel/real-root-dev. If it - is 0x0100 (the device number of /dev/ram0) - or something equivalent, handle_initrd() will change - directory to /old and return. If it is - something else, handle_initrd() will decode it, mount - it as root, mount initrd as /root/initrd, - and again start /sbin/init. (if mounting as - /root/initrd fails, the block device is freed.) - - - - Remember handle_initrd() was called via - load_initrd() from prepare_namespace(), - and prepare_namespace() ends by chrooting into the - current directory: rootfs:/old. - - - - Note that rootfs:/old was move-mounted - from '/' after /linuxrc returned. - When /linuxrc started, the root was - initrd, but /linuxrc may have done a - pivot_root(), replacing the root with a real root, - say /dev/hda1. - - - - Thus: - - - - - /linuxrc is started with initrd - mounted as root. - - - - - - There is working memory management, processes, compiled - in drivers, and stdin/out/err are connected to a console, - if the relevant drivers are compiled in. - - - - - - Devfs may be mounted on /dev. - - - - - - /linuxrc can pivot_root. - - - - - - If you echo 0x0100 to - /proc/sys/kernel/real-root-dev, - the pivot_root will remain in effect after - /linuxrc ends. - - - - - - After /linuxrc returns, - /dev may be unmounted and replaced - with devfs. - - - - - - - - Thus a good strategy for /linuxrc is to - do as little as possible, and defer the real initialisation - to /sbin/init on the initrd; this - /sbin/init can then pivot_root - into the real root device. - - #!/bin/dash - set -x - mount -nt proc proc /proc - # root=$(cat proc/sys/kernel/real-root-dev) - echo 256 > proc/sys/kernel/real-root-dev - umount -n /proc - - - - - - - Kernel command line parameters - - The kernel passes more information than just an initial file system - to the initrd or initramfs image; there also are the kernel boot - parameters. The bootloader passes these to the kernel, and the kernel - in turn passes them on via /proc/cmdline. - - - - An old version of these parameters is documented in the - - - bootparam - 7 - manual page; more recent information is in the kernel - documentation file kernel-parameters.txt. - Mostly, these parameters are used to configure non-modular drivers, - and thus not very interesting to yaird. - Then there are parameters such as noapic, which are - interpreted by the kernel core and also irrelevant to - yaird. - Finally there are a few parameters which are used by the kernel - to determine how to mount the root file system. - - - - Whether the initial image should emulate these options or ignore them - is open to discussion; you can make a case that the flexibility these - options offer has become irrelevant now that initrd/initramfs offers - far more fine grained control over the way in which the system - is booted. - Support for these options is mostly a matter of tuning the - distribution specific templates, but it is possible that the - templates need an occassional hint from the planner. - To find out just how much "mostly" is, we'll try to implement - full support for these options and see where we run into - limitations. - An inventarisation of relevant options. - - - - - ide - - - - These are options for the modular ide-core driver. - This could be supported by adding an attribute - "isIdeCore" to insmod actions, and expanding the ide - kernel options only for insmod actions where that - attribute is true. - It seems cleaner to support the options from - /etc/modprobe.conf. - Unsupported for now. - - - - - - - init - - - - The first program to be started on the definitive root device, - default /sbin/init. Supported. - - - - - - - ro - - - - Mount the definitive root device read only, - so that it can be submitted to fsck. - Supported; this is the default behaviour. - - - - - - - rw - - - - Three guesses. Supported. - - - - - - - resume, noresume - - - - Which device (not) to use for software suspend. - To be done. - - - - - - - root - - - - The device to mount as root. This is a nasty one: - the planner by default only creates device nodes - that are needed to mount the root device, and even - if you were to put hotplug on the inital image - to create all possible device nodes, there's still - the matter of putting support for the proper file system - on the initial image. - We could make an option to - yaird to specify a list - of possible root devices and load the necessary - modules for all of them. - Unsupported until there's a clear need for it. - - - - - - - rootflags - - - - Flags to use while mounting root file system. - Implement together with root option. - - - - - - - rootfstype - - - - File system type for root file system. - Implement together with root option. - - - - - - - nfsaddrs - - - - For diskless booting. - Unclear whether we need this. NFS booting is desirable, - but I guess that will mostly be done under control of - DHCP. Unsupported for now. - - - - - - - nfsroot - - - - More diskless booting. - Unsupported for now. - - - - - - - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/license.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/license.xml deleted file mode 100644 index f3ccfcd..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/license.xml +++ /dev/null @@ -1,65 +0,0 @@ -
- License - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License as published by the Free Software Foundation; - either version 2 of the License, or (at your option) any later - version. - - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - - You should have received a copy of the GNU General Public - License along with this program; you may also obtain - a copy of the GNU General Public License - from the Free Software Foundation by visiting their Web site or by writing to -
- Free Software Foundation, Inc. - 59 Temple Place - Suite 330 - Boston, MA 02111-1307 - USA -
-
- - Klibc code - - Yaird contains code based on klibc; this code is made available - by the author under the following licence. The relevant source - files have this copyright notice included. - -/* ----------------------------------------------------------------------- * - * - * Copyright 2004 H. Peter Anvin - All Rights Reserved - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation - * files (the "Software"), to deal in the Software without - * restriction, including without limitation the rights to use, - * copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom - * the Software is furnished to do so, subject to the following - * conditions: - * - * The above copyright notice and this permission notice shall - * be included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - * - * ----------------------------------------------------------------------- */ - - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/raid.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/raid.xml deleted file mode 100644 index 4a23282..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/raid.xml +++ /dev/null @@ -1,196 +0,0 @@ -
- Supporting Raid Devices - - - This section discusses software raid devices from an initial boot - image perspective: how to get the root device up and running. - There are other aspects to consider, the bootloader for example: - if your root device is on a mirror for reliability, it would be - a disappointment if after the crash you still had a long downtime - because the MBR was only available on the crashed disk. Then there's - the issue of managing raid devices in combination with hotplugging: - once the system is operational, how should the raid devices that - the initial image left untouched be brought online? - - - - Raid devices are managed via ioctls (mostly; there is something - called "autorun" in the kernel) - The interface from userland is simple: mknod a block device file, - send an ioctl to it specifying the devnos of the underlying block - devices and whether you'd like mirroring or striping, then send - a final ioctl to activate the device. This leaves the managing - application free to pick any unused device (minor) number and - has no assumptions about device file names. - - - - Devices that take part in a raid set also have a "superblock", - a header at the end of the device that contains a uuid and indicates - how many drives and spares are supposed to take part in the raid set. - This can be used be the kernel to do consistency checking, it can also - be used by applications to scan for all disks belonging in a raid set, - even if one of the component drives is moved to another disk controller. - - - - The fact that the superblock is at the end of a device has an obvious - advantage: if you somehow loose your raid software, the device - underlying a mirror can be mounted directly as a fallback measure. - - - - If raid is compiled into the kernel rather than provided as a module, - the kernel uses superblocks at boot time to find raid sets and make - them available without user interaction. In this case the filename of - the created blockdevice is hardcoded: /dev/md\d. - This feature is intended for machines with root on a raid device - that don't use an initial boot image. This autorun feature is - also accessible via an ioctl, but it's not used in management - applications, since it won't work with an initial boot image and - it can be a nuisance if some daemon brought a raid set online just - after the administator took it off line for replacement. - - - - Finally, by picking a different major device number for the raid device, - the raid device can be made partitionable without use of LVM. - - - - There are at least three different raid management applications - for Linux: raidtools, the oldest; mdadm, more modern; and EVMS, a - suite of graphical and command line tools that manages not only raid - but also LVM, partitioning and file system formating. We'll only - consider mdadm for now. The use of mdadm is simple: - - - - - - - There's an option to create a new device from components, - building the superblock. - - - - - - Another option assembles a raid device from components, - assuming the superblocks are already available. - - - - - - Optionally, a configuration file can be used, specifying which - components make up a device, whether a device file should - be created or it is assumed to exist, whether it's stripe or - mirror, and the uuid. Also, a wildcard pattern can be given: - disks matching this pattern will be searched for superblocks. - - - - - - Information given in the configuration file can be omitted - on the command line. If there's a wildcard, you don't even - have to specify the component devices of the raid device. - A typical command is mdadm --assemble /dev/md-root - auto=md uuid=..., which translates to "create - /dev/md-root with some unused minor number, - and put the components with matching uuid in it." - - - - - - - - So far, raid devices look fairly simple to use; the complications - arise when you have to play nicely with all the other software - on the box. It turns out there are quite a lot of packages that - interact with raid devices: - - - - - - - - When the md module is loaded, it registers 256 block devices - with devfs. These devices - are not actually allocated, they're just names set up to - allocate the underlying device when opened. These names in - devfs have no counterpart in sysfs. - - - - - - When the LVM vgchange is started, - it opens all md devices to scan for headers, only to find the - raid devices have no underlying components and will return - no data. In this process, all these stillborn md devices get - registered with sysfs. - - - - - - When udevstart is executed - at boot time, it walks over the sysfs tree and lets - udev create block devices files for - every block device it finds in sysfs. The name and permissions - of the created file are configurable, and there is a hook to - initialise SELinux access controls. - - - - - - When mdadm is invoked with the auto - option, it will create a block device file with an unused - device number and put the requested raid volume under it. - The created device file is owned by whoever executed the - mdadm command, permissions are 0600 - and there are no hooks for SELinux. - - - - - - When the Debian installer builds a system with LVM and raid, the - raid volumes have names such as /dev/md0, - where there is an assumption about the device minor number in - the name of the file. - - - - - - - - For the current Debian mkinitrd, this all works together in - a wonderful manner: devfs creates file names for raid devices, - LVM scans them with as side effect entering the devices in sysfs, - and after pivotroot udevstart triggers - udev into creating block device files with proper permissions and - SELinux hooks. Later in the processing of rcS.d, - mdadm will put a raid device under the - created special file. Convoluted but correct, except for the fact - that out of 256 generated raid device files, up to 255 are unused. - - - - In yaird, we do not use devfs. - Instead, we do a mknod before the - mdadm, taking care to use the same - device number that's in use in the running kernel. We expect - mdadm.conf to contain an auto=md - option for any raid device files that need to be created. - This approach should work regardless of whether the fstab uses - /dev/md\d or a device number independent name. - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/security.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/security.xml deleted file mode 100644 index c5a3ce7..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/security.xml +++ /dev/null @@ -1,224 +0,0 @@ -
- Security - - - This section discusses security: avoiding downtime, avoiding revealing - sensitive information, avoiding unwanted modifications to the data; - either through accident or malice. - A good introduction to secure programming can be found in - - - Secure Programming for Linux and Unix HOWTO. - - - - For yaird, security is not very - complicated: although it runs with root privileges, the program is - not setuid, and all external input comes from files or programs - installed by the admnistrator, so our main focus is on avoiding - downtime caused by ignored error codes. - A full blown risk assessment would be overkill, so we'll just use - the HOWTO as a checklist to verify that the basic precautions are - in place. - - - - - - - - Group - Mitigation - Status - - - - - - Bad input - Verify command line - - Yes. - - - - - Bad input - Verify and clean up environment - - Complete environment is reset at start of program. - - - - - Bad input - Avoid assumptions about file descriptors - - Handled by perl. - - - - - Bad input - Verify file names - - Perl taint check shows filenames are verified for - absence of odd characters before passing to - subprocesses. - TODO: examine UTF-8 impact. - - - - - Bad input - Verify file content - - File contents in sysfs verified. - Fstab entries properly quoted. - TODO: check for spaces in names of LVM volume or of - modules; could end up in generated /sbin/init. - - - - - Bad input - Verify locale settings - - All locale related environment variables are wiped at - program startup. - - - - - Bad input - Verify character encoding - - All IO is byte oriented. - - - - - Bad input - Buffer overflow - - In perl? - - - - - Program structure - Separate data and control - - Under this heading, the HOWTO discusses the dangers of - auto-executing macros in data files. The closest thing we - have to a data file are the templates that tune the image - to the distribution. We use a templating language that - does not allow code embedding, and the image generation - module does not make it possible for template output to - end up outside of the image. Conclusion: broken templates - can produce a broken image, but cannot affect the running - system. - - - - - Program structure - Minimize privileges - - The user is supposed to bring his own root privileges to - the party, not much to be done here. A related issue - is the minimizing of privileges in the system that is - started with the generated image. This would include - starting SELinux at the earliest possible moment. - At least in Fedora, that earliest possible moment is - in rc.sysinit, well past the moment - where the initial boot image hands over control to the newly - mount root file system. No yaird - support needed. - - - - - Program structure - Safe defaults - - Configuration only specifies sources of information, - like /etc/hotplug, not much can go wrong here. - - - - - Program structure - Safe configuration - - No configuration file is used yet, so it's not read from - current directory either. - - - - - Program structure - Fail safe - - Planning and writing the image is separated; - writing only starts after planning is succesfully completed. - Todo: consider backout on write failure. - - - - - Program structure - Avoid race conditions - - Temporary files and directories are created - with the File::Temp module, which is - resistant to name guessing attacks. - The completed image is installed with rename - rather than link; if an existing file is - overwritten, this guarantees there's no race where the - old image has been deleted bu the new one is not yet in - place. (Note that there is no option in place yet which - allows overwriting of existing files.) - To do: examine File::Temp safe_level=HIGH. - - - - - Underlying resources - Handle meta characters - - Protection against terminal escape sequences in output - is not yet in place. - - - - - Underlying resources - Check system call results - - Yes. - - - - - Language specific - Verify perl behaviour with taint. - - Yes. - - - - - Language specific - Avoid perl open magic with 3rd argument. - - Yes. - - - - - - - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/shlibs.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/shlibs.xml deleted file mode 100644 index 6c7c01a..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/shlibs.xml +++ /dev/null @@ -1,201 +0,0 @@ -
- Supporting Shared Libraries - - - When an executable is added to the image, we want any required shared - libraries to be added automatically. The SharedLibraries - module determines which files are required. This section discusses - the features of kernel and compiler we need to be aware of in order - to do this reliably. - - - - Linux executables today are in ELF format; it is defined in - - - Generic ELF Specification ELFVERSION, - part of the Linux Standard Base. This is based on part of the System - V ABI: Tool Interface Standard (TIS), Executable and Linking Format - (ELF) Sepcification - - - - ELF has consequences in different parts of the system: in - the link-editor, that needs to merge ELF object files into ELF - executables; in the kernel (fs/binfmt_elf.c), - that has to place the executable in RAM and transfer control to it, - and in the runtime loader, that is invoked when starting the - application to load the necessary shared libraries into RAM. - The idea is as follows. - - - - - - Executables are in ELF format, with a type of either - ET_EXEC (executable) or ET_DYN (shared - library; yes, you can execute those.) There are other types of - ELF file (core files for example) but you can't execute them. - - - - - - These files contain two kind of headers: program headers and - section headers. Program headers define segments of the file that - the kernel should store consequetively in RAM; section headers define - parts of the file that should be treated by the link editor - as a single unit. Program headers normally point to a group - of adjacent sections. - - - - - - The program may be statically linked or dynamically (with shared - libraries). - If it's statically linked, the kernel loads relevant segments, - then transfers control to main() in userland. - - - - - - If it's dynamically linked, one of the program headers has type - PT_INTERP. It points to a segment that contains - the name of a (static) executable; this executable is loaded in - RAM together with the segments of the dynamic executable. - - - - - - The kernel then transfers control to the userland - interpreter, passing program headers and related info in a - fourth argument to main(), after envp. - - - - - - There's one interesting twist: one of the segments loaded - into RAM (linux-gate.so) does not - come from the executable, but is a piece of kernel mapped - into user space. It contains a subroutine that the kernel - provides to do a system call; the idea is that this way, - the C library does not have to know which calling convention - for system calls is supported by the kernel and optimal for - the current hardware. The link editor knows nothing about - this, only the interpreter knows that the kernel can pass the - address of this subroutine together with the program headers. - - - For more info on the kernel-supplied shared library for - system calls, see - - - LWN: How to speed up system calls, - - LWN: Patch: i386 vsyscall DSO implementation, - - LKML: common name for the kernel DSO. - - - - - - - - The interpreter interprets the .dynamic section of - the dynamic executable. This is a table containing various types - of info; if the type is DT_NEEDED, the info is the - name of a shared library that is needed to run the executable. - Normally, it's the basename. - - - - - - The interpreter searches LD_LIBARY_PATH for the - library and loads the first working version it finds, using a - breath-first search. Once everything is loaded, the interpreter - hands over control to main in the executable. - - - - - - Except that that's not how it really works: the path that glibc - uses depends on whether threads are supported, and klibc can - function as a PT_INTERP but will not load additional - libraries. - - - - - - The ldd command finds the pathnames - of shared libraries used by an executable. This works - only for glibc: it invokes the interpreter - with the executable as argument plus an environment variable that - tells it to print the pathnames rather than load them. For other - C libraries, there's no guaranteed correct way to find the path of - shared libraries. - - - - Thus, to figure out what goes on the initial ram image, first try - ldd. If that gives an answer, good. - Otherwise, use a helper program to find PT_INTERP and - DT_NEEDED. If there's only PT_INTERP, good, - add it to the image. If there are DT_NEEDED libraries - as well, and they have relative rather than absolute pathnames, - we can't determine the full path, so don't generate an image. - - - - There are a number of options to build a helper to extract the relevant - information from the executable: - - - - Build it in perl. The problem here is that unpacking 64-bit - integers is an optional part of the language. - - - - - - Build a wrapper around objdump or - readelf. The drawback is that - there programs are not part of a minimal Linux distribution: - depending on them in yaird would - increase the footprint. - - - - - - Building a C program using libbdf. This is a library - intended to simplify working with object files. Drawbacks - are that it adds complexity that is not necessary in our - context since it supports multiple executable formats; - furthermore, at least in Debian it is treated as internal - to the gcc tool chain, complicating packaging the tool. - - - - - - Building a C program based on elf.h. - This turns out to be easy to do. - - - - - - - - Yaird uses the last appraoch listed. - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/spec.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/spec.xml deleted file mode 100644 index 2f8f9c8..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/spec.xml +++ /dev/null @@ -1,311 +0,0 @@ -
- Goals, features, to do - - The purpose in life of a tool like Yaird - is to produce an initial boot image that loads the required modules - to allow a booting kernel to access the root file system and from - there use the startup scripts to get to the default run level. - This means that hardly any drivers need to be compiled into the kernel - itself, so a distribution can produce a kernel with a large amount of - modules that will run unchanged on practically any hardware, without - introducing a large number of unused drivers that would waste RAM. - In a sense, the initial boot image customises the kernel to the hardware - it happens to be running on. - - - - That purpose still leaves a lot of room to optimise for different - goals: as an example, you could attempt to make the generated - image as small as possible, or you could attempt to make the - generated image so flexible that it will boot on any hardware. - This chapter discusses the goals that determined the design, the - resulting features, and what's still left to do. - - - - The goals - - Well, not really. I started this thingy to show off a small - algorithm to find required modules based on sysfs information. - To make that a credible demonstration, the small algorithm - turned out to need a lot of scaffolding to turn it into a - working program ... - - - of Yaird are as follows: - - - - - Be free, as in GPL. - - - - - - Be maintainable. Small functions with documented arguments - and result are better than a shell script full of constructs - like eval "awk | bash | tac 3>&7". - - - - - - Be secure and reliable. The application should stop with an error - message at the slightest provocation, rather than run the - risk of producing a non-booting initrd image. - The application should not open loopholes that allow the 'bad - guys' to modify the image, gain access to raw devices or - overwrite system files. - - - - - - Be distribution agnostic. Fedora and Debian run similar - kernels and similar startup scripts, so there's little - reason why the glue between the two levels should be - completely different. - - - - - - Have limited footprint. The tools needed to build and run - the application should be few and widely available, with a - preference for tools that are installed anyway. - - - - - - Be future proof. Future kernels may use different modules - and may change device numbers; the application should need - no changes to cope with such migrations. - - - - - - Promote code reuse. Make functions side-effect free and - independent of context, so that it's easy to package the - core as a library that can be reused in other applications. - - - - - - Generate small images. The application should accurately - detect what modules are needed to get the root file system - running and include only those modules on the generated - image. - - An alternative and equally interesting exercise would be - an attempt to generate a universal initrd that could be - distributed together with the kernel. Such an image - would most likely be based on udev/hotplug. - - - - - - - - - - Requirements: - - - - - Linux 2.6.8 or later, both when running - yaird and when running the generated - image. By limiting the goal to support only recent kernels, - we can drastically reduce the number of special cases and - knowledge about modules in the application. - - - - - - Sysfs and procfs, both on the old and on the - new kernel. - - - - - - Perl and the HTML-Template module. - - - - - - - - To achieve these goals, the following features are implemented: - - - - - Templating system to tune the generated image to a - given distribution; templates for Debian and Fedora FC3 - included. - - - - - - Interprets /etc/fstab, including - details such as octal escapes, ignore and - noauto keywords, and — for ext3 and reiser - file systems — label and uuid detection. - Where applicable, options in /etc/fstab - are used in the generated image. - - - - - - Supports volume management via LVM2; activates only the volume - group required for the root file system. - - - - - - Supports software RAID via mdadm; activates only required - devices. - - - - - - Understands SATA, IDE devices. - - - - - - Generated image does not use hard coded device - numbers. - - Except where the distribution depends on it; - there are some issues with mdadm in Debian. - - - - - - - - Image generation understands how included executables may - depend on symbolic links and shared libraries. Shared libraries - work for both glibc and klibc. - - - - - - Support input devices such as USB keyboard, if the input - device supports sysfs. - Input devices are needed in the initial image to supply - a password for encrypted root disk and to do debugging. - - - - - - Basic support for kernel command line as passed by the boot - loader. Interprets init=, ro, rw. - - - - - - Interprets the blacklist information from hotplug. - - - - - - Interprets the kernel configuration file that defines whether a - component is built in, available as a module or unavailable. - By maintaining a mapping between module name and config - parameter for selected modules, we avoid error messages if - for instance a required file system is built into the kernel. - - - - - - Supports initramfs, both in Debian and Fedora versions. - An example template using the older initrd model - is included for Debian. - - - - - - Does not require devfs in either the old or the new kernel. - - - - - - - - Obviously, this tool is far from complete. Here's a list of - features that still need to be implemented: - - - - - Understands USB and SCSI storage, no special provisions - are needed for code generation, but it's not tested yet. - - - - - - EVMS, an alternative user level interface to LVM2 and MD, - is not supported yet. - - - - - - Swsusp is not supported yet. - - - - - - Module aliases and options as specified in - /etc/modprobe.d are not supported yet. - - - - - - Firewire and DASD are not supported. - - - - - - NFS, loopback and encrypted file systems are not supported. - - - - - - Configuration info is hard coded in a module; it should be - possible to read this from a file. - - - - - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/tools.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/tools.xml deleted file mode 100644 index 236f818..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/tools.xml +++ /dev/null @@ -1,229 +0,0 @@ -
- Tool Chain - - This section discusses which tools are used in implementing - yaird and why. - - - - The application is built as a collection of perl modules. - The use of a scripting language makes consistent error checking - and building sane data structures a lot easier than shell - scripting; using perl rather than python is mainly because in - Debian perl has 'required' status while python is only 'standard'. - The code follows some conventions: - - - - - - - Where there are multiple items of a kind, say fstab entries, - the perl module implements a class for individual items. - All classes share a common base class, Obj, - that handles constructor argument validation and that offers - a place to plug in debugging code. - - - - - - Object attributes are used via accessor methods to catch - typos in attribute names. - - - - - - Objects have a string method, that returns - a string version of the object. Binary data is not - guaranteed to be absent from the string version. - - - - - - Where there are multiple items of a kind, say fstab entries, - the collection is implemented as a module that is not a - class. There is a function all that returns a - list of all known items, and functions findByXxx - to retrieve an item where the Xxx attribute has a given - value. There is an init function that - initializes the collection; this is called automatically - upon first invocation of all or - findByXxx. - Collections may have convenience functions - findXxxByYyy: return attribute Xxx, given a - value for attribute Yyy. - - - - - - - - The generated initrd image needs a command interpreter; - the choice of command interpreter is exclusively determined - by the image generation template. - At this point, both Debian and Fedora templates use the - dash shell, for historical reasons only. - Presumably busybox could be used to build a - smaller image. However, support for initramfs requires a complicated - construction involving a combination of mount, chroot and chdir; - to do that reliably, nash as used in Fedora - seems a more attractive option. - - - - Documentation is in docbook format, since it's widely supported, - supports numerous output formats, has better separation between - content and layout than texinfo, and provides better guarantees - against malformed HTML than texinfo. - - - - Autoconf - - GNU automake is used to build and install the application, - where 'building' is perhaps too big a word adding the location - of the underlying modules to the wrapper script. - The reasons for using automake: it provides packagers with a - well known mechanism for changing installation directories, - and it makes it easy for developers to produce a cruft-free - and reproducible tarball based on the tree extracted from - version control. - - - - - C Library - - The standard C library under linux is glibc. This is big: - 1.2Mb, where an alternative implementation, klibc, is only 28Kb. - The reason klibc can be so much smaller than glibc is that a - lot of features of glibc, like NIS support, are not relevant for - applications that need to do basic stuff like loading an IDE driver. - - - - There are other small libc implementations: in the embedded world, - dietlibc and uClibc are popular. However, klibc was specifically - developed to support the initial image: it's intended to be included - with the mainline kernel and allow moving a lot of startup magic out - of the kernel into the initial image. See - - - LKML: [RFC] klibc requirements, round 2 - for requirements on klibc; the - - mailing list is the most current - source of information. - - - - Recent versions of klibc (1.0 and later) include a wrapper around - gcc, named klcc, that will compile a program with klibc. This means - yaird does not need to include klibc, - but can easily be configured to use klibc rather than glibc. - Of course this will only pay off if every - executable on the initial image uses klibc. - - - - Yaird does not have to be extended in - order to support klibc, but it is necessary to avoid assumptions - about which shared libraries are used. This is discussed in - . - - - - - Template Processing - - This section discusses the templates used to transform - high-level actions to lines of script in the generated image. - These templates are intended to cope with small differences - between distributions: a shell that is named - dash in Debian and - ash in Fedora for example. - By processing the output of yaird - through a template, we can confine the tuning of - yaird for a specific distribution - to the template, without having to touch the core code. - - - - One important function of a template library is to enforce - a clear separation between progam logic and output formatting: - there should be no way to put perl fragments inside a template. - See StringTemplate - for a discussion of what is needed in a templating system, plus - a Java implementation. - - - - Lets consider a number of possible templating solutions: - - - - - - Template Toolkit: - widely used, not in perl core distribution, does not - prevent mixing of code and templates. - - - - - - - Text::Template: - not in perl core distribution, does not - prevent mixing of code and templates. - - - - - - Some XSLT processor. Not in core distribution, - more suitable for file-to-file transformations - than for expanding in-process data; overkill. - - - - - - - HTML-Template: - not in perl core distribution, - prevents mixing of code and templates, - simple, no dependencies, dual GPL/Artistic license. - Available in Debian as - libhtml-template-perl, - in Fedora 2 as perl-HTML-Template, dropped from Fedora 3, - but available via - - Fedora Extras. - - - - - - A home grown templating system: a simple system such as the - HTML-Template module is over 100Kb. We can cut down on that - by dropping functions we don't immediately need, but the effort - to get a tested and documented implementation remains substantial. - - - - - - - - The HTML-Template approach is the best match for our - requirements, so used in yaird. - - - - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.html b/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.html deleted file mode 100644 index d78437e..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.html +++ /dev/null @@ -1,1581 +0,0 @@ - - -Yaird — Yet Another Mkinitrd

Yaird — Yet Another Mkinitrd

Erik van Konijnenburg

- Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU Free Documentation - License, Version 1.1 or any later version published - by the Free Software Foundation with no Invariant Sections, no - Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy - of the GNU Free Documentation License from - the Free Software Foundation by visiting their Web site or by writing to: - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -

2005-02-09

Abstract

- This memo discusses the design goals and implementation of - Yaird (Yet Another mkInitRD), - a proof-of-concept application to create an initial boot image, - a minimal filesystem used to bring a booting Linux kernel to a - level where it can access the root file system and use startup - scripts to bring the system to the normal run level. It differs - from earlier mkinitrd implementations in - that it leverages the information in sysfs to minimise the number - of special cases that the application has to know about, and in - that it uses a template system to separate the analysis of the - system from the building of the image. -


Introduction

- Yaird (Yet Another mkInitRD) is an - application to create an initial boot image, a minimal filesystem used - to bring a booting Linux kernel to a level where it can access - the root file system and use startup scripts to bring the system - to the normal run level. -

- It differs from earlier mkinitrd - implementations in that it attempts to leverage the information in - sysfs to minimise the number of special cases that the application - has to know about, and in that it uses a template system to separate - the analysis of the system from the building of the image. -

- This document gives an overview of the design and implementation - of Yaird; see the README file for - usage information. This text assumes familiarity with Linux - system administration and the basics of hotplug and sysfs. -

- This document describes version 0.0.5 - of Yaird. - This is a very rough, proof of concept, version. -

Goals, features, to do

- The purpose in life of a tool like Yaird - is to produce an initial boot image that loads the required modules - to allow a booting kernel to access the root file system and from - there use the startup scripts to get to the default run level. - This means that hardly any drivers need to be compiled into the kernel - itself, so a distribution can produce a kernel with a large amount of - modules that will run unchanged on practically any hardware, without - introducing a large number of unused drivers that would waste RAM. - In a sense, the initial boot image customises the kernel to the hardware - it happens to be running on. -

- That purpose still leaves a lot of room to optimise for different - goals: as an example, you could attempt to make the generated - image as small as possible, or you could attempt to make the - generated image so flexible that it will boot on any hardware. - This chapter discusses the goals that determined the design, the - resulting features, and what's still left to do. -

- The goals[1] - of Yaird are as follows: -

  • - Be free, as in GPL. -

  • - Be maintainable. Small functions with documented arguments - and result are better than a shell script full of constructs - like eval "awk | bash | tac 3>&7". -

  • - Be secure and reliable. The application should stop with an error - message at the slightest provocation, rather than run the - risk of producing a non-booting initrd image. - The application should not open loopholes that allow the 'bad - guys' to modify the image, gain access to raw devices or - overwrite system files. -

  • - Be distribution agnostic. Fedora and Debian run similar - kernels and similar startup scripts, so there's little - reason why the glue between the two levels should be - completely different. -

  • - Have limited footprint. The tools needed to build and run - the application should be few and widely available, with a - preference for tools that are installed anyway. -

  • - Be future proof. Future kernels may use different modules - and may change device numbers; the application should need - no changes to cope with such migrations. -

  • - Promote code reuse. Make functions side-effect free and - independent of context, so that it's easy to package the - core as a library that can be reused in other applications. -

  • - Generate small images. The application should accurately - detect what modules are needed to get the root file system - running and include only those modules on the generated - image.[2] -

-

- Requirements: -

  • - Linux 2.6.8 or later, both when running - yaird and when running the generated - image. By limiting the goal to support only recent kernels, - we can drastically reduce the number of special cases and - knowledge about modules in the application. -

  • - Sysfs and procfs, both on the old and on the - new kernel. -

  • - Perl and the HTML-Template module. -

-

- To achieve these goals, the following features are implemented: -

  • - Templating system to tune the generated image to a - given distribution; templates for Debian and Fedora FC3 - included. -

  • - Interprets /etc/fstab, including - details such as octal escapes, ignore and - noauto keywords, and — for ext3 and reiser - file systems — label and uuid detection. - Where applicable, options in /etc/fstab - are used in the generated image. -

  • - Supports volume management via LVM2; activates only the volume - group required for the root file system. -

  • - Supports software RAID via mdadm; activates only required - devices. -

  • - Understands SATA, IDE devices. -

  • - Generated image does not use hard coded device - numbers.[3] -

  • - Image generation understands how included executables may - depend on symbolic links and shared libraries. Shared libraries - work for both glibc and klibc. -

  • - Support input devices such as USB keyboard, if the input - device supports sysfs. - Input devices are needed in the initial image to supply - a password for encrypted root disk and to do debugging. -

  • - Basic support for kernel command line as passed by the boot - loader. Interprets init=, ro, rw. -

  • - Interprets the blacklist information from hotplug. -

  • - Interprets the kernel configuration file that defines whether a - component is built in, available as a module or unavailable. - By maintaining a mapping between module name and config - parameter for selected modules, we avoid error messages if - for instance a required file system is built into the kernel. -

  • - Supports initramfs, both in Debian and Fedora versions. - An example template using the older initrd model - is included for Debian. -

  • - Does not require devfs in either the old or the new kernel. -

-

- Obviously, this tool is far from complete. Here's a list of - features that still need to be implemented: -

  • - Understands USB and SCSI storage, no special provisions - are needed for code generation, but it's not tested yet. -

  • - EVMS, an alternative user level interface to LVM2 and MD, - is not supported yet. -

  • - Swsusp is not supported yet. -

  • - Module aliases and options as specified in - /etc/modprobe.d are not supported yet. -

  • - Firewire and DASD are not supported. -

  • - NFS, loopback and encrypted file systems are not supported. -

  • - Configuration info is hard coded in a module; it should be - possible to read this from a file. -

-

Concepts

- This section discusses the basic concepts underlying - yaird. -

- The basic operation is simple: -

  1. - make a plan to build an image, -

  2. - transform the plan to a detailed description of the image, -

  3. - build and pack the image. -

- -

- The plan consists of a number of goals to be achieved: a loaded - device driver, a block special file created, a device mounted. - The plan does not specify details such as the exact path of the - mknod executable or the shared libraries - needed to run that executable. -

Making the Plan

- The most interesting part is making the plan. At the top level, - the plan is governed by some ultimate goals. For now, the only - goal is to get a working keyboard and to mount the root file system, - but if we're going to support swsusp, the swap devices also need to - be activated. To realise the goal, subgoals need to be realised. - As an example, before mounting a file system, the modules containing - the implementation of the file system need to be loaded. -

- To refine the goal of loading a kernel module, - the ModDepTab module interprets - modules.dep for the new kernel. Given a - module name, this will return a list of required modules with all - dependencies recursively resolved. It knows about the equivalence - between hyphen and underscore in module names, it also knows how - to search for modules in the /lib/modules - directory. -

- The KConfig module determines if loading a - module can be omitted because the module is hardcoded into the - kernel. As an example, it is aware of the fact that the module - ext3 is not needed if the new kernel configuration - contains CONFIG_EXT3_FS=y.[4] - Only a few modules are known: yaird - looks for modules such as ext3 when that filesystem - is used, so it makes sense to check whether a missing module - is compiled in. On the other hand, hardware modules that are - compiled in never show up in modules.pcimap - and friends, so they remain completely outside the view of - yaird. -

- Module aliases and options as supported by - modprobe are unsupported for the moment. -

- Before a device as listed in /etc/fstab can be - mounted, that device needs to be enabled. That device could be an - NFS mount, a loopback mount or it could be a block device. The NFS - and loopback cases are not supported yet, but block devices are. - This support is based on a number of sources of information: -

  1. - Scanning the /dev directory gives us the - relation between all block special files and major/minor - numbers. -

  2. - Scanning the /sys/block directory gives us the - relation between all major/minor numbers and kernel names - such as dm-0 or sda1; it - also gives the relation between partitions and complete - devices. -

  3. - If there is a symlink in a /sys/block - subdirectory to the /sys/devices - directory, it also gives is the relation between a block - device and the underlying hardware. -

-

- Based on the kernel name and partition relationships of the device, - we determine the steps needed to activate the device. As an example, - to activate sda1, we need to activate sda, - then create a block special file for sda1. As - another example, to activate dm-0, our first bet is - to check whether this is an LVM logical - volume,[5] and if so activate the - physical volumes underlying the volume group, and finally running - vgchange -a y. -

Hardware Planning

- Some devices, such as sdx or hdy, are - expected to have underlying hardware; as an example, sda - may be backed by pci0000:00/0000:00:1f.2/host0/0:0:0:0. - This represents a hardware path, in this case a controller on the PCI - bus that connects to a SCSI device. In order to use the device, - every component on the path needs to be activated, the component - closest to the CPU first. - Based on the pathname in /sys/devices and on - files within the directory for the component, we can determine - what kind of component we're dealing with, and how to find the - required modules. -

- Finding modules closely follows the methods used in the - hotplug package, and the - hotplug approach in turn is an almost - literal translation of the code that the kernel uses to find a - driver for a newly detected piece of hardware. -

- For components that talk some protocol over a bus, like SCSI or - IDE disks or CDROMs, this is a simple hard coded selection; as an - example, the ScsiDev module knows that a SCSI device - with a type file containing "5" is a CDROM, - and that sr-mod is the appropriate driver. -

- Devices such as PCI or USB devices cannot be classified into - a few simple categories. These devices have properties such - as "Vendor", "Device" and "Class" that are visible in sysfs. - The source code of kernel driver modules for these devices - contains a table listing which combination of properties mark a - device that the driver is prepared to handle. When the kernel - is compiled, these tables are summarised in a text file such - as modules.pcimap. Based on this table, - we find a driver module needed for the device and mark it for - inclusion on the image. -

- Multiple modules can match the same hardware: as an example, - usb-storage and ub both match an USB - stick. In such cases, we load all matching modules into the - kernel and leave it to kernel to decide who gets to manage the - device. There's one complication: some modules, such as - usb-core, match any device (probably to maintain some - administration of their own, or to provide an ultra-generic - interface), but do not actually provide access to the device. - Such devices are weeded out by the Blacklist module, - based on information in - /etc/hotplug/blacklist and - /etc/hotplug/blacklist.d. -

- It turns out that the "load modules for every component in the sysfs - path" approach is not always sufficient: sometimes you have to load - siblings as well. As an example, consider a combined EHCI/UHCI - USB controller on a single chip. The same ports can show up as EHCI - or UHCI devices, different PCI functions in the same PCI slot, with - different sysfs directories, depending on what kind of hardware is - connected. Purely following the sysfs path, we would only need to load - the EHCI driver, but it appears that on this kind of chip, EHCI devices - are not reliably detected unless the UHCI driver is loaded as well. - For this reason, we extend the algorithm with a rule: "for PCI devices, - load modules for every function in the PCI slot". -

- That's actually a bit much: it would load all of ALSA if you have a - combined ISA/IDE/USB/Multimedia chipset. So we limit the above - to those PCI functions that provide USB ports. -

Plan Transformation

- The plan generated in the first phase is a collection of general - intentions, stuff like 'load this module', but it does not - specify exactly what files must be placed on the image and what - lines are to be added to the initialisation scripts. -

- The module ActionList represents this plan with a - list of hashes; every hash contains at least 'action' and - 'target', with other keys added to provide extra information - as needed. If two steps in the plan have identical action and - target, the last one is considered redundant and silently omitted. -

- This plan is transformed to an exact image description with - the help of templates. The module Template - contains a hash with for every type of action: -

  • - a list of files to be copied from the mother system to the - image; -

  • - a list of directories to be created on the image; these do - not have to exist on the mother system; -

  • - a list of trees to be copied recursively from the mother - system to the image; -

  • - a hash, with as key the name of a script to be appended to - and as value that which is to be appended. -

- All of the above are fed through HTML-Template, with the hash - describing this step as parameters. In practice, this looks - like so: -

-          insmod => {
-              files => [
-                  '<TMPL_VAR NAME=target>',
-                  '/sbin/insmod',
-                  ],
-              directories => [],
-              trees => [],
-              scripts => {
-                  '/init' => <<'//',
-                      /sbin/insmod '<TMPL_VAR NAME=target>'
-//
-              },
-          },
-      

-

- There are a few attributes that are available to every template: -

- version -

- The kernel version we're generating an image for. - Useful if you want your image to include a complete copy - of /lib/modules/(version)/kernel. -

- appVersion -

- The version of yaird used to - build the image. -

- auxDir -

- The directory where yaird - keeps executables intended to go on the image, such as - run_init. -

-

- Currently, there are templates for Debian and for Fedora, plus - a template showing how to use the older initrd approach. -

Image Generation

- The detailed image description consists of a collection of names of - files, directories, symbolic links and block or character devices, - plus a number of lines of shell script. The image description does - not contain permission or ownership information: files always have - mode 444, executables and directories always 555, devices always - mode 600,[6] and everything is owned by root. -

- The Image module contains the image description and - can write the image to a directory. It understands about symlinks: - if /sbin/vgscan is added to the image and it - happens to be a symlink to lvmiopversion, both - vgscan and lvmiopversion - will be added to the image. Shared libraries are supported - via the SharedLibraries module, as discussed in - the section called “Supporting Shared Libraries”. Invocations of other executables are not - recognised automatically: if lvmiopversion executes - /etc/lvm-200/vgscan, the latter needs to be - added explicitly to the image. -

- The copying of complete trees to the image is influenced by the - copying for executables: if there is a symlink in the tree, it's - target is also included on the image, but if the target is a - directory, its contents are not copied recursively. This - approach avoids loops in image generation. - Note that the target of a symlink must exist: - yaird refuses to copy dangling links. -

Packing the Image

- The final step is packing the image in a format that the - bootloader can process; this is handled by the module - Pack. The following formats are supported: -

- cpio -

- A zipped cpio file (new ASCII format), required for the - initramfs model as used in the templates for Debian and - Fedora. -

- directory -

- An unpacked directory, good for debugging or manually - creating odd formats. -

- cramfs -

- A cramfs filesystem, used for Debian initrd images. -

-

The interface between kernel and image

- The initial boot image is supposed to load enough modules to let - the real root device be mounted cleanly. It starts up in a - very bare environment and it has to do tricky - stuff like juggling root filesystems; to pull that off successfully - it makes sense to take a close look at the environment that the - kernel creates for the image and what the kernel expects it to do. - This section contains raw design notes based on kernel 2.6.8. -

- The processing of the image starts even before the kernel is - activated. The bootloader, grub or lilo for example, reads two - files from the boot file system into ram: the kernel and image. - The bootloader somehow manages to set two variables in the kernel: - initrd_start and initrd_end; these variables - point to the copy of the image in ram. The bootloader now - hands over control to the kernel. -

- During setup, the kernel creates a special file system, rootfs. - This mostly reuses ramfs code, but there are a few twists: it can - never be mounted from userspace, there's only one copy, and it's not - mounted on top of anything else. The existence of rootfs means that - the rest of the kernel always can assume there's a place to mount - other file systems. It also is a place where temporary files can - be created during the boot sequence. -

- In initramfs.c:populate_rootfs(), there are two - possibilities. If the image looks like a cpio.gz file, it is - unpacked into rootfs. If the file /init is - among the files unpacked from the cpio file, the initramfs model - is used; otherwise we get a more complex interaction between kernel - and initrd, discussed in the section called “Booting with initrd”. -

Booting with Initramfs

- If the image was a cpio file, and it contains a file - /init, the initram model is used. - The kernel does some basic setup and hands over control to - /init; it is then up to - /init to make a real root available and to - transfer control to the /sbin/init command - on the real root. -

- The tricky part is to do that in such a way that there - is no way for user processes to gain access to the rootfs - filesystem; and in such a way that rootfs remains empty and - hidden under the user root file system. This is best done - using some C code; yaird uses - run_init, a small tool based on - klibc. -

-	# invoked as last command in /init, with no other processes running,
-	# as follows:
-	# exec run_init /newroot /sbin/init "$@"
-	- chdir /newroot
-	# following after lots of sanity checks and not across mounts:
-	- rm -rf /*
-	- mount --move . /
-	- chroot .
-	- chdir /
-	- open /dev/console
-	- exec /sbin/init "$@"
-      

-

Booting with initrd

- If the image was not a cpio file, the kernel copies the - initrd image from where ever the boot loader left it to - rootfs:/initrd.image, and frees the ram used - by the bootloader for the initrd image. -

- After reading initrd, the kernel does more setup to the point where - we have: -

  • - working CPU and memory management -

  • - working process management -

  • - compiled in drivers activated -

  • - a number of support processes such as ksoftirqd are created. - (These processes have the rootfs as root; they can get a new - root when the pivot_root() system call is used.) -

  • - something like a console. Console_init() is - called before PCI or USB probes, so expect only compiled in - console devices to work. -

-

- At this point, in do_mounts.c:prepare_namespace(), - the kernel looks for a root filesystem to mount. That root file - system can come from a number of places: NFS, a raid device, a plain - disk or an initrd. If it's an initrd, the sequence is as follows - (where devfs can fail if it's not compiled into the kernel) - -

-      - mount -t devfs devfs /dev
-      - md_run_setup()
-      - process initrd
-      - umount /dev
-      - mount --move . /
-      - chroot .
-      - mount -t devfs devfs /dev
-      

- -

- Once that returns, in init/main.c:init(), - initialisation memory is freed and /sbin/init - is executed with /dev/console as file descriptor 0, 1 - and 2. /sbin/init can be overruled with - an init=/usr/bin/firefox parameter passed to the - boot loader; if /sbin/init is not found, - /etc/init and a number of other fallbacks - are tried. We're in business. -

- The processing of initrd starts in - do_mounts_initrd.c:initrd_load(). It creates - rootfs:/dev/ram, then copies - rootfs:/initrd.image there and unlinks - rootfs:/initrd.image. Now we have the initrd - image in a block device, which is good for mounting. It calls - handle_initrd(), which does: - -

-      # make another block special file for ram0
-      - mknod /dev/root.old b 1 0
-      # try mounting initrd with all known file systems,
-      # optionally read-only
-      - mount -t xxx /dev/root.old /root
-      - mkdir rootfs:/old
-      - cd /root
-      - mount --move . /
-      - chroot .
-      - mount -t devfs devfs /dev
-      - system ("/linuxrc");
-      - cd rootfs:/old
-      - mount --move / .
-      - cd rootfs:/
-      - chroot .
-      - umount rootfs:/old/dev
-      - ... more ...
-      

- -

- So initrd:/linuxrc runs in an environment where - initrd is the root, with devfs mounted if available, and rootfs is - invisible (except that there are open file handles to directories - in rootfs, needed to change back to the old environment). -

- Now the idea seems to have been that /linuxrc - would mount the real root and pivot_root into it, then start - /sbin/init. Thus, linuxrc would never return. - However, main.c:init() does some usefull stuff only - after linuxrc returns: freeing init memory segments and starting numa - policy, so in eg Debian and Fedora, /linuxrc - will end, and /sbin/init - is started by main.c:init(). -

- After linuxrc returns, the variable real_root_dev - determines what happens. This variable can be read and written - via /proc/sys/kernel/real-root-dev. If it - is 0x0100 (the device number of /dev/ram0) - or something equivalent, handle_initrd() will change - directory to /old and return. If it is - something else, handle_initrd() will decode it, mount - it as root, mount initrd as /root/initrd, - and again start /sbin/init. (if mounting as - /root/initrd fails, the block device is freed.) -

- Remember handle_initrd() was called via - load_initrd() from prepare_namespace(), - and prepare_namespace() ends by chrooting into the - current directory: rootfs:/old. -

- Note that rootfs:/old was move-mounted - from '/' after /linuxrc returned. - When /linuxrc started, the root was - initrd, but /linuxrc may have done a - pivot_root(), replacing the root with a real root, - say /dev/hda1. -

- Thus: -

  • - /linuxrc is started with initrd - mounted as root. -

  • - There is working memory management, processes, compiled - in drivers, and stdin/out/err are connected to a console, - if the relevant drivers are compiled in. -

  • - Devfs may be mounted on /dev. -

  • - /linuxrc can pivot_root. -

  • - If you echo 0x0100 to - /proc/sys/kernel/real-root-dev, - the pivot_root will remain in effect after - /linuxrc ends. -

  • - After /linuxrc returns, - /dev may be unmounted and replaced - with devfs. -

-

- Thus a good strategy for /linuxrc is to - do as little as possible, and defer the real initialisation - to /sbin/init on the initrd; this - /sbin/init can then pivot_root - into the real root device. -

-	#!/bin/dash
-	set -x
-	mount -nt proc proc /proc
-	# root=$(cat proc/sys/kernel/real-root-dev)
-	echo 256 > proc/sys/kernel/real-root-dev
-	umount -n /proc
-      

-

Kernel command line parameters

- The kernel passes more information than just an initial file system - to the initrd or initramfs image; there also are the kernel boot - parameters. The bootloader passes these to the kernel, and the kernel - in turn passes them on via /proc/cmdline. -

- An old version of these parameters is documented in the - bootparam(7) manual page; more recent information is in the kernel - documentation file kernel-parameters.txt. - Mostly, these parameters are used to configure non-modular drivers, - and thus not very interesting to yaird. - Then there are parameters such as noapic, which are - interpreted by the kernel core and also irrelevant to - yaird. - Finally there are a few parameters which are used by the kernel - to determine how to mount the root file system. -

- Whether the initial image should emulate these options or ignore them - is open to discussion; you can make a case that the flexibility these - options offer has become irrelevant now that initrd/initramfs offers - far more fine grained control over the way in which the system - is booted. - Support for these options is mostly a matter of tuning the - distribution specific templates, but it is possible that the - templates need an occassional hint from the planner. - To find out just how much "mostly" is, we'll try to implement - full support for these options and see where we run into - limitations. - An inventarisation of relevant options. -

- ide -

- These are options for the modular ide-core driver. - This could be supported by adding an attribute - "isIdeCore" to insmod actions, and expanding the ide - kernel options only for insmod actions where that - attribute is true. - It seems cleaner to support the options from - /etc/modprobe.conf. - Unsupported for now. -

- init -

- The first program to be started on the definitive root device, - default /sbin/init. Supported. -

- ro -

- Mount the definitive root device read only, - so that it can be submitted to fsck. - Supported; this is the default behaviour. -

- rw -

- Three guesses. Supported. -

- resume, noresume -

- Which device (not) to use for software suspend. - To be done. -

- root -

- The device to mount as root. This is a nasty one: - the planner by default only creates device nodes - that are needed to mount the root device, and even - if you were to put hotplug on the inital image - to create all possible device nodes, there's still - the matter of putting support for the proper file system - on the initial image. - We could make an option to - yaird to specify a list - of possible root devices and load the necessary - modules for all of them. - Unsupported until there's a clear need for it. -

- rootflags -

- Flags to use while mounting root file system. - Implement together with root option. -

- rootfstype -

- File system type for root file system. - Implement together with root option. -

- nfsaddrs -

- For diskless booting. - Unclear whether we need this. NFS booting is desirable, - but I guess that will mostly be done under control of - DHCP. Unsupported for now. -

- nfsroot -

- More diskless booting. - Unsupported for now. -

- -

Supporting Raid Devices

- This section discusses software raid devices from an initial boot - image perspective: how to get the root device up and running. - There are other aspects to consider, the bootloader for example: - if your root device is on a mirror for reliability, it would be - a disappointment if after the crash you still had a long downtime - because the MBR was only available on the crashed disk. Then there's - the issue of managing raid devices in combination with hotplugging: - once the system is operational, how should the raid devices that - the initial image left untouched be brought online? -

- Raid devices are managed via ioctls (mostly; there is something - called "autorun" in the kernel) - The interface from userland is simple: mknod a block device file, - send an ioctl to it specifying the devnos of the underlying block - devices and whether you'd like mirroring or striping, then send - a final ioctl to activate the device. This leaves the managing - application free to pick any unused device (minor) number and - has no assumptions about device file names. -

- Devices that take part in a raid set also have a "superblock", - a header at the end of the device that contains a uuid and indicates - how many drives and spares are supposed to take part in the raid set. - This can be used be the kernel to do consistency checking, it can also - be used by applications to scan for all disks belonging in a raid set, - even if one of the component drives is moved to another disk controller. -

- The fact that the superblock is at the end of a device has an obvious - advantage: if you somehow loose your raid software, the device - underlying a mirror can be mounted directly as a fallback measure. -

- If raid is compiled into the kernel rather than provided as a module, - the kernel uses superblocks at boot time to find raid sets and make - them available without user interaction. In this case the filename of - the created blockdevice is hardcoded: /dev/md\d. - This feature is intended for machines with root on a raid device - that don't use an initial boot image. This autorun feature is - also accessible via an ioctl, but it's not used in management - applications, since it won't work with an initial boot image and - it can be a nuisance if some daemon brought a raid set online just - after the administator took it off line for replacement. -

- Finally, by picking a different major device number for the raid device, - the raid device can be made partitionable without use of LVM. -

- There are at least three different raid management applications - for Linux: raidtools, the oldest; mdadm, more modern; and EVMS, a - suite of graphical and command line tools that manages not only raid - but also LVM, partitioning and file system formating. We'll only - consider mdadm for now. The use of mdadm is simple: -

-

  • - There's an option to create a new device from components, - building the superblock. -

  • - Another option assembles a raid device from components, - assuming the superblocks are already available. -

  • - Optionally, a configuration file can be used, specifying which - components make up a device, whether a device file should - be created or it is assumed to exist, whether it's stripe or - mirror, and the uuid. Also, a wildcard pattern can be given: - disks matching this pattern will be searched for superblocks. -

  • - Information given in the configuration file can be omitted - on the command line. If there's a wildcard, you don't even - have to specify the component devices of the raid device. - A typical command is mdadm --assemble /dev/md-root - auto=md uuid=..., which translates to "create - /dev/md-root with some unused minor number, - and put the components with matching uuid in it." -

-

- So far, raid devices look fairly simple to use; the complications - arise when you have to play nicely with all the other software - on the box. It turns out there are quite a lot of packages that - interact with raid devices: -

-

  • - When the md module is loaded, it registers 256 block devices - with devfs. These devices - are not actually allocated, they're just names set up to - allocate the underlying device when opened. These names in - devfs have no counterpart in sysfs. -

  • - When the LVM vgchange is started, - it opens all md devices to scan for headers, only to find the - raid devices have no underlying components and will return - no data. In this process, all these stillborn md devices get - registered with sysfs. -

  • - When udevstart is executed - at boot time, it walks over the sysfs tree and lets - udev create block devices files for - every block device it finds in sysfs. The name and permissions - of the created file are configurable, and there is a hook to - initialise SELinux access controls. -

  • - When mdadm is invoked with the auto - option, it will create a block device file with an unused - device number and put the requested raid volume under it. - The created device file is owned by whoever executed the - mdadm command, permissions are 0600 - and there are no hooks for SELinux. -

  • - When the Debian installer builds a system with LVM and raid, the - raid volumes have names such as /dev/md0, - where there is an assumption about the device minor number in - the name of the file. -

-

- For the current Debian mkinitrd, this all works together in - a wonderful manner: devfs creates file names for raid devices, - LVM scans them with as side effect entering the devices in sysfs, - and after pivotroot udevstart triggers - udev into creating block device files with proper permissions and - SELinux hooks. Later in the processing of rcS.d, - mdadm will put a raid device under the - created special file. Convoluted but correct, except for the fact - that out of 256 generated raid device files, up to 255 are unused. -

- In yaird, we do not use devfs. - Instead, we do a mknod before the - mdadm, taking care to use the same - device number that's in use in the running kernel. We expect - mdadm.conf to contain an auto=md - option for any raid device files that need to be created. - This approach should work regardless of whether the fstab uses - /dev/md\d or a device number independent name. -

Supporting Input Devices

- A working console and keyboard during the initial boot image execution - is needed to enter a password for encrypted file systems; it also - helps while debugging. This section discusses the kernel input - layer and how it can be supported during image generation. -

- The console is a designated terminal, where kernel output goes, and that - is the initial I/O device for /sbin/init. Like all - terminal devices, it provides a number of functions: you can read - and write to it, plus it has a number of ioctl() - functions to manage line buffering, interrupt characters and - baudrate or parity where applicable. -

- Terminals come in different types: it can be a VT100 or terminal - emulator connected via an RS232 cable, or it can be a combination - of a CRT and a keyboard. The keyboard can be connected via - USB or it can talk a byte oriented protocol via a legacy UART - chip. -

- The CRT is managed in two layers. The top layer, "virtual - terminal", manages a two dimensional array describing which letter - should go in which position of the screen. In fact, there are a - number of different arrays, and which one is actually visible on - the screen is selected by a keyboard combination. - Below the virtual terminals is a layer that actually places the - letters on the screen. This can be done a letter at a time, - using a VGA interface, or the letters can be painted pixel by - pixel, using a frame buffer. -

- Below the terminal concept we find the input layer. This provides a - unified interface to the various user input devices: mouse, keyboard, - PC speaker, joystick, tablet. These input devices not only - generate data, they can also receive input from the computer. As - an example, the keyboard needs computer input to operate the NUM - LOCK indicator. Hardware devices such as keyboards register - themselves with the input layer, describing their capabilities - (I can send relative position, have two buttons and no LEDs), - and the input layer assigns a handler to the hardware device. - The handler presents the device to upper layers, either as a char - special file or as the input part of a terminal device. - This is not a one-to-one mapping: every mouse gets its own - handler, but keyboard and PC speaker share a handler, so it looks - to userland like you have a keyboard that can do "beep". -

- In addition to handlers for specific type of upper layers (mouse, - joystick, touch screen) there is a generic handler that provides a - character device file such as /dev/input/event0 - for every input device detected; input events are presented through - these devices in a unified format. The input layer generates - hotplug events for these generic event handlers; hotplug uses - modules.inputmap to load a module containing a - suitable upper layer event handler. The keyboard handler is a special - case that does not occur in this map, so for image generation there - is little to be learned from hotplug input support. -

- To guarantee a working console, yaird - should examine /dev/console, determine - whether it's RS232 or hardware directly connected to the computer, - and then load modules for either serial port, or for virtual - terminals, the input layer and any hardware underlying it. - Unfortunately, /dev/console does not give - a hint what is below the terminal interface, and unfortunately, - lots of input devices are legacy hardware that is hard to probe - and only sketchily described by sysfs in kernel 2.6.10. -

- This means that a guarantee for a working console cannot be made, - which is why distribution kernels come with components such as the - keyboard and serial port driver compiled into the kernel. We can - do something else though: provide modules for keyboard devices - provided the kernel provides correct information. That covers the - case of USB keyboards, and that's something that's not compiled - into distribution kernels, so that the administrator has to add - modules explictly in order to get the keyboard working in - the initial boot image. -

- Lets examine the sources of information we have to find which input - hardware we have to support. -

  • - In /sys/class/input, all input devices - are enumerated. Mostly, these only contain a - dev file containing major/minor number, - but USB devices also have a device - symlink into /sys/devices identifying - the underlying hardware. -

  • - In /boot/menu/grub.lst, kernel options - can be defined that determine whether to use a serial line as - console and whether to use a frame buffer. The consequence - is that it is fundamentally impossible to determine by looking - at the hardware alone what's needed to get an image that will - boot without problems. This probably means we'll have to consider - supplying some modules in the image that will only get loaded - depending on kernel options. -

  • - The file /proc/bus/input/devices gives - a formatted overview of all known input devices; entries look - like this: -

    -	    I: Bus=0003 Vendor=413c Product=2003 Version=0100
    -	    N: Name="DELL DELL USB Keyboard"
    -	    P: Phys=usb-0000:00:1d.7-4.1/input1
    -	    H: Handlers=kbd event2
    -	    B: EV=100003
    -	    B: KEY=7f f0000 0 3878 d801d101 1e0000 0 0 0
    -	  

    - Here the "I" line shows identification information passed to - the input layer by the hardware driver that is used to look - up the appropiate handler. "N" is a printable name provided - by the hardware driver. "P" is a hint at location in a bus - of the device; note how this line is completely unrelated to - the location of the hardware in - /sys/devices. - The H (Handlers) line is obvious; The B lines specify - capabilities of the device, plus extra information for each - capability. Known capabilities include: -

    CapabilityDescription
    SYNInput event is completed
    KEYKey press/release event
    RELRelative measure, as in mouse movement
    ABSAbsolute position, as in graphics - tablet
    MSCMiscelanious
    SNDBeep
    REPSet hardware repeat
    FFDon't know
    PWRPower event: on/off switch pressed.
    FF_STATUSDon't know.

    -

-

- Finally, let's consider some kernel configuration defines, the - corresponding modules and their function. This could be used as a - start to check whether all components required to make an - operational console are available on the generated image: -

DefineModuleDescription
VT(bool) - Support multiple virtual terminals, irrespective of what - hardware is used to display letters from the virtual - terminal on the CRT. -
VT_CONSOLE(bool) - Make the VT a candidate for console output. The alternative - is a serial line to a VT100 or terminal emulator -
VGA_CONSOLE(bool) - Display a terminal on CRT using the VGA interface. -
FRAMEBUFFER_CONSOLEfbcon - Display a terminal on a framebuffer, painting letters a - pixel at a time. This has to know about fonts. -
FB_VESAvesafb - Implement a framebuffer based on VESA (a common standard - for PC graphic cards), a place where an X server or - the framebuffer console can write pixels to be displayed - on CRT. - There are many different framebuffer modules that - optimise for different graphics cards. - Note that while vesafb and other drivers such as intelfb - can be built as a module, they only function correctly - when built into the kernel. Most framebuffer modules - depend on three other modules to function correctly: - cfbfillrect, cfbcopyarea, cfbimgblt. -
ATKBDatkbd - Interpret input from a standard AT or PS/2 keyboard. - Other keyboards use other byte codes, see for example - the Acorn keyboard (rpckbd). -
SERIOserio - Module that manages a stream of bytes from and to an IO port. - It includes a kernel thread (kseriod) that handles the queue - needed to talk to slow ports. It is normally used for - dedicated IO ports talking to PS/2 mouse and keyboard, - but can also be interfaced to serial ports (COM1, COM2). - The atkbd driver uses a serio driver to communicate with - the keyboard. -
SERIO_I8042i8042 - Implement a serio stream on top of the i8042 chip, the chip - that connects the standard AT keyboard and PS/2 mouse to - the computer. - This is legacy hardware: it's not connected via PCI but - directly to the 'platform bus'. - When a chip such as i8042 that implements - serio is detected, it registers itself with the input - layer. The input layer then lets drivers that use serio - (such as atkbd and psmouse) probe whether a known device - is connected via the chip; if such a device is found, - it is registered as a new input device. -
SERIAL_8250serial - Support for serial ports (COM1, COM2) on PC hardware. - Lots of other configuration options exist to support - multiple cards and fiddle with interrupts. - If compiled in rather than modular, a further option, - SERIAL_8250_CONSOLE, allows using the serial port as a - console. -
USB_HIDusbhid - Driver for USB keyboards and mice. - Another define, USB_HIDINPUT, needs to be true for - these devices to actually work. -
USB_KBDusbkbd - Severely limited form of USB keyboard; uses the "boot - protocol". This conflicts with the complete driver. -

-

- The following figure gives an example of how the various modules - can fit together. -

Figure 1.  - Module relation for common console setup -

Module relation for common console setup

- In practical terms, a first step toward a more robust boot image - is to support new keyboard types, such as USB keyboards. - The following algorithm should do that. - -

  1. - Interpret /proc/bus/input/devices. -

  2. - Look for devices that have handler kbd and - that have buttons. Mice and the PC speaker don't match that - criterium, keyboards do. -

  3. - You could interpret the name field of such devices if you're - interested in supporting legacy keyboards. -

  4. - The devices that have handler 'kbd' also have a handler 'event\d', - where input is presented in a generalised event format; - look up this device in /sys/class/input/event\d/. -

  5. - If it's got a device symlink, load the hardware drivers for that - hardware device (most likely it's usbhid plus a usb core driver). -

  6. - Don't bother with a mknod, the input is handled via - /dev/console. -

  7. - Otherwise it's presumable a legacy device; you could check for - the existence of - /sys/devices/platform/i8042/serio\d/, - or you could just assume the appropriate driver to be compiled in. -

  8. - Implement support for - /etc/hotplug/blacklist, - since some USB keyboards publish two interfaces (full HID - and the limited boot protocol), the input layer makes both - visible in /proc/bus/input/devices and - the corresponding modules are mutually conflicting. - The blacklist is used to filter out one of these modules. -

-

Supporting Shared Libraries

- When an executable is added to the image, we want any required shared - libraries to be added automatically. The SharedLibraries - module determines which files are required. This section discusses - the features of kernel and compiler we need to be aware of in order - to do this reliably. -

- Linux executables today are in ELF format; it is defined in - - - Generic ELF Specification ELFVERSION, - part of the Linux Standard Base. This is based on part of the System - V ABI: Tool Interface Standard (TIS), Executable and Linking Format - (ELF) Sepcification -

- ELF has consequences in different parts of the system: in - the link-editor, that needs to merge ELF object files into ELF - executables; in the kernel (fs/binfmt_elf.c), - that has to place the executable in RAM and transfer control to it, - and in the runtime loader, that is invoked when starting the - application to load the necessary shared libraries into RAM. - The idea is as follows. -

  • - Executables are in ELF format, with a type of either - ET_EXEC (executable) or ET_DYN (shared - library; yes, you can execute those.) There are other types of - ELF file (core files for example) but you can't execute them. -

  • - These files contain two kind of headers: program headers and - section headers. Program headers define segments of the file that - the kernel should store consequetively in RAM; section headers define - parts of the file that should be treated by the link editor - as a single unit. Program headers normally point to a group - of adjacent sections. -

  • - The program may be statically linked or dynamically (with shared - libraries). - If it's statically linked, the kernel loads relevant segments, - then transfers control to main() in userland. -

  • - If it's dynamically linked, one of the program headers has type - PT_INTERP. It points to a segment that contains - the name of a (static) executable; this executable is loaded in - RAM together with the segments of the dynamic executable. -

  • - The kernel then transfers control to the userland - interpreter, passing program headers and related info in a - fourth argument to main(), after envp. -

  • - There's one interesting twist: one of the segments loaded - into RAM (linux-gate.so) does not - come from the executable, but is a piece of kernel mapped - into user space. It contains a subroutine that the kernel - provides to do a system call; the idea is that this way, - the C library does not have to know which calling convention - for system calls is supported by the kernel and optimal for - the current hardware. The link editor knows nothing about - this, only the interpreter knows that the kernel can pass the - address of this subroutine together with the program headers. - [7] -

  • - The interpreter interprets the .dynamic section of - the dynamic executable. This is a table containing various types - of info; if the type is DT_NEEDED, the info is the - name of a shared library that is needed to run the executable. - Normally, it's the basename. -

  • - The interpreter searches LD_LIBARY_PATH for the - library and loads the first working version it finds, using a - breath-first search. Once everything is loaded, the interpreter - hands over control to main in the executable. -

  • - Except that that's not how it really works: the path that glibc - uses depends on whether threads are supported, and klibc can - function as a PT_INTERP but will not load additional - libraries. -

- The ldd command finds the pathnames - of shared libraries used by an executable. This works - only for glibc: it invokes the interpreter - with the executable as argument plus an environment variable that - tells it to print the pathnames rather than load them. For other - C libraries, there's no guaranteed correct way to find the path of - shared libraries. -

- Thus, to figure out what goes on the initial ram image, first try - ldd. If that gives an answer, good. - Otherwise, use a helper program to find PT_INTERP and - DT_NEEDED. If there's only PT_INTERP, good, - add it to the image. If there are DT_NEEDED libraries - as well, and they have relative rather than absolute pathnames, - we can't determine the full path, so don't generate an image. -

- There are a number of options to build a helper to extract the relevant - information from the executable: -

  • - Build it in perl. The problem here is that unpacking 64-bit - integers is an optional part of the language. -

  • - Build a wrapper around objdump or - readelf. The drawback is that - there programs are not part of a minimal Linux distribution: - depending on them in yaird would - increase the footprint. -

  • - Building a C program using libbdf. This is a library - intended to simplify working with object files. Drawbacks - are that it adds complexity that is not necessary in our - context since it supports multiple executable formats; - furthermore, at least in Debian it is treated as internal - to the gcc tool chain, complicating packaging the tool. -

  • - Building a C program based on elf.h. - This turns out to be easy to do. -

-

- Yaird uses the last appraoch listed. -

Security

- This section discusses security: avoiding downtime, avoiding revealing - sensitive information, avoiding unwanted modifications to the data; - either through accident or malice. - A good introduction to secure programming can be found in - - - Secure Programming for Linux and Unix HOWTO. -

- For yaird, security is not very - complicated: although it runs with root privileges, the program is - not setuid, and all external input comes from files or programs - installed by the admnistrator, so our main focus is on avoiding - downtime caused by ignored error codes. - A full blown risk assessment would be overkill, so we'll just use - the HOWTO as a checklist to verify that the basic precautions are - in place. -

-

GroupMitigationStatus
Bad inputVerify command line - Yes. -
Bad inputVerify and clean up environment - Complete environment is reset at start of program. -
Bad inputAvoid assumptions about file descriptors - Handled by perl. -
Bad inputVerify file names - Perl taint check shows filenames are verified for - absence of odd characters before passing to - subprocesses. - TODO: examine UTF-8 impact. -
Bad inputVerify file content - File contents in sysfs verified. - Fstab entries properly quoted. - TODO: check for spaces in names of LVM volume or of - modules; could end up in generated /sbin/init. -
Bad inputVerify locale settings - All locale related environment variables are wiped at - program startup. -
Bad inputVerify character encoding - All IO is byte oriented. -
Bad inputBuffer overflow - In perl? -
Program structureSeparate data and control - Under this heading, the HOWTO discusses the dangers of - auto-executing macros in data files. The closest thing we - have to a data file are the templates that tune the image - to the distribution. We use a templating language that - does not allow code embedding, and the image generation - module does not make it possible for template output to - end up outside of the image. Conclusion: broken templates - can produce a broken image, but cannot affect the running - system. -
Program structureMinimize privileges - The user is supposed to bring his own root privileges to - the party, not much to be done here. A related issue - is the minimizing of privileges in the system that is - started with the generated image. This would include - starting SELinux at the earliest possible moment. - At least in Fedora, that earliest possible moment is - in rc.sysinit, well past the moment - where the initial boot image hands over control to the newly - mount root file system. No yaird - support needed. -
Program structureSafe defaults - Configuration only specifies sources of information, - like /etc/hotplug, not much can go wrong here. -
Program structureSafe configuration - No configuration file is used yet, so it's not read from - current directory either. -
Program structureFail safe - Planning and writing the image is separated; - writing only starts after planning is succesfully completed. - Todo: consider backout on write failure. -
Program structureAvoid race conditions - Temporary files and directories are created - with the File::Temp module, which is - resistant to name guessing attacks. - The completed image is installed with rename - rather than link; if an existing file is - overwritten, this guarantees there's no race where the - old image has been deleted bu the new one is not yet in - place. (Note that there is no option in place yet which - allows overwriting of existing files.) - To do: examine File::Temp safe_level=HIGH. -
Underlying resourcesHandle meta characters - Protection against terminal escape sequences in output - is not yet in place. -
Underlying resourcesCheck system call results - Yes. -
Language specificVerify perl behaviour with taint. - Yes. -
Language specificAvoid perl open magic with 3rd argument. - Yes. -

-

Tool Chain

- This section discusses which tools are used in implementing - yaird and why. -

- The application is built as a collection of perl modules. - The use of a scripting language makes consistent error checking - and building sane data structures a lot easier than shell - scripting; using perl rather than python is mainly because in - Debian perl has 'required' status while python is only 'standard'. - The code follows some conventions: -

-

  • - Where there are multiple items of a kind, say fstab entries, - the perl module implements a class for individual items. - All classes share a common base class, Obj, - that handles constructor argument validation and that offers - a place to plug in debugging code. -

  • - Object attributes are used via accessor methods to catch - typos in attribute names. -

  • - Objects have a string method, that returns - a string version of the object. Binary data is not - guaranteed to be absent from the string version. -

  • - Where there are multiple items of a kind, say fstab entries, - the collection is implemented as a module that is not a - class. There is a function all that returns a - list of all known items, and functions findByXxx - to retrieve an item where the Xxx attribute has a given - value. There is an init function that - initializes the collection; this is called automatically - upon first invocation of all or - findByXxx. - Collections may have convenience functions - findXxxByYyy: return attribute Xxx, given a - value for attribute Yyy. -

-

- The generated initrd image needs a command interpreter; - the choice of command interpreter is exclusively determined - by the image generation template. - At this point, both Debian and Fedora templates use the - dash shell, for historical reasons only. - Presumably busybox could be used to build a - smaller image. However, support for initramfs requires a complicated - construction involving a combination of mount, chroot and chdir; - to do that reliably, nash as used in Fedora - seems a more attractive option. -

- Documentation is in docbook format, since it's widely supported, - supports numerous output formats, has better separation between - content and layout than texinfo, and provides better guarantees - against malformed HTML than texinfo. -

Autoconf

- GNU automake is used to build and install the application, - where 'building' is perhaps too big a word adding the location - of the underlying modules to the wrapper script. - The reasons for using automake: it provides packagers with a - well known mechanism for changing installation directories, - and it makes it easy for developers to produce a cruft-free - and reproducible tarball based on the tree extracted from - version control. -

C Library

- The standard C library under linux is glibc. This is big: - 1.2Mb, where an alternative implementation, klibc, is only 28Kb. - The reason klibc can be so much smaller than glibc is that a - lot of features of glibc, like NIS support, are not relevant for - applications that need to do basic stuff like loading an IDE driver. -

- There are other small libc implementations: in the embedded world, - dietlibc and uClibc are popular. However, klibc was specifically - developed to support the initial image: it's intended to be included - with the mainline kernel and allow moving a lot of startup magic out - of the kernel into the initial image. See - - - LKML: [RFC] klibc requirements, round 2 - for requirements on klibc; the - - mailing list is the most current - source of information. -

- Recent versions of klibc (1.0 and later) include a wrapper around - gcc, named klcc, that will compile a program with klibc. This means - yaird does not need to include klibc, - but can easily be configured to use klibc rather than glibc. - Of course this will only pay off if every - executable on the initial image uses klibc. -

- Yaird does not have to be extended in - order to support klibc, but it is necessary to avoid assumptions - about which shared libraries are used. This is discussed in - the section called “Supporting Shared Libraries”. -

Template Processing

- This section discusses the templates used to transform - high-level actions to lines of script in the generated image. - These templates are intended to cope with small differences - between distributions: a shell that is named - dash in Debian and - ash in Fedora for example. - By processing the output of yaird - through a template, we can confine the tuning of - yaird for a specific distribution - to the template, without having to touch the core code. -

- One important function of a template library is to enforce - a clear separation between progam logic and output formatting: - there should be no way to put perl fragments inside a template. - See StringTemplate - for a discussion of what is needed in a templating system, plus - a Java implementation. -

- Lets consider a number of possible templating solutions: -

  • - - Template Toolkit: - widely used, not in perl core distribution, does not - prevent mixing of code and templates. -

  • - - Text::Template: - not in perl core distribution, does not - prevent mixing of code and templates. -

  • - Some XSLT processor. Not in core distribution, - more suitable for file-to-file transformations - than for expanding in-process data; overkill. -

  • - - HTML-Template: - not in perl core distribution, - prevents mixing of code and templates, - simple, no dependencies, dual GPL/Artistic license. - Available in Debian as - libhtml-template-perl, - in Fedora 2 as perl-HTML-Template, dropped from Fedora 3, - but available via - - Fedora Extras. -

  • - A home grown templating system: a simple system such as the - HTML-Template module is over 100Kb. We can cut down on that - by dropping functions we don't immediately need, but the effort - to get a tested and documented implementation remains substantial. -

-

- The HTML-Template approach is the best match for our - requirements, so used in yaird. -

Authors

- This is a place holder section. - Yaird was written by ... - website here ... comments to ... bug reports ... -

License

- This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public - License as published by the Free Software Foundation; - either version 2 of the License, or (at your option) any later - version. -

- This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. -

- You should have received a copy of the GNU General Public - License along with this program; you may also obtain - a copy of the GNU General Public License - from the Free Software Foundation by visiting their Web site or by writing to -


-      Free Software Foundation, Inc.
-      59 Temple Place - Suite 330
-      Boston, MA 02111-1307
-      USA
-    

-

Klibc code

- Yaird contains code based on klibc; this code is made available - by the author under the following licence. The relevant source - files have this copyright notice included. -

-/* ----------------------------------------------------------------------- *
- *   
- *   Copyright 2004 H. Peter Anvin - All Rights Reserved
- *
- *   Permission is hereby granted, free of charge, to any person
- *   obtaining a copy of this software and associated documentation
- *   files (the "Software"), to deal in the Software without
- *   restriction, including without limitation the rights to use,
- *   copy, modify, merge, publish, distribute, sublicense, and/or
- *   sell copies of the Software, and to permit persons to whom
- *   the Software is furnished to do so, subject to the following
- *   conditions:
- *   
- *   The above copyright notice and this permission notice shall
- *   be included in all copies or substantial portions of the Software.
- *   
- *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- *   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- *   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- *   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- *   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- *   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- *   OTHER DEALINGS IN THE SOFTWARE.
- *
- * ----------------------------------------------------------------------- */
-      

-



[1] - Well, not really. I started this thingy to show off a small - algorithm to find required modules based on sysfs information. - To make that a credible demonstration, the small algorithm - turned out to need a lot of scaffolding to turn it into a - working program ... -

[2] - An alternative and equally interesting exercise would be - an attempt to generate a universal initrd that could be - distributed together with the kernel. Such an image - would most likely be based on udev/hotplug. -

[3] - Except where the distribution depends on it; - there are some issues with mdadm in Debian. -

[4] - Having knowledge of the relation between module names and - kernel defines hardcoded into yaird - is hardly elegant. Perhaps it is possible to generate this - mapping based on the kernel Makefiles when building the - kernel, but that's too complex just now. -

[5] - It could also be an encrypted device; this case is not handled - yet. -

[6] - Having device files on the image is wrong: it will - break if the new kernel uses different device numbers. Mostly - this can be avoided by using the dev - files provided by sysfs, but there is a bootstrap problem: - the mount command needed to - access sysfs assumes /dev/null and - /dev/console are available. -

[7] - For more info on the kernel-supplied shared library for - system calls, see - - - LWN: How to speed up system calls, - - LWN: Patch: i386 vsyscall DSO implementation, - - LKML: common name for the kernel DSO. -

diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.xml b/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.xml deleted file mode 100644 index e274042..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - ] - -> - -
- - - Yaird — Yet Another Mkinitrd - 2005-02-09 - - Erik - van Konijnenburg - ekonijn@xs4all.nl - - - - - This memo discusses the design goals and implementation of - Yaird (Yet Another mkInitRD), - a proof-of-concept application to create an initial boot image, - a minimal filesystem used to bring a booting Linux kernel to a - level where it can access the root file system and use startup - scripts to bring the system to the normal run level. It differs - from earlier mkinitrd implementations in - that it leverages the information in sysfs to minimise the number - of special cases that the application has to know about, and in - that it uses a template system to separate the analysis of the - system from the building of the image. - - - - - 2005 - Erik van Konijnenburg - - - - - Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU Free Documentation - License, Version 1.1 or any later version published - by the Free Software Foundation with no Invariant Sections, no - Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy - of the GNU Free Documentation License from - the Free Software Foundation by visiting their Web site or by writing to: - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. - - - - - - - -&INTRODUCTION; -&SPEC; -&CONCEPTS; -&KERNEL; -&RAID; -&INPUT; -&SHLIBS; -&SECURITY; -&TOOLS; -&AUTHORS; -&LICENSE; - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.xml.in b/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.xml.in deleted file mode 100644 index 78b76da..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/doc/yaird.xml.in +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - ] - -> - -
- - - Yaird — Yet Another Mkinitrd - 2005-02-09 - - Erik - van Konijnenburg - ekonijn@xs4all.nl - - - - - This memo discusses the design goals and implementation of - Yaird (Yet Another mkInitRD), - a proof-of-concept application to create an initial boot image, - a minimal filesystem used to bring a booting Linux kernel to a - level where it can access the root file system and use startup - scripts to bring the system to the normal run level. It differs - from earlier mkinitrd implementations in - that it leverages the information in sysfs to minimise the number - of special cases that the application has to know about, and in - that it uses a template system to separate the analysis of the - system from the building of the image. - - - - - 2005 - Erik van Konijnenburg - - - - - Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU Free Documentation - License, Version 1.1 or any later version published - by the Free Software Foundation with no Invariant Sections, no - Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy - of the GNU Free Documentation License from - the Free Software Foundation by visiting their Web site or by writing to: - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. - - - - - - - -&INTRODUCTION; -&SPEC; -&CONCEPTS; -&KERNEL; -&RAID; -&INPUT; -&SHLIBS; -&SECURITY; -&TOOLS; -&AUTHORS; -&LICENSE; - -
diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/.deps/findlibs.Po b/rescue/linux/cdrom/yaird-0.0.5/exec/.deps/findlibs.Po deleted file mode 100644 index 9efa851..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/exec/.deps/findlibs.Po +++ /dev/null @@ -1,120 +0,0 @@ -findlibs.o findlibs.o: findlibs.c /usr/include/stdio.h \ - /usr/include/features.h /usr/include/sys/cdefs.h \ - /usr/include/gnu/stubs.h \ - /usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h \ - /usr/include/bits/types.h /usr/include/bits/wordsize.h \ - /usr/include/bits/typesizes.h /usr/include/libio.h \ - /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ - /usr/include/gconv.h \ - /usr/lib/gcc/i386-redhat-linux/3.4.2/include/stdarg.h \ - /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ - /usr/include/bits/stdio.h /usr/include/stdlib.h \ - /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h \ - /usr/include/bits/endian.h /usr/include/sys/select.h \ - /usr/include/bits/select.h /usr/include/bits/sigset.h \ - /usr/include/bits/time.h /usr/include/sys/sysmacros.h \ - /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h \ - /usr/include/alloca.h /usr/include/unistd.h \ - /usr/include/bits/posix_opt.h /usr/include/bits/confname.h \ - /usr/include/getopt.h /usr/include/string.h /usr/include/bits/string.h \ - /usr/include/bits/string2.h \ - /usr/lib/gcc/i386-redhat-linux/3.4.2/include/limits.h \ - /usr/lib/gcc/i386-redhat-linux/3.4.2/include/syslimits.h \ - /usr/include/limits.h /usr/include/bits/posix1_lim.h \ - /usr/include/bits/local_lim.h /usr/include/linux/limits.h \ - /usr/include/bits/posix2_lim.h /usr/include/elf.h /usr/include/stdint.h \ - ../include/config.h - -/usr/include/stdio.h: - -/usr/include/features.h: - -/usr/include/sys/cdefs.h: - -/usr/include/gnu/stubs.h: - -/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h: - -/usr/include/bits/types.h: - -/usr/include/bits/wordsize.h: - -/usr/include/bits/typesizes.h: - -/usr/include/libio.h: - -/usr/include/_G_config.h: - -/usr/include/wchar.h: - -/usr/include/bits/wchar.h: - -/usr/include/gconv.h: - -/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stdarg.h: - -/usr/include/bits/stdio_lim.h: - -/usr/include/bits/sys_errlist.h: - -/usr/include/bits/stdio.h: - -/usr/include/stdlib.h: - -/usr/include/sys/types.h: - -/usr/include/time.h: - -/usr/include/endian.h: - -/usr/include/bits/endian.h: - -/usr/include/sys/select.h: - -/usr/include/bits/select.h: - -/usr/include/bits/sigset.h: - -/usr/include/bits/time.h: - -/usr/include/sys/sysmacros.h: - -/usr/include/bits/pthreadtypes.h: - -/usr/include/bits/sched.h: - -/usr/include/alloca.h: - -/usr/include/unistd.h: - -/usr/include/bits/posix_opt.h: - -/usr/include/bits/confname.h: - -/usr/include/getopt.h: - -/usr/include/string.h: - -/usr/include/bits/string.h: - -/usr/include/bits/string2.h: - -/usr/lib/gcc/i386-redhat-linux/3.4.2/include/limits.h: - -/usr/lib/gcc/i386-redhat-linux/3.4.2/include/syslimits.h: - -/usr/include/limits.h: - -/usr/include/bits/posix1_lim.h: - -/usr/include/bits/local_lim.h: - -/usr/include/linux/limits.h: - -/usr/include/bits/posix2_lim.h: - -/usr/include/elf.h: - -/usr/include/stdint.h: - -../include/config.h: diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/.deps/run_init.Po b/rescue/linux/cdrom/yaird-0.0.5/exec/.deps/run_init.Po deleted file mode 100644 index 48e6096..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/exec/.deps/run_init.Po +++ /dev/null @@ -1,155 +0,0 @@ -run_init.o run_init.o: run_init.c /usr/include/alloca.h \ - /usr/include/features.h /usr/include/sys/cdefs.h \ - /usr/include/gnu/stubs.h \ - /usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h \ - /usr/include/assert.h /usr/include/dirent.h /usr/include/bits/types.h \ - /usr/include/bits/wordsize.h /usr/include/bits/typesizes.h \ - /usr/include/bits/dirent.h /usr/include/bits/posix1_lim.h \ - /usr/include/bits/local_lim.h /usr/include/linux/limits.h \ - /usr/include/errno.h /usr/include/bits/errno.h \ - /usr/include/linux/errno.h /usr/include/asm/errno.h \ - /usr/include/fcntl.h /usr/include/bits/fcntl.h /usr/include/sys/types.h \ - /usr/include/time.h /usr/include/endian.h /usr/include/bits/endian.h \ - /usr/include/sys/select.h /usr/include/bits/select.h \ - /usr/include/bits/sigset.h /usr/include/bits/time.h \ - /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \ - /usr/include/bits/sched.h /usr/include/string.h \ - /usr/include/bits/string.h /usr/include/bits/string2.h \ - /usr/include/stdlib.h /usr/include/stdio.h /usr/include/libio.h \ - /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \ - /usr/include/gconv.h \ - /usr/lib/gcc/i386-redhat-linux/3.4.2/include/stdarg.h \ - /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ - /usr/include/bits/stdio.h /usr/include/unistd.h \ - /usr/include/bits/posix_opt.h /usr/include/bits/confname.h \ - /usr/include/getopt.h /usr/include/sys/mount.h /usr/include/sys/ioctl.h \ - /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h \ - /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h \ - /usr/include/sys/ttydefaults.h /usr/include/sys/stat.h \ - /usr/include/bits/stat.h /usr/include/sys/vfs.h \ - /usr/include/sys/statfs.h /usr/include/bits/statfs.h \ - ../include/config.h - -/usr/include/alloca.h: - -/usr/include/features.h: - -/usr/include/sys/cdefs.h: - -/usr/include/gnu/stubs.h: - -/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h: - -/usr/include/assert.h: - -/usr/include/dirent.h: - -/usr/include/bits/types.h: - -/usr/include/bits/wordsize.h: - -/usr/include/bits/typesizes.h: - -/usr/include/bits/dirent.h: - -/usr/include/bits/posix1_lim.h: - -/usr/include/bits/local_lim.h: - -/usr/include/linux/limits.h: - -/usr/include/errno.h: - -/usr/include/bits/errno.h: - -/usr/include/linux/errno.h: - -/usr/include/asm/errno.h: - -/usr/include/fcntl.h: - -/usr/include/bits/fcntl.h: - -/usr/include/sys/types.h: - -/usr/include/time.h: - -/usr/include/endian.h: - -/usr/include/bits/endian.h: - -/usr/include/sys/select.h: - -/usr/include/bits/select.h: - -/usr/include/bits/sigset.h: - -/usr/include/bits/time.h: - -/usr/include/sys/sysmacros.h: - -/usr/include/bits/pthreadtypes.h: - -/usr/include/bits/sched.h: - -/usr/include/string.h: - -/usr/include/bits/string.h: - -/usr/include/bits/string2.h: - -/usr/include/stdlib.h: - -/usr/include/stdio.h: - -/usr/include/libio.h: - -/usr/include/_G_config.h: - -/usr/include/wchar.h: - -/usr/include/bits/wchar.h: - -/usr/include/gconv.h: - -/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stdarg.h: - -/usr/include/bits/stdio_lim.h: - -/usr/include/bits/sys_errlist.h: - -/usr/include/bits/stdio.h: - -/usr/include/unistd.h: - -/usr/include/bits/posix_opt.h: - -/usr/include/bits/confname.h: - -/usr/include/getopt.h: - -/usr/include/sys/mount.h: - -/usr/include/sys/ioctl.h: - -/usr/include/bits/ioctls.h: - -/usr/include/asm/ioctls.h: - -/usr/include/asm/ioctl.h: - -/usr/include/bits/ioctl-types.h: - -/usr/include/sys/ttydefaults.h: - -/usr/include/sys/stat.h: - -/usr/include/bits/stat.h: - -/usr/include/sys/vfs.h: - -/usr/include/sys/statfs.h: - -/usr/include/bits/statfs.h: - -../include/config.h: diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile b/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile deleted file mode 100644 index 9a98703..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile +++ /dev/null @@ -1,452 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# exec/Makefile. Generated from Makefile.in by configure. - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - - -# -# Makefile.am -- compiling executables to be included in generated image -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# The interesting part here is integration with klibc: it's absent. -# The hope is that by specifying -I and -l flags to configure, an external -# klibc build can be used. This is untested. -# - -# -# Makefile.incl -- shared defines between makefiles -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains package specific executables that may be included -# in the generated image -# - perldir contains perl modules to be included by the main program -# -# This cannot be simply passed from the master makefile; that would -# be invisible to automake. - -SOURCES = $(findlibs_SOURCES) $(run_init_SOURCES) - -srcdir = . -top_srcdir = .. - -pkgdatadir = $(datadir)/yaird -pkglibdir = $(libdir)/yaird -pkgincludedir = $(includedir)/yaird -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = /usr/bin/install -c -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -aux_PROGRAMS = run_init$(EXEEXT) findlibs$(EXEEXT) -DIST_COMMON = $(srcdir)/../Makefile.incl $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -subdir = exec -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(auxdir)" -auxPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(aux_PROGRAMS) -am_findlibs_OBJECTS = findlibs.$(OBJEXT) -findlibs_OBJECTS = $(am_findlibs_OBJECTS) -findlibs_LDADD = $(LDADD) -am_run_init_OBJECTS = run_init.$(OBJEXT) -run_init_OBJECTS = $(am_run_init_OBJECTS) -run_init_LDADD = $(LDADD) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(findlibs_SOURCES) $(run_init_SOURCES) -DIST_SOURCES = $(findlibs_SOURCES) $(run_init_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run aclocal-1.9 -AMDEP_FALSE = # -AMDEP_TRUE = -AMTAR = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run tar -AUTOCONF = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoconf -AUTOHEADER = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoheader -AUTOMAKE = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run automake-1.9 -AWK = gawk -CC = gcc -CCDEPMODE = depmode=gcc3 -CFLAGS = -g -O2 -CPPFLAGS = -CYGPATH_W = echo -DEFS = -DHAVE_CONFIG_H -DEPDIR = .deps -ECHO_C = -ECHO_N = -n -ECHO_T = -EXEEXT = -INITRD_TEMPLATE = Fedora -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_PROGRAM = ${INSTALL} -INSTALL_SCRIPT = ${INSTALL} -INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s -LDFLAGS = -LIBOBJS = -LIBS = -LTLIBOBJS = -MAKEINFO = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run makeinfo -OBJEXT = o -PACKAGE = yaird -PACKAGE_BUGREPORT = -PACKAGE_NAME = -PACKAGE_STRING = -PACKAGE_TARNAME = -PACKAGE_VERSION = -PATH_SEPARATOR = : -PERL = /usr/bin/perl -SET_MAKE = -SHELL = /bin/sh -STRIP = -VERSION = 0.0.5 -XMLTO = /usr/bin/xmlto -ac_ct_CC = gcc -ac_ct_STRIP = -am__fastdepCC_FALSE = # -am__fastdepCC_TRUE = -am__include = include -am__leading_dot = . -am__quote = -am__tar = ${AMTAR} chof - "$$tardir" -am__untar = ${AMTAR} xf - -bindir = ${exec_prefix}/bin -build_alias = -datadir = ${prefix}/share -exec_prefix = ${prefix} -host_alias = -includedir = ${prefix}/include -infodir = ${prefix}/info -install_sh = /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/install-sh -libdir = ${exec_prefix}/lib -libexecdir = ${exec_prefix}/libexec -localstatedir = ${prefix}/var -mandir = ${prefix}/man -mkdir_p = mkdir -p -- -oldincludedir = /usr/include -prefix = /usr/local -program_transform_name = s,x,x, -sbindir = ${exec_prefix}/sbin -sharedstatedir = ${prefix}/com -sysconfdir = ${prefix}/etc -target_alias = -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl -run_init_SOURCES = run_init.c -findlibs_SOURCES = findlibs.c -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.incl $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu exec/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu exec/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-auxPROGRAMS: $(aux_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(auxdir)" || $(mkdir_p) "$(DESTDIR)$(auxdir)" - @list='$(aux_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(auxPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(auxdir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(auxPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(auxdir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-auxPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(aux_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(auxdir)/$$f'"; \ - rm -f "$(DESTDIR)$(auxdir)/$$f"; \ - done - -clean-auxPROGRAMS: - -test -z "$(aux_PROGRAMS)" || rm -f $(aux_PROGRAMS) -findlibs$(EXEEXT): $(findlibs_OBJECTS) $(findlibs_DEPENDENCIES) - @rm -f findlibs$(EXEEXT) - $(LINK) $(findlibs_LDFLAGS) $(findlibs_OBJECTS) $(findlibs_LDADD) $(LIBS) -run_init$(EXEEXT): $(run_init_OBJECTS) $(run_init_DEPENDENCIES) - @rm -f run_init$(EXEEXT) - $(LINK) $(run_init_LDFLAGS) $(run_init_OBJECTS) $(run_init_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -include ./$(DEPDIR)/findlibs.Po -include ./$(DEPDIR)/run_init.Po - -.c.o: - if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ - then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -# source='$<' object='$@' libtool=no \ -# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(COMPILE) -c $< - -.c.obj: - if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ - then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -# source='$<' object='$@' libtool=no \ -# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(COMPILE) -c `$(CYGPATH_W) '$<'` -uninstall-info-am: - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/.. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(auxdir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-auxPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-auxPROGRAMS - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-auxPROGRAMS uninstall-info-am - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-auxPROGRAMS \ - clean-generic ctags distclean distclean-compile \ - distclean-generic distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-auxPROGRAMS \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-auxPROGRAMS uninstall-info-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile.am b/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile.am deleted file mode 100644 index 3ae7b8d..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile.am +++ /dev/null @@ -1,34 +0,0 @@ -# -# Makefile.am -- compiling executables to be included in generated image -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# The interesting part here is integration with klibc: it's absent. -# The hope is that by specifying -I and -l flags to configure, an external -# klibc build can be used. This is untested. -# - -# place package-specific executables that may go on the image in -# this directory. -# Must be consistent with ../src -#auxdir = $(pkglibdir)/exec -aux_PROGRAMS = run_init findlibs - -include ../Makefile.incl - -run_init_SOURCES = run_init.c -findlibs_SOURCES = findlibs.c diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile.in b/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile.in deleted file mode 100644 index 8ae7cb2..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/exec/Makefile.in +++ /dev/null @@ -1,452 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# -# Makefile.am -- compiling executables to be included in generated image -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# The interesting part here is integration with klibc: it's absent. -# The hope is that by specifying -I and -l flags to configure, an external -# klibc build can be used. This is untested. -# - -# -# Makefile.incl -- shared defines between makefiles -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains package specific executables that may be included -# in the generated image -# - perldir contains perl modules to be included by the main program -# -# This cannot be simply passed from the master makefile; that would -# be invisible to automake. - -SOURCES = $(findlibs_SOURCES) $(run_init_SOURCES) - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -aux_PROGRAMS = run_init$(EXEEXT) findlibs$(EXEEXT) -DIST_COMMON = $(srcdir)/../Makefile.incl $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -subdir = exec -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(auxdir)" -auxPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(aux_PROGRAMS) -am_findlibs_OBJECTS = findlibs.$(OBJEXT) -findlibs_OBJECTS = $(am_findlibs_OBJECTS) -findlibs_LDADD = $(LDADD) -am_run_init_OBJECTS = run_init.$(OBJEXT) -run_init_OBJECTS = $(am_run_init_OBJECTS) -run_init_LDADD = $(LDADD) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(findlibs_SOURCES) $(run_init_SOURCES) -DIST_SOURCES = $(findlibs_SOURCES) $(run_init_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INITRD_TEMPLATE = @INITRD_TEMPLATE@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMLTO = @XMLTO@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build_alias = @build_alias@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host_alias = @host_alias@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl -run_init_SOURCES = run_init.c -findlibs_SOURCES = findlibs.c -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.incl $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu exec/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu exec/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-auxPROGRAMS: $(aux_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(auxdir)" || $(mkdir_p) "$(DESTDIR)$(auxdir)" - @list='$(aux_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(auxPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(auxdir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(auxPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(auxdir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-auxPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(aux_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(auxdir)/$$f'"; \ - rm -f "$(DESTDIR)$(auxdir)/$$f"; \ - done - -clean-auxPROGRAMS: - -test -z "$(aux_PROGRAMS)" || rm -f $(aux_PROGRAMS) -findlibs$(EXEEXT): $(findlibs_OBJECTS) $(findlibs_DEPENDENCIES) - @rm -f findlibs$(EXEEXT) - $(LINK) $(findlibs_LDFLAGS) $(findlibs_OBJECTS) $(findlibs_LDADD) $(LIBS) -run_init$(EXEEXT): $(run_init_OBJECTS) $(run_init_DEPENDENCIES) - @rm -f run_init$(EXEEXT) - $(LINK) $(run_init_LDFLAGS) $(run_init_OBJECTS) $(run_init_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/findlibs.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/run_init.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` -uninstall-info-am: - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/.. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(auxdir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-auxPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-auxPROGRAMS - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-auxPROGRAMS uninstall-info-am - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-auxPROGRAMS \ - clean-generic ctags distclean distclean-compile \ - distclean-generic distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-auxPROGRAMS \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-auxPROGRAMS uninstall-info-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/findlibs b/rescue/linux/cdrom/yaird-0.0.5/exec/findlibs deleted file mode 100755 index 250227d..0000000 Binary files a/rescue/linux/cdrom/yaird-0.0.5/exec/findlibs and /dev/null differ diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/findlibs.c b/rescue/linux/cdrom/yaird-0.0.5/exec/findlibs.c deleted file mode 100644 index 7a4bb22..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/exec/findlibs.c +++ /dev/null @@ -1,444 +0,0 @@ -/* findlibs.c: find libraries used by an ELF executable. - - Copyright (C) 2005, Erik van Konijnenburg - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ -#include -#include -#include -#include -#include -#include -#include - -#include - -extern int optint; -extern int opterr; -extern int optopt; -extern char * optarg; - -static int silent = 0; /* dont do error messages */ -static char * progname = "findlibs"; -static char * version = VERSION; - -void -message (char *fmt, ...) -{ - va_list ap; - if (! silent) { - va_start (ap, fmt); - fprintf (stderr, "%s: ", progname); - vfprintf (stderr, fmt, ap); - fprintf (stderr, "\n"); - va_end (ap); - } -} - -void -fatal (char *fmt, ...) -{ - va_list ap; - if (! silent) { - va_start (ap, fmt); - fprintf (stderr, "%s: ", progname); - vfprintf (stderr, fmt, ap); - fprintf (stderr, " (fatal)\n"); - va_end (ap); - } - exit (1); -} - -void -usage (void) -{ - printf ("\ - %s [ -qhv ] executable\n\ - print dynamic loader and basenames of shared libraries for executable\n\ - -q: do not print error messages, just give exit code\n\ - -h: this help text\n\ - -v: version\n\ - corrupt ELF files cause an error exit status, non ELF-files\n\ - or non-executable ELF files do not.\n\ -", - progname); -} - -void * -getStuff (FILE *fp, Elf32_Off offset, Elf32_Word size) -{ - int rc; - size_t rc2; - void * ptr = NULL; - - ptr = malloc(size); - if (! ptr) { - fatal ("could not allocate memory"); - } - - rc = fseek (fp, offset, SEEK_SET); - if (rc != 0) { - fatal ("could not seek"); - } - rc2 = fread (ptr, size, 1, fp); - if (rc2 != 1) { - fatal ("could not read"); - } - return ptr; -} - -void -doOne32 (char *filename, FILE *fp) -{ - int i; - Elf32_Ehdr * ehdr = NULL; - Elf32_Phdr * phdr = NULL; - int interpIndex = -1; /* prog hdr with interp. */ - Elf32_Shdr * shdrs = NULL; - int dynamicIndex = -1; /* section named .dynamic */ - Elf32_Dyn * dynamic = NULL; - int dynstrIndex = -1; /* section named .dynstr */ - char * dynstr = NULL; - char * sectionNames = NULL; - - - ehdr = getStuff (fp, 0, sizeof(*ehdr)); - - if (ehdr->e_ehsize != sizeof(*ehdr)) { - fatal ("bad size ehdr %s", filename); - } - - if (! (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN)) { - message ("bad type ehdr %s", filename); - goto out; - } - - if (ehdr->e_phentsize != sizeof (*phdr)) { - fatal ("bad size phdr %s", filename); - } - - if (ehdr->e_phnum < 1 || ehdr->e_phnum > (65336/sizeof(*phdr))) { - fatal ("bad count phdr %s", filename); - } - - phdr = getStuff (fp, ehdr->e_phoff, ehdr->e_phnum * sizeof(*phdr)); - - for (i = 0; i < ehdr->e_phnum; i++) { - if (phdr[i].p_type == PT_INTERP) { - if (interpIndex >= 0) { - fatal ("corrupt image, interp %s", filename); - } - interpIndex = i; - } - } - - /* - * Print interpreter. - * Note you can have files with DT_NEEDED without interp; - * shared libraries are an example. - */ - if (interpIndex >= 0) { - Elf32_Off offset = phdr[interpIndex].p_offset; - Elf32_Word size = phdr[interpIndex].p_filesz; - char * interpreter = NULL; - - if (size < 2 || size > PATH_MAX) { - fatal ("funny interpreter %s", filename); - } - - interpreter = getStuff (fp, offset, size); - if (interpreter[size - 1] != '\0') { - fatal ("broken interpreter %s", filename); - } - - printf ("interpreter: %s\n", interpreter); - - free (interpreter); - } - - /* - * read section headers - */ - if (ehdr->e_shentsize != sizeof (Elf32_Shdr)) { - fatal ("bad section header size %s", filename); - } - shdrs = getStuff (fp, ehdr->e_shoff, sizeof(*shdrs) * ehdr->e_shnum); - - /* - * read section header names - */ - if (ehdr->e_shstrndx >= ehdr->e_shnum) { - fatal ("no section names in %s", filename); - } - sectionNames = getStuff (fp, shdrs[ehdr->e_shstrndx].sh_offset, - shdrs[ehdr->e_shstrndx].sh_size); - - - /* - * Find .dynamic section and corresponding strings. - */ - for (i = 0; i < ehdr->e_shnum; i++) { - char * name = §ionNames[shdrs[i].sh_name]; - if (strcmp (name, ".dynamic") == 0) { - dynamicIndex = i; - } - else if (strcmp (name, ".dynstr") == 0) { - dynstrIndex = i; - } - } - - if (dynamicIndex < 0) { - goto out; - } - - if (dynamicIndex >= 0 && dynstrIndex < 0) { - fatal ("corrupt dynamic without dynstr %s", filename); - } - if (dynamicIndex > ehdr->e_shnum) { - fatal ("dynamic out of range %s", filename); - } - if (dynstrIndex > ehdr->e_shnum) { - fatal ("dynamic out of range %s", filename); - } - dynamic = getStuff (fp, shdrs[dynamicIndex].sh_offset, - shdrs[dynamicIndex].sh_size); - dynstr = getStuff (fp, shdrs[dynstrIndex].sh_offset, - shdrs[dynstrIndex].sh_size); - - for (i = 0;; i++) { - if (dynamic[i].d_tag == DT_NEEDED) { - Elf32_Word offset = dynamic[i].d_un.d_val; - char *name = &dynstr[offset]; - - printf ("needed: %s\n", name); - } - if (dynamic[i].d_tag == DT_NULL) { - break; - } - } - -out: - if (dynstr) free (dynstr); - if (dynamic) free (dynamic); - if (ehdr) free (ehdr); - if (phdr) free (phdr); - if (shdrs) free (shdrs); - if (sectionNames) free (sectionNames); -} - - -void -doOne64 (char *filename, FILE *fp) -{ - int i; - Elf64_Ehdr * ehdr = NULL; - Elf64_Phdr * phdr = NULL; - int interpIndex = -1; /* proghdr has interp. */ - Elf64_Shdr * shdrs = NULL; - int dynamicIndex = -1; /* section named .dynamic */ - Elf64_Dyn * dynamic = NULL; - int dynstrIndex = -1; /* section named .dynstr */ - char * dynstr = NULL; - char * sectionNames = NULL; - - - ehdr = getStuff (fp, 0, sizeof(*ehdr)); - - if (ehdr->e_ehsize != sizeof(*ehdr)) { - fatal ("bad size ehdr %s", filename); - } - - if (! (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN)) { - message ("bad type ehdr %s", filename); - goto out; - } - - if (ehdr->e_phentsize != sizeof (*phdr)) { - fatal ("bad size phdr %s", filename); - } - - if (ehdr->e_phnum < 1 || ehdr->e_phnum > (65336/sizeof(*phdr))) { - fatal ("bad count phdr %s", filename); - } - - phdr = getStuff (fp, ehdr->e_phoff, ehdr->e_phnum * sizeof(*phdr)); - - for (i = 0; i < ehdr->e_phnum; i++) { - if (phdr[i].p_type == PT_INTERP) { - if (interpIndex >= 0) { - fatal ("corrupt image, interp %s", filename); - } - interpIndex = i; - } - } - - /* - * Print interpreter. - * Note you can have files with DT_NEEDED without interp; - * shared libraries are an example. - */ - if (interpIndex >= 0) { - Elf64_Off offset = phdr[interpIndex].p_offset; - Elf64_Xword size = phdr[interpIndex].p_filesz; - char * interpreter = NULL; - - if (size < 2 || size > PATH_MAX) { - fatal ("funny interpreter %s", filename); - } - - interpreter = getStuff (fp, offset, size); - if (interpreter[size - 1] != '\0') { - fatal ("broken interpreter %s", filename); - } - - printf ("interpreter: %s\n", interpreter); - - free (interpreter); - } - - /* - * read section headers - */ - if (ehdr->e_shentsize != sizeof (Elf64_Shdr)) { - fatal ("bad section header size %s", filename); - } - shdrs = getStuff (fp, ehdr->e_shoff, sizeof(*shdrs) * ehdr->e_shnum); - - /* - * read section header names - */ - if (ehdr->e_shstrndx >= ehdr->e_shnum) { - fatal ("no section names in %s", filename); - } - sectionNames = getStuff (fp, shdrs[ehdr->e_shstrndx].sh_offset, - shdrs[ehdr->e_shstrndx].sh_size); - - for (i = 0; i < ehdr->e_shnum; i++) { - char * name = §ionNames[shdrs[i].sh_name]; - if (strcmp (name, ".dynamic") == 0) { - dynamicIndex = i; - } - else if (strcmp (name, ".dynstr") == 0) { - dynstrIndex = i; - } - } - - if (dynamicIndex < 0) { - goto out; - } - - if (dynamicIndex >= 0 && dynstrIndex < 0) { - fatal ("corrupt dynamic without dynstr %s", filename); - } - if (dynamicIndex > ehdr->e_shnum) { - fatal ("dynamic out of range %s", filename); - } - if (dynstrIndex > ehdr->e_shnum) { - fatal ("dynamic out of range %s", filename); - } - dynamic = getStuff (fp, shdrs[dynamicIndex].sh_offset, - shdrs[dynamicIndex].sh_size); - dynstr = getStuff (fp, shdrs[dynstrIndex].sh_offset, - shdrs[dynstrIndex].sh_size); - - for (i = 0;; i++) { - if (dynamic[i].d_tag == DT_NEEDED) { - Elf64_Xword offset = dynamic[i].d_un.d_val; - char *name = &dynstr[offset]; - - printf ("needed: %s\n", name); - } - if (dynamic[i].d_tag == DT_NULL) { - break; - } - } - -out: - if (dynstr) free (dynstr); - if (dynamic) free (dynamic); - if (ehdr) free (ehdr); - if (phdr) free (phdr); - if (shdrs) free (shdrs); - if (sectionNames) free (sectionNames); -} - - -void -doOne (char *filename) -{ - FILE * fp; - size_t rc; - unsigned char magic[EI_NIDENT]; - - fp = fopen (filename, "r"); - if (! fp) { - fatal ("could not open %s", filename); - } - - rc = fread (magic, 1, EI_NIDENT, fp); - if (rc < EI_NIDENT) { - message ("not an ELF file: %s", filename); - return; - } - - if (strncmp (magic, ELFMAG, SELFMAG) != 0) { - message ("not an ELF file: bad magic in %s", filename); - return; - } - - switch (magic[EI_CLASS]) { - case ELFCLASS32: - doOne32 (filename, fp); - break; - case ELFCLASS64: - doOne64 (filename, fp); - break; - default: - fatal ("bad class %s", filename); - } - - if (fclose (fp)) { - fatal ("could not close %s", filename); - } -} - -int -main (int argc, char *argv[]) -{ - int i; - while ((i = getopt (argc, argv, "hvq")) >= 0) { - switch (i) { - case 'h': - usage (); - return 0; - case 'v': - message ("version %s", version); - return 0; - case 'q': - silent = 1; - break; - default: - fatal ("bad argument %c, -h for help", optopt); - } - } - if (optind != argc -1) { - fatal ("too many arguments"); - } - - doOne (argv[optind]); - return 0; -} diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/run_init b/rescue/linux/cdrom/yaird-0.0.5/exec/run_init deleted file mode 100755 index 14a3af9..0000000 Binary files a/rescue/linux/cdrom/yaird-0.0.5/exec/run_init and /dev/null differ diff --git a/rescue/linux/cdrom/yaird-0.0.5/exec/run_init.c b/rescue/linux/cdrom/yaird-0.0.5/exec/run_init.c deleted file mode 100644 index dbb92c5..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/exec/run_init.c +++ /dev/null @@ -1,264 +0,0 @@ -#ident "$Id$" -/* ----------------------------------------------------------------------- * - * - * Copyright 2004 H. Peter Anvin - All Rights Reserved - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation - * files (the "Software"), to deal in the Software without - * restriction, including without limitation the rights to use, - * copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom - * the Software is furnished to do so, subject to the following - * conditions: - * - * The above copyright notice and this permission notice shall - * be included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - * - * ----------------------------------------------------------------------- */ - -/* - * run-init.c - * - * Usage: exec run-init [-c /dev/console] /real-root /sbin/init "$@" - * - * This program should be called as the last thing in a shell script - * acting as /init in an initramfs; it does the following: - * - * - Delete all files in the initramfs; - * - Remounts /real-root onto the root filesystem; - * - Chroots; - * - Opens /dev/console; - * - Spawns the specified init program (with arguments.) - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - - -/* Make it possible to compile on glibc by including constants that the - always-behind shipped glibc headers may not include. Classic example - on why the lack of ABI headers screw us up. */ -#ifndef TMPFS_MAGIC -# define TMPFS_MAGIC 0x01021994 -#endif -#ifndef RAMFS_MAGIC -# define RAMFS_MAGIC 0x858458f6 -#endif -#ifndef MS_MOVE -# define MS_MOVE 8192 -#endif - -static const char *program; - -static void __attribute__((noreturn)) die(const char *msg) -{ - fprintf(stderr, "%s: %s: %s\n", program, msg, strerror(errno)); - exit(1); -} - - -#ifdef ENABLE_NUKE -static int nuke(const char *what); - -static int nuke_dirent(int len, const char *dir, const char *name, dev_t me) -{ - int bytes = len+strlen(name)+2; - char path[bytes]; - int xlen; - struct stat st; - - xlen = snprintf(path, bytes, "%s/%s", dir, name); - assert(xlen < bytes); - - if ( lstat(path, &st) ) - return ENOENT; /* Return 0 since already gone? */ - - if ( st.st_dev != me ) - return 0; /* DO NOT recurse down mount points!!!!! */ - - return nuke(path); -} - -/* Wipe the contents of a directory, but not the directory itself */ -static int nuke_dir(const char *what) -{ - int len = strlen(what); - DIR *dir; - struct dirent *d; - int err = 0; - struct stat st; - - if ( lstat(what, &st) ) - return errno; - - if ( !S_ISDIR(st.st_mode) ) - return ENOTDIR; - - if ( !(dir = opendir(what)) ) { - /* EACCES means we can't read it. Might be empty and removable; - if not, the rmdir() in nuke() will trigger an error. */ - return (errno == EACCES) ? 0 : errno; - } - - while ( (d = readdir(dir)) ) { - /* Skip . and .. */ - if ( d->d_name[0] == '.' && - (d->d_name[1] == '\0' || - (d->d_name[1] == '.' && d->d_name[2] == '\0')) ) - continue; - - err = nuke_dirent(len, what, d->d_name, st.st_dev); - if ( err ) { - closedir(dir); - return err; - } - } - - closedir(dir); - - return 0; -} - -static int nuke(const char *what) -{ - int rv; - int err = 0; - - rv = unlink(what); - if ( rv < 0 ) { - if ( errno == EISDIR ) { - /* It's a directory. */ - err = nuke_dir(what); - if ( !err ) err = rmdir(what) ? errno : err; - } else { - err = errno; - } - } - - if ( err ) { - errno = err; - die(what); - } else { - return 0; - } -} -#else /* no ENABLE_NUKE */ -static inline int -nuke_dir(const char *what) -{ - return 0; -} -#endif /* ENABLE_NUKE */ - -static void __attribute__((noreturn)) usage(void) -{ - fprintf(stderr, "Usage: exec %s [-c consoledev] /real-root /sbin/init [args]\n", program); - exit(1); -} - - -int main(int argc, char *argv[]) -{ - struct stat rst, cst, ist; - struct statfs sfs; - int o; - int confd; - - /* Command-line options and defaults */ - const char *console = "/dev/console"; - const char *realroot; - const char *init; - char **initargs; - - /* First, parse the command line */ - program = argv[0]; - - while ( (o = getopt(argc, argv, "c:")) != -1 ) { - if ( o == 'c' ) { - console = optarg; - } else { - usage(); - } - } - - if ( argc-optind < 2 ) - usage(); - - realroot = argv[optind]; - init = argv[optind+1]; - initargs = argv+optind+1; - - /* First, change to the new root directory */ - if ( chdir(realroot) ) - die("chdir to new root"); - - /* This is a potentially highly destructive program. Take some - extra precautions. */ - - /* Make sure the current directory is not on the same filesystem - as the root directory */ - if ( stat("/", &rst) || stat(".", &cst) ) - die("stat"); - - if ( rst.st_dev == cst.st_dev ) - die("current directory on the same filesystem as the root"); - - /* The initramfs should have /init */ - if ( stat("/init", &ist) || !S_ISREG(ist.st_mode) ) - die("can't find /init on initramfs"); - - /* Make sure we're on a ramfs */ - if ( statfs("/", &sfs) ) - die("statfs /"); - if ( sfs.f_type != RAMFS_MAGIC && sfs.f_type != TMPFS_MAGIC ) - die("rootfs not a ramfs or tmpfs"); - - /* Okay, I think we should be safe... */ - - /* Delete rootfs contents */ - if ( nuke_dir("/") ) - die("nuking initramfs contents"); - - /* Overmount the root */ - if ( mount(".", "/", NULL, MS_MOVE, NULL) ) - die("overmounting root"); - - /* chroot, chdir */ - if ( chroot(".") || chdir("/") ) - die("chroot"); - - /* Open /dev/console */ - if ( (confd = open(console, O_RDWR)) < 0 ) - die("opening console"); - dup2(confd, 0); - dup2(confd, 1); - dup2(confd, 2); - close(confd); - - /* Spawn init */ - execv(init, initargs); - die(init); /* Failed to spawn init */ -} diff --git a/rescue/linux/cdrom/yaird-0.0.5/include/config.h b/rescue/linux/cdrom/yaird-0.0.5/include/config.h deleted file mode 100644 index 978c3cf..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/include/config.h +++ /dev/null @@ -1,26 +0,0 @@ -/* include/config.h. Generated by configure. */ -/* include/config.h.in. Generated from configure.in by autoheader. */ - -/* Define to nuke initramfs before moving to real root */ -/* #undef ENABLE_NUKE */ - -/* Name of package */ -#define PACKAGE "yaird" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "" - -/* Version number of package */ -#define VERSION "0.0.5" diff --git a/rescue/linux/cdrom/yaird-0.0.5/include/config.h.in b/rescue/linux/cdrom/yaird-0.0.5/include/config.h.in deleted file mode 100644 index 88f063d..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/include/config.h.in +++ /dev/null @@ -1,25 +0,0 @@ -/* include/config.h.in. Generated from configure.in by autoheader. */ - -/* Define to nuke initramfs before moving to real root */ -#undef ENABLE_NUKE - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Version number of package */ -#undef VERSION diff --git a/rescue/linux/cdrom/yaird-0.0.5/include/stamp-h1 b/rescue/linux/cdrom/yaird-0.0.5/include/stamp-h1 deleted file mode 100644 index b330768..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/include/stamp-h1 +++ /dev/null @@ -1 +0,0 @@ -timestamp for include/config.h diff --git a/rescue/linux/cdrom/yaird-0.0.5/install-sh b/rescue/linux/cdrom/yaird-0.0.5/install-sh deleted file mode 100755 index 1a83534..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/install-sh +++ /dev/null @@ -1,323 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2005-02-02.21 - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -chmodcmd="$chmodprog 0755" -chowncmd= -chgrpcmd= -stripcmd= -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src= -dst= -dir_arg= -dstarg= -no_target_directory= - -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE - or: $0 [OPTION]... SRCFILES... DIRECTORY - or: $0 [OPTION]... -t DIRECTORY SRCFILES... - or: $0 [OPTION]... -d DIRECTORIES... - -In the 1st form, copy SRCFILE to DSTFILE. -In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. -In the 4th, create DIRECTORIES. - -Options: --c (ignored) --d create directories instead of installing files. --g GROUP $chgrpprog installed files to GROUP. --m MODE $chmodprog installed files to MODE. --o USER $chownprog installed files to USER. --s $stripprog installed files. --t DIRECTORY install into DIRECTORY. --T report an error if DSTFILE is a directory. ---help display this help and exit. ---version display version info and exit. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG -" - -while test -n "$1"; do - case $1 in - -c) shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - --help) echo "$usage"; exit $?;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -s) stripcmd=$stripprog - shift - continue;; - - -t) dstarg=$2 - shift - shift - continue;; - - -T) no_target_directory=true - shift - continue;; - - --version) echo "$0 $scriptversion"; exit $?;; - - *) # When -d is used, all remaining arguments are directories to create. - # When -t is used, the destination is already specified. - test -n "$dir_arg$dstarg" && break - # Otherwise, the last argument is the destination. Remove it from $@. - for arg - do - if test -n "$dstarg"; then - # $@ is not empty: it contains at least $arg. - set fnord "$@" "$dstarg" - shift # fnord - fi - shift # arg - dstarg=$arg - done - break;; - esac -done - -if test -z "$1"; then - if test -z "$dir_arg"; then - echo "$0: no input file specified." >&2 - exit 1 - fi - # It's OK to call `install-sh -d' without argument. - # This can happen when creating conditional directories. - exit 0 -fi - -for src -do - # Protect names starting with `-'. - case $src in - -*) src=./$src ;; - esac - - if test -n "$dir_arg"; then - dst=$src - src= - - if test -d "$dst"; then - mkdircmd=: - chmodcmd= - else - mkdircmd=$mkdirprog - fi - else - # Waiting for this to be detected by the "$cpprog $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dstarg"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - - dst=$dstarg - # Protect names starting with `-'. - case $dst in - -*) dst=./$dst ;; - esac - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - if test -n "$no_target_directory"; then - echo "$0: $dstarg: Is a directory" >&2 - exit 1 - fi - dst=$dst/`basename "$src"` - fi - fi - - # This sed command emulates the dirname command. - dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` - - # Make sure that the destination directory exists. - - # Skip lots of stat calls in the usual case. - if test ! -d "$dstdir"; then - defaultIFS=' - ' - IFS="${IFS-$defaultIFS}" - - oIFS=$IFS - # Some sh's can't handle IFS=/ for some reason. - IFS='%' - set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` - shift - IFS=$oIFS - - pathcomp= - - while test $# -ne 0 ; do - pathcomp=$pathcomp$1 - shift - if test ! -d "$pathcomp"; then - $mkdirprog "$pathcomp" - # mkdir can fail with a `File exist' error in case several - # install-sh are creating the directory concurrently. This - # is OK. - test -d "$pathcomp" || exit - fi - pathcomp=$pathcomp/ - done - fi - - if test -n "$dir_arg"; then - $doit $mkdircmd "$dst" \ - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } - - else - dstfile=`basename "$dst"` - - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 - trap '(exit $?); exit' 1 2 13 15 - - # Copy the file name to the temp name. - $doit $cpprog "$src" "$dsttmp" && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $cpprog $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && - - # Now rename the file to the real destination. - { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ - || { - # The rename failed, perhaps because mv can't rename something else - # to itself, or perhaps because mv is so ancient that it does not - # support -f. - - # Now remove or move aside any old file at destination location. - # We try this two ways since rm can't unlink itself on some - # systems and the destination file might be busy for other - # reasons. In this case, the final cleanup might fail but the new - # file should still install successfully. - { - if test -f "$dstdir/$dstfile"; then - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ - || { - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 - (exit 1); exit 1 - } - else - : - fi - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" - } - } - fi || { (exit 1); exit 1; } -done - -# The final little trick to "correctly" pass the exit status to the exit trap. -{ - (exit 0); exit 0 -} - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff --git a/rescue/linux/cdrom/yaird-0.0.5/missing b/rescue/linux/cdrom/yaird-0.0.5/missing deleted file mode 100755 index 09edd88..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/missing +++ /dev/null @@ -1,357 +0,0 @@ -#! /bin/sh -# Common stub for a few missing GNU programs while installing. - -scriptversion=2005-02-08.22 - -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# Originally by Fran,cois Pinard , 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 -fi - -run=: - -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -msg="missing on your system" - -case "$1" in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails - -Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch] - -Send bug reports to ." - exit $? - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing $scriptversion (GNU Automake)" - exit $? - ;; - - -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 - ;; - -esac - -# Now exit if we have it, but it failed. Also exit now if we -# don't have it and --version was passed (most likely to detect -# the program). -case "$1" in - lex|yacc) - # Not GNU programs, they don't have --version. - ;; - - tar) - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - exit 1 - fi - ;; - - *) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - # Could not run --version or --help. This is probably someone - # running `$TOOL --version' or `$TOOL --help' to check whether - # $TOOL exists and not knowing $TOOL uses missing. - exit 1 - fi - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case "$1" in - aclocal*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case "$f" in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te) - echo 1>&2 "\ -WARNING: \`$1' is needed, but is $msg. - You might have modified some files without having the - proper tools for further handling them. - You can get \`$1' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison|yacc) - echo 1>&2 "\ -WARNING: \`$1' $msg. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if [ ! -f y.tab.h ]; then - echo >y.tab.h - fi - if [ ! -f y.tab.c ]; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex|flex) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if [ $# -ne 1 ]; then - eval LASTARG="\${$#}" - case "$LASTARG" in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if [ -f "$SRCFILE" ]; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if [ ! -f lex.yy.c ]; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; - - help2man) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` - fi - if [ -f "$file" ]; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit 1 - fi - ;; - - makeinfo) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - # The file to touch is that specified with -o ... - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - # ... or it is the one specified with @setfilename ... - infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` - # ... or it is derived from the source name (dir/f.texi becomes f.info) - test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info - fi - touch $file - ;; - - tar) - shift - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case "$firstarg" in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case "$firstarg" in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and is $msg. - You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequisites for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac - -exit 0 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/ActionList.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/ActionList.pm deleted file mode 100644 index e63e689..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/ActionList.pm +++ /dev/null @@ -1,180 +0,0 @@ -#!perl -w -# -# ActionList -- record and expand actions to be performed by the initrd image -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Actions are represented by a hash, containing at least: -# - action -# - target -# -# Actions are added to the end of the list, but if an action -# with same name and target already exists, the later action -# is considered redundant and silently omited. -# -# The point of an action list is that it can be expanded to an Image, -# an exact description of every file, directory and script that should -# go on the initrd image. -# -# This expansion is driven by templates, where attributes from the -# hash may be inserted in file names or script fragments. -# There are attributes that are added automatically to every action: -# - version, the required kernel version. -# - -use strict; -use warnings; -use Base; -use Conf; -use Template; -use HTML::Template; - -package ActionList; -use base 'Obj'; - - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->{actions} = []; -} - - -# -# add -- add an action to the plan. -# -sub add { - my ($self, $action, $target, %hash ) = @_; - - for my $a (@{$self->{actions}}) { - if ($a->{action} eq $action && $a->{target} eq $target) { - Base::debug ("redundant action: $action, $target"); - return; - } - } - - my $pairs = ""; - for my $key (sort keys %hash) { - my $val = $hash{$key}; - $pairs .= "$key=$val "; - } - Base::info ("action: $action, $target {$pairs}"); - - push @{$self->{actions}}, { - action => $action, - target => $target, - version => Conf::get('version'), - appVersion => Conf::get('appVersion'), - auxDir => Conf::get('auxDir'), - %hash - }; -} - - -# -# string -- render an action list. -# -sub string { - my $self = shift; - my $result = ""; - for my $a (@{$self->{actions}}) { - my $action = $a->{action}; - my $target = $a->{target}; - my $pairs = ""; - for my $key (sort keys %{$a}) { - next if $key eq "action"; - next if $key eq "target"; - next if $key eq "version"; - next if $key eq "appVersion"; - next if $key eq "auxDir"; - my $val = $a->{$key}; - my $pairs .= "$key=$val "; - } - $result .= "\t\t$action $target {$pairs}\n"; - } - return $result; -} - -# -# filter -- helper function to get rid of leading whitespace -# in template lines. Needed because of '#!/bin/dash' lines -# in prologue. -# -my $filter = sub { - my $textref = shift; - $$textref =~ s/^\s+//mg; -}; - - -# -# expandFragment -- given a fragment of text, and a hash -# of parameter settings, return the fragment with HTML::Template -# expansion applied. -# Don't die on bad parameters: caller cannot know which parameters -# the template is willing to use. -# -sub expandFragment ($$) { - my ($fragment, $params) = @_; - my $htempl = HTML::Template->new ( - scalarref => \$fragment, - die_on_bad_params => 0, - filter => $filter); - $htempl->param ($params); - my $result = $htempl->output(); - return $result; -} - - -# -# expand -- given an overall plan, return an initrd image specification. -# -sub expand { - my $self = shift; - my $image = Image->new(); - - for my $a (@{$self->{actions}}) { - my $action = $a->{action}; - my $template = Template::template ($action); - Base::assert (defined ($template)); - - for my $file (@{$template->{files}}) { - my $fileName = expandFragment ($file, $a); - $image->addFile ($fileName); - } - - for my $dir (@{$template->{directories}}) { - my $dirName = expandFragment ($dir, $a); - $image->addDirectory ($dirName); - } - - for my $tree (@{$template->{trees}}) { - my $treeName = expandFragment ($tree, $a); - $image->addTree ($treeName); - } - - for my $scriptTName (sort keys %{$template->{scripts}}) { - my $scriptName = expandFragment ($scriptTName, $a); - my $tContent = $template->{scripts}{$scriptTName}; - my $content = expandFragment ($tContent, $a); - $image->addScriptLine ($scriptName, $content); - } - - } - - return $image; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/ActiveBlockDev.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/ActiveBlockDev.pm deleted file mode 100644 index 102f2c9..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/ActiveBlockDev.pm +++ /dev/null @@ -1,106 +0,0 @@ -#!perl -w -# -# ActiveBlockDev -- a single blockdev, as found in /sys -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# The blockdev can be a whole device or a partition. -# descriptors contain: -# - name, path as found in /sys (sda, sda/sda1) -# - devno, as found in /sys (8:1) -# - parent, undef for whole device, maj:minor of parent otherwise -# - hw, path to underlying hardware device, -# eg an ide controller somewhere on a PCI bus. -# this is a path relative to /sys/devices, -# and can be undef (eg for ram disk) -# - special, a block special file giving access to the device -# in the currently running kernel, or undef. -# - yspecial, a block special file giving access to the device -# in the generated initrd image. This often needs -# a mknod on the generated image. It's not convenient -# to use the previous special, since that may be in -# a subdirectory unavailable on the initrd image. -# It's also not exactly /dev/$name, since LVM logical -# volumes follow another convention. -# - partitions, list of partitions contained in the device. -# these partitions are also ActiveBlockDevs. -# -# NOTE: the partition list relies on ActiveBlockDevTab making -# a complete scan of all block devices, each partition registering -# itself as partition with the parent device. -# -use strict; -use warnings; -use BlockSpecialFileTab; -use LvmTab; -package ActiveBlockDev; -use base 'Obj'; - - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('name', 'devno', 'parent', 'hw'); - $self->{partitions} = []; - if (defined ($self->parent)) { - push @{$self->parent->partitions}, $self; - } - - my $bfs = BlockSpecialFileTab::findByDevno($self->devno); - if (defined ($bfs)) { - $self->{special} = $bfs->path; - } - else { - $self->{special} = undef; - } -} - -sub name { return $_[0]->{name}; } -sub devno { return $_[0]->{devno}; } -sub parent { return $_[0]->{parent}; } -sub hw { return $_[0]->{hw}; } -sub special { return $_[0]->{special}; } -sub partitions { return $_[0]->{partitions}; } - -sub string { - my $self = shift; - my $name = $self->name; - my $devno = $self->devno; - my $parent = (defined($self->parent) ? $self->parent->name : "--"); - my $hw = ($self->hw or "--"); - my $special = ($self->special or "--"); - my $yspecial = ($self->yspecial or "--"); - return "$name($devno) in $parent at $hw via $special becomes $yspecial"; -} - -sub yspecial { - my $self = shift; - my $name = $self->name; - my $devno = $self->devno; - my $yspecial = "/dev/$name"; - my $lv = LvmTab::findLVByDevno ($devno); - if (defined ($lv)) { - $yspecial = $lv->lvnam; - } - return $yspecial; -} - -sub hasPartitions { - my $self = shift; - return ($#{$self->partitions} >= 0); -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/ActiveBlockDevTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/ActiveBlockDevTab.pm deleted file mode 100644 index 9168ee6..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/ActiveBlockDevTab.pm +++ /dev/null @@ -1,149 +0,0 @@ -#!perl -w -# -# ActiveBlockDevTab -- descriptors of all block devices in /sys -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -use strict; -use warnings; -use Base; -use Conf; -use ActiveBlockDev; -package ActiveBlockDevTab; - - -my $abdTab = undef; -my $abdList = undef; - - -sub init () { - if (defined ($abdTab)) { - return; - } - $abdTab = {}; - - my $blockdir; - my $blockPath = Conf::get('sysFs') . "/block"; - if (! opendir ($blockdir, "$blockPath")) { - Base::fatal ("can't open directory $blockPath"); - } - while (defined (my $entry = readdir ($blockdir))) { - next if $entry eq "."; - next if $entry eq ".."; - oneBlockDev($blockPath, $entry); - } - if (! closedir ($blockdir)) { - Base::fatal ("could not read directory $blockPath"); - } - - $abdList = [values %{$abdTab}]; -} - -sub oneBlockDev ($$) { - my ($blockPath, $entry) = @_; - my $devno = Base::getStringFile("$blockPath/$entry/dev"); - if (exists ($abdTab->{$devno})) { - Base::fatal ("found duplicate devno in $blockPath/$entry"); - } - my $hw = readlink("$blockPath/$entry/device"); - # failure results in undef, which is exactly how - # we want to represent absence of a hw device. - if (defined ($hw)) { - unless ($hw =~ s!^(\.\./)+devices/!!) { - # imagine localised linux (/sys/geraete ...) - Base::fatal ("bad device link in $blockPath/$entry"); - } - } - my $descr = ActiveBlockDev->new ( - name => $entry, - devno => $devno, - parent => undef, - hw => $hw, - ); - $abdTab->{$devno} = $descr; - - # - # Scan partitions. - # Note that these are only visible after someone - # read the a block from the device. - # - my $devdir; - if (! opendir ($devdir, "$blockPath/$entry")) { - Base::fatal ("can't open directory $blockPath/$entry"); - } - while (defined (my $partition = readdir ($devdir))) { - next if $partition eq "."; - next if $partition eq ".."; - next unless -d "$blockPath/$entry/$partition"; - - # there can be subdirectories in a blockdev - # other than partitions; eg /sys/block/sda/queue. - # a partition has major:minor, so has a dev file. - next unless -f "$blockPath/$entry/$partition/dev"; - - onePartition($blockPath, $entry, $partition, $descr); - } - if (! closedir ($devdir)) { - Base::fatal ("could not read directory $blockPath/$entry"); - } -} - -sub onePartition ($$$$) { - my ($blockPath, $entry, $partition, $parent) = @_; - my $dev = Base::getStringFile("$blockPath/$entry/$partition/dev"); - if (exists ($abdTab->{$dev})) { - Base::fatal ("found duplicate devno in $blockPath/$entry/$partition"); - } - $abdTab->{$dev} = ActiveBlockDev->new ( - name => $partition, - devno => $dev, - parent => $parent, - hw => undef, - ); -} - -# -# all -- return list of all known active block devices. -# -sub all () { - init; - return $abdList; -} - -# -# findByDevno -- given devno in format maj:min, -# return corresponding descriptor or undef. -# -sub findByDevno ($) { - my ($devno) = @_; - init; - return $abdTab->{$devno}; -} - -# -# findByPath -- given path to block device file in /dev, -# return corresponding descriptor or undef. -# -sub findByPath ($) { - my ($path) = @_; - my $devno = Base::devno ($path); - if (! defined ($devno)) { - return undef; - } - return findByDevno ($devno); -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Base.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Base.pm deleted file mode 100644 index f8aa4c0..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Base.pm +++ /dev/null @@ -1,299 +0,0 @@ -#!perl -w -# -# Base -- support stuff -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# setProgName -- what label to use in further messages. -# setVerbose -- if true, print info -# setDebug -- if true, print info and debug -# setQuiet -- if true, don't print warnings -# -# debug -- irritating noise -# info -- reassuring noise -# warning -- not good, but processing continues, exit status unaffected -# error -- not good, processing continues, exit status non-zero, -# program should not make changes to environment -# such as writing output files. -# fatal -- not good, exit immediately with non-zero status. -# bug -- fatal error in the program, not environment. -# assert -- if condition not met, it's a bug. -# bye -- exit now. -# -# Also routines to -# - read content of one-line files -# - get device number from block or character device files -# - interpret symbolic links -# - interpret pathnames -# -use strict; -use warnings; -package Base; - - -my $progName = "[app]"; -sub setProgName ($) { $progName = $_[0]; } - -my $verbose = 0; -sub setVerbose ($) { $verbose = $_[0]; } - -my $debug = 0; -sub setDebug ($) { $debug = $_[0]; } - -my $quiet = 0; -sub setQuiet ($) { $quiet = $_[0]; } - - -my $exitCode = 0; - - -sub debug ($) { - my $msg = shift; - if ($debug) { - print "$progName:D: $msg\n"; - } -} - -sub info ($) { - my $msg = shift; - if ($verbose || $debug) { - print "$progName: $msg\n"; - } -} - -sub warning ($) { - my $msg = shift; - if (! $quiet) { - print STDERR "$progName warning: $msg\n"; - } -} - -sub error ($) { - my $msg = shift; - print STDERR "$progName error: $msg\n"; - $exitCode = 1; - -} - -sub fatal ($) { - my $msg = shift; - error ($msg . " (fatal)"); - bye(); -} - -sub bug ($) { - my $msg = shift; - my ($package, $file, $line) = caller; - fatal ($msg . " (internal $file:$line)"); -} - -sub assert ($) { - my $cond = shift; - my ($package, $file, $line) = caller; - if (! $cond) { - fatal ("assert failed (internal $file:$line)"); - } -} - -sub bye () { - exit ($exitCode); -} - - -# -# getStringFile -- return contents of a file that must contain -# a single line, dropping optional trailing space, or die. -# -sub getStringFile ($) { - my ($filename) = @_; - if (! open (F, "<", "$filename")) { - Base::fatal ("can't open $filename"); - } - my $line = ; - if (! defined ($line)) { - Base::fatal ("empty file $filename"); - } - chomp $line; - if (defined ()) { - Base::fatal ("extra lines in $filename"); - } - if (! close (F)) { - Base::fatal ("could not read $filename"); - } - return $line; -} - - -# -# getHexFile -- given path to file, return content interpreted as hex number. -# -sub getHexFile ($) { - my ($filename) = @_; - my $content = getStringFile ($filename); - if ($content !~ /^(0x)?[0-9a-fA-F]+$/) { - fatal ("not a hex file: $filename"); - } - return hex($content); -} - - -# -# devno -- given pathname to a device, return "maj:min" or undef. -# symlinks are resolved implicitly. -# -sub devno ($) { - my ($path) = @_; - if ( ! (-b $path || -c _)) { - return undef; - } - - my @fields = stat _; - if ($#fields != 12) { - Base::fatal ("stat failed on device $path"); - } - # from 2.6.10-rc2, kdev.h, backward compatible. - my $devno = $fields[6]; - my $major = ($devno & 0xfff00) >> 8; - my $minor = ($devno & 0xff) | (($devno >> 12) & 0xfff00); - return "$major:$minor"; -} - - -# -# expandLink -- given a path to a symlink file, -# return a path to what it points to. -# -sub expandLink ($) { - my ($path) = @_; - Base::assert (-l $path); - my $target = readlink("$path"); - - if (isAbsolute ($target)) { - return canon ($target); - } - my $base = dirname ($path); - return canon ("$base/$target"); -} - - -# -# isAbsolute -- given a path, return true iff it starts at root. -# -sub isAbsolute ($) { - my ($path) = @_; - return $path =~ /^\//; -} - - -# -# canon -- given path, return copy with redundant stuff removed. -# -sub canon ($) { - my ($path) = @_; - - if ($path eq '') { - $path = '.'; - } - if ($path =~ m![^/]/+$!) { - # drop trailing slashes, except in path like //// - $path =~ s!/+$!!; - } - - # iterate over components (ignoring duplicate slashes) - # interpret a null list as 'current directory' - # interpret a leading '' in list as absolute path - # . can be dropped - # .. causes dropping of last element of list, but: - # (1) /.. => / - # (2) ../.. is not dropped. - # (3) ./.. => .. - my @result = (); - for my $component (split (/\/+/, $path)) { - if ($component eq '.') { - next; - } - elsif ($component eq '..') { - if ($#result == -1) { - push @result, '..'; - } - elsif ($#result == 0 && $result[0] eq '') { - next; - } - elsif ($result[$#result] eq '..') { - push @result, '..'; - } - else { - pop @result; - } - } - else { - push @result, $component; - } - } - if ($#result == -1) { - return "."; - } - elsif ($#result == 0 && $result[0] eq '') { - return '/'; - } - else { - return join ('/', @result); - } -} - - -# -# basename -- given path, return final component of canonified path -# -sub basename ($) { - my ($path) = @_; - my $t = canon ($path); - if ($t =~ m!.*/([^/]+)$!) { - # something is after the slash, - # the simple case - return $1; - } - elsif ($t !~ m!/!) { - # basename aap => aap - return $t; - } - else { - return '/'; - } -} - - -# -# dirname -- given path, return all but final component of canonified path -# -sub dirname ($) { - my ($path) = @_; - my $t = canon ($path); - if ($t =~ m!(.+)/[^/]+$!) { - # something before and after the slash - return $1; - } - elsif ($t !~ m!/!) { - # dirname aap => . - # but also dirname .. => . - return '.'; - } - else { - return '/'; - } -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Blacklist.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Blacklist.pm deleted file mode 100644 index 9da5377..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Blacklist.pm +++ /dev/null @@ -1,100 +0,0 @@ -#!perl -w -# -# Blacklist -- encapsulate /etc/hotplug/blacklist -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# isBlacklisted -- module occurs in one of the hotplug blacklists. -# normalise underscore to hyhpen before comparing. -# - -use strict; -use warnings; -use Base; -use Conf; -package Blacklist; - -my $blackMap = undef; -my $blackList = undef; - -sub init () { - if (defined ($blackList)) { - return; - } - my $blackMap = {}; - my $hotplugDir = Conf::get ('hotplug'); - parseBlackList ("$hotplugDir/blacklist"); - - my $dir; - my $dirName = "$hotplugDir/blacklist.d"; - if (-d $dirName) { - # blacklist.d does not have to exist (Debian - # has it, Fedora not), but if it exists, - # it must be readable. - if (! opendir ($dir, $dirName)) { - Base::fatal ("can't open directory $dirName"); - } - while (defined(my $entry = readdir($dir))) { - if ( -f "$dirName/$entry" ) { - parseBlackList ("$dirName/$entry"); - } - } - if (! closedir ($dir)) { - Base::fatal ("could not read directory $dirName"); - } - } - - my $blackList = [ keys %{$blackMap} ]; -} - -sub parseBlackList ($) { - my ($fileName) = @_; - if (! open (IN, "<", "$fileName")) { - Base::fatal ("can't open blacklist $fileName"); - } - while (defined (my $line = )) { - chomp $line; - $line =~ s/#.*//; - $line =~ s/^\s+//; - $line =~ s/\s+$//; - $line =~ s/_/-/g; - if ($line eq "") { - next; - } - if ($line !~ /^[a-zA-Z0-9-]+$/) { - Base::fatal ("bad line in blacklist $fileName: $line"); - } - $blackMap->{$line}++; - } - if (! close (IN)) { - Base::fatal ("could not read blacklist $fileName"); - } -} - -sub all () { - init; - return $blackList; -} - -sub isBlacklisted ($) { - my ($module) = @_; - init; - $module =~ s/_/-/g; - return exists ($blackMap->{$module}); -} - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/BlockSpecialFile.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/BlockSpecialFile.pm deleted file mode 100644 index 2bda007..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/BlockSpecialFile.pm +++ /dev/null @@ -1,45 +0,0 @@ -#!perl -w -# -# BlockSpecialFile -- descriptor for single block special file found in /dev -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# this can be a whole device or a partition. Descriptors contain: -# - path, path as found in /dev -# - devno, eg 8:1 -# -use strict; -use warnings; -package BlockSpecialFile; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('path', 'devno'); -} - -sub devno { return $_[0]->{devno}; } -sub path { return $_[0]->{path}; } - -sub string { - my $self = shift; - my $path = $self->path; - my $devno = $self->devno; - return "$path($devno)"; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/BlockSpecialFileTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/BlockSpecialFileTab.pm deleted file mode 100644 index f10cc4c..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/BlockSpecialFileTab.pm +++ /dev/null @@ -1,101 +0,0 @@ -#!perl -w -# -# BlockSpecialFileTab -- block special files found in /dev -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# This provides access to a table of descriptors, each containing -# path and devno. -# -# findByDevno -- find a descriptor with devno (there may be others) -# all -- list of all descriptors (may have duplicate devnos) -# -use strict; -use warnings; -use Conf; -use BlockSpecialFile; -package BlockSpecialFileTab; - - -my $bsfTab = undef; -my $bsfList = undef; - - -sub walkBlockSpecialFiles ($); - -sub init () { - if (defined ($bsfTab)) { - return; - } - $bsfTab = {}; - my $devDir = Conf::get('dev'); - walkBlockSpecialFiles ($devDir); - $bsfList = [ values %{$bsfTab} ]; -} - -sub walkBlockSpecialFiles ($) { - my ($dirName) = @_; - my $dir; - if (! opendir ($dir, $dirName)) { - Base::fatal ("can't open directory $dirName"); - } - while (defined(my $entry = readdir($dir))) { - next if $entry eq "."; - next if $entry eq ".."; - my $path = "$dirName/$entry"; - if (-l $path) { - next; - } - elsif (-b _) { - my $devno = Base::devno ($path); - - # this may overwrite earlier entries; - # unimportant since both pathnames - # access the same device. - $bsfTab->{$devno} = BlockSpecialFile->new( - path => $path, - devno => $devno); - } - elsif (-d _) { - walkBlockSpecialFiles ($path); - } - } - if (! closedir ($dir)) { - Base::fatal ("could not read directory $dirName"); - } -} - - -# -# findByDevno -- return a working path given major:minor or undef. -# Note that there may be other files accessing the same device. -# -sub findByDevno ($) { - my ($devno) = @_; - init; - return $bsfTab->{$devno}; -} - -# -# all -- return list of all descriptors. -# -sub all () { - init; - return $bsfList; -} - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Conf.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Conf.pm deleted file mode 100644 index 9e79201..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Conf.pm +++ /dev/null @@ -1,95 +0,0 @@ -#!perl -w -# -# Conf -- configured path names and such. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# You can get and set configuration items by name, -# with the following restrictions: -# - only get and set known keys -# - after first get, no further set is allowed. -# -# Defaults are packaged as subs, so that you can change -# one setting and have the change ripple through in other -# settings. -# -use strict; -use warnings; -use Base; -package Conf; - -sub get($); - -# -# Default values for configuration; if there is no default, -# it's not a known parameter, and you cannot modify it. -# -my $defaults = { - version => sub { my $v = `uname -r`; chomp $v; $v; }, - libModules => sub { "/lib/modules"; }, - kernConf => sub { "/boot/config-" - . get('version'); }, - modDep => sub { get('libModules') - . '/' . get('version') - . '/modules.dep'; }, - usbMap => sub { get('libModules') - . '/' . get('version') - . '/modules.usbmap'; }, - pciMap => sub { get('libModules') - . '/' . get('version') - . '/modules.pcimap'; }, - modDir => sub { get('libModules') - . '/' . get('version') - . '/kernel'; }, - sysFs => sub { "/sys"; }, - procFs => sub { "/proc"; }, - #delete next 2? - sysBlock => sub { get ('sysFs') . "/block"; }, - sysDevices => sub { get ('sysFs') . "/devices"; }, - dev => sub { "/dev"; }, - fstab => sub { "/etc/fstab"; }, - hotplug => sub { "/etc/hotplug"; }, - appVersion => sub { "0.0.5"; }, - auxDir => sub { "/usr/local/lib/yaird/exec"; }, -}; - - -my $overrides = {}; # config values where default is overridden, - # presumably via command line. -my $used = {}; # if a key exists, the config value has - # been used, and it no longer can be changed. - -sub get ($) { - my ($key) = @_; - my $dflt = $defaults->{$key}; - Base::assert (defined ($dflt)); - $used->{$key}++; - my $ovr = $overrides->{$key}; - if (defined ($ovr)) { - return $ovr; - } - return &{$dflt}(); -} - -sub set ($$) { - my ($key, $value) = @_; - my $dflt = $defaults->{$key}; - Base::assert (defined ($dflt)); - Base::assert (! defined ($used->{$key})); - $overrides->{$key} = $value; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Conf.pm.in b/rescue/linux/cdrom/yaird-0.0.5/perl/Conf.pm.in deleted file mode 100644 index fbe5281..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Conf.pm.in +++ /dev/null @@ -1,95 +0,0 @@ -#!perl -w -# -# Conf -- configured path names and such. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# You can get and set configuration items by name, -# with the following restrictions: -# - only get and set known keys -# - after first get, no further set is allowed. -# -# Defaults are packaged as subs, so that you can change -# one setting and have the change ripple through in other -# settings. -# -use strict; -use warnings; -use Base; -package Conf; - -sub get($); - -# -# Default values for configuration; if there is no default, -# it's not a known parameter, and you cannot modify it. -# -my $defaults = { - version => sub { my $v = `uname -r`; chomp $v; $v; }, - libModules => sub { "/lib/modules"; }, - kernConf => sub { "/boot/config-" - . get('version'); }, - modDep => sub { get('libModules') - . '/' . get('version') - . '/modules.dep'; }, - usbMap => sub { get('libModules') - . '/' . get('version') - . '/modules.usbmap'; }, - pciMap => sub { get('libModules') - . '/' . get('version') - . '/modules.pcimap'; }, - modDir => sub { get('libModules') - . '/' . get('version') - . '/kernel'; }, - sysFs => sub { "/sys"; }, - procFs => sub { "/proc"; }, - #delete next 2? - sysBlock => sub { get ('sysFs') . "/block"; }, - sysDevices => sub { get ('sysFs') . "/devices"; }, - dev => sub { "/dev"; }, - fstab => sub { "/etc/fstab"; }, - hotplug => sub { "/etc/hotplug"; }, - appVersion => sub { "@VERSION@"; }, - auxDir => sub { "@AUXDIR@"; }, -}; - - -my $overrides = {}; # config values where default is overridden, - # presumably via command line. -my $used = {}; # if a key exists, the config value has - # been used, and it no longer can be changed. - -sub get ($) { - my ($key) = @_; - my $dflt = $defaults->{$key}; - Base::assert (defined ($dflt)); - $used->{$key}++; - my $ovr = $overrides->{$key}; - if (defined ($ovr)) { - return $ovr; - } - return &{$dflt}(); -} - -sub set ($$) { - my ($key, $value) = @_; - my $dflt = $defaults->{$key}; - Base::assert (defined ($dflt)); - Base::assert (! defined ($used->{$key})); - $overrides->{$key} = $value; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/FsEntry.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/FsEntry.pm deleted file mode 100644 index 8d8a43f..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/FsEntry.pm +++ /dev/null @@ -1,101 +0,0 @@ -#!perl -w -# -# FsEntry -- encapsulate a single entry in /etc/fstab -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -use strict; -use warnings; -use LabeledPartitionTab; -package FsEntry; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('dev', 'mnt', 'type', 'opts'); -} - -sub dev { return $_[0]->{dev}; } -sub mnt { return $_[0]->{mnt}; } -sub type { return $_[0]->{type}; } -sub opts { return $_[0]->{opts}; } - -sub string { - my $self = shift; - my $dev = $self->dev(); - my $mnt = $self->mnt(); - my $type = $self->type(); - my $opts = $self->opts()->string(); - return "$mnt at $dev ($type) with $opts"; -} - - -# -# isRequiredAtBoot -- To be mounted at boot time with mount -a. -# This does not imply the initrd should already mount it. -# -sub isRequiredAtBoot { - my $self = shift; - return 0 if ($self->type eq "ignore"); - return 0 if ($self->opts->exists("noauto")); - return 1; -} - - -# -# blockDevPath -- return blockdev pathname for an fstab entry. -# must resolve LABEL= and UUID=. Note that LVM and raid devices -# may be implemented on top of multiple other devices; this returns -# only the top device. -# -# Returns undef if first field of fstab entry does not point to -# an existing block device. Possible reasons: -# - filesystem does not have underlying device, such as /proc. -# - filesystem has a non-file underlying resource, such as NFS -# - garbage line with missing blockdev -# - filesystem has a plain file as underlying resource; -# this can be a loopback file system, or swap to plain file. -# -# NOTE: We should support the last case, but for now that's too difficult: -# imagine /a/b/c, where /a is reiserfs, b is a symlink to /d (an NFS -# filesystem), and /d/c is a symlink to /e/f, where /e is a ramdisk.) -# -sub blockDevPath { - my $self = shift; - my $dev = $self->dev(); - if ($dev =~ /^\//) { - if (-f $dev && $self->opts->exists('loop')) { - return undef; - } - if (-f $dev && $self->type eq "swap") { - return undef; - } - if (-b $dev) { - return $dev; - } - } - elsif ($dev =~ /^LABEL=(.*)/) { - return LabeledPartitionTab::findPathByLabel ($1); - } - elsif ($dev =~ /^UUID=(.*)/) { - return LabeledPartitionTab::findPathByUuid ($1); - } - return undef; -} - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/FsOpts.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/FsOpts.pm deleted file mode 100644 index b40fb0e..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/FsOpts.pm +++ /dev/null @@ -1,107 +0,0 @@ -#!perl -w -# -# FsOpts -- encapsulate the options in an FsEntry -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -use strict; -use warnings; -package FsOpts; -use base 'Obj'; - - -sub fill { - my $self = shift; - $self->SUPER::fill(); - - $self->takeArgs ('string'); - my @optlist = split (/,/, $self->{string}); - my $opthash = {}; - for my $opt (@optlist) { - if ($opt =~ /^(.*)=(.*)$/) { - $opthash->{$1} = $2; - } - else { - $opthash->{$opt} = undef; - } - } - $self->{optsHash} = $opthash; -} - -# -# exists -- the option occurs, possibly with undef value. -# -sub exists { - my ($self, $optnam) = @_; - return exists ($self->{optsHash}{$optnam}); -} - -sub get { - my ($self, $optnam) = @_; - return $self->{optsHash}{$optnam}; -} - -sub string { - my $self = shift; - my $opts = $self->{optsHash}; - my @optlist = (); - for my $key (sort keys %{$opts}) { - push @optlist, ("$key=" . ($opts->{$key} or "-")); - } - return join (',', @optlist); -} - - -# -# cmdLineVersion -- return a version of all options suitable for -# a mount command line. -# Note that some options in fstab can only be used in fstab, -# not in scripts. -# -sub cmdLineVersion { - my $self = shift; - my $opts = $self->{optsHash}; - - my @cmdLine = (); - for my $key (sort keys %{$opts}) { - next if $key eq 'auto'; - next if $key eq 'noauto'; - next if $key eq 'nouser'; - next if $key eq 'owner'; - next if $key eq 'user'; - next if $key eq 'users'; - next if $key eq 'defaults'; - my $val = $opts->{$key}; - if (defined ($val)) { - push @cmdLine, "$key=$val"; - } - else { - push @cmdLine, "$key"; - } - } - if ($#cmdLine == -1) { - return ""; - } - else { - # protect against logdev=John's disk. - my $cmdLine = join (',', @cmdLine); - $cmdLine =~ s/(['\\])/\\$1/g; - return "-o '$cmdLine'"; - } -} - -1; - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/FsTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/FsTab.pm deleted file mode 100644 index 257551b..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/FsTab.pm +++ /dev/null @@ -1,121 +0,0 @@ -#!perl -w -# -# FsTab -- encapsulate /etc/fstab. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -use strict; -use warnings; -use Base; -use Conf; -use FsOpts; -use FsEntry; -package FsTab; - - -my $fsTab = undef; - - -sub init () { - if (defined ($fsTab)) { - return; - } - $fsTab = []; - my $name = Conf::get('fstab'); - if (! open (IN, "<", "$name")) { - Base::fatal ("can't read $name"); - } - while (defined (my $line = )) { - $line =~ s/^\s+//; - next if $line =~ /^#/; # comment line - next if $line eq ""; # empty line - my @fields = split (/\s+/, $line, 999); - if ($#fields < 6) { - # no test for extra fields; - # the mount command allows that. - Base::fatal ("malformed line in $name"); - } - if ($fields[2] eq "swap") { - if (($fields[1] ne "none") &&($fields[1] ne "swap")) { - Base::fatal ("bad swap entry in $name"); - } - } - - my $opts = FsOpts->new ( - string => unmangle($fields[3])); - - my $descr = FsEntry->new( - dev => unmangle($fields[0]), - mnt => unmangle($fields[1]), - type => unmangle($fields[2]), - opts => $opts, - ); - push @{$fsTab}, $descr; - } - if (! close (IN)) { - Base::fatal ("could not read $name"); - } -} - -sub all () { - init; - return $fsTab; -} - -sub findByMountPoint ($) { - my ($mnt) = @_; - my $result; - for my $entry (@{FsTab::all()}) { - if ($entry->mnt() eq $mnt) { - if (defined ($result)) { - Base::fatal ("duplicate mount point in fstab $mnt"); - } - $result = $entry; - } - } - if (! defined ($result)) { - Base::fatal ("mount point not in fstab: $mnt"); - } - return $result; -} - -sub findByDevName ($) { - my ($dev) = @_; - my $result; - for my $entry (@{FsTab::all()}) { - if ($entry->dev() eq $dev) { - if (defined ($result)) { - Base::fatal ("duplicate device name in fstab: $dev"); - } - $result = $entry; - } - } - if (! defined ($result)) { - Base::fatal ("device name not in fstab: $dev"); - } - return $result; -} - -# replace octal escapes -sub unmangle ($) { - my ($string) = @_; - while ($string =~ /\\([0-7]{3})/) { - $string = $` . chr (oct ($1)) . $'; - } - return $string; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Hardware.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Hardware.pm deleted file mode 100644 index adb0551..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Hardware.pm +++ /dev/null @@ -1,218 +0,0 @@ -#!perl -w -# -# Hardware -- find modules for a thingy in /devices. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# Method: walk up the path, and for everything you recognise, -# prepend the appropriate module. -# As an example, for a usb-stick connected via a hub to a pci card, -# you'l need usb-storage, a usb protocol driver, and some usb module. -# -use strict; -use warnings; -use Conf; -use IdeDev; -use ScsiDev; -use PciDev; -use PciTab; -use UsbDev; -use UsbTab; -package Hardware; - - -sub moduleList ($) { - my ($path) = @_; - my $result = []; - my @components = split (/\/+/, $path); - my $devicesPath = Conf::get ('sysDevices'); - for my $i (0 .. $#components) { - my $abspath = $devicesPath - . "/" . join ('/', @components[0 .. $i]); - my $modules = undef; - if ($abspath =~ m!/pci[0-9a-f]{4}:[0-9a-f]{2}$!) { - # PCI bus; harmless - } - elsif (-f "$abspath/subsystem_vendor") { - # PCI function on a slot. - my $dev = PciDev->new (path => $abspath); - $modules = PciTab::find ($dev); - push @{$modules}, @{addPciSiblings ($abspath)}; - } - - elsif (-f "$abspath/bDeviceClass" - || -f "$abspath/bInterfaceClass") - { - # - # USB. Every component in the path - # "usb1/1-4/1-4.4/1-4.4:1.0" has either - # a deviceClass or interfaceClass attribute. - # - my $dev = UsbDev->new (path => $abspath); - $modules = UsbTab::find ($dev); - } - - elsif ($abspath =~ m!/ide\d+$!) { - # IDE bus; harmless - } - elsif ($abspath =~ m!/ide\d+/\d+\.\d+$!) { - # IDE device - my $dev = IdeDev->new (path => $abspath); - $modules = IdeDev::findModuleByIdeDev ($dev); - } - - elsif ($abspath =~ m!/host\d+$!) { - # grouping of SCSI devices; harmless. - } - elsif ($abspath =~ m!/target\d+:\d+:\d+$!) { - # grouping of SCSI devices within a host - # (2.6.10 and later); harmless. - } - elsif ($abspath =~ m!/\d+:\d+:\d+:\d+$! - && -f "$abspath/scsi_level") - { - my $dev = ScsiDev->new (path => $abspath); - $modules = ScsiDev::findModuleByScsiDev ($dev); - } - - else { - # NOTE: We may want to avoid duplicate messages - Base::warning ("unrecognised device: $abspath"); - } - - if (defined ($modules)) { - push @{$result}, @{$modules}; - } - } - return $result; -} - - -# -# addPciSiblings -- probably a bug. -# -# Here's something odd: my test machine has an USB keyboard, connected -# via PCI. The same 8 ports are visible both as one 8-port EHCI -# controller and four 2-port UHCI controllers. The difference is not -# in the hardware, only in the protocol used to talk to the remote device. -# These are different PCI functions (0..7) in the same PCI slot (1d): -# 0000:00:1d.0 USB Controller: Intel ... USB UHCI #1 (rev 03) -# 0000:00:1d.1 USB Controller: Intel ... USB UHCI #2 (rev 03) -# 0000:00:1d.2 USB Controller: Intel ... USB UHCI #3 (rev 03) -# 0000:00:1d.3 USB Controller: Intel ... USB UHCI #4 (rev 03) -# 0000:00:1d.7 USB Controller: Intel ... USB2 EHCI Controller (rev 03) -# -# The keyboard shows up under the EHCI controller, a printer shows up -# under one of the UHCI controllers. -# If we load only the EHCI module, the UHCI-only printer causes some -# complaints, and the keyboard is not detected (unless you try to -# debug this via a serial line ...) -# If you load UHCI as well, the keyboard is detected flawlessly. -# -# We could interpret this as a bug in EHCI, and claim that a non-EHCI -# device on one of the ports should not interfere with detecting devices -# on other ports, but it's more productive to see this as an example of -# how some PCI devices work better if there's a driver for every -# function in the slot. -# -# (Or you could just add a special case to always add an UHCI driver -# after EHCI, but then you would have to consider OHCI as well, plus -# think about blacklisting and competing USB driver implementations. -# I'd rather not go there.) -# -# The kernel function pci_setup_device() uses the following format -# for PCI function directories in sysfs: -# "%04x:%02x:%02x.%d", domain, bus, slot, function. -# -# Given an absolute path to a PCI function directory, return a list -# of modules needed for all USB functions *except* the one specified by -# the path, but only if the path refers to a USB function. -# -# Limiting this behaviour to USB functions alone is desirable, given -# the existence of chips such as VT8366/A/7, that combine ISA, IDE, -# USB and multimedia in a single PCI slot. -# -sub addPciSiblings ($) { - my ($abspath) = @_; - my $modules = []; - if (! isUsb ($abspath)) { - return $modules; - } - - my $dirName = Base::dirname ($abspath); - my $cur = Base::basename ($abspath); - - if ($cur !~ /^([0-9a-f]{4}):([0-9a-f]{2}):([0-9a-f]{2})\.(\d)$/) { - Base::fatal ("Odd PCI directory in sysfs: $abspath"); - } - my $domain = $1; - my $bus = $2; - my $slot = $3; - my $function = $4; - - #print "D $dirName, B $cur, d $domain b $bus s $slot f $function\n"; - my $dir; - if (! opendir ($dir, $dirName)) { - Base::fatal ("can't open directory $dirName"); - } - while (defined(my $entry = readdir($dir))) { - if ($entry !~ /^([0-9a-f]{4}):([0-9a-f]{2}):([0-9a-f]{2})\.(\d+)$/) { - next; - } - if (! ($1 eq $domain && $2 eq $bus && $3 eq $slot - && $4 ne $function)) - { - next; - } - - # OK, it's in my slot, and it isn't me. - # Add required modules if it's USB. - my $sibling = "$dirName/$entry"; - if (isUsb ($sibling)) { - my $dev = PciDev->new (path => $sibling); - push @{$modules}, @{PciTab::find ($dev)}; - } - } - if (! closedir ($dir)) { - Base::fatal ("could not read directory $dirName"); - } - return $modules; -} - -# -# isUsb -- given an absolute path into sysfs, true iff it controls a usb port. -# -sub isUsb ($) { - my ($abspath) = @_; - my $dir; - my $result = 0; - if (! opendir ($dir, $abspath)) { - Base::fatal ("can't open directory $abspath"); - } - while (defined(my $entry = readdir($dir))) { - if ($entry =~ /^usb\d+$/) { - $result = 1; - } - } - if (! closedir ($dir)) { - Base::fatal ("could not read directory $abspath"); - } - return $result; -} - -1; - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/IdeDev.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/IdeDev.pm deleted file mode 100644 index 7a4cf91..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/IdeDev.pm +++ /dev/null @@ -1,119 +0,0 @@ -#!perl -w -# -# IdeDev -- probed values for an IDE device as found in /proc/ide -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# The probed values for an IDE device as found in /proc/ide, -# based on the name in /sys/devices/.../ideX/X.X/block. -# -# path - location in sysfs -# name - descriptive string, retrieved from device -# media - type of device: disk, tape, ... -# model - descriptive string, retrieved from device -# -# Background: hotplug is triggered when an IDE controller is -# found on for instance the PCI bus. The loaded module should -# be good enough to talk to the hardware, but that does not -# mean you can actually use it: you will also need something -# to use the hardware driver to send IDE commands over the -# IDE cable to the controller on the other end of the cable. -# Those commands also have to make sense: a disk controller -# uses a different set of IDE commands than an IDE tape controller. -# The ide-disk, ide-cdrom etc modules are the protocol drivers -# that handle this. -# -# The following detection is based on an ide.rc script by Marco d'Itri -# that was not included in hotplug. Note that some CDROMs may need -# ide-generic in addition to ide-cdrom to work; that can be considered -# a driver bug rather than a valid dependency. Note that there is discussion -# over whether ide-generic should grab otherwise unhandled IDE devices. -# - http://thread.gmane.org/gmane.linux.hotplug.devel/6003 -# - http://lists.debian.org/debian-kernel/2004/11/msg00218.html -# - http://www.ussg.iu.edu/hypermail/linux/kernel/0410.1/1452.html -# -# Hmm, via82cxxx (2.6.8) also needs ide-generic to load it seems. That could -# be because ide-generic contains a call to ide_probe_init() which is in -# the ide-core module. We'll add ide-generic as an extra with all IDE -# protocol modules. -# -use strict; -use warnings; -use Base; -use Conf; -package IdeDev; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('path'); - my $path = $self->path; - my $link = readlink ("$path/block"); - if (! defined ($link)) { - Base::fatal ("no link to block device in $path"); - } - if ($link !~ m!.*/([^/]+)!) { - Base::fatal ("malformed link to block device in $path"); - } - my $name = $1; - my $ideDir = Conf::get('procFs') . "/ide"; - $self->{name} = $name; - $self->{media} = Base::getStringFile ("$ideDir/$name/media"); - $self->{model} = Base::getStringFile ("$ideDir/$name/model"); -} - -sub path { return $_[0]->{path}; } -sub name { return $_[0]->{name}; } -sub media { return $_[0]->{media}; } -sub model { return $_[0]->{model}; } - -sub string { - my $self = shift; - my $path = $self->path(); - my $name = $self->name(); - my $media = $self->media(); - my $model = $self->model(); - return "$name ($media) = $model at $path"; -} - - -# -# findModuleByIdeDev -- list of suitable IDE drivers; -# you need all of them. -# -sub findModuleByIdeDev ($) { - my ($ideDev) = @_; - my $media = $ideDev->media(); - my $driver; - $driver = "ide-disk" if ($media eq "disk"); - $driver = "ide-tape" if ($media eq "tape"); - $driver = "ide-cd" if ($media eq "cdrom"); - $driver = "ide-floppy" if ($media eq "floppy"); - my $result; - if (defined ($driver)) { - $result = [ "ide-generic", $driver ]; - } - else { - $result = [ "ide-generic" ]; - } - return $result; -} - - -1; - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Image.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Image.pm deleted file mode 100644 index c14a794..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Image.pm +++ /dev/null @@ -1,283 +0,0 @@ -#!perl -w -# -# Image -- what should go on the initrd image -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -use strict; -use warnings; -use SharedLibraries; -use File::Copy; -use Base; -package Image; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->{directories} = {}; - $self->{files} = {}; - $self->{devices} = {}; - $self->{symlinks} = {}; - $self->{scripts} = {}; -} - -# -# addFile -- mark listed file, it should be copied to image. -# If we add a symlink, make sure it stays a symlink in the target -# image, and that both link and target are included. This matters -# eg for LVM, that has lots of symlinks to a single executable, -# with behaviour determined by the name of the link. -# -sub addFile { - my ($self, $file) = @_; - Base::assert (Base::isAbsolute ($file)); - - # avoid problems with adding /lib/modules/. or - # distinguishing between /bin and //bin. - $file = Base::canon($file); - - $self->addParents ($file); - if (-l $file) { - if (! exists ($self->{symlinks}{$file})) { - # careful: in order to break loops, we must - # first mark the symlink, *then* follow it. - # We cannot warn, since we do not know whether - # the symlink was found in the course of symlink - # resolution, or whether multiple executables - # have the same symlink as a shared library. - # - # NOTE: Perhaps maintain an explicit stack of - # symlinks being resolved in order to be able - # to warn about loops? - # - my $link = readlink ($file); - if (! defined ($link)) { - Base::fatal ("could not follow symlink $file"); - } - if ($link !~ m!^([\w./-]+)$!) { - # taint check. - Base::fatal ("Strange character in symlink target for $file"); - } - $link = $1; - - Base::debug ("to image: $file (symlink)"); - $self->{symlinks}{$file} = $link; - my $target = Base::expandLink ($file); - $self->addFile ($target); - } - } - elsif (-b $file) { - my $devno = Base::devno ($file); - Base::debug ("to image: $file (blockdev)"); - $self->{devices}{$file} = "b:$devno"; - } - elsif (-c $file) { - my $devno = Base::devno ($file); - Base::debug ("to image: $file (chardev)"); - $self->{devices}{$file} = "c:$devno"; - } - elsif (-d $file) { - $self->addDirectory ($file); - } - elsif (-f $file) { - Base::debug ("to image: $file"); - $self->{files}{$file}++; - if (-x $file) { - $self->addLibraries ($file); - } - } - elsif (! -e $file) { - Base::fatal ("missing file requested for image: $file"); - } - else { - Base::fatal ("odd file mode: $file"); - } -} - - -# -# addDirectory -- add a directory to the image -# the difference with addFile ($dir) is that the directory -# does not have to exist on the mother system. -# -sub addDirectory { - my ($self, $directory) = @_; - Base::assert (Base::isAbsolute ($directory)); - - $self->addParents ($directory); - Base::debug ("to image: $directory (directory)"); - $self->{directories}{$directory}++; -} - - -# -# addParents -- given a pathname to be included on -# initrd image, ensure that parent directories are also created. -# -sub addParents { - my ($self, $path) = @_; - Base::assert (Base::isAbsolute ($path)); - - my @components = split (/\/+/, $path); - for my $idx (1 .. ($#components -1)) { - my $dir = join ('/', @components[0 .. $idx]); - $self->{directories}{$dir}++; - } -} - -# -# addTree -- add a tree to the image -# this is an existing file or directory with everything in it. -# NOTE: There's a trade-off here: it would be faster to defer walking -# the tree to the actual writing of the tree, but that would require -# duplicating the addFile checks on file type. 2.6.10 has 1700 files -# in /lib/modules; I expect the overhead to be acceptable. -# -sub addTree { - my ($self, $treeName) = @_; - - $self->addFile ($treeName); - if (-d $treeName && ! -l $treeName) { - my $dir; - if (! opendir ($dir, $treeName)) { - Base::fatal ("can't open directory $treeName"); - } - while (defined(my $entry = readdir($dir))) { - next if $entry eq "."; - next if $entry eq ".."; - my $path = "$treeName/$entry"; - $self->addTree ($path); - } - if (! closedir ($dir)) { - Base::fatal ("could not read directory $treeName"); - } - } -} - - -# -# addLibraries -- given an executable to be included on -# initrd image, ensure that shared libraries are also included. -# If the executable is a shell script or statically linked, -# nothing needs to be done. -# -sub addLibraries { - my ($self, $executable) = @_; - my $in; - - for my $lib (@{SharedLibraries::find ($executable)}) { - $self->addFile ($lib); - } -} - -# -# addScriptLine -- given scriptname and text, append text to the -# text to be included in script. -# -sub addScriptLine { - my ($self, $scriptname, $text) = @_; - Base::assert (Base::isAbsolute ($scriptname)); - - $self->addParents ($scriptname); - $self->{scripts}{$scriptname} .= "$text"; -} - - -# -# buildHere -- given pathname of a destination directory, -# create that directory, with all files and scripts prescribed -# by self in it. -# The top directory is expected to be created by File::Temp::tempfile. -# -sub buildHere { - my ($self, $dest) = @_; - - if (! -d $dest) { - Base::fatal ("Build directory not found: $dest"); - } - if (! chmod (0755, $dest)) { - Base::fatal ("Could not chmod $dest"); - } - - for my $d (sort keys %{$self->{directories}}) { - if (! mkdir ("$dest$d")) { - Base::fatal ("Could not mkdir $dest$d"); - } - if (! chmod (0755, "$dest$d")) { - Base::fatal ("Could not chmod $dest$d"); - } - } - - for my $f (sort keys %{$self->{files}}) { - if (! File::Copy::copy ($f, "$dest$f")) { - Base::fatal ("Could not copy $f to $dest$f"); - } - if (-x $f) { - if (! chmod (0555, "$dest$f")) { - Base::fatal ("Could not chmod 0555 $dest$f"); - } - } - else { - if (! chmod (0444, "$dest$f")) { - Base::fatal ("Could not chmod 0444 $dest$f"); - } - } - } - - for my $d (sort keys %{$self->{devices}}) { - my $typDevno = $self->{devices}{$d}; - if ($typDevno =~ /^(b|c):(\d+):(\d+)$/) { - # - # permission 0600 is restrictive but sufficient: - # the devices created here are used only by root - # on a temporary root, so we can get away with - # /dev/null mode 0600. More permissive modes - # risk ending up with a /dev/hda1 0666 somewhere - # in a temporary directory. - # - if (system ("/bin/mknod -m 0600 '$dest$d' $1 $2 $3") != 0) { - Base::fatal ("Could not mknod $dest$d $1 $2 $3"); - } - } - else { - Base::bug ("bad devno $typDevno for $d"); - } - } - - for my $l (sort keys %{$self->{symlinks}}) { - my $target = $self->{symlinks}{$l}; - if (! symlink ($target, "$dest/$l")) { - Base::fatal ("Could symlink $target $dest$l"); - } - } - - for my $scriptname (sort keys %{$self->{scripts}}) { - my $script = $self->{scripts}{$scriptname}; - if (!open (OUT, ">", "$dest$scriptname")) { - Base::fatal ("Can't create $dest$scriptname"); - } - print OUT "$script"; - if (!close (OUT)) { - Base::fatal ("Could not write $dest$scriptname"); - } - if (! chmod (0555, "$dest$scriptname")) { - Base::fatal ("Couldn't chmod 0555 $dest$scriptname"); - } - } -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Input.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Input.pm deleted file mode 100644 index 20308ec..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Input.pm +++ /dev/null @@ -1,104 +0,0 @@ -#!perl -w -# -# Input - a single device from the input layer -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# info - info provided by low level driver for module matching -# name - provided by driver -# phys - provided by driver, no relation to sysfs location -# handlers - input layer handlers -# capabilities - kind of events that can be generated -# hw - ... -# -# Handler 'kbd' indicates the device is used for console; -# there is also a generic handler for each device, event\d+, -# that may have a link to underlying sysfs device. -# Capability KEY indicates there are buttons, this includes -# both qwerty keys and the fire button on a joystick. -# - -use strict; -use warnings; -use Base; -use Conf; -package Input; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('info', 'name', 'phys', 'handlers', 'capabilities'); - - # - # Find hardware link, if any. - # - $self->{hw} = undef; - for my $handler (keys %{$self->handlers}) { - if ($handler !~ /^event\d+$/) { - next; - } - my $devLink = Conf::get('sysFs') - . "/class/input/$handler/device"; - my $hw = readlink ($devLink); - if (defined ($hw)) { - unless ($hw =~ s!^(\.\./)+devices/!!) { - # imagine localised linux (/sys/geraete ...) - Base::fatal ("bad device link in $devLink"); - } - $self->{hw} = $hw; - } - } -} - -sub info { return $_[0]->{info}; } -sub name { return $_[0]->{name}; } -sub phys { return $_[0]->{phys}; } -sub handlers { return $_[0]->{handlers}; } -sub capabilities { return $_[0]->{capabilities}; } -sub hw { return $_[0]->{hw}; } - -sub string { - my $self = shift; - my $name = $self->name; - my $phys = $self->phys; - my $hw = $self->hw; - $hw = "--" unless defined $hw; - my $h = join (",", keys %{$self->handlers}); - my $c = join (",", keys %{$self->capabilities}); - my $kbd = $self->isKbd ? " (KBD)" : ""; - my $str = "$name is $phys at $hw [$h] [$c]$kbd"; - return $str; -} - -# -# isKbd -- device may be useful to get an operational keyboard. -# This is conservative: there are two input devices for a DELL USB -# keyboard for example, and we make no effort to determine if -# we can leave one of them out. -# -sub isKbd { - my $self = shift; - if (! exists ($self->capabilities->{KEY})) { - return 0; - } - if (! exists ($self->handlers->{kbd})) { - return 0; - } - return 1; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/InputTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/InputTab.pm deleted file mode 100644 index 78c2031..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/InputTab.pm +++ /dev/null @@ -1,99 +0,0 @@ -#!perl -w -# -# InputTab -- encapsulate /proc/bus/input/devices -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - -use strict; -use warnings; -use Base; -use Conf; -use Input; - -package InputTab; - -my $inputList = undef; - -sub init () { - if (defined ($inputList)) { - return; - } - $inputList = []; - my $name = Conf::get('procFs') . '/bus/input/devices'; - if (! open (IN, "<", "$name")) { - Base::fatal ("can't open $name"); - } - my $work = { - capabilities => {}, - }; - while (defined (my $line = )) { - chomp $line; - if ($line =~ /^I: (.*)$/) { - $work->{info} = $1; - } - elsif ($line =~ /^N: Name="(.*)"$/) { - $work->{name} = $1; - } - elsif ($line =~ /^P: Phys=(.*)$/) { - $work->{phys} = $1; - } - elsif ($line =~ /^H: Handlers=(.*)$/) { - my @handlers = split (/\s+/, $1); - $work->{handlers} = {}; - for my $h (@handlers) { - $work->{handlers}{$h}++; - } - } - elsif ($line =~ /^B: ([A-Z]+)=(.*)$/) { - $work->{capabilities}{$1} = $2; - } - elsif ($line =~ /^$/) { - if (! exists ($work->{info})) { - Base::fatal ("missing I: in $name"); - } - if (! exists ($work->{name})) { - Base::fatal ("missing N: in $name"); - } - if (! exists ($work->{phys})) { - Base::fatal ("missing P: in $name"); - } - if (! exists ($work->{handlers})) { - Base::fatal ("missing H: in $name"); - } - push @{$inputList}, Input->new (%{$work}); - $work = { - capabilities => {}, - }; - } - else { - Base::fatal ("unrecognised line in $name: $line"); - } - - } - if (! close (IN)) { - Base::fatal ("could not read $name"); - } -} - -sub all () { - init; - return $inputList; -} - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/KConfig.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/KConfig.pm deleted file mode 100644 index ec740e3..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/KConfig.pm +++ /dev/null @@ -1,226 +0,0 @@ -#!perl -w -# -# KConfig -- encapsulate kernel configuration file and builtin modules -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# KConfig is a mapping from kernel define symbol to value. -# Common values are 'y' (compiled in), 'm' modular. -# The "no" choice in kernel configuration is represented by absence of the -# symbol. Other values (for example decimal or hex numbers) also occur. -# -# We also maintain a list of known modules and corresponding kernel define. -# If the define is 'y', we need not load the corresponding module. -# This is not relevant to hardware (if a PCI controller is builtin, -# it will not occur in modules.pcimap, so no loading is attempted), -# but it does help with filesystems, where an 'ext3' line in /etc/fstab -# means the ext3 module needs to be loaded unless its compiled in. -# - -use strict; -use warnings; -use Base; -use Conf; -package KConfig; - -my $kConfMap = undef; -my $kConfList = undef; - -sub init () { - if (defined ($kConfMap)) { - return; - } - $kConfMap = {}; - my $name = Conf::get('kernConf'); - if (! open (IN, "<", "$name")) { - Base::fatal ("can't open kernel config file $name"); - } - while (defined (my $line = )) { - chomp $line; - $line =~ s/^\s+//; - $line =~ s/\s+$//; - $line =~ s/#.*//; - next if ($line eq ""); - - if ($line !~ /^([A-Z][A-Za-z0-9_]+)=(.+)$/) { - # lowercase is uncommon, but: CONFIG_SCx200=m - Base::fatal "bad line in $name: $line"; - } - my $key = $1; - my $value = $2; - if ($value eq 'y' - || $value eq 'm' - || $value =~ /^\d+$/ - || $value =~ /^0x[0-9a-f]+$/ - || $value =~ /^"[-a-z0-9._\/]*"$/ - ) { - $kConfMap->{$key} = $value; - } - else { - Base::fatal "bad value in $name: $line"; - } - } - if (! close (IN)) { - Base::fatal "could not read kernel config file $name"; - } - $kConfList = [ sort keys %{$kConfMap} ]; -} - -# -# Map module name to kernel define. Module names here -# must use hyphen, not underscore. -# -my $moduleMap = { - # user interface devices - fbcon => 'FRAMEBUFFER_CONSOLE', - vesafb => 'FB_VESA', - serio => 'SERIO', - i8042 => 'SERIO_I8042', - usbhid => 'USB_HID', - - # file systems - ext2 => 'EXT2_FS', - ext3 => 'EXT3_FS', - jbd => 'JBD', - reiserfs => 'REISERFS_FS', - jfs => 'JFS_FS', - xfs => 'XFS_FS', - minix => 'MINIX_FS', - romfs => 'ROMFS_FS', - isofs => 'ISO9660_FS', - udf => 'UDF_FS', - fat => 'FAT_FS', - msdos => 'MSDOS_FS', - vfat => 'VFAT_FS', - # broken, and nonmodular: umsdos => 'UMSDOS_FS', - ntfs => 'NTFS_FS', - adfs => 'ADFS_FS', - affs => 'AFFS_FS', - hfs => 'HFS_FS', - hfsplus => 'HFSPLUS_FS', - befs => 'BEFS_FS', - bfs => 'BFS_FS', - efs => 'EFS_FS', - jffs => 'JFFS_FS', - jffs2 => 'JFFS2_FS', - cramfs => 'CRAMFS', - freevxfs => 'VXFS_FS', - hpfs => 'HPFS_FS', - qnx4 => 'QNX4FS_FS', - sysv => 'SYSV_FS', - ufs => 'UFS_FS', - nfs => 'NFS_FS', - smbfs => 'SMB_FS', - cifs => 'CIFS', - ncpfs => 'NCP_FS', - coda => 'CODA_FS', - kafs => 'AFS_FS', - - # device mapper: raid and lvm. - linear => 'MD_LINEAR', - raid0 => 'MD_RAID0', - raid1 => 'MD_RAID1', - raid10 => 'MD_RAID10', - raid5 => 'MD_RAID5', - raid6 => 'MD_RAID6', - multipath => 'MD_MULTIPATH', - faulty => 'MD_FAULTY', - md => 'BLK_DEV_MD', - 'dm-mod' => 'BLK_DEV_DM', - 'dm-crypt' => 'DM_CRYPT', - 'dm-snapshot' => 'DM_SNAPSHOT', - 'dm-mirror' => 'DM_MIRROR', - 'dm-zero' => 'DM_ZERO', - - # crypto - hmac => 'CRYPTO_HMAC', - 'crypto-null' => 'CRYPTO_NULL', - md4 => 'CRYPTO_MD4', - md5 => 'CRYPTO_MD5', - sha1 => 'CRYPTO_SHA1', - sha256 => 'CRYPTO_SHA256', - sha512 => 'CRYPTO_SHA512', - wp512 => 'CRYPTO_WP512', - des => 'CRYPTO_DES', - blowfish => 'CRYPTO_BLOWFISH', - twofish => 'CRYPTO_TWOFISH', - serpent => 'CRYPTO_SERPENT', - aes => 'CRYPTO_AES', - cast5 => 'CRYPTO_CAST5', - cast6 => 'CRYPTO_CAST6', - arc4 => 'CRYPTO_ARC4', - tea => 'CRYPTO_TEA', - khazad => 'CRYPTO_KHAZAD', - anubis => 'CRYPTO_ANUBIS', - deflate => 'CRYPTO_DEFLATE', - 'michael-mic' => 'CRYPTO_MICHAEL_MIC', - crc32c => 'CRYPTO_CRC32C', - tcrypt => 'CRYPTO_TEST', - - # IDE - 'ide-generic' => 'IDE_GENERIC', - 'ide-disk' => 'BLK_DEV_IDEDISK', - 'ide-cd' => 'BLK_DEV_IDECD', - 'ide-tape' => 'BLK_DEV_IDETAPE', - 'ide-floppy' => 'BLK_DEV_IDEFLOPPY', - - # SCSI - 'sd-mod' => 'BLK_DEV_SD', - 'st' => 'CHR_DEV_ST', - 'sr-mod' => 'BLK_DEV_SR', - 'sg' => 'CHR_DEV_SG', -}; - - -# -# all -- return a list of all known configuration defines -# -sub all () { - init; - return $kConfList; -} - -# -# allKnownModules -- return list of all module names for -# which a corresponding kernel define is known. -# -sub allKnownModules () { - init; - return [ sort keys %{$moduleMap} ]; -} - -# -# isBuiltIn -- true if the module is known to be compiled -# into the kernel. -# -sub isBuiltIn ($) { - my ($module) = @_; - init; - $module =~ s!_!-!g; - my $confKey = $moduleMap->{$module}; - if (! defined ($confKey)) { - return 0; - } - my $confVal = $kConfMap->{"CONFIG_$confKey"}; - if (! defined ($confVal)) { - return 0; - } - return ($confVal eq 'y'); -} - -1; - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/LabeledPartition.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/LabeledPartition.pm deleted file mode 100644 index 8c9d8a5..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/LabeledPartition.pm +++ /dev/null @@ -1,152 +0,0 @@ -#!perl -w -# -# LabeledPartition -- a partition with ext2 or other label. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# descriptors contain: -# - label - string such as volume name for matching in /etc/fstab -# - uuid - similar but hex -# - path - the block special file where the label was found -# - type - what kind of superblock the label was found in. -# -# NOTE: consider delegating this whole mess to findfs from the -# e2fsprogs package. That package can probe for an extensive -# set of superblocks, knows about LVM, but does not make fs type -# information available via the command line. -# -use strict; -use warnings; -package LabeledPartition; -use base 'Obj'; - - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('label', 'uuid', 'path', 'type'); -} - -sub label { return $_[0]->{label}; } -sub uuid { return $_[0]->{uuid}; } -sub type { return $_[0]->{type}; } -sub path { return $_[0]->{path}; } - -sub string { - my $self = shift; - my $label = ($self->label or '-'); - my $uuid = ($self->uuid or '-'); - my $type = $self->type; - my $path = $self->path; - return "labeled($type) $label, $uuid at $path"; -} - - -# -# try -- return descriptor for labeled fs, or undef, -# trying a number of formats for superblock. -# -sub try ($) { - my ($path) = @_; - my $result = undef; - my $fh; - if (! open ($fh, "<", "$path")) { - return $result; - } - binmode ($fh); - $result = tryExt2 ($fh, $path) unless defined $result; - $result = tryReiser ($fh, $path) unless defined $result; - - # ignore errors, could not have been very wrong - # if a working superblock came out of it. - close ($fh); - return $result; -} - - -# -# lets hope the sysadm labeled it in ascii not utf8. -# based on util-linux-2.12h mount; they have lots of other -# superblocks to match. Later. -# -sub tryExt2 ($$) { - my ($fh, $path) = @_; - my $result = undef; - - if (! seek ($fh, 1024, 0)) { - return $result; - } - # undef on read error - is this worth a warning? - my $superBlock; - my $rc = read ($fh, $superBlock, 1024); - if (! defined ($rc) || $rc != 1024) { - return $result; - } - my ($magic, $uuid, $label) = - unpack - "x[56] v x[34] x[VVV] H[32] Z[16]", - $superBlock; - - if ($magic == 0xEF53) { - $uuid = fancyUuid ($uuid); - $result = LabeledPartition->new ( - type => "ext2", - label => $label, - uuid => $uuid, - path => $path, - ); - } - return $result; -} - -# fancyUuid - given a hex uuid, add hyphens at conventional place. -sub fancyUuid ($) { - my ($uuid) = @_; - $uuid =~ s/^(.{8})(.{4})(.{4})(.{4})(.{12})$/$1-$2-$3-$4-$5/; - return lc ($uuid); -} - -sub tryReiser ($$) { - my ($fh, $path) = @_; - my $result = undef; - # offset in reisser 3.6 (3.5-3.5.10 had 8k) - if (! seek ($fh, (64*1024), 0)) { - return $result; - } - # undef on read error - is this worth a warning? - my $superBlock; - my $rc = read ($fh, $superBlock, 1024); - if (! defined ($rc) || $rc != 1024) { - return $result; - } - my ($magic, $uuid, $label) = - unpack - "x[52] Z[10] x[22] a[16] Z[16]", - $superBlock; - my $t = join ("", map { sprintf "%02x", ord($_) } split(//, $uuid)); - if ($magic eq "ReIsEr2Fs" || $magic eq "ReIsEr3Fs") { - $uuid = fancyUuid ($uuid); - $result = LabeledPartition->new ( - type => "reiserfs", - label => $label, - uuid => fancyUuid($t), - path => $path, - ); - } - return $result; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/LabeledPartitionTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/LabeledPartitionTab.pm deleted file mode 100644 index 9a2bfd8..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/LabeledPartitionTab.pm +++ /dev/null @@ -1,138 +0,0 @@ -#!perl -w -# -# LabeledPartitionTab -- all partitions with a label or uuid. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Found by looking at partitions of block devices in /sys that -# - have hardware backing them -# - are accessible via a block special file in /dev. -# - like mount(8), scan in two passes: raid devices first, -# ignore known uuids in second scan on underlying devices. -# -# - -use strict; -use warnings; -use Base; -use LabeledPartition; -package LabeledPartitionTab; - -my $lpTab = undef; -my $lpList = []; - - -sub init () { - if (defined ($lpTab)) { - return; - } - - $lpTab = {}; - for my $pass (0, 1) { - for my $abd (@{ActiveBlockDevTab::all()}) { - my $name = $abd->name(); - # must be accessible via special file ... - my $special = $abd->special; - next unless defined ($special); - next if $abd->hasPartitions(); - - # let's not look for labels on floppy, - # tends to hang. - # NOTE: perhaps not look for labels on any - # removable device, as marked by /sys? - next if ($name =~ /^fd\d+$/); - - if (($pass == 0) == ($name =~ /^md\d+$/)) { - my $descr = LabeledPartition::try ($special); - if (defined ($descr)) { - # - # Using a partially completed - # data structure. In first pass, - # the list empty, so nothing found. - # In second pass, we look at non-raid - # devices, and only raid devices - # are in the list. - # The tricky part is that the list - # used to find existing devices - # is updated only at the end of the - # pass, so that different devices - # with same uuid are entered in the - # table and will cause a proper error - # message if the uuid is later used - # to find a device. - # - if (! findByUuid ($descr->uuid)) { - my $devno = $abd->devno; - $lpTab->{$devno} = $descr; - } - } - } - } - $lpList = [ values %{$lpTab} ]; - } - -} - -sub all () { - init; - return $lpList; -} - -sub findByLabel ($) { - my ($label) = @_; - my $result = undef; - for my $lp (@{LabeledPartitionTab::all()}) { - if ($lp->label() eq $label) { - if (defined ($result)) { - Base::fatal ("duplicate file system label $label"); - } - $result = $lp; - } - } - return $result; -} - -sub findPathByLabel ($) { - my ($label) = @_; - my $lp = findByLabel ($label); - return $lp->path() if $lp; - return undef; -} - -sub findByUuid ($) { - my ($uuid) = @_; - my $result = undef; - $uuid = lc ($uuid); - for my $lp (@{LabeledPartitionTab::all()}) { - if ($lp->uuid() eq $uuid) { - if (defined ($result)) { - Base::fatal ("duplicate file system uuid $uuid"); - } - $result = $lp; - } - } - return $result; -} - -sub findPathByUuid ($) { - my ($uuid) = @_; - my $lp = findByUuid ($uuid); - return $lp->path() if $lp; - return undef; -} - -1; - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/LogicalVolume.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/LogicalVolume.pm deleted file mode 100644 index eaf069b..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/LogicalVolume.pm +++ /dev/null @@ -1,50 +0,0 @@ -#!perl -w -# -# LogicalVolume -- Logical Volume Descriptor -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# lvnam - logical volume name -# vgnam - volume group name -# devno - "major:minor" -# - -use strict; -use warnings; -package LogicalVolume; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('lvnam', 'vgnam', 'devno'); -} - -sub lvnam { return $_[0]->{lvnam}; } -sub vgnam { return $_[0]->{vgnam}; } -sub devno { return $_[0]->{devno}; } - -sub string { - my $self = shift; - my $lvnam = $self->lvnam; - my $vgnam = $self->vgnam; - my $devno = $self->devno; - my $str = "$lvnam in $vgnam at $devno"; - return $str; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/LvmTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/LvmTab.pm deleted file mode 100644 index 8346313..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/LvmTab.pm +++ /dev/null @@ -1,240 +0,0 @@ -#!perl -w -# -# LvmTab -- encapsulate LVM output -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# The trick here is to find all block devices that back a physical -# volume that is part of a volume group, where in that volume group -# there is a logical volume with maj:min that contains a filesystem -# to be mounted at boot time. In particular, if there are two -# volume groups, one for OS and one for database, you don't want -# the modules for the database drives on your initrd image. -# -# NOTE: There seem to be newer reporting tools (vgs, lvs, pvs) -# that produce more flexible reports for easier grepping than with -# the commands used here. -# -use strict; -use warnings; -use Base; -use LogicalVolume; -use VolumeGroup; -use PhysicalVolume; -package LvmTab; - - -my $lvMap = undef; -my $vgMap = undef; -my $pvMap = undef; -my $lvList = undef; -my $vgList = undef; -my $pvList = undef; - -sub init () { - if (defined ($lvMap)) { - return; - } - initLvMap (); - initVgMap (); - initPvMap (); - $lvList = [ values %{$lvMap} ]; - $vgList = [ values %{$vgMap} ]; - $pvList = [ values %{$pvMap} ]; -} - -sub allLogicalVolumes () { - init; - return $lvList; -} - -sub allVolumeGroups () { - init; - return $vgList; -} - -sub allPhysicalVolumes () { - init; - return $pvList; -} - -sub findLVByDevno ($) { - init; - return $lvMap->{$_[0]}; -} - -sub findVGByVgnam ($) { - init; - return $vgMap->{$_[0]}; -} - -sub findPVsByVgnam ($) { - my ($vgnam) = @_; - my $result = []; - for my $pv (@{allPhysicalVolumes()}) { - if ($pv->vgnam() eq $vgnam) { - push @{$result}, $pv; - } - } - return $result; -} - -# -# findPhysicalVolumePathsByLVDevno -- return a list of special file names -# that make up the physical volumes underlying a logical volume -# identified by maj:min, or undef if the devno seems not to be -# implemented by lvm. -# -sub findPVPathsByLVDevno ($) { - my ($devno) = @_; - my $lv = LvmTab::findLVByDevno ($devno); - if (! defined ($lv)) { - return undef; - } - my $vgnam = $lv->vgnam(); - if (! defined (LvmTab::findVGByVgnam($vgnam))) { - Base::fatal ("unknown LVM volume group $vgnam for Logical Volume $devno"); - } - my $result = []; - for my $pv (@{LvmTab::findPVsByVgnam ($vgnam)}) { - push @{$result}, $pv->pvnam(); - } - return $result; -} - - -# build map from devno to logical volume descriptor, -# built on lvdisplay. -# -# /dev/vg0/root:vg0:3:1:-1:1:2097152:256:-1:0:0:254:0 -# -sub initLvMap () { - $lvMap = {}; - if (! open (IN, "-|", "lvdisplay -c 2> /dev/null")) { - Base::fatal ("can't run lvdisplay"); - } - while (defined (my $line = )) { - chomp $line; - $line =~ s/^\s*//; - my @fields = split (/:/, $line, 500); - if ($#fields != 12) { - Base::fatal ("malformed output from lvdisplay"); - } - my $lvnam = $fields[0]; - my $vgnam = $fields[1]; - # Hide this, since lvdisplay output is inconsistent with docs. - my $lvsiz = $fields[6]; - my $major = $fields[11]; - my $minor = $fields[12]; - if ($major !~ /^\d+$/) { - Base::fatal ("malformed output (major) from lvdisplay"); - } - if ($minor !~ /^\d+$/) { - Base::fatal ("malformed output (minor) from lvdisplay"); - } - my $devno = "$major:$minor"; - if (exists ($lvMap->{$devno})) { - Base::fatal ("duplicate output ($devno) from lvdisplay"); - } - $lvMap->{$devno} = LogicalVolume->new ( - lvnam => $lvnam, - vgnam => $vgnam, - devno => $devno, - ); - } - if (! close (IN)) { - Base::fatal ("error running lvdisplay"); - } -} - -# build map from vgnam to volume group descriptor, -# built on vgdisplay. -# -# vg0:r/w:772:-1:0:7:6:-1:0:1:1:77799424:4096: \ -# 18994:6912:12082:MO1svc-uvVC-TFCL-qvrB-29wD-bh9K-V2e3U2 -# -sub initVgMap () { - $vgMap = {}; - if (! open (IN, "-|", "vgdisplay -c 2> /dev/null")) { - Base::fatal ("can't run vgdisplay"); - } - while (defined (my $line = )) { - chomp $line; - $line =~ s/^\s*//; - my @fields = split (/:/, $line, 500); - if ($#fields != 16) { - Base::fatal ("malformed output from vgdisplay"); - } - my ($vgnam, $vgacc, $vgstat, - $vgnum, $maxlv, $curlv, $openlv, - $maxlvsiz, $maxpvcnt, $curpvcnt, $actpvcnt, - $vgsiz, $extsiz, $extcnt, $extalloc, $extfree, - $uuid) - = @fields; - - if (exists ($vgMap->{$vgnam})) { - Base::fatal ("duplicate output ($vgnam) from vgdisplay"); - } - $vgMap->{$vgnam} = VolumeGroup->new ( - vgnam => $vgnam, - uuid => $uuid, - ); - } - if (! close (IN)) { - Base::fatal ("error running vgdisplay"); - } -} - -# build map from pvnam to physical volume descriptor, -# built on pvdisplay. -# -# /dev/sda3:vg0:155598848:-1:8:8:-1:4096:18994: \ -# 12082:6912:X5hDer-dYpy-jpAB-IhXQ-44j4-kyj0-cOQkyE -# -sub initPvMap () { - $pvMap = {}; - if (! open (IN, "-|", "pvdisplay -c 2> /dev/null")) { - Base::fatal ("can't run pvdisplay"); - } - while (defined (my $line = )) { - chomp $line; - $line =~ s/^\s*//; - my @fields = split (/:/, $line, 500); - if ($#fields != 11) { - Base::fatal ("malformed output from pvdisplay"); - } - my ($pvnam,$vgnam,$pvsiz,$pvnum,$pvstat, - $pvalloc,$lvcnt,$extsiz,$extcnt, - $extfree,$extalloc,$uuid) - = @fields; - - if (exists ($pvMap->{$pvnam})) { - Base::fatal ("duplicate output ($pvnam) from vgdisplay"); - } - $pvMap->{$pvnam} = PhysicalVolume->new ( - pvnam => $pvnam, - vgnam => $vgnam, - uuid => $uuid, - ); - } - if (! close (IN)) { - Base::fatal ("error running pvdisplay"); - } -} - -1; - - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile b/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile deleted file mode 100644 index e5d13b3..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile +++ /dev/null @@ -1,461 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# perl/Makefile. Generated from Makefile.in by configure. - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - - -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -# -# Makefile.incl -- shared defines between makefiles -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains package specific executables that may be included -# in the generated image -# - perldir contains perl modules to be included by the main program -# -# This cannot be simply passed from the master makefile; that would -# be invisible to automake. - - -srcdir = . -top_srcdir = .. - -pkgdatadir = $(datadir)/yaird -pkglibdir = $(libdir)/yaird -pkgincludedir = $(includedir)/yaird -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = /usr/bin/install -c -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -DIST_COMMON = $(dist_perl_DATA) $(srcdir)/../Makefile.incl \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in -subdir = perl -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(perldir)" \ - "$(DESTDIR)$(perldir)" -sbinSCRIPT_INSTALL = $(INSTALL_SCRIPT) -SCRIPTS = $(sbin_SCRIPTS) -SOURCES = -DIST_SOURCES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -dist_perlDATA_INSTALL = $(INSTALL_DATA) -nodist_perlDATA_INSTALL = $(INSTALL_DATA) -DATA = $(dist_perl_DATA) $(nodist_perl_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run aclocal-1.9 -AMDEP_FALSE = # -AMDEP_TRUE = -AMTAR = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run tar -AUTOCONF = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoconf -AUTOHEADER = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoheader -AUTOMAKE = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run automake-1.9 -AWK = gawk -CC = gcc -CCDEPMODE = depmode=gcc3 -CFLAGS = -g -O2 -CPPFLAGS = -CYGPATH_W = echo -DEFS = -DHAVE_CONFIG_H -DEPDIR = .deps -ECHO_C = -ECHO_N = -n -ECHO_T = -EXEEXT = -INITRD_TEMPLATE = Fedora -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_PROGRAM = ${INSTALL} -INSTALL_SCRIPT = ${INSTALL} -INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s -LDFLAGS = -LIBOBJS = -LIBS = -LTLIBOBJS = -MAKEINFO = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run makeinfo -OBJEXT = o -PACKAGE = yaird -PACKAGE_BUGREPORT = -PACKAGE_NAME = -PACKAGE_STRING = -PACKAGE_TARNAME = -PACKAGE_VERSION = -PATH_SEPARATOR = : -PERL = /usr/bin/perl -SET_MAKE = -SHELL = /bin/sh -STRIP = -VERSION = 0.0.5 -XMLTO = /usr/bin/xmlto -ac_ct_CC = gcc -ac_ct_STRIP = -am__fastdepCC_FALSE = # -am__fastdepCC_TRUE = -am__include = include -am__leading_dot = . -am__quote = -am__tar = ${AMTAR} chof - "$$tardir" -am__untar = ${AMTAR} xf - -bindir = ${exec_prefix}/bin -build_alias = -datadir = ${prefix}/share -exec_prefix = ${prefix} -host_alias = -includedir = ${prefix}/include -infodir = ${prefix}/info -install_sh = /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/install-sh -libdir = ${exec_prefix}/lib -libexecdir = ${exec_prefix}/libexec -localstatedir = ${prefix}/var -mandir = ${prefix}/man -mkdir_p = mkdir -p -- -oldincludedir = /usr/include -prefix = /usr/local -program_transform_name = s,x,x, -sbindir = ${exec_prefix}/sbin -sharedstatedir = ${prefix}/com -sysconfdir = ${prefix}/etc -target_alias = -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl -sbin_SCRIPTS = yaird -CLEANFILES = $(sbin_SCRIPTS) Conf.pm -edit = sed \ - -e 's!@PERL\@!$(PERL)!' \ - -e 's!@PACKAGE\@!$(PACKAGE)!' \ - -e 's!@VERSION\@!$(VERSION)!' \ - -e 's!@AUXDIR\@!$(auxdir)!' \ - -e 's!@PERLDIR\@!$(perldir)!' - - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - main.pl \ - Conf.pm.in - -nodist_perl_DATA = \ - Conf.pm - -dist_perl_DATA = \ - ActionList.pm \ - ActiveBlockDev.pm \ - ActiveBlockDevTab.pm \ - Base.pm \ - Blacklist.pm \ - BlockSpecialFile.pm \ - BlockSpecialFileTab.pm \ - FsEntry.pm \ - FsOpts.pm \ - FsTab.pm \ - Hardware.pm \ - IdeDev.pm \ - Image.pm \ - Input.pm \ - InputTab.pm \ - KConfig.pm \ - LabeledPartition.pm \ - LabeledPartitionTab.pm \ - LogicalVolume.pm \ - LvmTab.pm \ - ModDep.pm \ - ModDepTab.pm \ - Obj.pm \ - Pack.pm \ - PciDev.pm \ - PciMapEntry.pm \ - PciTab.pm \ - PhysicalVolume.pm \ - Plan.pm \ - RaidDev.pm \ - RaidTab.pm \ - ScsiDev.pm \ - SharedLibraries.pm \ - TestSet.pm \ - UsbDev.pm \ - UsbMapEntry.pm \ - UsbTab.pm \ - VolumeGroup.pm - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.incl $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu perl/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu perl/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-sbinSCRIPTS: $(sbin_SCRIPTS) - @$(NORMAL_INSTALL) - test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)" - @list='$(sbin_SCRIPTS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(sbinSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(sbindir)/$$f'"; \ - $(sbinSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(sbindir)/$$f"; \ - else :; fi; \ - done - -uninstall-sbinSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(sbin_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \ - rm -f "$(DESTDIR)$(sbindir)/$$f"; \ - done -uninstall-info-am: -install-dist_perlDATA: $(dist_perl_DATA) - @$(NORMAL_INSTALL) - test -z "$(perldir)" || $(mkdir_p) "$(DESTDIR)$(perldir)" - @list='$(dist_perl_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(dist_perlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(perldir)/$$f'"; \ - $(dist_perlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(perldir)/$$f"; \ - done - -uninstall-dist_perlDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_perl_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(perldir)/$$f'"; \ - rm -f "$(DESTDIR)$(perldir)/$$f"; \ - done -install-nodist_perlDATA: $(nodist_perl_DATA) - @$(NORMAL_INSTALL) - test -z "$(perldir)" || $(mkdir_p) "$(DESTDIR)$(perldir)" - @list='$(nodist_perl_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(nodist_perlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(perldir)/$$f'"; \ - $(nodist_perlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(perldir)/$$f"; \ - done - -uninstall-nodist_perlDATA: - @$(NORMAL_UNINSTALL) - @list='$(nodist_perl_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(perldir)/$$f'"; \ - rm -f "$(DESTDIR)$(perldir)/$$f"; \ - done -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/.. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(SCRIPTS) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(perldir)" "$(DESTDIR)$(perldir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-dist_perlDATA install-nodist_perlDATA - -install-exec-am: install-sbinSCRIPTS - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-dist_perlDATA uninstall-info-am \ - uninstall-nodist_perlDATA uninstall-sbinSCRIPTS - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-dist_perlDATA install-exec install-exec-am \ - install-info install-info-am install-man \ - install-nodist_perlDATA install-sbinSCRIPTS install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-dist_perlDATA \ - uninstall-info-am uninstall-nodist_perlDATA \ - uninstall-sbinSCRIPTS - - -yaird: main.pl - $(edit) < $< > $@ - chmod ugo+x $@ - -Conf.pm: Conf.pm.in - $(edit) < $< > $@ -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile.am b/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile.am deleted file mode 100644 index cbf2e22..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile.am +++ /dev/null @@ -1,86 +0,0 @@ -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -include ../Makefile.incl - -sbin_SCRIPTS = yaird -CLEANFILES = $(sbin_SCRIPTS) Conf.pm - -edit = sed \ - -e 's!@PERL\@!$(PERL)!' \ - -e 's!@PACKAGE\@!$(PACKAGE)!' \ - -e 's!@VERSION\@!$(VERSION)!' \ - -e 's!@AUXDIR\@!$(auxdir)!' \ - -e 's!@PERLDIR\@!$(perldir)!' - -yaird: main.pl - $(edit) < $< > $@ - chmod ugo+x $@ - -Conf.pm: Conf.pm.in - $(edit) < $< > $@ - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - main.pl \ - Conf.pm.in - -nodist_perl_DATA = \ - Conf.pm - -dist_perl_DATA = \ - ActionList.pm \ - ActiveBlockDev.pm \ - ActiveBlockDevTab.pm \ - Base.pm \ - Blacklist.pm \ - BlockSpecialFile.pm \ - BlockSpecialFileTab.pm \ - FsEntry.pm \ - FsOpts.pm \ - FsTab.pm \ - Hardware.pm \ - IdeDev.pm \ - Image.pm \ - Input.pm \ - InputTab.pm \ - KConfig.pm \ - LabeledPartition.pm \ - LabeledPartitionTab.pm \ - LogicalVolume.pm \ - LvmTab.pm \ - ModDep.pm \ - ModDepTab.pm \ - Obj.pm \ - Pack.pm \ - PciDev.pm \ - PciMapEntry.pm \ - PciTab.pm \ - PhysicalVolume.pm \ - Plan.pm \ - RaidDev.pm \ - RaidTab.pm \ - ScsiDev.pm \ - SharedLibraries.pm \ - TestSet.pm \ - UsbDev.pm \ - UsbMapEntry.pm \ - UsbTab.pm \ - VolumeGroup.pm - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile.in b/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile.in deleted file mode 100644 index c424a17..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Makefile.in +++ /dev/null @@ -1,461 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# -# Makefile.am -- installation and packaging instructions -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -# -# Makefile.incl -- shared defines between makefiles -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains package specific executables that may be included -# in the generated image -# - perldir contains perl modules to be included by the main program -# -# This cannot be simply passed from the master makefile; that would -# be invisible to automake. - - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -DIST_COMMON = $(dist_perl_DATA) $(srcdir)/../Makefile.incl \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in -subdir = perl -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(perldir)" \ - "$(DESTDIR)$(perldir)" -sbinSCRIPT_INSTALL = $(INSTALL_SCRIPT) -SCRIPTS = $(sbin_SCRIPTS) -SOURCES = -DIST_SOURCES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -dist_perlDATA_INSTALL = $(INSTALL_DATA) -nodist_perlDATA_INSTALL = $(INSTALL_DATA) -DATA = $(dist_perl_DATA) $(nodist_perl_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INITRD_TEMPLATE = @INITRD_TEMPLATE@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMLTO = @XMLTO@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build_alias = @build_alias@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host_alias = @host_alias@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl -sbin_SCRIPTS = yaird -CLEANFILES = $(sbin_SCRIPTS) Conf.pm -edit = sed \ - -e 's!@PERL\@!$(PERL)!' \ - -e 's!@PACKAGE\@!$(PACKAGE)!' \ - -e 's!@VERSION\@!$(VERSION)!' \ - -e 's!@AUXDIR\@!$(auxdir)!' \ - -e 's!@PERLDIR\@!$(perldir)!' - - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - main.pl \ - Conf.pm.in - -nodist_perl_DATA = \ - Conf.pm - -dist_perl_DATA = \ - ActionList.pm \ - ActiveBlockDev.pm \ - ActiveBlockDevTab.pm \ - Base.pm \ - Blacklist.pm \ - BlockSpecialFile.pm \ - BlockSpecialFileTab.pm \ - FsEntry.pm \ - FsOpts.pm \ - FsTab.pm \ - Hardware.pm \ - IdeDev.pm \ - Image.pm \ - Input.pm \ - InputTab.pm \ - KConfig.pm \ - LabeledPartition.pm \ - LabeledPartitionTab.pm \ - LogicalVolume.pm \ - LvmTab.pm \ - ModDep.pm \ - ModDepTab.pm \ - Obj.pm \ - Pack.pm \ - PciDev.pm \ - PciMapEntry.pm \ - PciTab.pm \ - PhysicalVolume.pm \ - Plan.pm \ - RaidDev.pm \ - RaidTab.pm \ - ScsiDev.pm \ - SharedLibraries.pm \ - TestSet.pm \ - UsbDev.pm \ - UsbMapEntry.pm \ - UsbTab.pm \ - VolumeGroup.pm - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.incl $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu perl/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu perl/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -install-sbinSCRIPTS: $(sbin_SCRIPTS) - @$(NORMAL_INSTALL) - test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)" - @list='$(sbin_SCRIPTS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(sbinSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(sbindir)/$$f'"; \ - $(sbinSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(sbindir)/$$f"; \ - else :; fi; \ - done - -uninstall-sbinSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(sbin_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \ - rm -f "$(DESTDIR)$(sbindir)/$$f"; \ - done -uninstall-info-am: -install-dist_perlDATA: $(dist_perl_DATA) - @$(NORMAL_INSTALL) - test -z "$(perldir)" || $(mkdir_p) "$(DESTDIR)$(perldir)" - @list='$(dist_perl_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(dist_perlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(perldir)/$$f'"; \ - $(dist_perlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(perldir)/$$f"; \ - done - -uninstall-dist_perlDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_perl_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(perldir)/$$f'"; \ - rm -f "$(DESTDIR)$(perldir)/$$f"; \ - done -install-nodist_perlDATA: $(nodist_perl_DATA) - @$(NORMAL_INSTALL) - test -z "$(perldir)" || $(mkdir_p) "$(DESTDIR)$(perldir)" - @list='$(nodist_perl_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(nodist_perlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(perldir)/$$f'"; \ - $(nodist_perlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(perldir)/$$f"; \ - done - -uninstall-nodist_perlDATA: - @$(NORMAL_UNINSTALL) - @list='$(nodist_perl_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(perldir)/$$f'"; \ - rm -f "$(DESTDIR)$(perldir)/$$f"; \ - done -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/.. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(SCRIPTS) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(perldir)" "$(DESTDIR)$(perldir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-dist_perlDATA install-nodist_perlDATA - -install-exec-am: install-sbinSCRIPTS - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-dist_perlDATA uninstall-info-am \ - uninstall-nodist_perlDATA uninstall-sbinSCRIPTS - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-dist_perlDATA install-exec install-exec-am \ - install-info install-info-am install-man \ - install-nodist_perlDATA install-sbinSCRIPTS install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-dist_perlDATA \ - uninstall-info-am uninstall-nodist_perlDATA \ - uninstall-sbinSCRIPTS - - -yaird: main.pl - $(edit) < $< > $@ - chmod ugo+x $@ - -Conf.pm: Conf.pm.in - $(edit) < $< > $@ -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/ModDep.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/ModDep.pm deleted file mode 100644 index bb9b377..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/ModDep.pm +++ /dev/null @@ -1,55 +0,0 @@ -#!perl -w -# -# ModDep -- encapsulate single line from modules.dep. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# name - normalised name of the module. -# file - the file to load for this kernel module -# origin - file:line where this was defined -# deps - list of names of modules this module depends on. -# -use strict; -use warnings; -use Base; -package ModDep; -use base 'Obj'; - - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('name', 'file', 'origin', 'deps'); -} - -sub name { return $_[0]->{name}; } -sub file { return $_[0]->{file}; } -sub origin { return $_[0]->{origin}; } -sub deps { return $_[0]->{deps}; } - -sub string { - my $self = shift; - my $name = $self->name; - my $file = $self->file; - my $origin = $self->origin; - my $deps = join (",", @{$self->deps}); - - return "$name($origin) at $file need $deps." -} - - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/ModDepTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/ModDepTab.pm deleted file mode 100644 index 10615e1..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/ModDepTab.pm +++ /dev/null @@ -1,230 +0,0 @@ -#!perl -w -# -# ModDepTab -- encapsulate modprobe(8) -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Most important routine is resolve(), which returns a list of -# modules with dependencies resolved. -# -# For every module, we have a list of prerequisite modules; -# these prerequisites are in no particular order: the prerequisites -# may have dependencies among themselves that are not satisfied -# by the order in the list. -# -# This emulates modprobe(8) by interpreting /lib/modules/2.6.x/modules.dep. -# Input format: -# - characters are bytes, no messing with utf-8. -# - backslash at end of line merges lines -# - other \x get replaced by x -# - ^\s*# lines are ignored -# - lines without : are ignored. -# This means "aap: noot.#7" is a valid dependency. -# The backslash interpretation is mostly for modprobe.conf; -# depmod does not generate it. -# -# Modprobe determines module name by dropping everything after dot: -# "/lib/noot.#7" is module "noot". We'll adopt the same policy. -# -# Note that depmod only grabs modules ending in .ko or .ko.gz; -# we'll issue a warning if a module has a different suffix. -# -# Note that modprobe does not discriminate against modules outside -# /lib/modules: if it's listed in modules.dep, it's a valid module. -# -# Note that redhat has a convention that modules in .../update take -# precedence over other modules with the same name. Depmod implements -# this by not putting modules that are overridden in modules.dep. -# Thus modprobe and yaird need no special action to support that convention. -# -# The logic modprobe uses to determine which modules to load: -# - replace hyphens with underscore -# - read config specified on command line, -# OR modprobe.conf OR modprobe.d, only first one found. -# Remember all "install" and "option" directives, -# rewrite module name if an alias matches -# - if no alias found and the name is of the form 'symbol:xxx': -# look in modules.symbols to resolve to a module name -# - if alias found: -# make a list of modules to load, based on modules.dep -# - else: -# make a list of modules to load, based on modules.dep -# if that turned up no modules AND there was no install cmd: -# - look in modules.aliases to resolve to modulename -# - make a list of modules to load, based on modules.dep -# - if the list to load is empty AND there was no install command: -# - complain. -# # in insmod(): -# - recurse over the module list, most basic stuff first, doing: -# - if there is a command for this module name: -# execute it -# - else: -# load the module -# -# We probably should replace this perl module with parsing the -# output of modprobe --verbose --dry-run --show-depends --set-version, -# but that requires changes in the calling modules, and there's discussion -# of adding blacklist support to modprobe, so for now, let's not. -# - -use strict; -use warnings; -use Base; -use Conf; -use ModDep; -use KConfig; - -package ModDepTab; - -my $modDepTab = undef; -my $modDepList = undef; - -sub init () { - if (defined ($modDepTab)) { - return; - } - $modDepTab = {}; - my $name = Conf::get('modDep'); - if (! open (IN, "<", "$name")) { - Base::fatal ("can't open $name"); - } - my $lineNo = 0; - while (defined (my $line = )) { - $lineNo++; - chomp $line; - - # it would be nice to ignore leading and trailing - # space, and to allow # comment at end of line. - # however, that's not how modprobe does it, - # so we shouldn't either. - next if $line =~ /^\s*#/; - - if ($line =~ /^(.*):\s*(.*)$/) { - my $file = $1; - my $val = $2; - my $key = $file; - - if ($key !~ /\.ko$/ && $key !~ /\.ko\.gz/) { - Base::warning ("$name:$lineNo: odd module name: $key"); - } - $key =~ s!.*/!!; - $key =~ s!\..*$!!; - $key =~ s!_!-!g; - - my @fields = split (/\s+/, $val); - for my $i (0 .. $#fields) { - # strip pathname and extension from - # required modules, normalise underscore. - # dont complain about odd suffix. - $fields[$i] =~ s!.*/!!; - $fields[$i] =~ s!\..*$!!; - $fields[$i] =~ s!_!-!g; - } - - my $conflict = $modDepTab->{$key}; - if (defined ($conflict)) { - my $origin = $conflict->origin(); - Base::warning ("$name:$lineNo: $key overrules earlier definition at $origin"); - } - - $modDepTab->{$key} = ModDep->new ( - name => $key, - file => $file, - origin => "$name:$lineNo", - deps => [ @fields ], - ); - } - else { - Base::warning ("$name:$lineNo: malformed line ignored"); - } - - } - if (! close (IN)) { - Base::fatal ("could not read $name"); - } - $modDepList = [ sort keys %{$modDepTab} ]; -} - -sub all () { - init; - return $modDepList; -} - -sub findByModnam ($) { - my ($module) = @_; - init; - $module =~ s!_!-!g; - my $result = $modDepTab->{$module}; - if (! defined ($result)) { - Base::fatal ("can't find dependencies for $module"); - } - return $result; -} - - -# return a copy of the list with prerequisite modules inserted -sub resolve ($) { - my ($modList) = @_; - Base::debug ("resolving: " . join (',', @{$modList}) . '.'); - my $result = []; - resolve2 ($modList, $result); - Base::debug ("resolved to: " . join (',', @{$result}) . '.'); - return $result; -} - -# -# resolve2 -- given a list of modules, that may have dependencies -# (even among themselves) and a list of modules that is in proper order -# to be loaded without unresolved dependencies, -# add everything from the first list (plus their dependencies) -# to the second list, without introducing duplicates. -# -sub resolve2 ($$); -sub resolve2 ($$) { - my ($modList, $done) = @_; -OUTER: for my $module (@{$modList}) { - # - # Stuff that is compiled into the kernel cannot - # add or resolve dependencies, and obviously don't - # need to be loaded. Drop them from the list. - # - if (KConfig::isBuiltIn ($module)) { - next OUTER; - } - # - # if the module is already there, don't add again - # - for my $d (@{$done}) { - if ($d eq $module) { - next OUTER; - } - } - # - # recursively add prerequisites - # - my $deps = ModDepTab::findByModnam($module); - if (! defined ($deps)) { - Base::fatal ("can't find dependencies for $module"); - } - resolve2 ($deps->deps, $done); - # - # and module itself - # - push @{$done}, $module; - } -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Obj.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Obj.pm deleted file mode 100644 index 5e6c5bd..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Obj.pm +++ /dev/null @@ -1,61 +0,0 @@ -#!perl -w -# -# Obj -- basic object stuff -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# The new() function takes a hash as argument, used to do object -# initialisation. Initialisation is delegated to fill() in derived -# classes. Fill() is expected to use takeArgs() to claim those -# initialisation args it's interested in; other args are left for -# fill() functions further down the inheritance chain. Arguments -# may have undef as value. -# - -use strict; -use warnings; -use Base; -package Obj; - -sub new { - my $class = shift; - my $self = {}; - $self->{'_args'} = { @_ }; - bless ($self, $class); - $self->fill(); - my $bad = join (', ', keys %{$self->{'_args'}}); - if ($bad ne '') { - Base::bug "Unknown constructor args: $bad"; - } - return $self; -} - -sub fill { - my $self = shift; - # Derived classes can claim arguments like so: - # self->SUPER::fill(); - # $self->takeArg ('a'); -} - -sub takeArgs { - my ($self, @fields) = @_; - for my $field (@fields) { - Base::assert (exists ($self->{'_args'}{$field})); - $self->{$field} = delete $self->{'_args'}{$field}; - } -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Pack.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Pack.pm deleted file mode 100644 index bcf066b..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Pack.pm +++ /dev/null @@ -1,133 +0,0 @@ -#!perl -w -# -# Pack -- create an image and pack in suitable format. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# knownFormat -- true if it's a known format -# package -- given format, image descriptor and destination, -# put the image in the destination in requested format. -# -# Supported formats: -# -- directory, for debugging -# -- cramfs, as used in Debian initrd -# -- cpio, actually cpio.gz, as used in Fedora initramfs. -# -# This module takes care not to leave a partially completed destination -# on error. -# - -use strict; -use warnings; -use File::Temp; -use Base; -use Image; - -package Pack; - -sub packDirectory ($$); -sub packCramfs ($$); -sub packCpio ($$); - -my $packagers = { - directory => \&packDirectory, - cramfs => \&packCramfs, - cpio => \&packCpio, -}; - -sub knownFormat ($) { - return exists ($packagers->{$_[0]}); -} - -sub package ($$$) { - my ($image, $format, $destination) = @_; - Base::assert (knownFormat ($format)); - - # - # Temp based on destination,to increase likelyhood - # of rename being atomic. - # - my $template = "$destination.XXXXXXXXXXXXXXXX"; - my $tempdir = File::Temp::tempdir ($template, CLEANUP => 1); - $image->buildHere ($tempdir); - - $packagers->{$format}($tempdir, $destination); -} - - - -sub packDirectory ($$) { - my ($tempdir, $destination) = @_; - - if (! rename ($tempdir, $destination)) { - Base::fatal ("could not move $tempdir to $destination"); - } -} - - - -sub packCramfs ($$) { - my ($tempdir, $destination) = @_; - - my $template = "$destination.XXXXXXXXXXXXXXXX"; - my ($fh, $tempfile) = File::Temp::tempfile ($template, UNLINK => 1); - if (system ("/usr/sbin/mkcramfs -E '$tempdir' '$tempfile' > /dev/null") != 0) { - Base::fatal ("mkcramfs $tempdir failed"); - } - if (! rename ($tempfile, $destination)) { - Base::fatal ("could not move $tempfile to $destination"); - } -} - - - -sub packCpio ($$) { - my ($tempdir, $destination) = @_; - - # - # Note how the tempfile can be a relative path, and how cpio - # depends on a chdir into tempdir. Thus, cpio output tempfile - # should *not* be based on a template. - # - - my $template = "$destination.XXXXXXXXXXXXXXXX"; - my ($fh, $fromCpio) = File::Temp::tempfile (UNLINK => 1); - my ($fh2, $fromGzip) = File::Temp::tempfile ($template, UNLINK => 1); - - # - # There are multiple universal unique portable archive formats, - # each with the same magic number. - # cpio(1) mentions newc and odc; these differ in size of - # fields of header. Whether -oc generates newc or odc depends - # on a define in cpio, with Fedora picking a different default - # than Debian. The kernel accepts only newc format (see initramfs.c). - # Use the -H newc option to get the right format, regardless - # of which default the distro chooses for -c. - # - if (system ("cd '$tempdir' && find . | cpio --quiet -o -H newc > $fromCpio")) { - # $! is useless here: inappropriate ioctl for device ... - Base::fatal ("cpio $tempdir failed"); - } - if (system ("gzip -9 < $fromCpio > $fromGzip")) { - Base::fatal ("gzip $tempdir failed"); - } - - if (! rename ($fromGzip, $destination)) { - Base::fatal ("could not move $fromGzip to $destination"); - } -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/PciDev.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/PciDev.pm deleted file mode 100644 index 28238c6..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/PciDev.pm +++ /dev/null @@ -1,46 +0,0 @@ -#!perl -w -# -# PciDev -- the probed values for a PCI device, as found in /sys. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -use strict; -use warnings; -use Base; -package PciDev; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('path'); - my $path = $self->path; - $self->{vendor} = Base::getHexFile ("$path/vendor"); - $self->{device} = Base::getHexFile ("$path/device"); - $self->{subvendor} = Base::getHexFile ("$path/subsystem_vendor"); - $self->{subdevice} = Base::getHexFile ("$path/subsystem_device"); - $self->{class} = Base::getHexFile ("$path/class"); -} - -sub path { return $_[0]->{path}; } -sub vendor { return $_[0]->{vendor}; } -sub device { return $_[0]->{device}; } -sub subvendor { return $_[0]->{subvendor}; } -sub subdevice { return $_[0]->{subdevice}; } -sub class { return $_[0]->{class}; } - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/PciMapEntry.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/PciMapEntry.pm deleted file mode 100644 index 1dad7d6..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/PciMapEntry.pm +++ /dev/null @@ -1,65 +0,0 @@ -#!perl -w -# -# PciMapEntry - iencapsulate a line form modules.pcimap. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# Knows how to match, can return module name. -# - -use strict; -use warnings; -use Base; -package PciMapEntry; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('module', 'vendor', 'device', 'subvendor', - 'subdevice', 'class', 'classmask', 'driver_data'); -} - -sub module { return $_[0]->{module}; } - -# we could do the PCI_ANY processing in init, -# if it turns out to be time critical. -my $PCI_ANY = 0xffffffff; -sub matches { - my ($self, $dev) = @_; - if ($self->{vendor} != $PCI_ANY && $self->{vendor} != $dev->vendor) { - return 0; - } - if ($self->{device} != $PCI_ANY && $self->{device} != $dev->device) { - return 0; - } - if ($self->{subvendor} != $PCI_ANY - && $self->{subvendor} != $dev->subvendor) { - return 0; - } - if ($self->{subdevice} != $PCI_ANY - && $self->{subdevice} != $dev->subdevice) { - return 0; - } - if ($self->{class} == ($dev->class & $self->{classmask})) { - return 1; - } - return 0; -} - -1; - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/PciTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/PciTab.pm deleted file mode 100644 index 241f76c..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/PciTab.pm +++ /dev/null @@ -1,89 +0,0 @@ -#!perl -w -# -# PciTab -- encapsulate modules.pcimap -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -use strict; -use warnings; -use Base; -use Conf; -use PciMapEntry; -package PciTab; - -my $pciList = undef; - -# Parse this: -# # pci module vendor device subvendor subdevice class class_mask driver_data -# parport_pc 0x00001106 0x00000686 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0 -# parport_pc 0x00001106 0x00008231 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0 - -sub init () { - if (defined ($pciList)) { - return; - } - $pciList = []; - my $name = Conf::get('pciMap'); - if (! open (IN, "<", "$name")) { - Base::fatal ("can't open pci module list $name"); - } - while (defined (my $line = )) { - chomp $line; - $line =~ s/#.*//; - $line =~ s/^\s+//; - $line =~ s/\s+$//; - next if ($line eq ""); - my @fields = split (/\s+/, $line, 999); - if ($#fields != 7) { - Base::fatal "malformed line in pci module list $name"; - } - push @{$pciList}, PciMapEntry->new ( - module => $fields[0], - vendor => hex ($fields[1]), - device => hex ($fields[2]), - subvendor => hex ($fields[3]), - subdevice => hex ($fields[4]), - class => hex ($fields[5]), - classmask => hex ($fields[6]), - driver_data => hex ($fields[7]), - ); - } - if (! close (IN)) { - Base::fatal "could not read pci module list $name"; - } -} - -sub all () { - init; - return $pciList; -} - -# given pathname in devices tree, find module name in PCI map as a list. -sub find ($) { - my ($dev) = @_; - my @result = (); - for my $pme (@{PciTab::all()}) { - if ($pme->matches ($dev)) { - push @result, $pme->module; - } - } - return [@result]; -} - - -1; - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/PhysicalVolume.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/PhysicalVolume.pm deleted file mode 100644 index 4d8fc4f..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/PhysicalVolume.pm +++ /dev/null @@ -1,49 +0,0 @@ -#!perl -w -# -# PhysicalVolume -- Physical Volume Descriptor -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# pvnam - physical volume name -# vgnam - volume group name -# devno - "major:minor" -# - -use strict; -use warnings; -package PhysicalVolume; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('pvnam', 'vgnam', 'uuid'); -} - -sub pvnam { return $_[0]->{pvnam}; } -sub vgnam { return $_[0]->{vgnam}; } -sub uuid { return $_[0]->{uuid}; } - -sub string { - my $self = shift; - my $pvnam = $self->pvnam; - my $vgnam = $self->vgnam; - my $uuid = $self->uuid; - my $str = "$pvnam in $vgnam, $uuid"; - return $str; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/Plan.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/Plan.pm deleted file mode 100644 index 7f7d304..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/Plan.pm +++ /dev/null @@ -1,311 +0,0 @@ -#!perl -w -# -# Plan -- plan what to put on the initrd image -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# -use strict; -use warnings; -use Base; -use FsTab; -use ActiveBlockDevTab; -use LvmTab; -use Hardware; -use ModDepTab; -use RaidTab; -use Image; -use Blacklist; -use ActionList; - -package Plan; - - - -# -# modulesExpand -- given a list of modules, return an ordered -# list of modules, with blacklisted items deleted, -# compiled in modules deleted, and any dependencies resolved. -# A module found by eg PCI matching and dropped because of blacklisting -# may be added later to resolve a dependency. -# -sub modulesExpand ($) { - my ($modlist) = (@_); - - my $ml = []; - for my $moduleName (@{$modlist}) { - if (Blacklist::isBlacklisted ($moduleName)) { - next; - } - push @{$ml}, $moduleName; - } - - # resolve drops compiled-in stuff. - my $fullModList = ModDepTab::resolve ($ml); - - return $fullModList; -} - - - -# -# addModules -- given an actionList and list of modules, -# add actions to load them all, unless blacklisted or compiled in. -# -sub addModules ($$) { - my ($actionList, $modList) = @_; - - my $fullModList = modulesExpand ($modList); - for my $moduleName (@{$fullModList}) { - my $modDep = ModDepTab::findByModnam ($moduleName); - Base::assert (defined ($modDep)); - $actionList->add ("insmod", $modDep->file); - } -} - - -# -# addHardware -- given hardware path, potentially undef, -# add required actions to the action list. -# -sub addHardware ($$) { - my ($actionList, $hardware) = @_; - if (defined ($hardware)) { - my $modList = Hardware::moduleList ($hardware); - addModules ($actionList, $modList); - Base::info ("hardware: completed $hardware"); - } -} - - -# -# addDevicePlan -- given an active block device, add to actionList -# a sequence to make it into a working device file, suitable for mounting. -# For eg LVM modules this means loading dm-mod, but also it -# means recursively making the underlying devices available. -# There is a possibility of loops here (consider an fstab -# where /a is a loopback mount of /a/disk.img); we want do -# detect these loops and produce an error. Also, we want to -# avoid double work: if five lvm logical volumes use the same -# underlying raid device, there's not much point in running -# mdadm five times. -# There are some contraints on the name of the device file; -# see yspecial in ActiveBlockDev. -# -# actionList - add actions here -# device - the active block device to be made available. -# done - list of devices that can be assumed to be available; -# updated in place. -# working - list of devices we're working on, excluding path. -# -sub addDevicePlan ($$$$); -sub addDevicePlan ($$$$) { - my ($actionList, $device, $done, $working) = @_; - - for my $w (@{$working}) { - if ($w eq $device) { - Base::fatal ("loop detected: $device\n"); - } - } - for my $w (@{$done}) { - if ($w eq $device) { - return; - } - } - - my $name = $device->name; - my $parent = $device->parent; - my $devno = $device->devno; - my $hardware = $device->hw; - my $yspecial = $device->yspecial; - - if (defined ($parent)) { - # - # It's a partition. To make it available, do the whole - # device, then make a special file for the partition. - # - addDevicePlan($actionList,$parent,$done,[$device,@{$working}]); - my $pname = $parent->name; - $actionList->add ("mkbdev", $yspecial, - sysname => "$pname/$name"); - } - elsif ($name =~ /^dm-\d+$/) { - # - # To start an LVM device, make available the underlying - # physical volumes, then start the volume group. - # creating the block special file is a side effect of - # starting the volume group. - # The activeBlockDev->yspecial() method is choosen such - # that the name returned matches the name of the block special - # file generated by vgchange. - # Physical volumes are named by the block - # special file that gives access to it. - # - my $lv = LvmTab::findLVByDevno ($devno); - if (! defined ($lv)) { - Base::fatal ("Can't find LVM info for $name"); - } - my $vgnam = $lv->vgnam; - for my $physVol (@{LvmTab::findPVsByVgnam($vgnam)}) - { - my $pdev = ActiveBlockDevTab::findByPath - ($physVol->pvnam); - addDevicePlan ($actionList, $pdev, $done, - [$device,@{$working}]); - } - addModules ($actionList, [ "dm-mod" ]); - $actionList->add ("vgchange", $vgnam); - } - elsif ($name =~ /^md\d+$/) { - # - # To start an md raid device, start the underlying hardware, - # load raid module, then do mdadm --assemble. - # - my $rd = RaidTab::findByDevno ($devno); - if (! defined ($rd)) { - Base::fatal ("Can't find Raid info for $name"); - } - my $components = []; - for my $subDiskPath (@{$rd->devices()}) { - my $subDisk = ActiveBlockDevTab::findByPath - ($subDiskPath); - addDevicePlan ($actionList, $subDisk, - $done,[$device,@{$working}]); - my $subName = $subDisk->yspecial; - push @{$components}, {dev => $subName}; - } - addModules ($actionList, [ $rd->level ]); - - my $uuid = $rd->uuid; - my ($major, $minor) = ($devno =~ /(\d+):(\d+)/); - - $actionList->add ("mdadm", $yspecial, - major => $major, - minor => $minor, - uuid => $uuid, - components => $components, - ); - } - elsif ($name =~ /^hd[a-z]$/ - || $name =~ /^sd[a-z]$/) - { - # IDE or SCSI. - addHardware ($actionList, $hardware); - $actionList->add ("mkbdev", $yspecial, sysname => "$name"); - } - elsif ($name =~ /^fd\d+$/) { - addModules ($actionList, [ "floppy" ]); - $actionList->add ("mkbdev", $yspecial, sysname => "$name"); - } - else { - Base::fatal ("unsupported device required: $name"); - } - - push @{$done}, $device; -} - - -# -# addInputPlan -- list of actions to activate console, -# for now only keyboard, no framebuffer. -# -sub addInputPlan ($) { - my ($actionList) = @_; - for my $input (@{InputTab::all()}) { - if (! $input->isKbd()) { - next; - } - addHardware ($actionList, $input->hw); - } -} - - -# -# makePlan -- return a list of actions to mount root. -# if rootDevName is defined, use that instead of the -# device mounted as / in current fstab. -# -sub makePlan ($) { - my ($rootDevName) = @_; - my $actionList = ActionList->new(); - - my $root; - if (defined ($rootDevName)) { - $root = FsTab::findByDevName($rootDevName); - if (! defined ($root)) { - fatal ("alternate root $rootDevName not in fstab"); - } - } - else { - $root = FsTab::findByMountPoint('/'); - if (! defined ($root)) { - fatal ("no root in fstab"); - } - } - - $actionList->add ("prologue", ""); - - addInputPlan($actionList); - - # swap space is needed for soft suspend, - # computed like so, but unused for now. - my @swapEntries = (); - for my $entry (@{FsTab->all}) { - if (! $entry->isRequiredAtBoot()) { - next; - } - if ($entry->type eq "swap") { - push @swapEntries, $entry; - } - } - - my $devicesDone = []; - # for swsusp, use ($root, @swapEntries) - for my $fsTabEntry ($root) { - my $path = $fsTabEntry->blockDevPath(); - if (! defined ($path)) { - my $str = $fsTabEntry->string; - Base::fatal ("unsupported block device specification in $str"); - } - my $abd = ActiveBlockDevTab::findByPath($path); - if (! defined ($abd)) { - my $str = $fsTabEntry->string; - Base::fatal ("block device $path for $str unavailable"); - } - addDevicePlan ($actionList, $abd, $devicesDone, []); - } - - my $fsType = $root->type; - addModules ($actionList, [ $fsType ]); - - my $path = $root->blockDevPath(); - my $yspecial = ActiveBlockDevTab::findByPath($path)->yspecial(); - my $opts = $root->opts->cmdLineVersion(); - - $actionList->add ("mount", "/mnt", - options => $opts, - fsType => $fsType, - isRoot => 1, - device => $yspecial); - - $actionList->add ("postlude", ""); - - return $actionList; -} - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/RaidDev.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/RaidDev.pm deleted file mode 100644 index fc1eea2..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/RaidDev.pm +++ /dev/null @@ -1,46 +0,0 @@ -#!perl -w -# -# RaidDev -- the probed values for a raid device, as found by mdadm. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -use strict; -use warnings; -package RaidDev; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('path', 'uuid', 'level', 'devices'); -} - -sub path { return $_[0]->{path}; } -sub uuid { return $_[0]->{uuid}; } -sub level { return $_[0]->{level}; } -sub devices { return $_[0]->{devices}; } - -sub string { - my $self = shift; - my $path = $self->path; - my $uuid = $self->uuid; - my $level = $self->level; - my $devices = join (',', @{$self->devices}); - return "$path($level) = $uuid at $devices"; -} - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/RaidTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/RaidTab.pm deleted file mode 100644 index 2c8e6ad..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/RaidTab.pm +++ /dev/null @@ -1,170 +0,0 @@ -#!perl -w -# -# RaidTab -- encapsulate mdadm output -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# NOTE: The mdadm --detail shows only devices that are running, -# and does not distinguish between partitionable and non-partitionable -# devices. -# -use strict; -use warnings; -use Base; -use Conf; -use RaidDev; -package RaidTab; - - -my $raidTab = undef; - - -sub init () { - if (defined ($raidTab)) { - return; - } - - # my $name = Conf::get('fstab'); - $raidTab = []; - my $in; - if (! open ($in, "-|", "/sbin/mdadm --detail --scan")) { - Base::fatal ("Can't read mdadm output"); - } - my @lines = <$in>; - if (! close ($in)) { - Base::fatal ("Could not read mdadm output"); - } - my $buf; - for my $line (@lines) { - chomp $line; - if ($line =~ /^\s+/) { - $buf = $buf . $line; - } - else { - if (defined ($buf)) { - processLine ($buf); - } - $buf = $line; - } - } - if (defined ($buf)) { - processLine ($buf); - } -} - -sub processLine ($) { - my ($line) = @_; - my @fields = split (/\s+/, $line); - if ($fields[0] ne "ARRAY") { - Base::fatal ("Expected ARRAY keyword in mdadm output"); - } - my $path = $fields[1]; - my $uuid; - my $level; - my $devices; - for my $i (2 .. $#fields) { - if ($fields[$i] =~ /^uuid=(.+)$/i) { - if (defined ($uuid)) { - Base::fatal ("duplicate uuid attribute in mdadm output"); - } - $uuid = $1; - } - elsif ($fields[$i] =~ /^super-minor=(\d+)$/i) { - # nothing - } - elsif ($fields[$i] =~ /^devices=(.+)$/i) { - if (defined ($devices)) { - Base::fatal ("duplicate devices attribute in mdadm output"); - } - $devices = $1; - } - elsif ($fields[$i] =~ /^level=(.+)$/i) { - if (defined ($level)) { - Base::fatal ("duplicate level attribute in mdadm output"); - } - $level = $1; - } - elsif ($fields[$i] =~ /^num-devices=(\d+)$/i) { - # nothing - } - elsif ($fields[$i] =~ /^spare-group=(.+)$/i) { - # nothing - } - elsif ($fields[$i] =~ /^auto=(.+)$/i) { - # nothing - } - elsif ($fields[$i] =~ /^spares=(\d+)$/i) { - # nothing - } - else { - my $pair = $fields[$i]; - Base::fatal ("Unknown attribute $pair in mdadm output"); - } - } - if (! defined($path)) { - Base::fatal ("Missing device field in mdadm output"); - } - if (! defined($uuid)) { - Base::fatal ("Missing uuid attribute in mdadm output"); - } - if (! defined($level)) { - Base::fatal ("Missing level attribute in mdadm output"); - } - if (! defined($devices)) { - Base::fatal ("Missing devices attribute in mdadm output"); - } - - my $descr = RaidDev->new ( - path => $path, - uuid => $uuid, - level => $level, - devices => [split (/,/, $devices)], - ); - push @{$raidTab}, $descr; -} - - -sub all () { - init; - return $raidTab; -} - -sub findByPath ($) { - my ($path) = @_; - for my $rd (@{all()}) { - if ($rd->path() eq $path) { - return $rd; - } - } - return undef; -} - -sub findByDevno ($) { - my ($devno) = @_; - # - # NOTE: following does not cover the case where multiple - # block special files refer to the same md device. - # We need a find function that retrieves all descriptors - # matching a devno. - # - my $bsf = BlockSpecialFileTab::findByDevno ($devno); - if (! defined ($bsf)) { - return undef; - } - return findByPath ($bsf->path); -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/ScsiDev.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/ScsiDev.pm deleted file mode 100644 index f771bc0..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/ScsiDev.pm +++ /dev/null @@ -1,107 +0,0 @@ -#!perl -w -# -# ScsiDev -- the probed values for a SCSI device, as found in /sys. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# Like IDE devices, SCSI devices need a protocol driver, based -# on device type, without hardware probing and matching against -# a kernel generated table. -# -# The type and module knowledge is based in /etc/hotplug/scsi.agent, -# that attributes scsi/scsi.h. -# -use strict; -use warnings; -use Base; -package ScsiDev; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('path'); - my $path = $self->path; - my $name = readlink ("$path/block"); - if (defined ($name)) { - $name = Base::basename ($name); - $self->{name} = $name; - } - else { - $self->{name} = undef; - } - $self->{vendor} = Base::getStringFile ("$path/vendor"); - $self->{model} = Base::getStringFile ("$path/model"); - - my $type = Base::getStringFile ("$path/type"); - $self->{type} = "disk" if $type eq '0'; - $self->{type} = "tape" if $type eq '1'; - $self->{type} = "printer" if $type eq '2'; - $self->{type} = "processor" if $type eq '3'; - $self->{type} = "worm" if $type eq '4'; - $self->{type} = "cdrom" if $type eq '5'; - $self->{type} = "scanner" if $type eq '6'; - $self->{type} = "mod" if $type eq '7'; - $self->{type} = "changer" if $type eq '8'; - $self->{type} = "comm" if $type eq '9'; - $self->{type} = "enclosure" if $type eq '14'; - $self->{type} = "type$type" if (!defined ($self->{type})); -} - -sub path { return $_[0]->{path}; } -sub name { return $_[0]->{name}; } -sub vendor { return $_[0]->{vendor}; } -sub model { return $_[0]->{model}; } -sub type { return $_[0]->{type}; } - -sub string { - my $self = shift; - my $path = $self->path(); - my $name = $self->name(); - my $vendor = $self->vendor(); - my $model = $self->model(); - my $type = $self->type(); - $name = "---" if (! defined ($name)); - return "$name ($type) = $vendor, $model at $path"; -} - - -# -# findModuleByScsiDev -- list of required SCSI drivers -# -sub findModuleByScsiDev ($) { - my ($scsiDev) = @_; - my $type = $scsiDev->type(); - my $driver; - $driver = "sd-mod" if $type eq "disk"; - # "FIXME some tapes use 'osst'" - $driver = "st" if $type eq "tape"; - # if $type eq "printer"; - # if $type eq "processor"; - $driver = "sr-mod" if $type eq "worm"; - $driver = "sr-mod" if $type eq "cdrom"; - # if $type eq "scanner"; - $driver = "sd-mod" if $type eq "mod"; - # if $type eq "changer"; - # if $type eq "comm"; - # if $type eq "enclosure"; - $driver = "sg" if (! defined ($driver)); - return [ $driver ]; -} - -1; - - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/SharedLibraries.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/SharedLibraries.pm deleted file mode 100644 index 4288895..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/SharedLibraries.pm +++ /dev/null @@ -1,140 +0,0 @@ -#!perl -w -# -# SharedLibraries -- what shared libraries an object needs. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -use strict; -use warnings; -use Base; -use Conf; -package SharedLibraries; - - -# -# find -- find the shared libraries that are needed by an executable. -# Try to find libraries with ldd first. That works only with executables -# linked with glibc, so if ldd finds nothing, we look for traces of klibc. -# -sub find ($) { - my ($executable) = @_; - my $in; - my $result = []; - - if ($executable !~ m!^([.\w/-]+)$!) { - # taint check. - Base::fatal ("odd characters in executable name: $executable"); - } - $executable = $1; - - if (! open ($in, "-|", "/usr/bin/ldd $executable")) { - Base::fatal ("can't read ldd for $executable"); - } - while (defined (my $line = <$in>)) { - chomp $line; - last if ($line =~ /statically linked/); - if ($line =~ /not a dynamic executable/) { - # - # Happens when doing ldd on a shell script - # or kernel module (these have x-bit on in FC3, - # no idea why they would do that). Ldd exit status - # will be non-zero. - # Ldd only understands executables compiled with - # glibc; try to find use of other libraries. - # - return findLibr ($executable); - } - elsif ($line =~ m!.* => (/.+) \(0x[0-9a-fA-F]+\)$!) { - # - # in ldd 2.3.2 (Debian) output looks like this: - # /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000) - # - push @{$result}, $1; - } - elsif ($line =~ m!^\s*(/[^\s]+) \(0x[0-9a-fA-F]+\)$!) { - # - # But ldd 2.3.3 (FC3) has this: - # /lib/ld-linux.so.2 (0x0056f000) - # - push @{$result}, $1; - } - elsif ($line =~ m!.* => \(0x[0-9a-fA-F]+\)$!) { - # - # And eg amd64 also has this: - # linux-gate.so.1 => (0x00000000) - # - # note the double space. This is a section not - # loaded from a file but mapped in by the kernel. - # The kernel puts some code with proper syscall - # linkage here. - # See http://lkml.org/lkml/2003/6/18/156 - # - next; - } - else { - Base::fatal ("unexpected ldd output for $executable: $line"); - } - } - if (! close ($in)) { - Base::fatal ("could not read ldd for $executable"); - } - return $result; -} - - -# -# findLibr -- given a filename, return name of dynamic loader. -# non-ELF files or non-executable ELF files return empty list, -# corrupt ELF files are fatal error. -# If there are shared libraries without absolute path, -# fatal error, since we don't know how the path the library uses -# to look up the shared library. -# -sub findLibr ($) { - my ($executable) = @_; - my $in; - my $result = []; - my $auxDir = Conf::get ('auxDir'); - - if (! open ($in, "-|", "$auxDir/findlibs -q $executable")) { - Base::fatal ("can't run findlibr for $executable"); - } - - while (defined (my $line = <$in>)) { - chomp $line; - if ($line =~ /^interpreter: ([\w.\/-]+)$/) { - push @{$result}, $1; - } - elsif ($line =~ /^needed: ([\w.\/-]+)$/) { - if (Base::isAbsolute ($1)) { - push @{$result}, $1; - } - else { - fatal ("shared library without glibc: $1 in $executable"); - } - } - else { - bug ("odd output for findlibs"); - } - } - - if (! close ($in)) { - Base::fatal ("could not run findlibr for $executable"); - } - return $result; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/TestSet.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/TestSet.pm deleted file mode 100644 index c61e91a..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/TestSet.pm +++ /dev/null @@ -1,260 +0,0 @@ -#!perl -w -# -# Test -- test routines, mostly printing hw inventory. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# -use strict; -use warnings; -use Base; -use FsTab; -use ActiveBlockDevTab; -use BlockSpecialFileTab; -use LabeledPartitionTab; -use LvmTab; -use Hardware; -use ModDepTab; -use RaidTab; -use InputTab; -use Image; -use Plan; -use KConfig; - -package TestSet; - - -sub testGetFsTab () { - print "Entries in fstab:\n"; - for my $entry (@{FsTab->all}) { - my $str = $entry->string; - my $cmd = $entry->opts->cmdLineVersion; - print "\t$str\n"; - print "\t\t$cmd\n"; - } -} - - -sub testActiveBlockDevs () { - print "Block devices in /sys:\n"; - for my $abd (@{ActiveBlockDevTab::all()}) { - my $str = $abd->string; - print "\t$str\n"; - } -} - -sub testActiveBlockDevPartitions () { - print "Partitions for block devices in /sys:\n"; - for my $abd (@{ActiveBlockDevTab::all()}) { - my $str = $abd->string; - my $hp = $abd->hasPartitions() ? "yes" : "no"; - my $partitions = $abd->partitions(); - my $partList = '[' - . join (',', (map {$_->name} @{$partitions})) . ']'; - print "\t$str\n"; - print "\t\tpartitioned:\t$hp\n"; - print "\t\tpartitions:\t$partList\n"; - } -} - - -sub testBlockSpecialFiles () { - print "Block special files /dev:\n"; - for my $bsf (@{BlockSpecialFileTab::all()}) { - my $str = $bsf->string; - print "\t$str\n"; - } -} - - -sub testLabeledPartitions () { - print "Labeled partitions detected:\n"; - for my $lp (@{LabeledPartitionTab::all()}) { - my $str = $lp->string; - print "\t$str\n"; - } -} - - -sub testLvm () { - print "LVM Logical Volumes:\n"; - for my $lv (@{LvmTab::allLogicalVolumes()}) { - my $str = $lv->string; - print "\t$str\n"; - } - - print "LVM Volume Groups:\n"; - for my $vg (@{LvmTab::allVolumeGroups()}) { - my $str = $vg->string; - print "\t$str\n"; - } - - print "LVM Physical Volumes:\n"; - for my $pv (@{LvmTab::allPhysicalVolumes()}) { - my $str = $pv->string; - print "\t$str\n"; - } -} - - -sub testHardware () { - print "Hardware modules needed for devices in /sys:\n"; - for my $abd (@{ActiveBlockDevTab::all()}) { - my $str = $abd->string; - my $hw = $abd->hw; - next unless defined ($hw); - print "\t$str\n"; - my $moduleList = Hardware::moduleList ($hw); - print "\t\t[" . join(',', @{$moduleList}) . "]\n"; - } -} - -sub testModDep () { - print "Module dependencies:\n"; - for my $modDep (@{ModDepTab::all()}) { - my $str = ModDepTab::findByModnam($modDep)->string; - print "\t$str\n"; - } -} - -sub testModResolve () { - print "Hardware modules with resolved dependencies:\n"; - for my $abd (@{ActiveBlockDevTab::all()}) { - my $str = $abd->string; - my $hw = $abd->hw; - next unless defined ($hw); - print "\t$str\n"; - my $moduleList = Hardware::moduleList ($hw); - print "\t\t[" . join(',', @{$moduleList}) . "]\n"; - my $resolveList = ModDepTab::resolve ($moduleList); - print "\t\t[" . join(',', @{$resolveList}) . "]\n"; - } -} - -sub testRaidDevices () { - print "Raid devices:\n"; - for my $rd (@{RaidTab::all()}) { - my $str = $rd->string; - print "\t$str\n"; - } -} - -sub testInput () { - print "Input devices:\n"; - for my $inp (@{InputTab::all()}) { - my $str = $inp->string; - print "\t$str\n"; - } -} - -sub testInterpretation () { - print "Interpreted Fstab Entries:\n"; - for my $fse (@{FsTab->all}) { - my $fseStr = $fse->string; - my $active = $fse->isRequiredAtBoot ? "yes": "no"; - my $path = $fse->blockDevPath(); - my $lvmStr = "--"; - my $devno = "--"; - my $hardware; - my $name = "--"; - my $modules; - my $resolved; - if (defined ($path) && -b $path) { - $devno = Base::devno ($path); - my $lvmFiles = LvmTab::findPVPathsByLVDevno ($devno); - if (defined ($lvmFiles)) { - $lvmStr = '[' . join (',', @{$lvmFiles}) . ']'; - } - - my $abd = ActiveBlockDevTab::findByDevno($devno); - if (defined ($abd)) { - $name = $abd->name(); - my $parent = $abd->parent(); - if (defined ($parent)) { - $hardware = $parent->hw(); - } - else { - $hardware = $abd->hw(); - } - } - } - if (defined ($hardware)) { - my $moduleList = Hardware::moduleList ($hardware); - $modules = "[" . join(',', @{$moduleList}) . "]"; - my $resolveList = ModDepTab::resolve ($moduleList); - $resolved = "[" . join(',', @{$resolveList}) . "]"; - } - - $hardware = "--" unless defined ($hardware); - $modules = "--" unless defined ($modules); - $resolved = "--" unless defined ($resolved); - $path = "--" unless defined ($path); - print "\t$fseStr\n"; - print "\t\tactive:\t$active\n"; - print "\t\tdevno:\t$devno\n"; - print "\t\tpath:\t$path\n"; - print "\t\tname:\t$name\n"; - print "\t\thw:\t$hardware\n"; - print "\t\tmods:\t$modules\n"; - print "\t\tresolv:\t$resolved\n"; - print "\t\tlvm:\t$lvmStr\n"; - - if (defined ($path)) { - my $abd = ActiveBlockDevTab::findByPath($path); - if (defined ($abd)) { - my $list = ActionList->new(); - Plan::addDevicePlan ($list, $abd, [], []); - # the output provided by addDevicePlan - # is enough. - # print $list->string(); - } - } - } -} - -sub testKconfig () { - print "Kernel Builtin Modules:\n"; - for my $module (@{KConfig::allKnownModules()}) { - my $builtIn = KConfig::isBuiltIn($module) ? "BUILTIN" : "--"; - print "\t$module:\t$builtIn\n"; - } -} - -# -# testAll -- run various interesting subroutines -# that may trigger errors. -# -sub testAll () -{ - testGetFsTab (); - testBlockSpecialFiles (); - testLabeledPartitions (); - testActiveBlockDevs (); - testActiveBlockDevPartitions (); - testLvm (); - testHardware (); - testModDep (); - testModResolve (); - testRaidDevices(); - testInterpretation (); - testInput (); - testKconfig (); - Base::bye (); -} - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/UsbDev.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/UsbDev.pm deleted file mode 100644 index 132494b..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/UsbDev.pm +++ /dev/null @@ -1,88 +0,0 @@ -#!perl -w -# -# UsbDev -- the probed values for a USB device, as found in /sys. -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# The information passed to the matcher should correspond to what -# is passed by hotplug. -# -# For devices: -# vendor, product, bcdDevice = 0, 0, 0 -# deviceClass, subClass, protocol = from /sys -# interfaceClass, subClass, protocol = 1000,1000,1000 -# For interfaces: -# vendor, product, bcdDevice = from /sys in parent device -# deviceClass, subClass, protocol = 1000,1000,1000 -# interfaceClass, subClass, protocol = from /sys -# -# Note that somewhere in 2.5, the hotplug events for USB -# changed: old kernels only had an event for the first interface, -# with no distinction between interface and device. -# -use strict; -use warnings; -use Base; -package UsbDev; -use base 'Obj'; - - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('path'); - my $path = $self->{path}; - if (-f "$path/bDeviceClass") { - $self->{idVendor} = 0; - $self->{idProduct} = 0; - $self->{bcdDevice} = 0; - $self->{bDeviceClass} = Base::getHexFile ("$path/bDeviceClass"); - $self->{bDeviceSubClass} = Base::getHexFile ("$path/bDeviceSubClass"); - $self->{bDeviceProtocol} = Base::getHexFile ("$path/bDeviceProtocol"); - $self->{bInterfaceClass} = 1000; - $self->{bInterfaceSubClass} = 1000; - $self->{bInterfaceProtocol} = 1000; - } - elsif (-f "$path/bInterfaceClass") { - $self->{idVendor} = Base::getHexFile ("$path/../idVendor"); - $self->{idProduct} = Base::getHexFile ("$path/../idProduct"); - $self->{bcdDevice} = Base::getHexFile ("$path/../bcdDevice"); - $self->{bDeviceClass} = 1000; - $self->{bDeviceSubClass} = 1000; - $self->{bDeviceProtocol} = 1000; - $self->{bInterfaceClass} = Base::getHexFile ("$path/bInterfaceClass"); - $self->{bInterfaceSubClass} = Base::getHexFile ("$path/bInterfaceSubClass"); - $self->{bInterfaceProtocol} = Base::getHexFile ("$path/bInterfaceProtocol"); - } - else { - Base::fatal "trying to interpret $path as /sys USB devive"; - } -} - -sub idVendor { return $_[0]->{idVendor}; } -sub idProduct { return $_[0]->{idProduct}; } -sub bcdDevice { return $_[0]->{bcdDevice}; } -sub bDeviceClass { return $_[0]->{bDeviceClass}; } -sub bDeviceSubClass { return $_[0]->{bDeviceSubClass}; } -sub bDeviceProtocol { return $_[0]->{bDeviceProtocol}; } -sub bInterfaceClass { return $_[0]->{bInterfaceClass}; } -sub bInterfaceSubClass { return $_[0]->{bInterfaceSubClass}; } -sub bInterfaceProtocol { return $_[0]->{bInterfaceProtocol}; } - - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/UsbMapEntry.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/UsbMapEntry.pm deleted file mode 100644 index ea2e134..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/UsbMapEntry.pm +++ /dev/null @@ -1,133 +0,0 @@ -#!perl -w -# -# UsbMapEntry -- encapsulate single line from modules.usbmap -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# Knows how to match, can return module name. -# -# The ultimate authority on matching is -# linux/drivers/usb/core/usb.c:usb_match_id(), -# the routine where the kernel determines whether to let a particular -# driver probe an interface. Both the hotplug usb.agent and this -# script mimic the behaviour of that function. -# AFAICS, usb_match_id is only invoked on interfaces, not on the devices -# these interfaces are part of. -# However, driver/usb/core/hub.c:usb_new_device() invokes device_add() -# for both the device and (via usb_set_configuration()) for the interfaces; -# this in turn will produce hotplut events (in the case of interfaces with -# a callback to usb_hotplug(), which puts product information in the hotplug -# environment), and the hotplug scripts will do matching for both devices -# and interfaces. The coldplug script usb.rc emulates this kernel behaviour. -# -# Thus, there seems to be a discrepancy between what gets matched in the -# kernel and what gets matched in hotplug; we follow hotplug behaviour. -# -# Note that hotplug uses this matching algorithm not only on the module -# map provided by the kernel, but also on /etc/hotplug/usb/*.usermap; -# the latter results not in loading of a module but in execution of a script. -# This can be used to start gphoto, or it can be used to push firmware -# to a device. Question: what should mkinitrd know about this? -# -use strict; -use warnings; -package UsbMapEntry; -use base 'Obj'; - - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('module', 'match_flags', 'idVendor', - 'idProduct', 'bcdDevice_lo', 'bcdDevice_hi', - 'bDeviceClass', 'bDeviceSubClass', 'bDeviceProtocol', - 'bInterfaceClass', 'bInterfaceSubClass', - 'bInterfaceProtocol', 'driver_info'); -} - -sub module { return $_[0]->{module}; } -sub match_flags { return $_[0]->{match_flags}; } -sub idVendor { return $_[0]->{idVendor}; } -sub idProduct { return $_[0]->{idProduct}; } -sub bcdDevice_lo { return $_[0]->{bcdDevice_lo}; } -sub bcdDevice_hi { return $_[0]->{bcdDevice_hi}; } -sub bDeviceClass { return $_[0]->{bDeviceClass}; } -sub bDeviceSubClass { return $_[0]->{bDeviceSubClass}; } -sub bDeviceProtocol { return $_[0]->{bDeviceProtocol}; } -sub bInterfaceClass { return $_[0]->{bInterfaceClass}; } -sub bInterfaceSubClass { return $_[0]->{bInterfaceSubClass}; } -sub bInterfaceProtocol { return $_[0]->{bInterfaceProtocol}; } -sub driver_info { return $_[0]->{driver_info}; } - -# we could do the USB_MATCH_XXX processing in init, -# if it turns out to be time critical. -my $USB_MATCH_VENDOR = 0x0001; -my $USB_MATCH_PRODUCT = 0x0002; -my $USB_MATCH_DEV_LO = 0x0004; -my $USB_MATCH_DEV_HI = 0x0008; -my $USB_MATCH_DEV_CLASS = 0x0010; -my $USB_MATCH_DEV_SUBCLASS = 0x0020; -my $USB_MATCH_DEV_PROTOCOL = 0x0040; -my $USB_MATCH_INT_CLASS = 0x0080; -my $USB_MATCH_INT_SUBCLASS = 0x0100; -my $USB_MATCH_INT_PROTOCOL = 0x0200; - - -sub matches { - my ($self, $dev) = @_; - my $match = $self->match_flags; - - if ($match & $USB_MATCH_VENDOR && $self->idVendor != $dev->idVendor) { - return 0; - } - if ($match & $USB_MATCH_PRODUCT && $self->idProduct != $dev->idProduct) { - return 0; - } - if ($match & $USB_MATCH_DEV_LO && $self->bcdDevice_lo > $dev->bcdDevice) { - return 0; - } - if ($match & $USB_MATCH_DEV_HI && $self->bcdDevice_hi < $dev->bcdDevice) { - return 0; - } - if ($match & $USB_MATCH_DEV_CLASS && $self->bDeviceClass != $dev->bDeviceClass) { - return 0; - } - if ($match & $USB_MATCH_DEV_SUBCLASS && $self->bDeviceSubClass != $dev->bDeviceSubClass) { - return 0; - } - if ($match & $USB_MATCH_DEV_PROTOCOL && $self->bDeviceProtocol != $dev->bDeviceProtocol) { - return 0; - } - - # Quoting usb.agent: - # for now, this only checks the first of perhaps - # several interfaces for this device. - if ($match & $USB_MATCH_INT_CLASS && $self->bInterfaceClass != $dev->bInterfaceClass) { - return 0; - } - if ($match & $USB_MATCH_INT_SUBCLASS && $self->bInterfaceSubClass != $dev->bInterfaceSubClass) { - return 0; - } - if ($match & $USB_MATCH_INT_PROTOCOL && $self->bInterfaceProtocol != $dev->bInterfaceProtocol) { - return 0; - } - - return 1; -} - -1; - diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/UsbTab.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/UsbTab.pm deleted file mode 100644 index 92407cb..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/UsbTab.pm +++ /dev/null @@ -1,92 +0,0 @@ -#!perl -w -# -# UsbTab -- encapsulate modules.usbmap -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -use strict; -use warnings; -use Base; -use UsbMapEntry; -package UsbTab; - -my $usbList = undef; - -# Parse this: -# # usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info -# bfusb 0x0003 0x057c 0x2200 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x0 -# bcm203x 0x0003 0x0a5c 0x2033 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x0 - -sub init () { - if (defined ($usbList)) { - return; - } - $usbList = []; - my $name = Conf::get('usbMap'); - if (! open (IN, "<", "$name")) { - Base::fatal ("can't open usb module list $name"); - } - while (defined (my $line = )) { - chomp $line; - $line =~ s/#.*//; - $line =~ s/^\s+//; - $line =~ s/\s+$//; - next if ($line eq ""); - my @fields = split (/\s+/, $line, 999); - if ($#fields != 12) { - Base::fatal ("malformed line in usb module list $name"); - } - push @{$usbList}, UsbMapEntry->new ( - module => $fields[0], - match_flags => hex ($fields[1]), - idVendor => hex ($fields[2]), - idProduct => hex ($fields[3]), - bcdDevice_lo => hex ($fields[4]), - bcdDevice_hi => hex ($fields[5]), - bDeviceClass => hex ($fields[6]), - bDeviceSubClass => hex ($fields[7]), - bDeviceProtocol => hex ($fields[8]), - bInterfaceClass => hex ($fields[9]), - bInterfaceSubClass => hex ($fields[10]), - bInterfaceProtocol => hex ($fields[11]), - driver_info => hex ($fields[12]), - ); - } - if (! close (IN)) { - Base::fatal ("could not read usb module list $name"); - } -} - -sub all () { - init; - return $usbList; -} - -# given pathname in devices tree, return list of matching modules. -sub find ($) { - my ($dev) = @_; - my @result = (); - for my $ume (@{UsbTab::all()}) { - if ($ume->matches ($dev)) { - push @result, $ume->module; - } - } - return [@result]; -} - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/VolumeGroup.pm b/rescue/linux/cdrom/yaird-0.0.5/perl/VolumeGroup.pm deleted file mode 100644 index 92c5d52..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/VolumeGroup.pm +++ /dev/null @@ -1,45 +0,0 @@ -#!perl -w -# -# VolumeGroup -- Volume Group Descriptor -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# vgnam - volume group name -# uuid - uuid -# -use strict; -use warnings; -package VolumeGroup; -use base 'Obj'; - -sub fill { - my $self = shift; - $self->SUPER::fill(); - $self->takeArgs ('vgnam', 'uuid'); -} - -sub vgnam { return $_[0]->{vgnam}; } -sub uuid { return $_[0]->{uuid}; } - -sub string { - my $self = shift; - my $vgnam = $self->vgnam; - my $uuid = $self->uuid; - my $str = "$vgnam, $uuid"; - return $str; -} - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/main.pl b/rescue/linux/cdrom/yaird-0.0.5/perl/main.pl deleted file mode 100644 index 8f1333a..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/main.pl +++ /dev/null @@ -1,234 +0,0 @@ -#!@PERL@ -# -# Main -- an exercise in initrd building -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# -use strict; -use warnings; -use lib '@PERLDIR@'; - -use Getopt::Long; -use Plan; -use TestSet; -use Pack; - -my $appName = "@PACKAGE@"; -my $appVersion = "@VERSION@"; - - -# -# go -- main program: -# write an image to destination in specified format. -# destination must not exist yet. -# root is the blockdev to use as root after reboot, or undef for default. -# -sub go ($$$) { - my ($format, $destination, $root) = @_; - my $masterPlan = Plan::makePlan ($root); - my $image = $masterPlan->expand (); - Pack::package ($image, $format, $destination); -} - - -# -# paranoia -- Random bits of - -# -sub paranoia { - umask 077; - - # - # Perlsec(1) identifies the following as risky: - # - # delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; - # - # but just scrapping the complete environment - # seems to work nicely. - # - delete @ENV{keys %ENV}; - $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin'; -} - - -# -# usage -- print invocation patterns of the application -# -sub usage { - print <<"//"; - -$appName generates initrd images. - -$appName --test [ version ] - print an overview of system data, without writing anything to disk. - -$appName --output dest --format format [ version ] - generate an initrd image in 'dest', in the format 'format'. - -Options: - -h, -?, --help print this help text and exit - -V, --version print version and exit (don't bother: $appVersion) - -v, --verbose print progress messages - -d, --debug detailed output - -q, --quiet don't print warning messages - -o, --output dest place result here - -f, --format form produce the image in this format, - valid values: directory, cramfs, cpio - -r, --root blockdev let initrd boot another block device as root - the blockdev must occur in fstab somewhere. - -t, --test print overview of system data, - used as basis for debugging. - -// -} - - -# -# main -- main program, argument processing -# -sub main { - my ($opt_help, $opt_version, - $opt_verbose, $opt_quiet, $opt_debug, - $opt_format, $opt_output, $opt_root, $opt_test); - - paranoia (); - Base::setProgName ($appName); - - my @warnings = (); - { - # - # catch warnings during getopt, but not elsewhere. - # The idea is to let -? produce help without complaint, - # even if other args are broken. - # - local $SIG{__WARN__} = sub { push @warnings, $_[0]; }; - - Getopt::Long::Configure ("bundling"); - my $result = GetOptions ( - "h|help|?" => \$opt_help, - "V|version" => \$opt_version, - "v|verbose" => \$opt_verbose, - "q|quiet" => \$opt_quiet, - "d|debug" => \$opt_debug, - "f|format=s" => \$opt_format, - "o|output=s" => \$opt_output, - "r|root=s" => \$opt_root, - "t|test" => \$opt_test, - ); - } - - # - # --help and --version processed without regard to other options, - # exit without side effect. - # - if (defined ($opt_help)) { - usage (); - Base::bye(); - } - if (defined ($opt_version)) { - Base::setVerbose (1); - Base::info ("version $appVersion"); - Base::bye(); - } - - # - # Argument validation - # - for my $w (@warnings) { - # lazy: perhaps we could provide more info here? - Base::fatal ("$w"); - } - if (defined ($opt_output) && defined ($opt_test)) { - Base::fatal "conflicting options --output and --test"; - } - if (! defined ($opt_output) && ! defined ($opt_test)) { - Base::fatal "one of --output and --test must be given"; - } - if (defined ($opt_output)) { - if (-e $opt_output) { - Base::fatal "destination $opt_output already exists"; - } - if (! defined ($opt_format)) { - Base::fatal "option --output requires --format option"; - } - if (! Pack::knownFormat ($opt_format)) { - Base::fatal "unknown --format argument: $opt_format"; - } - - # - # Untaint -- is there a need for 'output' with an umlaut? - # - if ($opt_output !~ m!^([-_./[a-zA-Z0-9]+)$!) { - Base::fatal ("illegal character in output file name"); - } - $opt_output = $1; - - if (defined ($opt_root)) { - # Untaint - if ($opt_root !~ m!^([-_./[a-zA-Z0-9]+)$!) { - Base::fatal ("illegal character in root device name"); - } - $opt_root = $1; - } - } - if (defined ($opt_test)) { - if (defined ($opt_format)) { - Base::fatal "conflicting options --test and --format"; - } - if (defined ($opt_root)) { - Base::fatal "conflicting options --test and --root"; - } - } - if ($#ARGV > 0) { - my $valid = $ARGV[0]; - Base::fatal "extra arguments after $valid"; - } - - # - # All arguments validated; start processing. - # - if ($#ARGV == 0) { - Conf::set ("version", $ARGV[0]); - } - if ($opt_verbose) { - Base::setVerbose (1); - } - if ($opt_debug) { - Base::setDebug (1); - } - if ($opt_quiet) { - Base::setQuiet (1); - } - - # avoid silly messages with an early test - my $v = Conf::get("version"); - my $mdir = Conf::get("libModules") . "/$v"; - if (! -d $mdir) { - Base::fatal ("unknown kernel version: $v"); - } - - # go for it. - if (defined ($opt_test)) { - TestSet::testAll(); - } - elsif (defined ($opt_output)) { - go ($opt_format, $opt_output, $opt_root); - } - Base::bye; -} - -main (); diff --git a/rescue/linux/cdrom/yaird-0.0.5/perl/yaird b/rescue/linux/cdrom/yaird-0.0.5/perl/yaird deleted file mode 100755 index 065a2b1..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/perl/yaird +++ /dev/null @@ -1,234 +0,0 @@ -#!/usr/bin/perl -# -# Main -- an exercise in initrd building -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# -# -use strict; -use warnings; -use lib '/usr/local/lib/yaird/perl'; - -use Getopt::Long; -use Plan; -use TestSet; -use Pack; - -my $appName = "yaird"; -my $appVersion = "0.0.5"; - - -# -# go -- main program: -# write an image to destination in specified format. -# destination must not exist yet. -# root is the blockdev to use as root after reboot, or undef for default. -# -sub go ($$$) { - my ($format, $destination, $root) = @_; - my $masterPlan = Plan::makePlan ($root); - my $image = $masterPlan->expand (); - Pack::package ($image, $format, $destination); -} - - -# -# paranoia -- Random bits of - -# -sub paranoia { - umask 077; - - # - # Perlsec(1) identifies the following as risky: - # - # delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; - # - # but just scrapping the complete environment - # seems to work nicely. - # - delete @ENV{keys %ENV}; - $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin'; -} - - -# -# usage -- print invocation patterns of the application -# -sub usage { - print <<"//"; - -$appName generates initrd images. - -$appName --test [ version ] - print an overview of system data, without writing anything to disk. - -$appName --output dest --format format [ version ] - generate an initrd image in 'dest', in the format 'format'. - -Options: - -h, -?, --help print this help text and exit - -V, --version print version and exit (don't bother: $appVersion) - -v, --verbose print progress messages - -d, --debug detailed output - -q, --quiet don't print warning messages - -o, --output dest place result here - -f, --format form produce the image in this format, - valid values: directory, cramfs, cpio - -r, --root blockdev let initrd boot another block device as root - the blockdev must occur in fstab somewhere. - -t, --test print overview of system data, - used as basis for debugging. - -// -} - - -# -# main -- main program, argument processing -# -sub main { - my ($opt_help, $opt_version, - $opt_verbose, $opt_quiet, $opt_debug, - $opt_format, $opt_output, $opt_root, $opt_test); - - paranoia (); - Base::setProgName ($appName); - - my @warnings = (); - { - # - # catch warnings during getopt, but not elsewhere. - # The idea is to let -? produce help without complaint, - # even if other args are broken. - # - local $SIG{__WARN__} = sub { push @warnings, $_[0]; }; - - Getopt::Long::Configure ("bundling"); - my $result = GetOptions ( - "h|help|?" => \$opt_help, - "V|version" => \$opt_version, - "v|verbose" => \$opt_verbose, - "q|quiet" => \$opt_quiet, - "d|debug" => \$opt_debug, - "f|format=s" => \$opt_format, - "o|output=s" => \$opt_output, - "r|root=s" => \$opt_root, - "t|test" => \$opt_test, - ); - } - - # - # --help and --version processed without regard to other options, - # exit without side effect. - # - if (defined ($opt_help)) { - usage (); - Base::bye(); - } - if (defined ($opt_version)) { - Base::setVerbose (1); - Base::info ("version $appVersion"); - Base::bye(); - } - - # - # Argument validation - # - for my $w (@warnings) { - # lazy: perhaps we could provide more info here? - Base::fatal ("$w"); - } - if (defined ($opt_output) && defined ($opt_test)) { - Base::fatal "conflicting options --output and --test"; - } - if (! defined ($opt_output) && ! defined ($opt_test)) { - Base::fatal "one of --output and --test must be given"; - } - if (defined ($opt_output)) { - if (-e $opt_output) { - Base::fatal "destination $opt_output already exists"; - } - if (! defined ($opt_format)) { - Base::fatal "option --output requires --format option"; - } - if (! Pack::knownFormat ($opt_format)) { - Base::fatal "unknown --format argument: $opt_format"; - } - - # - # Untaint -- is there a need for 'output' with an umlaut? - # - if ($opt_output !~ m!^([-_./[a-zA-Z0-9]+)$!) { - Base::fatal ("illegal character in output file name"); - } - $opt_output = $1; - - if (defined ($opt_root)) { - # Untaint - if ($opt_root !~ m!^([-_./[a-zA-Z0-9]+)$!) { - Base::fatal ("illegal character in root device name"); - } - $opt_root = $1; - } - } - if (defined ($opt_test)) { - if (defined ($opt_format)) { - Base::fatal "conflicting options --test and --format"; - } - if (defined ($opt_root)) { - Base::fatal "conflicting options --test and --root"; - } - } - if ($#ARGV > 0) { - my $valid = $ARGV[0]; - Base::fatal "extra arguments after $valid"; - } - - # - # All arguments validated; start processing. - # - if ($#ARGV == 0) { - Conf::set ("version", $ARGV[0]); - } - if ($opt_verbose) { - Base::setVerbose (1); - } - if ($opt_debug) { - Base::setDebug (1); - } - if ($opt_quiet) { - Base::setQuiet (1); - } - - # avoid silly messages with an early test - my $v = Conf::get("version"); - my $mdir = Conf::get("libModules") . "/$v"; - if (! -d $mdir) { - Base::fatal ("unknown kernel version: $v"); - } - - # go for it. - if (defined ($opt_test)) { - TestSet::testAll(); - } - elsif (defined ($opt_output)) { - go ($opt_format, $opt_output, $opt_root); - } - Base::bye; -} - -main (); diff --git a/rescue/linux/cdrom/yaird-0.0.5/templates/Debian.pm b/rescue/linux/cdrom/yaird-0.0.5/templates/Debian.pm deleted file mode 100644 index 85a094f..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/templates/Debian.pm +++ /dev/null @@ -1,303 +0,0 @@ -#!/usr/bin/perl -# -# Template -- for translation general intentions to exact initrd layout -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# These templates define the translation from general intentions in the -# plan to exact lists of files and script fragments to be included -# on the initrd image. Templates are indexed by an action name, and include: -# - files to be copied from current system to initrd; -# often executables. -# - directories to be created -# - fragments to be appended to scripts on the image, -# these are in a hash from script name to script content. -# -# Everything is processed by HTML::Template before being added to the -# image: script fragments, but also file names and script names. -# Leading spaces are dropped from template lines. -# -# If you want to implement busybox support, this is the place to do it. -# -# Obviously, the template names and the attributes used in the template -# should match what is provided by the planner. -# -# - -use strict; -package Template; - - -my $templates = { - prologue => { - # In principle, we don't want device files on the initrd - # image: device numbers can change between kernels. - # Instead, create device files at boot time based on info - # in sysfs. However, /dev/null and /dev/console are needed - # to mount sysfs. - files => [ - '/dev/null', - '/dev/console', - '/bin/dash', - '/bin/cat', - '/bin/mkdir', - '/bin/mount', - '/bin/umount', - '/bin/mknod', - '/bin/sleep', - ], - directories => [ - '/mnt', '/proc', '/sys', '/dev', '/etc', '/var', - ], - trees => [], - scripts => { - '/init' => <<'//', - #!/bin/dash - # - # Generator version: yaird . - # - set -x - # - # Utility functions - # - mksymdev () { - devfile="$1" - sysfile="$2" - cb="$3" - devpair=$(/bin/cat "$sysfile") - for delay in 1 2 4 8 16 - do - if [ "$devpair" = "" ] - then - echo "Waiting $delay seconds for $sysfile to show up" - sleep $delay - fi - devpair=$(/bin/cat "$sysfile") - done - - if [ "$devpair" = "" ] - then - echo "Device $sysfile seems to be down." - echo "Debugging opportunity, type ^D to continue." - /bin/dash - fi - - maj=${devpair%:*} - min=${devpair#*:} - /bin/mknod "$devfile" $cb $maj $min - } - mkcdev () { - mksymdev "$1" "/sys/class/$2/dev" c - } - mkbdev () { - mksymdev "$1" "/sys/block/$2/dev" b - } - - - # - # Setting up mounts - # - mount -nt sysfs sysfs /sys - mount -nt proc proc /proc - # In Fedora FC3, tmpfs *must* have the name - # 'none', otherwise start_udev, called from - # rc.sysinit will mount a new tmpfs over it, - # and you loose access to nodes such as - # /dev/vg0/root, expected to be created by - # LVM in initramfs. - mount -nt tmpfs none /dev - - # - # - # Command line processing - # init - first proc to start on next root - # root - to be done: how should it relate - # to file system selection? - # ro,rw - mount root read-only or read-write. - # This is like a mount -r; it overrules - # a -o rw. - # noresume, resume - to be done - # ide - options for module ide_core. - # need a way to append these to proper - # module. do a check on module name - # in insmod template? - # - ro=-r - init=/sbin/init - for i in $(cat /proc/cmdline) - do - case "$i" in - init=*) - init=${i#init=} - ;; - ro) - ro=-r - ;; - rw) - ro= - esac - done -// - }, - }, - - insmod => { - files => [ - '', - '/sbin/insmod', - ], - directories => [], - trees => [], - scripts => { - '/init' => <<'//', - /sbin/insmod '' -// - }, - - }, - - mkbdev => { - files => [], - directories => [], - trees => [], - scripts => { - '/init' => <<'//', - mkbdev '' '' -// - }, - }, - - vgchange => { - files => [ - '/lib/lvm-200/vgchange', - '/sbin/vgchange', - ], - directories => [], - trees => [], - scripts => { - # We cannot make mapper/control any earlier, - # since dm-mod needs to be loaded to be able - # to determine devno. - '/init' => <<'//', - if [ ! -c /dev/mapper/control ] - then - /bin/mkdir /dev/mapper - mkcdev /dev/mapper/control misc/device-mapper - fi - /bin/mount -nt tmpfs tmpfs /etc - /bin/mount -nt tmpfs tmpfs /var - /sbin/vgchange -a y '' - /bin/umount -n /var - /bin/umount -n /etc -// - }, - }, - - mdadm => { - files => [ - '/sbin/mdadm', - ], - directories => [], - trees => [], - scripts => { - # - # NOTE: mdadm can operate without knowledge - # of device numbers; it will assign an unused - # one to the new device. Thus you could have - # device name /dev/md/boot that is stable, - # regardless of which other raid devices are - # operational. However, debian installer - # consistently uses device names like /dev/md0, - # where the name depends on earlier minors - # that happen to have been assigned. - # To work around this problem, we forego - # the --auto option, and mknod the device - # before putting an md under it. Better hope - # the major number is not going to change ... - # - '/init' => <<'//', - mknod b - mdadm --assemble --uuid \ - -// - } - }, - - mount => { - files => [], - directories => [], - trees => [], - scripts => { - # - # NOTE: honouring the kernel cmdline option ro,rw - # is very nice, but... If you have an ext3 in a - # file loopback-mounted from vfat, it's unlikely - # that a remount rw of root will also make the - # underlying vfat read-write. Underlying filesystems - # should ignore the kernel ro/rw option; we - # have an attribute isRoot that's defined iff - # this is the real root. - # - # always -n, since we dont have writable /etc/mtab. - # - '/init' => <<'//', - mount -n \ - $ro \ - -t \ - \ - \ - -// - } - }, - - postlude => { - files => [ - '/run_init', - ], - directories => [], - trees => [], - scripts => { - # - # Do *not* do a pivot_root here. We're - # working from rootfs; a pivotroot would - # make that end up in /initrd, which gets - # unmounted by rc.sysinit, and without rootfs, - # too much is broken to even do a panic. - # - # Instead use run_init from klibc, which uses - # a magical combination of mount --move /mnt /, - # chdir and chroot. - # - - '/init' => <<'//', - echo "Debugging opportunity, ^D to continue." - /bin/dash - - echo "Switching root ..." - /bin/umount -n /sys - /bin/umount -n /proc - exec /run_init \ - /mnt $init "$@" -// - } - }, -}; - -sub template ($) { return $templates->{$_[0]}; } - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/templates/Fedora.pm b/rescue/linux/cdrom/yaird-0.0.5/templates/Fedora.pm deleted file mode 100644 index d1641dd..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/templates/Fedora.pm +++ /dev/null @@ -1,318 +0,0 @@ -#!/usr/bin/perl -# -# Template -- for translation general intentions to exact initrd layout -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# These templates define the translation from general intentions in the -# plan to exact lists of files and script fragments to be included -# on the initrd image. Templates are indexed by an action name, and include: -# - files to be copied from current system to initrd; -# often executables. -# - directories to be created -# - fragments to be appended to scripts on the image, -# these are in a hash from script name to script content. -# -# Everything is processed by HTML::Template before being added to the -# image: script fragments, but also file names and script names. -# Leading spaces are dropped from template lines. -# -# If you want to implement busybox support, this is the place to do it. -# -# Obviously, the template names and the attributes used in the template -# should match what is provided by the planner. -# -# - -use strict; -package Template; - - -my $templates = { - prologue => { - # In principle, we don't want device files on the initrd - # image: device numbers can change between kernels. - # Instead, create device files at boot time based on info - # in sysfs. However, /dev/null and /dev/console are needed - # to mount sysfs. - files => [ - '/dev/null', - '/dev/console', - '/bin/ash', - '/bin/cat', - '/bin/mkdir', - '/bin/mount', - '/bin/umount', - '/bin/mknod', - '/bin/sleep', - ], - directories => [ - '/mnt', '/proc', '/sys', '/dev', '/etc', '/var', - ], - trees => [], - scripts => { - '/init' => <<'//', - #!/bin/ash - - # Generator version: yaird . - # - set -x - # - # Utility functions - # - mksymdev () { - devfile="$1" - sysfile="$2" - cb="$3" - devpair=$(/bin/cat "$sysfile") - for delay in 1 2 4 8 16 - do - if [ "$devpair" = "" ] - then - echo "Waiting $delay seconds for $sysfile to show up" - sleep $delay - fi - devpair=$(/bin/cat "$sysfile") - done - - if [ "$devpair" = "" ] - then - echo "Device $sysfile seems to be down." - echo "Debugging opportunity, type ^D to continue." - /bin/dash - fi - - maj=${devpair%:*} - min=${devpair#*:} - /bin/mknod "$devfile" $cb $maj $min - } - mkcdev () { - mksymdev "$1" "/sys/class/$2/dev" c - } - mkbdev () { - mksymdev "$1" "/sys/block/$2/dev" b - } - - - # - # Setting up mounts - # - mount -nt sysfs sysfs /sys - mount -nt proc proc /proc - # In Fedora FC3, tmpfs *must* have the name - # 'none', otherwise start_udev, called from - # rc.sysinit will mount a new tmpfs over it, - # and you loose access to nodes such as - # /dev/vg0/root, expected to be created by - # LVM in initramfs. - mount -nt tmpfs none /dev - - # - # - # Command line processing - # init - first proc to start on next root - # root - to be done: how should it relate - # to file system selection? - # ro,rw - mount root read-only or read-write. - # This is like a mount -r; it overrules - # a -o rw. - # noresume, resume - to be done - # ide - options for module ide_core. - # need a way to append these to proper - # module. do a check on module name - # in insmod template? - # - ro=-r - init=/sbin/init - for i in $(cat /proc/cmdline) - do - case "$i" in - init=*) - init=${i#init=} - ;; - ro) - ro=-r - ;; - rw) - ro= - esac - done -// - }, - }, - - insmod => { - files => [ - '', - '/sbin/insmod', - ], - directories => [], - trees => [], - scripts => { - '/init' => <<'//', - /sbin/insmod '' -// - }, - - }, - - mkbdev => { - files => [], - directories => [], - trees => [], - scripts => { - '/init' => <<'//', - mkbdev '' '' -// - }, - }, - - vgchange => { - # - # Use static version. Note that fedora starts with - # empty /dev, so we must make device nodes explicitly. - # - files => [ - '/sbin/lvm', - ], - directories => [], - trees => [], - scripts => { - # We cannot make mapper/control any earlier, - # since dm-mod needs to be loaded to be able - # to determine devno. - '/init' => <<'//', - if [ ! -c /dev/mapper/control ] - then - /bin/mkdir /dev/mapper - mkcdev /dev/mapper/control misc/device-mapper - fi - /bin/mount -nt tmpfs tmpfs /etc - /bin/mount -nt tmpfs tmpfs /var - /sbin/lvm vgchange -a y '' - /sbin/lvm vgmknodes - /bin/umount -n /var - /bin/umount -n /etc -// - }, - }, - - mdadm => { - files => [ - '/sbin/mdadm', - ], - directories => [], - trees => [], - scripts => { - # - # NOTE: mdadm can operate without knowledge - # of device numbers; it will assign an unused - # one to the new device. Thus you could have - # device name /dev/md/boot that is stable, - # regardless of which other raid devices are - # operational. However, debian installer - # consistently uses device names like /dev/md0, - # where the name depends on earlier minors - # that happen to have been assigned. - # To work around this problem, we forego - # the --auto option, and mknod the device - # before putting an md under it. Better hope - # the major number is not going to change ... - # - '/init' => <<'//', - mknod b - mdadm --assemble --uuid \ - -// - } - }, - - mount => { - files => [], - directories => [], - trees => [], - scripts => { - # - # NOTE: honouring the kernel cmdline option ro,rw - # is very nice, but... If you have an ext3 in a - # file loopback-mounted from vfat, it's unlikely - # that a remount rw of root will also make the - # underlying vfat read-write. Underlying filesystems - # should ignore the kernel ro/rw option; we - # have an attribute isRoot that's defined iff - # this is the real root. - # - # always -n, since we dont have writable /etc/mtab. - # - '/init' => <<'//', - mount -n \ - $ro \ - -t \ - \ - \ - -// - } - }, - - postlude => { - files => [ - '/run_init', - ], - directories => [], - trees => [], - scripts => { - # - # fedora does not come with populated /dev - # on root and needs at least /dev/console. - # Pass them via tmpfs. - # - # Do *not* do a pivot_root here. We're - # working from rootfs; a pivotroot would - # make that end up in /initrd, which gets - # unmounted by rc.sysinit, and without rootfs, - # too much is broken to even do a panic. - # - # Instead use run_init from klibc, which uses - # a magical combination of mount --move /mnt /, - # chdir and chroot. - # - - '/init' => <<'//', - echo "Debugging opportunity, ^D to continue." - /bin/ash - - echo "Switching root ..." - cd /mnt - mkcdev /dev/null mem/null - mkcdev /dev/zero mem/zero - mkcdev /dev/console tty/console - mkdir /dev/pts - mkdir /dev/shm - mount -n -t tmpfs --bind /dev /mnt/dev - /bin/umount -n /sys - /bin/umount -n /proc - exec /run_init \ - /mnt $init "$@" -// - } - }, -}; - -sub template ($) { return $templates->{$_[0]}; } - - -1; diff --git a/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile b/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile deleted file mode 100644 index 61d09d3..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile +++ /dev/null @@ -1,350 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# templates/Makefile. Generated from Makefile.in by configure. - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - - -# -# Makefile.incl -- shared defines between makefiles -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains package specific executables that may be included -# in the generated image -# - perldir contains perl modules to be included by the main program -# -# This cannot be simply passed from the master makefile; that would -# be invisible to automake. - -srcdir = . -top_srcdir = .. - -pkgdatadir = $(datadir)/yaird -pkglibdir = $(libdir)/yaird -pkgincludedir = $(includedir)/yaird -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = /usr/bin/install -c -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -DIST_COMMON = $(srcdir)/../Makefile.incl $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -subdir = templates -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(perldir)" -nodist_perlDATA_INSTALL = $(INSTALL_DATA) -DATA = $(nodist_perl_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run aclocal-1.9 -AMDEP_FALSE = # -AMDEP_TRUE = -AMTAR = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run tar -AUTOCONF = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoconf -AUTOHEADER = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run autoheader -AUTOMAKE = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run automake-1.9 -AWK = gawk -CC = gcc -CCDEPMODE = depmode=gcc3 -CFLAGS = -g -O2 -CPPFLAGS = -CYGPATH_W = echo -DEFS = -DHAVE_CONFIG_H -DEPDIR = .deps -ECHO_C = -ECHO_N = -n -ECHO_T = -EXEEXT = -INITRD_TEMPLATE = Fedora -INSTALL_DATA = ${INSTALL} -m 644 -INSTALL_PROGRAM = ${INSTALL} -INSTALL_SCRIPT = ${INSTALL} -INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s -LDFLAGS = -LIBOBJS = -LIBS = -LTLIBOBJS = -MAKEINFO = ${SHELL} /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/missing --run makeinfo -OBJEXT = o -PACKAGE = yaird -PACKAGE_BUGREPORT = -PACKAGE_NAME = -PACKAGE_STRING = -PACKAGE_TARNAME = -PACKAGE_VERSION = -PATH_SEPARATOR = : -PERL = /usr/bin/perl -SET_MAKE = -SHELL = /bin/sh -STRIP = -VERSION = 0.0.5 -XMLTO = /usr/bin/xmlto -ac_ct_CC = gcc -ac_ct_STRIP = -am__fastdepCC_FALSE = # -am__fastdepCC_TRUE = -am__include = include -am__leading_dot = . -am__quote = -am__tar = ${AMTAR} chof - "$$tardir" -am__untar = ${AMTAR} xf - -bindir = ${exec_prefix}/bin -build_alias = -datadir = ${prefix}/share -exec_prefix = ${prefix} -host_alias = -includedir = ${prefix}/include -infodir = ${prefix}/info -install_sh = /home/kern/bacula/k/rescue/linux/cdrom/yaird-0.0.5/install-sh -libdir = ${exec_prefix}/lib -libexecdir = ${exec_prefix}/libexec -localstatedir = ${prefix}/var -mandir = ${prefix}/man -mkdir_p = mkdir -p -- -oldincludedir = /usr/include -prefix = /usr/local -program_transform_name = s,x,x, -sbindir = ${exec_prefix}/sbin -sharedstatedir = ${prefix}/com -sysconfdir = ${prefix}/etc -target_alias = -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl - -# -# Makefile.am -- installation and packaging instructions -# -CLEANFILES = $(nodist_perl_DATA) -nodist_perl_DATA = \ - Template.pm - - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - Fedora.pm \ - Debian.pm - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.incl $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu templates/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu templates/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: -install-nodist_perlDATA: $(nodist_perl_DATA) - @$(NORMAL_INSTALL) - test -z "$(perldir)" || $(mkdir_p) "$(DESTDIR)$(perldir)" - @list='$(nodist_perl_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(nodist_perlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(perldir)/$$f'"; \ - $(nodist_perlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(perldir)/$$f"; \ - done - -uninstall-nodist_perlDATA: - @$(NORMAL_UNINSTALL) - @list='$(nodist_perl_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(perldir)/$$f'"; \ - rm -f "$(DESTDIR)$(perldir)/$$f"; \ - done -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/.. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: - for dir in "$(DESTDIR)$(perldir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-nodist_perlDATA - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am uninstall-nodist_perlDATA - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-nodist_perlDATA install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ - uninstall-nodist_perlDATA - - -Template.pm: $(INITRD_TEMPLATE).pm - cp $< $@ -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile.am b/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile.am deleted file mode 100644 index e6bb347..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -# -# Makefile.am -- installation and packaging instructions -# -include ../Makefile.incl - -CLEANFILES = $(nodist_perl_DATA) - -Template.pm: $(INITRD_TEMPLATE).pm - cp $< $@ - -nodist_perl_DATA = \ - Template.pm - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - Fedora.pm \ - Debian.pm diff --git a/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile.in b/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile.in deleted file mode 100644 index a86a794..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/templates/Makefile.in +++ /dev/null @@ -1,350 +0,0 @@ -# Makefile.in generated by automake 1.9.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# -# Makefile.incl -- shared defines between makefiles -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# - auxdir contains package specific executables that may be included -# in the generated image -# - perldir contains perl modules to be included by the main program -# -# This cannot be simply passed from the master makefile; that would -# be invisible to automake. - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -DIST_COMMON = $(srcdir)/../Makefile.incl $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -subdir = templates -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.in -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(perldir)" -nodist_perlDATA_INSTALL = $(INSTALL_DATA) -DATA = $(nodist_perl_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INITRD_TEMPLATE = @INITRD_TEMPLATE@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMLTO = @XMLTO@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build_alias = @build_alias@ -datadir = @datadir@ -exec_prefix = @exec_prefix@ -host_alias = @host_alias@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -auxdir = $(pkglibdir)/exec -perldir = $(pkglibdir)/perl - -# -# Makefile.am -- installation and packaging instructions -# -CLEANFILES = $(nodist_perl_DATA) -nodist_perl_DATA = \ - Template.pm - - -# not compiled, but must go in the tarball. -EXTRA_DIST = \ - Fedora.pm \ - Debian.pm - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../Makefile.incl $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu templates/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu templates/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -uninstall-info-am: -install-nodist_perlDATA: $(nodist_perl_DATA) - @$(NORMAL_INSTALL) - test -z "$(perldir)" || $(mkdir_p) "$(DESTDIR)$(perldir)" - @list='$(nodist_perl_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(nodist_perlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(perldir)/$$f'"; \ - $(nodist_perlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(perldir)/$$f"; \ - done - -uninstall-nodist_perlDATA: - @$(NORMAL_UNINSTALL) - @list='$(nodist_perl_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(perldir)/$$f'"; \ - rm -f "$(DESTDIR)$(perldir)/$$f"; \ - done -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/.. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: - for dir in "$(DESTDIR)$(perldir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-nodist_perlDATA - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am uninstall-nodist_perlDATA - -.PHONY: all all-am check check-am clean clean-generic distclean \ - distclean-generic distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-nodist_perlDATA install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ - uninstall-nodist_perlDATA - - -Template.pm: $(INITRD_TEMPLATE).pm - cp $< $@ -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/rescue/linux/cdrom/yaird-0.0.5/templates/Template.pm b/rescue/linux/cdrom/yaird-0.0.5/templates/Template.pm deleted file mode 100644 index d1641dd..0000000 --- a/rescue/linux/cdrom/yaird-0.0.5/templates/Template.pm +++ /dev/null @@ -1,318 +0,0 @@ -#!/usr/bin/perl -# -# Template -- for translation general intentions to exact initrd layout -# Copyright (C) 2005 Erik van Konijnenburg -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# These templates define the translation from general intentions in the -# plan to exact lists of files and script fragments to be included -# on the initrd image. Templates are indexed by an action name, and include: -# - files to be copied from current system to initrd; -# often executables. -# - directories to be created -# - fragments to be appended to scripts on the image, -# these are in a hash from script name to script content. -# -# Everything is processed by HTML::Template before being added to the -# image: script fragments, but also file names and script names. -# Leading spaces are dropped from template lines. -# -# If you want to implement busybox support, this is the place to do it. -# -# Obviously, the template names and the attributes used in the template -# should match what is provided by the planner. -# -# - -use strict; -package Template; - - -my $templates = { - prologue => { - # In principle, we don't want device files on the initrd - # image: device numbers can change between kernels. - # Instead, create device files at boot time based on info - # in sysfs. However, /dev/null and /dev/console are needed - # to mount sysfs. - files => [ - '/dev/null', - '/dev/console', - '/bin/ash', - '/bin/cat', - '/bin/mkdir', - '/bin/mount', - '/bin/umount', - '/bin/mknod', - '/bin/sleep', - ], - directories => [ - '/mnt', '/proc', '/sys', '/dev', '/etc', '/var', - ], - trees => [], - scripts => { - '/init' => <<'//', - #!/bin/ash - - # Generator version: yaird . - # - set -x - # - # Utility functions - # - mksymdev () { - devfile="$1" - sysfile="$2" - cb="$3" - devpair=$(/bin/cat "$sysfile") - for delay in 1 2 4 8 16 - do - if [ "$devpair" = "" ] - then - echo "Waiting $delay seconds for $sysfile to show up" - sleep $delay - fi - devpair=$(/bin/cat "$sysfile") - done - - if [ "$devpair" = "" ] - then - echo "Device $sysfile seems to be down." - echo "Debugging opportunity, type ^D to continue." - /bin/dash - fi - - maj=${devpair%:*} - min=${devpair#*:} - /bin/mknod "$devfile" $cb $maj $min - } - mkcdev () { - mksymdev "$1" "/sys/class/$2/dev" c - } - mkbdev () { - mksymdev "$1" "/sys/block/$2/dev" b - } - - - # - # Setting up mounts - # - mount -nt sysfs sysfs /sys - mount -nt proc proc /proc - # In Fedora FC3, tmpfs *must* have the name - # 'none', otherwise start_udev, called from - # rc.sysinit will mount a new tmpfs over it, - # and you loose access to nodes such as - # /dev/vg0/root, expected to be created by - # LVM in initramfs. - mount -nt tmpfs none /dev - - # - # - # Command line processing - # init - first proc to start on next root - # root - to be done: how should it relate - # to file system selection? - # ro,rw - mount root read-only or read-write. - # This is like a mount -r; it overrules - # a -o rw. - # noresume, resume - to be done - # ide - options for module ide_core. - # need a way to append these to proper - # module. do a check on module name - # in insmod template? - # - ro=-r - init=/sbin/init - for i in $(cat /proc/cmdline) - do - case "$i" in - init=*) - init=${i#init=} - ;; - ro) - ro=-r - ;; - rw) - ro= - esac - done -// - }, - }, - - insmod => { - files => [ - '', - '/sbin/insmod', - ], - directories => [], - trees => [], - scripts => { - '/init' => <<'//', - /sbin/insmod '' -// - }, - - }, - - mkbdev => { - files => [], - directories => [], - trees => [], - scripts => { - '/init' => <<'//', - mkbdev '' '' -// - }, - }, - - vgchange => { - # - # Use static version. Note that fedora starts with - # empty /dev, so we must make device nodes explicitly. - # - files => [ - '/sbin/lvm', - ], - directories => [], - trees => [], - scripts => { - # We cannot make mapper/control any earlier, - # since dm-mod needs to be loaded to be able - # to determine devno. - '/init' => <<'//', - if [ ! -c /dev/mapper/control ] - then - /bin/mkdir /dev/mapper - mkcdev /dev/mapper/control misc/device-mapper - fi - /bin/mount -nt tmpfs tmpfs /etc - /bin/mount -nt tmpfs tmpfs /var - /sbin/lvm vgchange -a y '' - /sbin/lvm vgmknodes - /bin/umount -n /var - /bin/umount -n /etc -// - }, - }, - - mdadm => { - files => [ - '/sbin/mdadm', - ], - directories => [], - trees => [], - scripts => { - # - # NOTE: mdadm can operate without knowledge - # of device numbers; it will assign an unused - # one to the new device. Thus you could have - # device name /dev/md/boot that is stable, - # regardless of which other raid devices are - # operational. However, debian installer - # consistently uses device names like /dev/md0, - # where the name depends on earlier minors - # that happen to have been assigned. - # To work around this problem, we forego - # the --auto option, and mknod the device - # before putting an md under it. Better hope - # the major number is not going to change ... - # - '/init' => <<'//', - mknod b - mdadm --assemble --uuid \ - -// - } - }, - - mount => { - files => [], - directories => [], - trees => [], - scripts => { - # - # NOTE: honouring the kernel cmdline option ro,rw - # is very nice, but... If you have an ext3 in a - # file loopback-mounted from vfat, it's unlikely - # that a remount rw of root will also make the - # underlying vfat read-write. Underlying filesystems - # should ignore the kernel ro/rw option; we - # have an attribute isRoot that's defined iff - # this is the real root. - # - # always -n, since we dont have writable /etc/mtab. - # - '/init' => <<'//', - mount -n \ - $ro \ - -t \ - \ - \ - -// - } - }, - - postlude => { - files => [ - '/run_init', - ], - directories => [], - trees => [], - scripts => { - # - # fedora does not come with populated /dev - # on root and needs at least /dev/console. - # Pass them via tmpfs. - # - # Do *not* do a pivot_root here. We're - # working from rootfs; a pivotroot would - # make that end up in /initrd, which gets - # unmounted by rc.sysinit, and without rootfs, - # too much is broken to even do a panic. - # - # Instead use run_init from klibc, which uses - # a magical combination of mount --move /mnt /, - # chdir and chroot. - # - - '/init' => <<'//', - echo "Debugging opportunity, ^D to continue." - /bin/ash - - echo "Switching root ..." - cd /mnt - mkcdev /dev/null mem/null - mkcdev /dev/zero mem/zero - mkcdev /dev/console tty/console - mkdir /dev/pts - mkdir /dev/shm - mount -n -t tmpfs --bind /dev /mnt/dev - /bin/umount -n /sys - /bin/umount -n /proc - exec /run_init \ - /mnt $init "$@" -// - } - }, -}; - -sub template ($) { return $templates->{$_[0]}; } - - -1;