pax_global_header00006660000000000000000000000064122536626650014527gustar00rootroot0000000000000052 comment=cf0788c50b0e5bc066fa5d2462f070124b88a221 libosinfo-0.2.9/000077500000000000000000000000001225366266500135235ustar00rootroot00000000000000libosinfo-0.2.9/.gitignore000066400000000000000000000044421225366266500155170ustar00rootroot00000000000000ChangeLog AUTHORS *.[ao] *.l[ao] *~ .deps .libs .sc-start-sc_* Makefile Makefile.in aclocal.m4 autom4te.cache build-aux/config.guess build-aux/config.sub build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh build-aux/missing build-aux/mkinstalldirs build-aux/config.rpath build-aux/test-driver config.cache config.h config.h.in config.log config.status configure intltool-extract.in intltool-merge.in intltool-update.in libtool m4 stamp-h1 test/test-skeleton test/test-skeleton.sh osinfo/libosinfo.pc osinfo/Libosinfo-1.0.gir osinfo/Libosinfo-1.0.typelib osinfo/libosinfo-1.0.vapi osinfo/osinfo_enum_types.[ch] *.gcno *.gcda coverage/ *.spec *.pc test/test-device test/test-os test/test-entity test/test-hypervisor test/test-list test/test-db test/test-devicelist test/test-filter test/test-hypervisorlist test/test-install-script test/test-loader test/test-productfilter test/test-oslist test/test-product test/test-platform test/test-platformlist test/test-isodetect test/test-mediauris test/test-treeuris test/*.log test/*.trs build/ gtk-doc.make data/95-osinfo.rules data/devices/qemu-pci.xml data/devices/qemu-ps2.xml data/devices/qemu-usb.xml data/devices/virtio-pci.xml data/devices/xen.xml data/hypervisors/kvm.xml data/hypervisors/qemu.xml data/hypervisors/rhel-xen.xml data/hypervisors/xen.xml data/pci.ids data/oses/altlinux.xml data/oses/centos.xml data/oses/debian.xml data/oses/dos.xml data/oses/fedora.xml data/oses/freebsd.xml data/oses/gnome.xml data/oses/mandrake.xml data/oses/mandriva.xml data/oses/macos.xml data/oses/netbsd.xml data/oses/netware.xml data/oses/openbsd.xml data/oses/opensuse.xml data/oses/rhel.xml data/oses/rhl.xml data/oses/solaris.xml data/oses/suse.xml data/oses/ubuntu.xml data/oses/windows.xml data/usb.ids tools/osinfo-detect tools/osinfo-detect.1 tools/osinfo-detect.exe tools/osinfo-db-validate tools/osinfo-db-validate.exe tools/osinfo-db-validate.1 tools/osinfo-query tools/osinfo-query.1 tools/osinfo-query.exe tools/osinfo-install-script tools/osinfo-install-script.exe tools/osinfo-install-script.1 docs/reference/Libosinfo.types po/.intltool-merge-cache po/Makefile.in.in po/POTFILES po/libosinfo.pot po/stamp-it po/Makevars.template po/Rules-quot po/boldquot.sed po/en@boldquot.header po/en@quot.header po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/*.gmo ABOUT-NLS libosinfo-0.2.9/.mailmap000066400000000000000000000001161225366266500151420ustar00rootroot00000000000000Daniel P. Berrange Daniel P. Berrange libosinfo-0.2.9/AUTHORS.in000066400000000000000000000004651225366266500152050ustar00rootroot00000000000000 libosinfo Authors ================= Current maintainers: Zeeshan Ali (Khattak) Daniel P. Berrange Previous maintainers: Arjun Roy Patches contributed by: #authorslist# ...send patches to get your name here... -- End libosinfo-0.2.9/COPYING000066400000000000000000000431031225366266500145570ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 Lesser 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) 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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) year 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 Lesser General Public License instead of this License. libosinfo-0.2.9/COPYING.LIB000066400000000000000000000636421225366266500151760ustar00rootroot00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, 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 and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, 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 library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete 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 distribute a copy of this License along with the Library. 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 Library or any portion of it, thus forming a work based on the Library, 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) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, 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 Library, 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 Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you 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. If distribution of 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 satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be 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. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library 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. 9. 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 Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library 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 with this License. 11. 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 Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library 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 Library. 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. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library 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. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser 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 Library 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 Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, 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 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "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 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. 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 LIBRARY 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 LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), 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 Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. 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) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! libosinfo-0.2.9/GNUmakefile000066400000000000000000000113161225366266500155770ustar00rootroot00000000000000# Having a separate GNUmakefile lets me `include' the dynamically # generated rules created via cfg.mk (package-local configuration) # as well as maint.mk (generic maintainer rules). # This makefile is used only if you run GNU Make. # It is necessary if you want to build targets usually of interest # only to the maintainer. # Copyright (C) 2001, 2003, 2006-2011 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 3 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, see . # Systems where /bin/sh is not the default shell need this. The $(shell) # command below won't work with e.g. stock DOS/Windows shells. ifeq ($(wildcard /bin/s[h]),/bin/sh) SHELL = /bin/sh else # will be used only with the next shell-test line, then overwritten # by a configured-in value SHELL = sh endif # If the user runs GNU make but has not yet run ./configure, # give them a diagnostic. _have-Makefile := $(shell test -f Makefile && echo yes) ifeq ($(_have-Makefile),yes) # Make tar archive easier to reproduce. export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner # Allow the user to add to this in the Makefile. ALL_RECURSIVE_TARGETS = include Makefile # Some projects override e.g., _autoreconf here. -include $(srcdir)/cfg.mk # Allow cfg.mk to override these. _build-aux ?= build-aux _autoreconf ?= autoreconf -v include $(srcdir)/maint.mk # Ensure that $(VERSION) is up to date for dist-related targets, but not # for others: rerunning autoreconf and recompiling everything isn't cheap. _have-git-version-gen := \ $(shell test -f $(srcdir)/$(_build-aux)/git-version-gen && echo yes) ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL)) _is-dist-target ?= $(filter-out %clean, \ $(filter maintainer-% dist% alpha beta stable,$(MAKECMDGOALS))) _is-install-target ?= $(filter-out %check, $(filter install%,$(MAKECMDGOALS))) ifneq (,$(_is-dist-target)$(_is-install-target)) _curr-ver := $(shell cd $(srcdir) \ && $(_build-aux)/git-version-gen \ .tarball-version \ $(git-version-gen-tag-sed-script)) ifneq ($(_curr-ver),$(VERSION)) ifeq ($(_curr-ver),UNKNOWN) $(info WARNING: unable to verify if $(VERSION) is the correct version) else ifneq (,$(_is-install-target)) # GNU Coding Standards state that 'make install' should not cause # recompilation after 'make all'. But as long as changing the version # string alters config.h, the cost of having 'make all' always have an # up-to-date version is prohibitive. So, as a compromise, we merely # warn when installing a version string that is out of date; the user # should run 'autoreconf' (or something like 'make distcheck') to # fix the version, 'make all' to propagate it, then 'make install'. $(info WARNING: version string $(VERSION) is out of date;) $(info run '$(MAKE) _version' to fix it) else $(info INFO: running autoreconf for new version string: $(_curr-ver)) GNUmakefile: _version touch GNUmakefile endif endif endif endif endif .PHONY: _version _version: cd $(srcdir) && rm -rf autom4te.cache .version && $(_autoreconf) $(MAKE) $(AM_MAKEFLAGS) Makefile else .DEFAULT_GOAL := abort-due-to-no-makefile srcdir = . # The package can override .DEFAULT_GOAL to run actions like autoreconf. -include ./cfg.mk include ./maint.mk ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile) $(MAKECMDGOALS): abort-due-to-no-makefile endif abort-due-to-no-makefile: @echo There seems to be no Makefile in this directory. 1>&2 @echo "You must run ./configure before running \`make'." 1>&2 @exit 1 endif # Tell version 3.79 and up of GNU make to not build goals in this # directory in parallel, in case someone tries to build multiple # targets, and one of them can cause a recursive target to be invoked. # Only set this if Automake doesn't provide it. AM_RECURSIVE_TARGETS ?= $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) \ dist distcheck tags ctags ALL_RECURSIVE_TARGETS += $(AM_RECURSIVE_TARGETS) ifneq ($(word 2, $(MAKECMDGOALS)), ) ifneq ($(filter $(ALL_RECURSIVE_TARGETS), $(MAKECMDGOALS)), ) .NOTPARALLEL: endif endif libosinfo-0.2.9/INSTALL000066400000000000000000000262211225366266500145570ustar00rootroot00000000000000Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. 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 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. Running `configure' might take a while. 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. 6. Often, you can also type `make uninstall' to remove the installed files again. 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=c99 CFLAGS=-g 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 can use 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 `..'. With a non-GNU `make', it is safer 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. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', 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 pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files 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. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae" and if that doesn't work, install pre-built binaries of GCC for HP-UX. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" 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 option `--target=TYPE' 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). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--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. `--prefix=DIR' Use DIR as the installation prefix. *Note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. libosinfo-0.2.9/MAINTAINERS000066400000000000000000000001251225366266500152160ustar00rootroot00000000000000Daniel P. Berrange Zeeshan Ali (Khattak) libosinfo-0.2.9/Makefile.am000066400000000000000000000040461225366266500155630ustar00rootroot00000000000000 SUBDIRS = osinfo data test tools docs po examples INTLTOOL_FILES = \ intltool-extract.in \ intltool-merge.in \ intltool-update.in \ $(NULL) DISTCLEANFILES = \ intltool-extract \ intltool-merge \ intltool-update \ po/.intltool-merge-cache \ $(NULL) EXTRA_DIST = \ COPYING.LIB \ libosinfo.spec \ libosinfo.spec.in \ mingw-libosinfo.spec.in \ build-aux/mktempd \ cfg.mk \ GNUmakefile \ maint.mk \ AUTHORS.in \ $(INTLTOOL_FILES) \ $(NULL) MAINTAINERCLEANFILES = \ po/Makefile.in.in \ po/Makevars.template \ po/Rules-quot \ po/boldquot.sed \ po/en@boldquot.header \ po/en@quot.header \ po/insert-header.sin \ po/quot.sed \ po/remove-potcdate.sin \ $(NULL) DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc ACLOCAL_AMFLAGS = -I m4 LCOV = lcov GENHTML = genhtml cov: clean-cov mkdir $(top_builddir)/coverage $(LCOV) -c -o $(top_builddir)/coverage/libosinfo.info.tmp \ -d $(top_builddir)/osinfo $(LCOV) -r $(top_builddir)/coverage/libosinfo.info.tmp \ -o $(top_builddir)/coverage/libosinfo.info rm $(top_builddir)/coverage/libosinfo.info.tmp $(GENHTML) --show-details -t "libosinfo" -o $(top_builddir)/coverage \ --legend $(top_builddir)/coverage/libosinfo.info clean-cov: rm -rf $(top_builddir)/coverage dist-hook: gen-ChangeLog gen-AUTHORS # Generate the ChangeLog file (with all entries since the switch to git) # and insert it into the directory we're about to use to create a tarball. .PHONY: gen-ChangeLog gen-AUTHORS gen-ChangeLog: if test -d .git; then \ $(top_srcdir)/build-aux/gitlog-to-changelog \ > $(distdir)/cl-t; \ rm -f $(distdir)/ChangeLog; \ mv $(distdir)/cl-t $(distdir)/ChangeLog; \ fi gen-AUTHORS: $(AM_V_GEN)if test -d $(srcdir)/.git; then \ out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \ perl -p -e "s/#authorslist#// and print '$$out'" \ < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \ mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ; \ fi libosinfo-0.2.9/NEWS000066400000000000000000000266001225366266500142260ustar00rootroot000000000000000.2.9 - Dec 16, 2013 ==================== Changes since 0.2.8: - Add/improve/fix data on: - Debian - Fedora 20 - GNOME continuous 3.12 - Mageia - Microsoft Windows 7 - Microsoft Windows 8.1 - RHEL 5.8 - RHEL 6.5 - RHEL 7.0 - Support '' syntax for booleans in database, in addition to existing 'true'. - New API/XML to determine/specify: - if an OS is an actual release, a pre-release or a development snapshot. - variants of an OS. For example, professional, enterprise and ultimate editions of Windows OSs and workstation and server variants of RHEL etc. - Various fixes to build system. - More testcases. - Some other minor fixes/changes. 0.2.8 - Sep 16, 2013 ==================== Changes since 0.2.7: - Add/improve/fix data on: - ALTLinux - Fedora 19 - Fedora 20 - FreeBSD - GNOME 3.8 - GNOME 3.10 - Microsoft Windows 7 - QEMU - Ubuntu - Add testcases for media detection: - Microsoft Windows Server 2008 R2 - Fix export of public API. - Hide private API. - Fix a parallel build issue. - Fix build against latest intltool. - Drop usage of deprecated API. 0.2.7 - May 13, 2013 ==================== Changes since 0.2.6: - Add/improve/fix data on: - CentOS 6.* - Fedora 19 - GNOME 3.8 - openSUSE 12.3 - RHEL 6.4 - Ubuntu 13.04 - Add testcases for media detection: - Debian 7.0.* - Fedora 17, 18 and 19 - Ubuntu 12.10 and 13.04 - Installer script fixes/improvements: - Setup user avatar for Windows 7. - Fix against old RHEL and Fedora. - Specify installation method for Fedora (required by Fedora 19). - New API: - osinfo_platform_get_all_devices() - osinfo_install_script_generate_command_line() - build: - Take DESTDIR into account when creating symlinks. - Fix issues with installing in a tree where libosinfo was already installed. - Fix a race-condition regarding usb.ids/pci.ids setup. - Disable static libraries by default. - Some portability improments/fixes. - Fixes `make syntax-check`. - More docs and fixes to existing docs. 0.2.6 - March 18, 2013 ====================== Changes since 0.2.5: - New API to: - query signed status of device drivers. - query device driver signing requirement of installer scripts. - enable/disable installer script driver signing checks. - Use system-installed pci.ids/usb.ids files, if available. - Don't ignore vendor/device names from pci.ids/usb.ids files. - Corrections to RPM spec. 0.2.5 - March 04, 2013 ====================== Changes since 0.2.4: - Make use of post-installation drivers in Windows 7 install scripts. This implies apps can now easily setup virtio+QXL device drivers and spice-vdagent as part of Windows 7 unattended installation. - Windows 7 install script now requires product key, mainly because product key is the only way to choose product when dealing with installer media with multiple products on it. - Actually add install scripts for Windows 8. This was supposed to be merged in release 0.2.3. - Formalize architecture names in DB to align with libvirt. The main change is that i386, i486, i586, all merge to just i686, since in practice these differences haven't mattered for at least 15 years now. - Fixes to mingw RPM spec from Fedora. - Add a Windows 7 volume ID to DB. 0.2.4 - Feb 19, 2013 ==================== Changes since 0.2.3: - Fix crash in osinfo-detect against non-bootable media. - osinfo-install-script now displays names of generated files. - Add an all-in-one virtio and QXL device driver setup binary to Windows XP and 7. Same binary also installs spice-vdagent for us. - Make use of post-installation drivers in Windows XP installer scripts. - Log post-install commands of Windows XP to target disk. - Add/improve/fix data on: - QEMU/QEMU-KVM hypervisor - GNOME - openSUSE - RPM spec file changes: - Include datamaps and locale files. - Pointto libosinfo official website. - Disable udev rule on Fedora >= 19. Changes in udev > 197 and libblkid > 2.22.2 have made this rule obsolete. - Adapt to glib 2.36. - Fix some build warnings. - Some other fixes and improvements. 0.2.3 - Jan 14, 2013 ==================== Changes since 0.2.2: - Add datamaps for translating OS-neutral values to OS-specific ones, e.g some installer configuration parameters like keyboard, language and timezone etc. - New API to detect media that makes it possible to also query languages supported by the media. - Add install scripts for: - RHEL 6.x. - Microsoft Windows 8 - Fix install script for Fedora 18. - Drop support for encoding in l10n install script configuration parameters. - Fix test build issues. - Fixes and improvements to documentation. - Fix potential issues spotted by Coverity. - Fix build for translations. - osinfo-install-script tool now has options to list available configuration parameters and profiles. - Add/improve data on: - RHEL - Debian - openSUSE - Microsoft Windows 7 - Ubuntu - MacOS X - Added translations: - Ukrainian - Polish - Many other fixes and improvements. 0.2.2 - Dec 10, 2012 ==================== Changes since 0.2.1: - Loads of improvements and fixes to installer APIs and scripts. Now they are in such a good shape that next release of Boxes will make full use of them. - Add API for information on downloadable device drivers. As a starting point, information on virtio storage drivers for Windows XP and 7 is provided. - Add/improve data on: - RHEL - Windows 7 - Windows 8 - Windows XP - Enable translations for many (potential) user-visible strings. No translations submitted yet. :( - Correct default value for OsinfoMedia::installer-reboots. - Register enum types with gobject type system. - Add enum param getter/setter helpers. - OsinfoList is now instantiable and all its subclasses has been deprecated. Newer code should use OsinfoList directly. - Various other fixes and improvements. 0.2.1 - Oct 12, 2012 ==================== Changes since 0.2.0: - Fix and simplify udev rule. - Fedora: - Fix minimum RAM requirements for F16 and F17. - Add data on: - Fedora 18 - GNOME 3.6 - Ubuntu 12.10 - Fixes to doc build. - Install script: - Add get_config_param method. - Differenciate between expected/output script names. - Add more utility functions. - Add 'installer-reboots' parameter to medias. - osinfo-detect does not die of DB loading errors anymore. - More type-specific entity value getters/setters. - Fixe and update RNG file. - Add 'subsystem' property/attribute to devices. 0.2.0 - Aug 31, 2012 ==================== Introducing a new set of APIs to enable application developers to easily create unattended/automated installation scripts for various operating systems. Currently only Fedora and Microsoft Windows are supported. Also provided is a commandline tool, 'osinfo-install-script' to easily create such scripts without having to write any code. Other changes since 0.1.2: - Fix build against mingw64 toolchain. - API for getting product logo URLs. - Fix architecture for a Windows 2008 media. - Remove bogus minimum storage information for Fedora. - Add varirables for system and local database paths in pkg-config. 0.1.2 - Jun 11, 2012 ==================== Changes since 0.1.1: - Fix udev rules for CDROM media. - Fix build against newer glibc-headers when building with -O0. - More complete/up2date data for: - Fedora 17 - Ubuntu - Windows - Fix data for: - Ubuntu - Correct order of elements returned by list union functions. 0.1.1 - Apr 12, 2012 ==================== Changes since 0.1.0: - Fixes to OS media detection. - Add support for more OSs: - NetBSD - Mandrake - More complete data for: - Debian - Fedora - RHEL - Ubuntu - Windows - OpenBSD - FreeBSD - Mandriva - Fix data for: - Fedora - openSUSE - Ubuntu - Windows - Add support for install tree metadata. - Add support for filtering products based on release/EOL dates. - Add support for product codenames. - Add support for 'distro'. - Also extract application ID from ISO9660 media. - Add test cases for validating ISO9660 data. - Disable obsolete media URLs. - Standardize OS family names as all lowercase. - Standardize format for OS id, short-id, distro, version. - Add RNG schema for database files. - Add a 'osinfo-db-validate' command for verifying database files. - Add a 'osinfo-query' command for searching/listing information from database. - Add a man page for the osinfo-detect command. - Add support for loading extra local database files. By default, libosinfo will expect them to be in /etc/libosinfo/db and $HOME/.local/config/libosinfo/db but new API is provided to change this behavior. - Fix generation of docs in a VPATH builder. - Fix loading of vendor and product names of USB and PCI devices. - Remove obsolete scripts for PCI/USB id conversion. - Remove redundant generic linux entries from database. - Fixes for 'make dist'. - Actually handle '--enable-vala' configure option and don't mandate vapigen if this option is not specified. - Add missing export of osinfo_entity_set_param. - Various other fixes and improvements. 0.1.0 - Feb 7, 2012 =================== This release marks the start of the API/ABI stability promise. While some APIs may become deprecated in the future, no APIs will be removed/changed in an incompatible manner. In the unlikely event that an incompatible API change becomes necessary, the library soname will be incremented to allow parallel installation of both old & new libraries. Changes since 0.0.5: - Add Utility function to retrieve OS devices by property. - Improved OS media detection. - Add missing 'const' OsinfoList function params. - Use ENV{} in udev rule. 0.0.5 - Jan 16, 2012 ==================== Changes since 0.0.4: - Add QXL to supported devices of windows and Fedora. - Distribute and install forgotten device XML files. - Add all metadata from default path, not just OS. - List supported audio devices for Windows and Fedora. - Specify 'derives-from' relationship for Fedora OSs. - Add API to retreive all supported devices for an OS. - Fix some potential issues related to memory allocation/alignment. 0.0.4 - Dec 19, 2011 ==================== Changes since 0.0.3: - Fix silly mistakes in udev rules file. 0.0.3 - Dec 16, 2011 ==================== Changes since 0.0.2: - Add lots of more data on various different OSs out there. Now we also support some Apple OSs. - On successful OS detection, inform the application which known media of the OS the given media matched against. osinfo-detect tool and udev rule updated to make us of this. - Support applications' right to not be interested in error details. - Minor fixes/improvements to OS detection logic. - API to indicate media is live and/or installer. - Don't match non-live Fedora ISOs against live ones. - Fixes to Python demo to make it work. - Fix some potential crashes. - Fixes to RPM spec file. - Distribute RPM spec file. - Complement some getters with corresponding gobject properties. - Few other random minor fixes. WARNING: This release (slightly) breaks API with the last one. 0.0.2 - Nov 22, 2011 ==================== Changes since 0.0.1: - Improve media detection for Fedora, RHEL and Windows 7. - More complete documentation. - Fix configure script to not require 'check' when tests are disabled. - More automated documentation generation. - Add Fedora 16 metadata. - Recommend 9 GiB storage for Fedora 14-16. - Add openSUSE data. - Fix some copy&paste mistakes in OS database. - Add media information for 2011 Ubuntu releases and CentOS 6.0. - Improve README file. 0.0.1 ===== First public release. libosinfo-0.2.9/README000066400000000000000000000023251225366266500144050ustar00rootroot00000000000000libosinfo ========= libosinfo is a GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support. It includes a database containing device metadata and provides APIs to match/identify optimal devices for deploying an operating system on a hypervisor. Via the magic of GObject Introspection, the API is available in all common programming languages with demos for javascript (GJS/Seed) and python (PyGObject). Also provided are Vala bindings. libosinfo is Free Software and licenced under LGPLv2+. The latest official releases can be found at: https://fedorahosted.org/releases/l/i/libosinfo/ Dependencies ============ - Required: - gobject-2.0 - gio-2.0 - libsoup-2.4 - libxml-2.0 - libxslt-1.0 - Optional: - gobject-introspection - Vala (build-time only) Patches sumissions ================== Patch submissions are welcomed from any interested contributor. Please use the virt-tools-list for any patch submissions, or discussions about the code: https://www.redhat.com/mailman/listinfo/virt-tools-list For further information about libosinfo please consult the project homepage https://fedorahosted.org/libosinfo/ --End libosinfo-0.2.9/autobuild.sh000077500000000000000000000040331225366266500160520ustar00rootroot00000000000000#!/bin/sh set -e set -v test -n "$1" && RESULTS=$1 || RESULTS=results.log # Make things clean. test -f Makefile && make -k distclean || : rm -rf build mkdir build cd build ../autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT \ --enable-compile-warnings=error make make install # set -o pipefail is a bashism; this use of exec is the POSIX alternative exec 3>&1 st=$( exec 4>&1 >&3 { make check syntax-check 2>&1 3>&- 4>&-; echo $? >&4; } | tee "$RESULTS" ) exec 3>&- test "$st" = 0 rm -f *.tar.gz make dist if [ -n "$AUTOBUILD_COUNTER" ]; then EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER" else NOW=`date +"%s"` EXTRA_RELEASE=".$USER$NOW" fi if [ -f /usr/bin/rpmbuild ]; then rpmbuild --nodeps \ --define "extra_release $EXTRA_RELEASE" \ --define "_sourcedir `pwd`" \ -ba --clean libosinfo.spec fi # Test mingw32 cross-compile if test -x /usr/bin/i686-w64-mingw32-gcc ; then make distclean PKG_CONFIG_PATH="$AUTOBUILD_INSTALL_ROOT/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig" \ CC="i686-w64-mingw32-gcc" \ ../configure \ --build=$(uname -m)-pc-linux \ --host=i686-w64-mingw32 \ --prefix="$AUTOBUILD_INSTALL_ROOT/i686-w64-mingw32/sys-root/mingw" \ --enable-werror \ --enable-introspection=no \ --enable-tests=no make make install fi # Test mingw64 cross-compile if test -x /usr/bin/x86_64-w64-mingw32-gcc ; then make distclean PKG_CONFIG_PATH="$AUTOBUILD_INSTALL_ROOT/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig" \ CC="x86_64-w64-mingw32-gcc" \ ../configure \ --build=$(uname -m)-pc-linux \ --host=x86_64-w64-mingw32 \ --prefix="$AUTOBUILD_INSTALL_ROOT/i686-w64-mingw32/sys-root/mingw" \ --enable-werror \ --enable-introspection=no \ --enable-tests=no make make install fi if test -x /usr/bin/i686-w64-mingw32-gcc && test -x /usr/bin/x86_64-w64-mingw32-gcc ; then if test -f /usr/bin/rpmbuild ; then rpmbuild --nodeps \ --define "extra_release $EXTRA_RELEASE" \ --define "_sourcedir `pwd`" \ -ba --clean mingw-libosinfo.spec fi fi libosinfo-0.2.9/autogen.sh000077500000000000000000000012311225366266500155210ustar00rootroot00000000000000#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` test -z "$srcdir" && srcdir=. PKG_NAME="libosinfo" (test -f $srcdir/osinfo/osinfo_db.c) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" echo " top-level $PKG_NAME directory" exit 1 } which gnome-autogen.sh || { echo "You need to install gnome-common from the GNOME git" exit 1 } # Real ChangeLog/AUTHORS is auto-generated from GIT logs at # make dist time, but automake requires that it # exists at all times :-( touch ChangeLog AUTHORS ACLOCAL_FLAGS="$ACLOCAL_FLAGS" USE_GNOME2_MACROS=1 . gnome-autogen.sh --enable-gtk-doc "$@" libosinfo-0.2.9/build-aux/000077500000000000000000000000001225366266500154155ustar00rootroot00000000000000libosinfo-0.2.9/build-aux/gitlog-to-changelog000077500000000000000000000126451225366266500212050ustar00rootroot00000000000000eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}' & eval 'exec perl -wS "$0" $argv:q' if 0; # Convert git log output to ChangeLog format. my $VERSION = '2009-10-30 13:46'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook # do its job. Otherwise, update this string manually. # Copyright (C) 2008-2011 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 3 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, see . # Written by Jim Meyering use strict; use warnings; use Getopt::Long; use POSIX qw(strftime); (my $ME = $0) =~ s|.*/||; # use File::Coda; # http://meyering.net/code/Coda/ END { defined fileno STDOUT or return; close STDOUT and return; warn "$ME: failed to close standard output: $!\n"; $? ||= 1; } sub usage ($) { my ($exit_code) = @_; my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR); if ($exit_code != 0) { print $STREAM "Try `$ME --help' for more information.\n"; } else { print $STREAM < ChangeLog $ME -- -n 5 foo > last-5-commits-to-branch-foo EOF } exit $exit_code; } # If the string $S is a well-behaved file name, simply return it. # If it contains white space, quotes, etc., quote it, and return the new string. sub shell_quote($) { my ($s) = @_; if ($s =~ m![^\w+/.,-]!) { # Convert each single quote to '\'' $s =~ s/\'/\'\\\'\'/g; # Then single quote the string. $s = "'$s'"; } return $s; } sub quoted_cmd(@) { return join (' ', map {shell_quote $_} @_); } { my $since_date = '1970-01-01 UTC'; my $format_string = '%s%n%b%n'; GetOptions ( help => sub { usage 0 }, version => sub { print "$ME version $VERSION\n"; exit }, 'since=s' => \$since_date, 'format=s' => \$format_string, ) or usage 1; my @cmd = (qw (git log --log-size), "--since=$since_date", '--pretty=format:%ct %an <%ae>%n%n'.$format_string, @ARGV); open PIPE, '-|', @cmd or die ("$ME: failed to run `". quoted_cmd (@cmd) ."': $!\n" . "(Is your Git too old? Version 1.5.1 or later is required.)\n"); my $prev_date_line = ''; while (1) { defined (my $in = ) or last; $in =~ /^log size (\d+)$/ or die "$ME:$.: Invalid line (expected log size):\n$in"; my $log_nbytes = $1; my $log; my $n_read = read PIPE, $log, $log_nbytes; $n_read == $log_nbytes or die "$ME:$.: unexpected EOF\n"; my @line = split "\n", $log; my $author_line = shift @line; defined $author_line or die "$ME:$.: unexpected EOF\n"; $author_line =~ /^(\d+) (.*>)$/ or die "$ME:$.: Invalid line " . "(expected date/author/email):\n$author_line\n"; my $date_line = sprintf "%s $2\n", strftime ("%F", localtime ($1)); # If this line would be the same as the previous date/name/email # line, then arrange not to print it. if ($date_line ne $prev_date_line) { $prev_date_line eq '' or print "\n"; print $date_line; } $prev_date_line = $date_line; # Omit "Signed-off-by..." lines. @line = grep !/^Signed-off-by: .*>$/, @line; # If there were any lines if (@line == 0) { warn "$ME: warning: empty commit message:\n $date_line\n"; } else { # Remove leading and trailing blank lines. while ($line[0] =~ /^\s*$/) { shift @line; } while ($line[$#line] =~ /^\s*$/) { pop @line; } # Prefix each non-empty line with a TAB. @line = map { length $_ ? "\t$_" : '' } @line; print "\n", join ("\n", @line), "\n"; } defined ($in = ) or last; $in ne "\n" and die "$ME:$.: unexpected line:\n$in"; } close PIPE or die "$ME: error closing pipe from " . quoted_cmd (@cmd) . "\n"; # FIXME-someday: include $PROCESS_STATUS in the diagnostic } # Local Variables: # mode: perl # indent-tabs-mode: nil # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "my $VERSION = '" # time-stamp-format: "%:y-%02m-%02d %02H:%02M" # time-stamp-time-zone: "UTC" # time-stamp-end: "'; # UTC" # End: libosinfo-0.2.9/build-aux/mktempd000077500000000000000000000072151225366266500170110ustar00rootroot00000000000000#!/bin/sh # Create a temporary directory, much like mktemp -d does. # Copyright (C) 2007-2012 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 3 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, see . # Written by Jim Meyering. # Usage: mktempd /tmp phoey.XXXXXXXXXX # First, try to use the mktemp program. # Failing that, we'll roll our own mktemp-like function: # - try to get random bytes from /dev/urandom # - failing that, generate output from a combination of quickly-varying # sources and gzip. Ignore non-varying gzip header, and extract # "random" bits from there. # - given those bits, map to file-name bytes using tr, and try to create # the desired directory. # - make only $MAX_TRIES attempts ME=`basename "$0"` die() { echo >&2 "$ME: $@"; exit 1; } MAX_TRIES=4 rand_bytes() { n=$1 chars=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 dev_rand=/dev/urandom if test -r "$dev_rand"; then # Note: 256-length($chars) == 194; 3 copies of $chars is 186 + 8 = 194. dd ibs=$n count=1 if="$dev_rand" 2>/dev/null \ | tr -c $chars 01234567$chars$chars$chars return fi cmds='date; date +%N; free; who -a; w; ps auxww; ps ef; netstat -n' data=` (eval "$cmds") 2>&1 | gzip ` n_plus_50=`expr $n + 50` # Ensure that $data has length at least 50+$n while :; do len=`echo "$data"|wc -c` test $n_plus_50 -le $len && break; data=` (echo "$data"; eval "$cmds") 2>&1 | gzip ` done echo "$data" \ | dd bs=1 skip=50 count=$n 2>/dev/null \ | tr -c $chars 01234567$chars$chars$chars } mktempd() { case $# in 2);; *) die "Usage: $ME DIR TEMPLATE";; esac destdir=$1 template=$2 # Disallow any trailing slash on specified destdir: # it would subvert the post-mktemp "case"-based destdir test. case $destdir in /) ;; */) die "invalid destination dir: remove trailing slash(es)";; esac case $template in *XXXX) ;; *) die "invalid template: $template (must have a suffix of at least 4 X's)";; esac fail=0 # First, try to use mktemp. d=`env -u TMPDIR mktemp -d -t -p "$destdir" "$template" 2>/dev/null` \ || fail=1 # The resulting name must be in the specified directory. case $d in "$destdir"*);; *) fail=1;; esac # It must have created the directory. test -d "$d" || fail=1 # It must have 0700 permissions. Handle sticky "S" bits. perms=`ls -dgo "$d" 2>/dev/null|tr S -` || fail=1 case $perms in drwx------*) ;; *) fail=1;; esac test $fail = 0 && { echo "$d" return } # If we reach this point, we'll have to create a directory manually. # Get a copy of the template without its suffix of X's. base_template=`echo "$template"|sed 's/XX*$//'` # Calculate how many X's we've just removed. template_length=`echo "$template" | wc -c` nx=`echo "$base_template" | wc -c` nx=`expr $template_length - $nx` err= i=1 while :; do X=`rand_bytes $nx` candidate_dir="$destdir/$base_template$X" err=`mkdir -m 0700 "$candidate_dir" 2>&1` \ && { echo "$candidate_dir"; return; } test $MAX_TRIES -le $i && break; i=`expr $i + 1` done die "$err" } mktempd "$@" libosinfo-0.2.9/build-aux/useless-if-before-free000077500000000000000000000141141225366266500216020ustar00rootroot00000000000000eval '(exit $?0)' && eval 'exec perl -wST "$0" ${1+"$@"}' & eval 'exec perl -wST "$0" $argv:q' if 0; # Detect instances of "if (p) free (p);". # Likewise "if (p != 0)", "if (0 != p)", or with NULL; and with braces. my $VERSION = '2011-04-20 13:43'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook # do its job. Otherwise, update this string manually. # Copyright (C) 2008-2011 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 3 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, see . # Written by Jim Meyering use strict; use warnings; use Getopt::Long; (my $ME = $0) =~ s|.*/||; # use File::Coda; # http://meyering.net/code/Coda/ END { defined fileno STDOUT or return; close STDOUT and return; warn "$ME: failed to close standard output: $!\n"; $? ||= 1; } sub usage ($) { my ($exit_code) = @_; my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR); if ($exit_code != 0) { print $STREAM "Try `$ME --help' for more information.\n"; } else { print $STREAM < sub { usage 0 }, version => sub { print "$ME version $VERSION\n"; exit }, list => \$list, 'name=s@' => \@name, ) or usage 1; # Make sure we have the right number of non-option arguments. # Always tell the user why we fail. @ARGV < 1 and (warn "$ME: missing FILE argument\n"), usage EXIT_ERROR; my $or = join '|', @name; my $regexp = qr/(?:$or)/; # Set the input record separator. # Note: this makes it impractical to print line numbers. $/ = '"'; my $found_match = 0; FILE: foreach my $file (@ARGV) { open FH, '<', $file or (warn "$ME: can't open `$file' for reading: $!\n"), $err = EXIT_ERROR, next; while (defined (my $line = )) { while ($line =~ /\b(if\s*\(\s*([^)]+?)(?:\s*!=\s*([^)]+?))?\s*\) # 1 2 3 (?: \s*$regexp\s*\((?:\s*\([^)]+\))?\s*([^)]+)\)\s*;| \s*\{\s*$regexp\s*\((?:\s*\([^)]+\))?\s*([^)]+)\)\s*;\s*\}))/sxg) { my $all = $1; my ($lhs, $rhs) = ($2, $3); my ($free_opnd, $braced_free_opnd) = ($4, $5); my $non_NULL; if (!defined $rhs) { $non_NULL = $lhs } elsif (is_NULL $rhs) { $non_NULL = $lhs } elsif (is_NULL $lhs) { $non_NULL = $rhs } else { next } # Compare the non-NULL part of the "if" expression and the # free'd expression, without regard to white space. $non_NULL =~ tr/ \t//d; my $e2 = defined $free_opnd ? $free_opnd : $braced_free_opnd; $e2 =~ tr/ \t//d; if ($non_NULL eq $e2) { $found_match = 1; $list and (print "$file\0"), next FILE; print "$file: $all\n"; } } } } continue { close FH; } $found_match && $err == EXIT_NO_MATCH and $err = EXIT_MATCH; exit $err; } my $foo = <<'EOF'; # The above is to *find* them. # This adjusts them, removing the unnecessary "if (p)" part. # FIXME: do something like this as an option (doesn't do braces): free=xfree git grep -l -z "$free *(" \ | xargs -0 useless-if-before-free -l --name="$free" \ | xargs -0 perl -0x3b -pi -e \ 's/\bif\s*\(\s*(\S+?)(?:\s*!=\s*(?:0|NULL))?\s*\)\s+('"$free"'\s*\((?:\s*\([^)]+\))?\s*\1\s*\)\s*;)/$2/s' # Use the following to remove redundant uses of kfree inside braces. # Note that -0777 puts perl in slurp-whole-file mode; # but we have plenty of memory, these days... free=kfree git grep -l -z "$free *(" \ | xargs -0 useless-if-before-free -l --name="$free" \ | xargs -0 perl -0777 -pi -e \ 's/\bif\s*\(\s*(\S+?)(?:\s*!=\s*(?:0|NULL))?\s*\)\s*\{\s*('"$free"'\s*\((?:\s*\([^)]+\))?\s*\1\s*\);)\s*\}[^\n]*$/$2/gms' Be careful that the result of the above transformation is valid. If the matched string is followed by "else", then obviously, it won't be. When modifying files, refuse to process anything other than a regular file. EOF ## Local Variables: ## mode: perl ## indent-tabs-mode: nil ## eval: (add-hook 'write-file-hooks 'time-stamp) ## time-stamp-start: "my $VERSION = '" ## time-stamp-format: "%:y-%02m-%02d %02H:%02M" ## time-stamp-time-zone: "UTC" ## time-stamp-end: "'; # UTC" ## End: libosinfo-0.2.9/build-aux/vc-list-files000077500000000000000000000073431225366266500200330ustar00rootroot00000000000000#!/bin/sh # List version-controlled file names. # Print a version string. scriptversion=2011-05-16.22; # UTC # Copyright (C) 2006-2011 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 3 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, see . # List the specified version-controlled files. # With no argument, list them all. With a single DIRECTORY argument, # list the version-controlled files in that directory. # If there's an argument, it must be a single, "."-relative directory name. # cvsu is part of the cvsutils package: http://www.red-bean.com/cvsutils/ postprocess= case $1 in --help) cat <. EOF exit ;; --version) year=`echo "$scriptversion" | sed 's/[^0-9].*//'` cat < This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. EOF exit ;; -C) test "$2" = . || postprocess="| sed 's|^|$2/|'" cd "$2" || exit 1 shift; shift ;; esac test $# = 0 && set . for dir do if test -d .git; then test "x$dir" = x. \ && dir= sed_esc= \ || { dir="$dir/"; sed_esc=`echo "$dir"|env sed 's,\([\\/]\),\\\\\1,g'`; } # Ignore git symlinks - either they point into the tree, in which case # we don't need to visit the target twice, or they point somewhere # else (often into a submodule), in which case the content does not # belong to this package. eval exec git ls-tree -r 'HEAD:"$dir"' \ \| sed -n '"s/^100[^ ]*./$sed_esc/p"' $postprocess elif test -d .hg; then eval exec hg locate '"$dir/*"' $postprocess elif test -d .bzr; then test "$postprocess" = '' && postprocess="| sed 's|^\./||'" eval exec bzr ls -R --versioned '"$dir"' $postprocess elif test -d CVS; then test "$postprocess" = '' && postprocess="| sed 's|^\./||'" if test -x build-aux/cvsu; then eval build-aux/cvsu --find --types=AFGM '"$dir"' $postprocess elif (cvsu --help) >/dev/null 2>&1; then eval cvsu --find --types=AFGM '"$dir"' $postprocess else eval awk -F/ \''{ \ if (!$1 && $3 !~ /^-/) { \ f=FILENAME; \ if (f ~ /CVS\/Entries$/) \ f = substr(f, 1, length(f)-11); \ print f $2; \ }}'\'' \ `find "$dir" -name Entries -print` /dev/null' $postprocess fi elif test -d .svn; then eval exec svn list -R '"$dir"' $postprocess else echo "$0: Failed to determine type of version control used in `pwd`" 1>&2 exit 1 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: libosinfo-0.2.9/cfg.mk000066400000000000000000000105451225366266500146200ustar00rootroot00000000000000# Customize Makefile.maint. -*- makefile -*- # Copyright (C) 2008-2012 Red Hat, Inc. # Copyright (C) 2003-2008 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 3 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, see . # Tests not to run as part of "make distcheck". local-checks-to-skip = \ changelog-check \ makefile-check \ makefile_path_separator_check \ patch-check \ sc_GPL_version \ sc_always_defined_macros \ sc_cast_of_alloca_return_value \ sc_cross_check_PATH_usage_in_tests \ sc_dd_max_sym_length \ sc_error_exit_success \ sc_file_system \ sc_immutable_NEWS \ sc_makefile_path_separator_check \ sc_obsolete_symbols \ sc_prohibit_always_true_header_tests \ sc_prohibit_S_IS_definition \ sc_prohibit_atoi_atof \ sc_prohibit_hash_without_use \ sc_prohibit_jm_in_m4 \ sc_prohibit_quote_without_use \ sc_prohibit_quotearg_without_use \ sc_prohibit_stat_st_blocks \ sc_root_tests \ sc_space_tab \ sc_sun_os_names \ sc_system_h_headers \ sc_texinfo_acronym \ sc_tight_scope \ sc_two_space_separator_in_usage \ sc_error_message_uppercase \ sc_program_name \ sc_require_test_exit_idiom \ sc_makefile_check \ sc_useless_cpp_parens # Files that should never cause syntax check failures. VC_LIST_ALWAYS_EXCLUDE_REGEX = \ (^HACKING|\.po|maint.mk)$$ # Tweak how some of the syntax check rules work _makefile_at_at_check_exceptions = ' && !/INTLTOOL_XML_RULE/' _gl_translatable_string_re = \ (\b(N?_|gettext *)\([^)"]*("|$$))|(<(_[a-zA-Z]*).*/\5>) # Functions like free() that are no-ops on NULL arguments. useless_free_options = \ --name=g_free \ --name=xmlBufferFree \ --name=xmlFree \ --name=xmlFreeDoc \ --name=xmlXPathFreeContext \ --name=xmlXPathFreeObject # Ensure that no C source file, docs, or rng schema uses TABs for # indentation. Also match *.h.in files, to get libvirt.h.in. Exclude # files in gnulib, since they're imported. space_indent_files=(\.(rng|s?[ch](\.in)?|html.in|py)|(daemon|tools)/.*\.in) sc_TAB_in_indentation: @prohibit='^ * ' \ in_vc_files='$(space_indent_files)$$' \ halt='indent with space, not TAB, in C, sh, html, py, and RNG schemas' \ $(_sc_search_regexp) # G_GNUC_UNUSED should only be applied in implementations, not # header declarations sc_avoid_attribute_unused_in_header: @prohibit='^[^#]*G_GNUC_UNUSED([^:]|$$)' \ in_vc_files='\.h$$' \ halt='use G_GNUC_UNUSED in .c rather than .h files' \ $(_sc_search_regexp) # Enforce recommended preprocessor indentation style. sc_preprocessor_indentation: @if cppi --version >/dev/null 2>&1; then \ $(VC_LIST_EXCEPT) | grep '\.[ch]$$' | xargs cppi -a -c \ || { echo '$(ME): incorrect preprocessor indentation' 1>&2; \ exit 1; }; \ else \ echo '$(ME): skipping test $@: cppi not installed' 1>&2; \ fi sc_copyright_format: @require='Copyright .*Red 'Hat', Inc\.' \ containing='Copyright .*Red 'Hat \ halt='Red Hat copyright is missing Inc.' \ $(_sc_search_regexp) @prohibit='Copyright [^(].*Red 'Hat \ halt='consistently use (C) in Red Hat copyright' \ $(_sc_search_regexp) @prohibit='\' \ halt='spell Red Hat as two words' \ $(_sc_search_regexp) # We don't use this feature of maint.mk. prev_version_file = /dev/null exclude_file_name_regexp--sc_bindtextdomain = ^(libvirt-gconfig/tests|examples)/ exclude_file_name_regexp--sc_preprocessor_indentation = ^*/*.[ch] exclude_file_name_regexp--sc_prohibit_strcmp = ^*/*.[ch] exclude_file_name_regexp--sc_require_config_h = python/libvirt-glib.c exclude_file_name_regexp--sc_require_config_h_first = python/libvirt-glib.c exclude_file_name_regexp--sc_trailing_blank = ^test/isodata/.*|docs/object-model.fig exclude_file_name_regexp--sc_bindtextdomain = ^tools/.*.c|test/.*.c libosinfo-0.2.9/configure.ac000066400000000000000000000172721225366266500160220ustar00rootroot00000000000000AC_INIT([libosinfo], [0.2.9], [libosinfo@redhat.com]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([1.11.1 foreign color-tests tar-ustar]) AC_PREREQ([2.61]) AC_CONFIG_SRCDIR([osinfo/osinfo_db.c]) AC_CONFIG_HEADERS([config.h]) AC_PROG_CC AC_PROG_LN_S LT_INIT([shared disable-static win32-dll]) LIBOSINFO_COMPILE_WARNINGS GNOME_MAINTAINER_MODE_DEFINES AM_MAINTAINER_MODE([enable]) # i18 support IT_PROG_INTLTOOL(0.40.0) GETTEXT_PACKAGE=AC_PACKAGE_NAME AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[The name of the gettext domain]) # Autoconf 2.61a.99 and earlier don't support linking a file only # in VPATH builds. But since GNUmakefile is for maintainer use # only, it does not matter if we skip the link with older autoconf. # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH # builds, so use a shell variable to bypass this. GNUmakefile=GNUmakefile m4_if(m4_version_compare([2.61a.100], m4_defn([m4_PACKAGE_VERSION])), [1], [], [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [], [GNUmakefile=$GNUmakefile])]) # Use the silent-rules feature when possible. m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) PKG_CHECK_MODULES([GOBJECT], [gobject-2.0]) PKG_CHECK_MODULES([GIO], [gio-2.0]) PKG_CHECK_MODULES([SOUP], [libsoup-2.4]) PKG_CHECK_MODULES([SOUP_GNOME], [libsoup-gnome-2.4]) PKG_CHECK_MODULES([LIBXML], [libxml-2.0 >= 2.6.0]) PKG_CHECK_MODULES([LIBXSLT], [libxslt >= 1.0.0]) GTK_DOC_CHECK([1.10],[--flavour no-tmpl]) AC_ARG_ENABLE([tests], AS_HELP_STRING([--enable-tests], [enable test suite]), [], [enable_tests=yes]) if test "x$enable_tests" != "xno" ; then PKG_CHECK_MODULES([CHECK], [check]) fi LIBOSINFO_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'` LIBOSINFO_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'` LIBOSINFO_MICRO_VERSION=`echo $VERSION | awk -F. '{print $3}'` LIBOSINFO_VERSION=$LIBOSINFO_MAJOR_VERSION.$LIBOSINFO_MINOR_VERSION.$LIBOSINFO_MICRO_VERSION$LIBOSINFO_MICRO_VERSION_SUFFIX LIBOSINFO_VERSION_INFO=`expr $LIBOSINFO_MAJOR_VERSION + $LIBOSINFO_MINOR_VERSION`:$LIBOSINFO_MICRO_VERSION:$LIBOSINFO_MINOR_VERSION LIBOSINFO_VERSION_NUMBER=`expr $LIBOSINFO_MAJOR_VERSION \* 1000000 + $LIBOSINFO_MINOR_VERSION \* 1000 + $LIBOSINFO_MICRO_VERSION` AC_SUBST([LIBOSINFO_MAJOR_VERSION]) AC_SUBST([LIBOSINFO_MINOR_VERSION]) AC_SUBST([LIBOSINFO_MICRO_VERSION]) AC_SUBST([LIBOSINFO_VERSION]) AC_SUBST([LIBOSINFO_VERSION_INFO]) AC_SUBST([LIBOSINFO_VERSION_NUMBER]) NO_UNDEFINED_LDFLAGS= VERSION_SCRIPT_FLAGS= USE_VERSION_DEFS=0 case "$host" in *-*-mingw*) VERSION_SCRIPT_FLAGS="-Wl," USE_VERSION_DEFS=1 NO_UNDEFINED_FLAGS="-no-undefined" ;; *-*-cygwin*) NO_UNDEFINED_LDFLAGS="-no-undefined" ;; *) NO_UNDEFINED_FLAGS="-Wl,--no-undefined" VERSION_SCRIPT_FLAGS=-Wl,--version-script= `ld --help 2>&1 | grep -- --version-script >/dev/null` || \ VERSION_SCRIPT_FLAGS="-Wl,-M -Wl," ;; esac AC_SUBST([NO_UNDEFINED_FLAGS]) AC_SUBST([VERSION_SCRIPT_FLAGS]) AM_CONDITIONAL([USE_VERSION_DEFS], [test "$USE_VERSION_DEFS" = "1"]) with_linux=no case $host in *-*-linux*) with_linux=yes ;; esac AM_CONDITIONAL([WITH_LINUX], [test "$with_linux" = "yes"]) AC_ARG_ENABLE([introspection], AS_HELP_STRING([--enable-introspection], [enable GObject introspection]), [], [enable_introspection=check]) if test "x$enable_introspection" != "xno" ; then PKG_CHECK_MODULES([GOBJECT_INTROSPECTION], [gobject-introspection-1.0 >= 0.9.0], [enable_introspection=yes], [ if test "x$enable_introspection" = "xcheck"; then enable_introspection=no else AC_MSG_ERROR([gobject-introspection is not available]) fi ]) if test "x$enable_introspection" = "xyes" ; then AC_DEFINE([WITH_GOBJECT_INTROSPECTION], [1], [enable GObject introspection support]) AC_SUBST(GOBJECT_INTROSPECTION_CFLAGS) AC_SUBST(GOBJECT_INTROSPECTION_LIBS) AC_SUBST([G_IR_SCANNER], [$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)]) AC_SUBST([G_IR_COMPILER], [$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)]) fi fi AM_CONDITIONAL([WITH_GOBJECT_INTROSPECTION], [test "x$enable_introspection" = "xyes"]) AC_ARG_ENABLE([vala], AS_HELP_STRING([--enable-vala], [enable Vala binding generation]), [], [enable_vala=check]) if test "x$enable_introspection" = "xyes" ; then if test "x$enable_vala" != "xno" ; then AC_PATH_PROG(VAPIGEN, vapigen, no) if test "x$VAPIGEN" != "xno"; then if test "x$enable_vala" == "xcheck" ; then enable_vala=yes fi AC_SUBST(VAPIGEN) else if test "x$enable_vala" == "xyes" ; then AC_MSG_ERROR([Cannot find the "vapigen" binary in your PATH]) fi fi fi fi AM_CONDITIONAL([WITH_VALA], [test "x$enable_vala" = "xyes"]) AC_ARG_ENABLE([udev], AS_HELP_STRING([--enable-udev], [enable Udev support]), [], [enable_udev=no]) AM_CONDITIONAL([WITH_UDEV], [test "x$enable_udev" = "xyes"]) AC_ARG_WITH([udev-rulesdir], [AS_HELP_STRING([--with-udev-rulesdir],[UDev rules directory])], [], []) if test "x$with_udev_rulesdir" = "x"; then if test "x$prefix" = "x/usr" ; then with_udev_rulesdir=/lib/udev/rules.d else with_udev_rulesdir=$prefix/lib/udev/rules.d fi fi UDEV_RULESDIR="$with_udev_rulesdir" AC_SUBST(UDEV_RULESDIR) AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage], [enable GCC code coverage]), [], [enable_coverage=no]) COVERAGE_CFLAGS= COVERAGE_LDFLAGS= if test "x$enable_coverage" == "xyes" ; then COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" COVERAGE_LDFLAGS="$COVERAGE_CFLAGS" fi AC_SUBST(COVERAGE_CFLAGS) AC_SUBST(COVERAGE_LDFLAGS) # Path to the usb.ids file -- to know if we use one shipped with another # package, or an internal file AC_ARG_WITH(usb-ids-path, [AC_HELP_STRING([--with-usb-ids-path], [Specify the path to usb.ids @<:@default=(internal)@:>@])],, [with_usb_ids_path="\${usb_databasedir}/usb.ids"]) AM_CONDITIONAL(USE_INTERNAL_USB_IDS, test "x$with_usb_ids_path" = "x\${usb_databasedir}/usb.ids") AC_SUBST([USB_IDS], ["$with_usb_ids_path"]) # Path to the pci.ids file -- to know if we use one shipped with another # package, or an internal file AC_ARG_WITH(pci-ids-path, [AC_HELP_STRING([--with-pci-ids-path], [Specify the path to pci.ids @<:@default=(internal)@:>@])],, [with_pci_ids_path="\${pci_databasedir}/pci.ids"]) AM_CONDITIONAL(USE_INTERNAL_PCI_IDS, test "x$with_pci_ids_path" = "x\${pci_databasedir}/pci.ids") AC_SUBST([PCI_IDS], ["$with_pci_ids_path"]) # Setup GLIB_MKENUMS to use glib-mkenums even if GLib is uninstalled. GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` AC_SUBST(GLIB_MKENUMS) AC_CONFIG_FILES([ Makefile libosinfo.spec mingw-libosinfo.spec osinfo/Makefile osinfo/libosinfo-1.0.pc data/Makefile data/datamaps/Makefile data/devices/Makefile data/hypervisors/Makefile data/install-scripts/Makefile data/oses/Makefile data/schemas/Makefile tools/Makefile test/Makefile docs/Makefile docs/reference/Makefile examples/Makefile po/Makefile.in ]) AC_OUTPUT libosinfo-0.2.9/data/000077500000000000000000000000001225366266500144345ustar00rootroot00000000000000libosinfo-0.2.9/data/95-osinfo.rules.in000066400000000000000000000002121225366266500176400ustar00rootroot00000000000000SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="iso9660|udf", \ IMPORT{program}="@bindir@/osinfo-detect -f env $tempnode" libosinfo-0.2.9/data/Makefile.am000066400000000000000000000023551225366266500164750ustar00rootroot00000000000000INSTALL_DATA_HOOK_DEPS = SUBDIRS = datamaps devices oses hypervisors install-scripts schemas EXTRA_DIST = usb.ids pci.ids 95-osinfo.rules.in CLEANFILES = usb.ids pci.ids if USE_INTERNAL_USB_IDS usb_database_DATA = usb.ids usb_databasedir = $(pkgdatadir)/db/ usb.ids: -wget -q -O $@ http://www.linux-usb.org/usb.ids else usb_ids_install: ($(MKDIR_P) $(DESTDIR)$(pkgdatadir)/db && \ cd $(DESTDIR)$(pkgdatadir)/db/ && \ rm -f usb.ids && \ $(LN_S) $(USB_IDS) usb.ids) INSTALL_DATA_HOOK_DEPS += usb_ids_install endif if USE_INTERNAL_PCI_IDS pci_database_DATA = pci.ids pci_databasedir = $(pkgdatadir)/db/ pci.ids: -wget -q -O $@ http://pciids.sourceforge.net/v2.2/pci.ids else pci_ids_install: ($(MKDIR_P) $(DESTDIR)$(pkgdatadir)/db && \ cd $(DESTDIR)$(pkgdatadir)/db/ && \ rm -f pci.ids && \ $(LN_S) $(PCI_IDS) pci.ids) INSTALL_DATA_HOOK_DEPS += pci_ids_install endif if WITH_UDEV BUILT_SOURCES = 95-osinfo.rules 95-osinfo.rules: 95-osinfo.rules.in sed 's,\@bindir\@,$(exec_prefix)/bin,' $< > $@ 95-osinfo.rules-install: 95-osinfo.rules $(MKDIR_P) $(DESTDIR)$(UDEV_RULESDIR) $(INSTALL) -m 0644 95-osinfo.rules $(DESTDIR)$(UDEV_RULESDIR) INSTALL_DATA_HOOK_DEPS += 95-osinfo.rules-install endif install-data-hook: $(INSTALL_DATA_HOOK_DEPS) libosinfo-0.2.9/data/datamaps/000077500000000000000000000000001225366266500162265ustar00rootroot00000000000000libosinfo-0.2.9/data/datamaps/Makefile.am000066400000000000000000000002241225366266500202600ustar00rootroot00000000000000 datamapdir = $(pkgdatadir)/db/datamaps/ datamap_DATA = \ windows-lang.xml \ x11-keyboard.xml \ $(NULL) EXTRA_DIST = $(datamap_DATA) libosinfo-0.2.9/data/datamaps/windows-lang.xml000066400000000000000000000122101225366266500213550ustar00rootroot00000000000000 libosinfo-0.2.9/data/datamaps/x11-keyboard.xml000066400000000000000000000136311225366266500211630ustar00rootroot00000000000000 libosinfo-0.2.9/data/devices/000077500000000000000000000000001225366266500160565ustar00rootroot00000000000000libosinfo-0.2.9/data/devices/Makefile.am000066400000000000000000000004521225366266500201130ustar00rootroot00000000000000 databasedir = $(pkgdatadir)/db/devices/ database_in_files = \ xen.xml.in \ qemu-pci.xml.in \ qemu-usb.xml.in \ qemu-ps2.xml.in \ virtio-pci.xml.in $(NULL) database_DATA = $(database_in_files:.xml.in=.xml) @INTLTOOL_XML_RULE@ EXTRA_DIST = $(database_in_files) $(database_DATA) libosinfo-0.2.9/data/devices/qemu-pci.xml.in000066400000000000000000000104271225366266500207310ustar00rootroot00000000000000 lsi pci block <_vendor>LSI Logic / Symbios Logic 1000 53c895a 0012 vga pci video <_vendor>QEMU 1234 VGA 1111 cirrus pci video <_vendor>Cirrus Logic 1013 GD 5446 00b8 vmvga pci video <_vendor>VMWare 15ad VGA 0710 qxl pci video <_vendor>Red Hat, Inc 1b36 QXL 0100 ne2k_pci pci net <_vendor>Realtek Semiconductor Co., Ltd. 10ec RTL-8029(AS) 8029 pcnet pci net <_vendor>Advanced Micro Devices [AMD] 1022 79c970 [PCnet32 LANCE] 2000 rtl8139 pci net <_vendor>Realtek Semiconductor Co., Ltd. 10ec RTL-8139/8139C/8139C+ 8139 e1000 pci <_vendor>Intel Corporation 8086 82540EM Gigabit Ethernet Controller 100e es1370 pci audio <_vendor>Ensoniq 1274 ES1370 [AudioPCI] 5000 ac97 pci audio <_vendor>Intel Corporation 8086 82801AA AC'97 Audio Controller 2415 ich6 pci audio <_vendor>Intel Corporation 8086 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller 2668 6300esb pci watchdog <_vendor>Intel Corporation 8086 6300ESB Watchdog Timer 25ab ib700 isa watchdog iBASE 700 libosinfo-0.2.9/data/devices/qemu-ps2.xml.in000066400000000000000000000007321225366266500206600ustar00rootroot00000000000000 keyboard ps2 input <_vendor>Qemu/KVM Keyboard mouse ps2 input <_vendor>Qemu/KVM Mouse libosinfo-0.2.9/data/devices/qemu-usb.xml.in000066400000000000000000000005601225366266500207440ustar00rootroot00000000000000 tablet usb input <_vendor>VirtualBox 80ee Tablet 0021 libosinfo-0.2.9/data/devices/virtio-pci.xml.in000066400000000000000000000031331225366266500212720ustar00rootroot00000000000000 virtio-net pci net <_vendor>Red Hat, Inc 1af4 Virtio network device 1000 virtio-block pci block <_vendor>Red Hat, Inc 1af4 Virtio block device 1001 virtio-balloon pci memory.balloon <_vendor>Red Hat, Inc 1af4 Virtio memory balloon 1002 virtio-console pci console <_vendor>Red Hat, Inc 1af4 Virtio console 1003 virtio-9p pci filesystem <_vendor>Red Hat, Inc 1af4 Virtio 9p 1009 libosinfo-0.2.9/data/devices/xen.xml.in000066400000000000000000000012031225366266500177730ustar00rootroot00000000000000 block xen xen-block net xen xen-net console xen xen-console video xen xen-pvfb libosinfo-0.2.9/data/hypervisors/000077500000000000000000000000001225366266500170315ustar00rootroot00000000000000libosinfo-0.2.9/data/hypervisors/Makefile.am000066400000000000000000000003571225366266500210720ustar00rootroot00000000000000 databasedir = $(pkgdatadir)/db/hypervisors/ database_in_files = kvm.xml.in qemu.xml.in rhel-xen.xml.in xen.xml.in database_DATA = $(database_in_files:.xml.in=.xml) @INTLTOOL_XML_RULE@ EXTRA_DIST = $(database_in_files) $(database_DATA) libosinfo-0.2.9/data/hypervisors/kvm.xml.in000066400000000000000000000040071225366266500207560ustar00rootroot00000000000000 qemu-kvm-1.0 <_name>QEMU-KVM 1.0 <_vendor>linux-kvm.org 1.0 2011-12-04 qemu-kvm-1.0.1 <_name>QEMU-KVM 1.0.1 <_vendor>linux-kvm.org 1.0.1 2012-04-17 qemu-kvm-1.1.0 <_name>QEMU-KVM 1.1.0 <_vendor>linux-kvm.org 1.1.0 2012-07-02 qemu-kvm-1.1.1 <_name>QEMU-KVM 1.1.1 <_vendor>linux-kvm.org 1.1.1 2012-08-27 qemu-kvm-1.1.2 <_name>QEMU-KVM 1.1.2 <_vendor>linux-kvm.org 1.1.2 2012-09-10 qemu-kvm-1.2.0 <_name>QEMU-KVM 1.2.0 <_vendor>linux-kvm.org 1.2.0 2012-09-10 libosinfo-0.2.9/data/hypervisors/qemu.xml.in000066400000000000000000000141001225366266500211230ustar00rootroot00000000000000 qemu-1.0 <_name>QEMU 1.0 <_vendor>qemu.org 1.0 2011-12-01 qemu-1.0.1 <_name>QEMU 1.0.1 <_vendor>qemu.org 1.0.1 2012-02-17 qemu-1.1 <_name>QEMU 1.1 <_vendor>qemu.org 1.1 2012-06-01 qemu-1.1.1 <_name>QEMU 1.1.1 <_vendor>qemu.org 1.1.1 2012-07-12 qemu-1.1.1-1 <_name>QEMU 1.1.1-1 <_vendor>qemu.org 1.1.1-1 2012-07-17 qemu-1.1.2 <_name>QEMU 1.1.2 <_vendor>qemu.org 1.1.2 2012-09-05 qemu-1.2.0 <_name>QEMU 1.2.0 <_vendor>qemu.org 1.2.0 2012-09-05 qemu-1.2.1 <_name>QEMU 1.2.1 <_vendor>qemu.org 1.2.1 2012-11-20 qemu-1.2.2 <_name>QEMU 1.2.2 <_vendor>qemu.org 1.2.2 2012-12-11 qemu-1.3.0 <_name>QEMU 1.3.0 <_vendor>qemu.org 1.3.0 2012-12-03 qemu-1.3.1 <_name>QEMU 1.3.1 <_vendor>qemu.org 1.3.1 2013-01-28 qemu-1.4.0 <_name>QEMU 1.4.0 <_vendor>qemu.org 1.4.0 2013-02-15 qemu-1.4.1 <_name>QEMU 1.4.1 <_vendor>qemu.org 1.4.1 2013-04-15 qemu-1.4.2 <_name>QEMU 1.4.2 <_vendor>qemu.org 1.4.2 2013-05-24 qemu-1.5.0 <_name>QEMU 1.5.0 <_vendor>qemu.org 1.5.0 2013-05-20 libosinfo-0.2.9/data/hypervisors/rhel-xen.xml.in000066400000000000000000000100021225366266500216730ustar00rootroot00000000000000 xen-3.0.3-rhel-5.0 <_name>Xen 3.0.3 (RHEL 5.0) <_vendor>Red Hat, Inc. 3.0.3 xen-3.1.0-rhel-5.1 <_name>Xen 3.1.0 (RHEL 5.1) <_vendor>Red Hat, Inc. 3.1.0 xen-3.1.0-rhel-5.2 <_name>Xen 3.1.0 (RHEL 5.2) <_vendor>Red Hat, Inc. 3.1.0 xen-3.1.0-rhel-5.3 <_name>Xen 3.1.0 (RHEL 5.3) <_vendor>Red Hat, Inc. 3.1.0 xen-3.1.0-rhel-5.4 <_name>Xen 3.1.0 (RHEL 5.4) <_vendor>Red Hat, Inc. 3.1.0 xen-3.1.0-rhel-5.5 <_name>Xen 3.1.0 (RHEL 5.5) <_vendor>Red Hat, Inc. 3.1.0 xen-3.1.0-rhel-5.6 <_name>Xen 3.1.0 (RHEL 5.6) <_vendor>Red Hat, Inc. 3.1.0 xen-3.1.0-rhel-5.7 <_name>Xen 3.1.0 (RHEL 5.7) <_vendor>Red Hat, Inc. 3.1.0 libosinfo-0.2.9/data/hypervisors/xen.xml.in000066400000000000000000000214331225366266500207550ustar00rootroot00000000000000 xen-3.0.2 <_name>Xen 3.0.2 <_vendor>Citrix Systems, Inc. 3.0.2 xen-3.0.3 <_name>Xen 3.0.3 <_vendor>Citrix Systems, Inc. 3.0.3 xen-3.0.4 <_name>Xen 3.0.4 <_vendor>Citrix Systems, Inc. 3.0.4 xen-3.1.3 <_name>Xen 3.1.3 <_vendor>Citrix Systems, Inc. 3.1.3 xen-3.1.4 <_name>Xen 3.1.4 <_vendor>Citrix Systems, Inc. 3.1.4 xen-3.2.0 <_name>Xen 3.2.0 <_vendor>Citrix Systems, Inc. 3.2.0 xen-3.2.1 <_name>Xen 3.2.1 <_vendor>Citrix Systems, Inc. 3.2.1 xen-3.2.2 <_name>Xen 3.2.2 <_vendor>Citrix Systems, Inc. 3.2.2 xen-3.2.3 <_name>Xen 3.2.3 <_vendor>Citrix Systems, Inc. 3.2.3 xen-3.3.0 <_name>Xen 3.3.0 <_vendor>Citrix Systems, Inc. 3.3.0 xen-3.3.1 <_name>Xen 3.3.1 <_vendor>Citrix Systems, Inc. 3.3.1 xen-3.3.2 <_name>Xen 3.3.2 <_vendor>Citrix Systems, Inc. 3.3.2 xen-3.4.0 <_name>Xen 3.4.0 <_vendor>Citrix Systems, Inc. 3.4.0 xen-3.4.1 <_name>Xen 3.4.1 <_vendor>Citrix Systems, Inc. 3.4.1 xen-3.4.2 <_name>Xen 3.4.2 <_vendor>Citrix Systems, Inc. 3.4.2 xen-3.4.3 <_name>Xen 3.4.3 <_vendor>Citrix Systems, Inc. 3.4.3 xen-4.0.0 <_name>Xen 4.0.0 <_vendor>Citrix Systems, Inc. 4.0.0 xen-4.0.1 <_name>Xen 4.0.1 <_vendor>Citrix Systems, Inc. 4.0.1 xen-4.1.0 <_name>Xen 4.1.0 <_vendor>Citrix Systems, Inc. 4.1.0 libosinfo-0.2.9/data/install-scripts/000077500000000000000000000000001225366266500175675ustar00rootroot00000000000000libosinfo-0.2.9/data/install-scripts/Makefile.am000066400000000000000000000003671225366266500216310ustar00rootroot00000000000000 databasedir = $(pkgdatadir)/db/install-scripts/ database_DATA = \ fedora.xml \ rhel.xml \ windows-sif.xml \ windows-cmd.xml \ windows-reg.xml \ windows-unattend.xml \ $(NULL) EXTRA_DIST = $(database_DATA) libosinfo-0.2.9/data/install-scripts/fedora.xml000066400000000000000000000253711225366266500215610ustar00rootroot00000000000000 jeos fedora.ks desktop fedora.ks image/png libosinfo-0.2.9/data/install-scripts/rhel.xml000066400000000000000000000170051225366266500212460ustar00rootroot00000000000000 jeos rhel.ks desktop rhel.ks image/png libosinfo-0.2.9/data/install-scripts/windows-cmd.xml000066400000000000000000000077171225366266500225600ustar00rootroot00000000000000 desktop dos windows.cmd strict image/bmp 48 48 false libosinfo-0.2.9/data/install-scripts/windows-reg.xml000066400000000000000000000016511225366266500225610ustar00rootroot00000000000000 desktop dos windows.reg libosinfo-0.2.9/data/install-scripts/windows-sif.xml000066400000000000000000000130331225366266500225620ustar00rootroot00000000000000 jeos dos $$$$$-$$$$$-$$$$$-$$$$$-$$$$$ winnt.sif desktop dos $$$$$-$$$$$-$$$$$-$$$$$-$$$$$ winnt.sif libosinfo-0.2.9/data/install-scripts/windows-unattend.xml000066400000000000000000000456021225366266500236320ustar00rootroot00000000000000 jeos dos $$$$$-$$$$$-$$$$$-$$$$$-$$$$$ autounattend.xml