From 4d88924008a0497cbb872f1a4613e4dece6c8372 Mon Sep 17 00:00:00 2001 From: openeuler-basic Date: Fri, 27 Dec 2019 16:58:46 +0800 Subject: [PATCH] init --- 85-display-manager.preset | 10 + 90-default.preset | 99 ++++++ 99-default-disable.preset | 1 + generic-release-1.0/EULA | 172 +++++++++ generic-release-1.0/License/LICENSE | 117 ++++++ generic-release-1.0/autorun-template | 18 + generic-release-1.0/enterprisedocs-man.css | 393 +++++++++++++++++++++ generic-release-1.0/eula.en_US | 172 +++++++++ generic-release-1.0/supportinfo | 16 + generic-release-1.0/system-info.sh | 58 +++ generic-release.spec | 145 ++++++++ 11 files changed, 1201 insertions(+) create mode 100644 85-display-manager.preset create mode 100644 90-default.preset create mode 100644 99-default-disable.preset create mode 100644 generic-release-1.0/EULA create mode 100644 generic-release-1.0/License/LICENSE create mode 100644 generic-release-1.0/autorun-template create mode 100644 generic-release-1.0/enterprisedocs-man.css create mode 100644 generic-release-1.0/eula.en_US create mode 100644 generic-release-1.0/supportinfo create mode 100644 generic-release-1.0/system-info.sh create mode 100644 generic-release.spec diff --git a/85-display-manager.preset b/85-display-manager.preset new file mode 100644 index 0000000..c1d3069 --- /dev/null +++ b/85-display-manager.preset @@ -0,0 +1,10 @@ +# We enable all display managers by default. Since only one can +# actually be enabled at the same time the one which is installed +# first wins + +enable gdm.service +enable lightdm.service +enable slim.service +enable lxdm.service +enable kdm.service +enable xdm.service diff --git a/90-default.preset b/90-default.preset new file mode 100644 index 0000000..b761b48 --- /dev/null +++ b/90-default.preset @@ -0,0 +1,99 @@ +#systemd service for disable +disable systemd-resolved.service + +# systemd +enable remote-fs.target +enable getty@tty1.service +enable systemd-readahead-replay.service +enable systemd-readahead-collect.service + +# System stuff +enable sshd.service +enable atd.* +enable crond.* +enable chronyd.service +enable rpcbind.* +enable NetworkManager.service +enable NetworkManager-dispatcher.service +enable ModemManager.service +enable auditd.service +enable restorecond.service +enable bluetooth.* +enable avahi-daemon.* +enable cups.* + +# The various syslog implementations +enable rsyslog.* +enable syslog-ng.* +enable sysklogd.* + +# Network facing +enable firewalld.service +enable libvirtd.service +enable xinetd.service +enable ladvd.service + +# Storage +enable multipathd.service +enable libstoragemgmt.service +enable lvm2-monitor.* +enable lvm2-lvmetad.* +enable dm-event.* +enable dmraid-activation.service + +enable mdmonitor.service +enable mdmonitor-takeover.service + +enable spice-vdagentd.service + +enable qemu-guest-agent.service + +enable dnf-makecache.timer + +enable initial-setup-graphical.service +#enable initial-setup-text.service + +enable vmtoolsd.service + +enable kdump.service + +enable tuned.service + +# Hardware +enable gpm.* +enable gpsd.* +enable irqbalance.service +enable lm_sensors.service +enable mcelog.* +enable microcode.service +enable acpid.* +enable smartd.service +enable pcscd.socket +enable rngd.service + +# Other stuff +enable abrtd.service +enable abrt-ccpp.service +enable abrt-oops.service +enable abrt-xorg.service +enable abrt-vmcore.service +enable lttng-sessiond.service +enable ksm.service +enable ksmtuned.service +enable rootfs-resize.service +enable sysstat.service +enable uuidd.service +enable xendomains.service +enable xenstored.service +enable xenconsoled.service +enable hypervkvpd.service +enable hypervvssd.service + +# Desktop stuff +enable accounts-daemon.service +enable rtkit-daemon.service +enable upower.service +enable udisks2.service +enable polkit.service +enable packagekit-offline-update.service +enable PackageKit.service diff --git a/99-default-disable.preset b/99-default-disable.preset new file mode 100644 index 0000000..1f29b50 --- /dev/null +++ b/99-default-disable.preset @@ -0,0 +1 @@ +disable * diff --git a/generic-release-1.0/EULA b/generic-release-1.0/EULA new file mode 100644 index 0000000..1c25c76 --- /dev/null +++ b/generic-release-1.0/EULA @@ -0,0 +1,172 @@ +Huawei End-User Software Licensing Agreement + +Important note: This agreement is the end-user software licensing +agreement (hereinafter referred to as "Agreement") between you +(an individual, company, or any other entity) and Huawei Technologies Co., Ltd. +(hereinafter referred to as "Huawei") for the use of this Software +(see Article 1.1 of this Agreement). Please read this Agreement carefully +before you use your Huawei product or download a Software update mentioned +in this Agreement. Your use of a Huawei product or download of this Software +update will be deemed as your acceptance of the constraints mentioned in this +Agreement. Otherwise, please do not use any Huawei product or download this +Software update. If you do not accept this Agreement, you may return your +Huawei product to our franchise store or authorized distributor where you +obtained it for a refund as long as our return policy is satisfied. That +policy is in accordance with the relevant laws and regulations of your country. + +The Software governed by this Agreement does not include the Open Source Software +Components as defined in Section 1.2 + +1. General Rules +1.1 Software under this Agreement refers to: (1) the software componentes provided +to you with a Huawei product, including but not limited to the codes as well as +other embedded software, documents, interfaces, contents, fonts and any data stored +on it that is protected by copyright held by Huawei or its licensor; (2) updates or +upgrades to the ones mentioned in (1).The Software excludes the Open Source Software +Components in Section 1.2. + +1.2. Huawei product or its updates or upgrades may also include software components +that are protected by copyrights held by third parties, who licensed these software +components under open source software licenses ("Open Source Software Components"). +Such Open Source Software Components are identified as such through specific license +information provided within the device also indicating the Open Source Software license +applicable for the respective component. Therefore the terms and conditions of open +source software licenses shall be applied when you are using these Open Source Software +Components. This Agreement does not alter any rights and obligations you may have under +such open source software licenses. If any conflicts between the license conditions +mentioned in this Agreement and the contents of open source software licenses with +respect to any Open Source Software Components, the open source software licenses will +prevail. + +1.3 Software under this Agreement shall be bound by it, whether it is stored in a +read-only memory or any other media or form or it is from an online download +location authorized by Huawei, unless otherwise agreed upon. + +2. End User Software License +You are licensed to use this Software (as defined in Section 1.1) on a single +Huawei product or computer in a limited, non-exclusive way rather than selling it, +on condition that you obey the terms and conditions of this Agreement. + +3. Use Limitation + +3.1 You may not use Huawei technologies or Huawei intellectual properties (IPs) +to design, develop, manufacture, sell, or license third-party devices/accessories +associated with Huawei products and/or Software or develop application software, +unless otherwise agreed upon. + +3.2 You may make a Software copy on a computer hard disk drive or other storage +media for the purpose of archiving. Nonetheless, you may not distribute or provide +the Software through networks so that it is available to multiple devices or +computers at the same time. + +3.3 You may not sell, rent, lease, lend, sublicense or distribute the entirety +or part of the Software to any third party without a prior written permission +from Huawei. Nonetheless, you may make a one-time permanent transfer to another +party the entire license to the Software along with the transfer of ownership +of your Huawei product, provided that: (1) the transfer must include your Huawei +product and all the Huawei Software; (2) you do not retain all or part of the +Software copies; (3) the party that receives the Huawei product and Software has +read and accepted all the terms and conditions of this Agreement. + +3.4 Except as expressly permitted, you may not and agree not to, or to enable any +other person to, copy, reverse engineer, decompile, disassemble or create derivative +works of the Software. + +3.5 While using the Software for storage or copying, you need to be authorized by +relevant right holders in particular countries or regions. Huawei Software may be +used to reproduce materials so long as such use is limited to reproduction of +non-copyrighted materials, materials in which you own the copyright, or materials +you are authorized or legally permitted to reproduce. + +3.6 You agree that you shall only use the Software in compliance with all applicable +laws and regulations of the countries or regions in which you reside or use the Software. + +4. Right Reservation +Huawei and its licensors are the right holders of the Software and reserve any other +right that is not explicitly granted to you by this Agreement. + +5. Termination and Ongoing Effectiveness + +5.1 This Agreement is effective from the first date you install the Software. You may +terminate this Agreement at any time by permanently deleting, destroying and returning, +at your own costs, the Software, all backup copies and all related materials provided by +Huawei. Huawei or its licensors may terminate this Agreement at any time without notice if +you fail to comply with any terms or conditions of this Agreement. Once it is terminated, +you MUST stop using this Software and delete all the Software and associated materials +already copied and/or installed on your Huawei product or computer immediately. + +5.2 Articles 6, 7, 8, 9, 11and 12 remain effective after this Agreement is terminated. + +6. Disclaimer of Warranties + +6.1 YOU ACKNOWLEDGE THAT THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW NEITHER HUAWEI, +ITS LICENSORS OR AFFILIATES NOR THE COPYRIGHT HOLDERS MAKE ANY REPRESENTATIONS OR WARRANTIES, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, SATISFACTORY +QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, QUIET ENJOYMENT, AND NON-INFRINGEMENT OF +THIRD PARTY RIGHTS. THERE IS NO WARRANTY BY HUAWEI OR BY ANY OTHER PARTY THAT THE FUNCTIONS +CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE +WILL BE UNINTERRUPTED OR ERROR-FREE. YOU ASSUME ALL RESPONSIBILITY AND RISK FOR THE SELECTION +OF THE SOFTWARE TO ACHIEVE YOUR INTENDED RESULTS AND FOR THE INSTALLATION, USE AND RESULTS +OBTAINED FROM IT. + +6.2 INSTALLING THIS SOFTWARE MAY AFFECT THE AVAILABILITY OF THIRD-PARTY SOFTWARE, APPLICATION +PROGRAMS, OR SERVICES. THERE IS NO WARRANTY BY HUAWEI THAT THIS SOFTWARE CONTAINS FUNCTIONS +OR SERVICES THAT IT WILL PROVIDE CONTINUOUS, PERMANENT SERVICES OR THAT THIS SOFTWARE WILL BE +COMPATIBLE WITH ANY THIRD-PARTY SOFTWARE OR SERVICES. + +6.3 YOU FURTHER ACKNOWLEGE THAT THE HUAWEI SOFTWARE AND SERVICES ARE NOT INTENDED OR SUITABLE +FOR USE IN SITUATIONS OR ENVIRONMENTS WHERE THE FAILURE OR TIME DELAYS OF, OR ERRORS OR +INACCURACIES IN, THE CONTENT, DATA, OR INFORMATION PROVIDED BY THE HUAWEI SOFTWARE OR SERVICES +COULD LEAD TO DEATH, PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE, INCLUDING BUT +NOT LIMITED TO THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, +AIR TRAFFIC CONTROL, LIFE SUPPORT OR WEAPONS SYSTEMS. + +7. Limitation of Liability + +7.1 HUAWEI WILL NOT TAKE ANY RESPONSIBILITY FOR SOFTWARE USE PROBLEMS CAUSED BY ABUSE, MISUSE, +OR UNAUTHORIZED MODIFICATION. + +7.2 TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT SHALL HUAWEI, ITS EMPLOYEES OR +LICENSORS OR AFFILIATES BE LIABLE FOR ANY LOST PROFITS, REVENUE, SALES, DATA OR COSTS OF +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, PROPERTY DAMAGE, PERSONAL INJURY, INTERRUPTION +OF BUSINESS, LOSS OF BUSINESS INFORMATION OR FOR ANY SPECIAL, DIRECT, INDIRECT, INCIDENTAL, +ECONOMIC, COVER, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND WHETHER ARISING +UNDER CONTRACT, TORT, NEGLIGENCE, OR OTHER THEORY OF LIABILITY ARISING OUT OF THE USE OF OR +INABILITY TO USE THE SOFTWARE, EVEN IF HUAWEI OR ITS LICENSORS OR AFFILIATES ARE ADVISED OF +THE POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OF LIABILITY +FOR PERSONAL INJURY, OR OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION MAY NOT +APPLY TO YOU. + +7.3 IN NO EVENT SHALL HUAWEI'S TOTAL LIABILITY TO YOU FOR ALL DAMAGES (OTHER THAN AS MAY BE +REQUIRED BY APPLICABLE LAW IN CASES INVOLVING DEATH OR PERSONAL INJURY RESULTING FROM HUAWEI'S +NEGLIGENCE) EXCEED THE AMOUNT YOU PAID FOR HUAWEI PRODUCT. + +8. Technical Support +Huawei has no obligation to provide you with any technical support service for the Software +under this Agreement. + +9. Export Control +You may not use or otherwise export or reexport the Huawei Software except as authorized by +United States law and the laws of the jurisdiction(s) in which the Huawei Software was obtained. + +10. Notification +Any and all the notices and correspondence shall be made in written forms through registered +mails or those with receipts. + +11. Dispute Settlement and Governing Laws + +11.1 This Agreement is governed by and construed in accordance with the laws of the People's +Republic of China. + +11.2 Any and all disputes arising from or in connection with this Agreement shall first be +settled through friendly negotiations between the parties hereto. Otherwise, they shall be +submitted to Shenzhen Arbitration Commission for arbitration which shall be conducted in +accordance with the Commission's arbitration rules in effect at the time of applying for +arbitration. The arbitral awards are final and binding upon both parties. + +12. Integrity +This Agreement and its annexes constitute the entire agreement between you and Huawei and +govern your use of the Software, superseding any prior agreements between you and Huawei for +the use of the Software. You also may be subject to additional terms and conditions that may +apply when you use or purchases open source software, third party content, or certain other Huawei service. diff --git a/generic-release-1.0/License/LICENSE b/generic-release-1.0/License/LICENSE new file mode 100644 index 0000000..6deed05 --- /dev/null +++ b/generic-release-1.0/License/LICENSE @@ -0,0 +1,117 @@ +木兰宽松许可证, 第1版 +木兰宽松许可证, 第1版 + +2019年8月 http://license.coscl.org.cn/MulanPSL + +您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第1版(“本许可证”)的如下条款的约束: + +0. 定义 + +“软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。 + +“贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。 + +“法人实体”是指提交贡献的机构及其“关联实体”。 + +“关联实体”是指,对“本许可证”下的一方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。 + +“贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。 + +1. 授予版权许可 + +每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。 + +2. 授予专利许可 + +每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括仅因您或他人修改“贡献”或其他结合而将必然会侵犯到的专利权利要求。如您或您的“关联实体”直接或间接地(包括通过代理、专利被许可人或受让人),就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。 + +3. 无商标许可 + +“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。 + +4. 分发限制 + +您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。 + +5. 免责声明与责任限制 + +“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。 + +条款结束 + +如何将木兰宽松许可证,第1版,应用到您的软件 + +如果您希望将木兰宽松许可证,第1版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步: + +1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字; + +2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中; + +3, 请将如下声明文本放入每个源文件的头部注释中。 + +Copyright (c) [2019] [name of copyright holder] +[Software Name] is licensed under the Mulan PSL v1. +You can use this software according to the terms and conditions of the Mulan PSL v1. +You may obtain a copy of Mulan PSL v1 at: + http://license.coscl.org.cn/MulanPSL +THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +PURPOSE. +See the Mulan PSL v1 for more details. +Mulan Permissive Software License,Version 1 +Mulan Permissive Software License,Version 1 (Mulan PSL v1) + +August 2019 http://license.coscl.org.cn/MulanPSL + +Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v1 (this License) with following terms and conditions: + +0. Definition + +Software means the program and related documents which are comprised of those Contribution and licensed under this License. + +Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License. + +Legal Entity means the entity making a Contribution and all its Affiliates. + +Affiliates means entities that control, or are controlled by, or are under common control with a party to this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity. + +Contribution means the copyrightable work licensed by a particular Contributor under this License. + +1. Grant of Copyright License + +Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not. + +2. Grant of Patent License + +Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed, excluding of any patent claims solely be infringed by your or others’ modification or other combinations. If you or your Affiliates directly or indirectly (including through an agent, patent licensee or assignee), institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken. + +3. No Trademark License + +No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in section 4. + +4. Distribution Restriction + +You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software. + +5. Disclaimer of Warranty and Limitation of Liability + +The Software and Contribution in it are provided without warranties of any kind, either express or implied. In no event shall any Contributor or copyright holder be liable to you for any damages, including, but not limited to any direct, or indirect, special or consequential damages arising from your use or inability to use the Software or the Contribution in it, no matter how it’s caused or based on which legal theory, even if advised of the possibility of such damages. + +End of the Terms and Conditions + +How to apply the Mulan Permissive Software License,Version 1 (Mulan PSL v1) to your software + +To apply the Mulan PSL v1 to your work, for easy identification by recipients, you are suggested to complete following three steps: + +Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner; +Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package; +Attach the statement to the appropriate annotated syntax at the beginning of each source file. +Copyright (c) [2019] [name of copyright holder] +[Software Name] is licensed under the Mulan PSL v1. +You can use this software according to the terms and conditions of the Mulan PSL v1. +You may obtain a copy of Mulan PSL v1 at: + http://license.coscl.org.cn/MulanPSL +THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +PURPOSE. +See the Mulan PSL v1 for more details. diff --git a/generic-release-1.0/autorun-template b/generic-release-1.0/autorun-template new file mode 100644 index 0000000..3e9d798 --- /dev/null +++ b/generic-release-1.0/autorun-template @@ -0,0 +1,18 @@ +#!/bin/sh +#Copyright (c) [2019] Huawei Technologies Co., Ltd. +#generic-release is licensed under the Mulan PSL v1. +#You can use this software according to the terms and conditions of the Mulan PSL v1. +#You may obtain a copy of Mulan PSL v1 at: +# http://license.coscl.org.cn/MulanPSL +#THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +#IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +#PURPOSE. +#See the Mulan PSL v1 for more details. + +dir=$(echo $0 |sed 's/autorun//') +cd "$dir" +tree=$(pwd) + +# Change directories so we can unmount the CD-ROM Drive +cd / +exec /usr/bin/system-cdinstall-helper $tree diff --git a/generic-release-1.0/enterprisedocs-man.css b/generic-release-1.0/enterprisedocs-man.css new file mode 100644 index 0000000..a3b3a84 --- /dev/null +++ b/generic-release-1.0/enterprisedocs-man.css @@ -0,0 +1,393 @@ +body { + background-color: #ffffff; + color: #000000; + margin: 0; + padding: 0; + font-family: helvetica, arial,sans-serif; + font-size: 12pt; + /* needed so buttons created with css don't bleed into text */ + line-height: 1.3; + } + +body.book, body.article, body.chapter, body.part, body.preface, body.sect1, body.index, body.colophon, body.glossary, body.reference, body.refentry { + font-family: helvetica, arial,sans-serif; + font-size: 12pt; + background-color: #ffffff; + margin: 0; + padding : 0; + } + +p, td, th, .variablelist { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + /* left must be 0 so it lines up */ + margin : 10px 0px 10px 0px; + } + +div.article p { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + /* if in article made from XML left must be 10 so it lines up */ + margin : 10px 10px 10px 10px; + } + +li { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + } + +table { + width: 90%; + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + margin : 0px 0px 0px 0px; + } + +table.note, table.tip, table.important, table.caution, table.warning { + width: 95%; + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + border: 2px solid #B0C4DE; + background-color: #F0F8FF; + color: #000000; + /* padding inside table area */ + padding: 0.5em; + margin-bottom: 0.5em; + margin-top: 0.5em; + } + +/* set width smaller and IE is happy */ +ul table.note, ul table.tip, ul table.important, ul table.caution, ul table.warning, ol table.note, ol table.tip, ol table.important, ol table.caution, ol table.warning { + width: 95%; + } + +.computeroutput, .command { + font-family: courier, courier new, monospace; + font-size: 12pt; + } + +.userinput { + font-family: courier, courier new, monospace; + font-size: 12pt; + font-weight: bold; + } + +table.screen { + width: 95%; + font-family: courier, courier new, monospace; + font-size: 12pt; + border: 2px solid #A9A9A9; + background-color: #DCDCDC; + color: #000000; + padding: 0.5em; + margin-bottom: 0.5em; + margin-top: 0.5em; + } + +table.calstable { + width: 95%; + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + background-color: #DCDCDC; + color: #000000; + } + +table.calstable td { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + border: 1px solid #A9A9A9; + background-color: #DCDCDC; + color: #000000; + padding: 0.5em; + margin-bottom: 0.5em; + margin-top: 2px; + margin : 0px 0px 0px 10px; + } + +table.calstable th { + border: 2px solid #A9A9A9; + background-color: #A9A9A9; + color: #000000; + } + +.navheader, .navfooter { + background-color: #ffffff; + color: #000000; + /* need top margin so title line isn't touching the top */ + margin : 10px 20px 0px 20px; + font-family: helvetica, arial,sans-serif; + font-size: 12pt; + } + +div.navheader hr, div.navfooter hr { + background-color: #CCCCCC; + margin: 0px 0px 0px 0px; + height: 1px; + border-style: none; + } + +div.navheader table, div.navfooter table { + width: 95%; + background-color: #ffffff; + margin: 0px 0px 0px 0px; + padding: 0; + font-family: helvetica, arial,sans-serif; + font-size: 12pt; + } + +body>div.navheader table, body>div.navfooter table { + /* Hidden from IE */ + width: 100%; + } + +/* top hr on index page is not in a div so it needs div margins */ +hr { + background-color: #CCCCCC; + margin: 0px 10px 0px 10px; + height: 1px; + border-style: none; + } + +h2, h2.indexdiv { + + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + font-weight: bold; + color: #3399FF; + } + +h3 + { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + font-weight: bold; + line-height: 1.4em; + color: #3399FF; + } + +h4 + { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + font-weight: bold; + color: #3399FF; + } + +h5 + { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + font-weight: bold; + color: #3399FF; + } + +h6 { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + font-weight: bold; + color: #666666; + } + +a:link { + color: #000066; + } + +a:visited + { + color: #333399; + } + +/* not in a div, so need standard left margin */ +.footnotes { + width: 95%; + margin : 10px 20px 10px 20px; + font-size: 12pt; + } + +div.preface, div.colophon, div.chapter, div.appendix, div.index, div.partintro, div.legalnotice, div.glossary, div.refnamediv, div.refsect1 { + margin : 0px 20px 0px 20px; + font-family: helvetica, arial, sans-serif; + } + +/* A, B, etc. in Index */ +div.indexdiv { + font-family: helvetica, arial, sans-serif; + } + +div.titlepage { + margin : 0px 10px 0px 10px; + font-family: helvetica, arial, sans-serif; + } + +/* div.sect1 for an article doesn't have the extra padding from a div.chapter */ +div.article div.sect1 { + margin : 0px 10px 0px 10px; + font-family: helvetica, arial, sans-serif; + } + +/* div.sect1 on same page as div.chapter, etc. with margins and padding already */ +div.chapter div.sect1, div.preface div.sect1, div.appendix div.sect1, div.colophon div.sect1 { + margin : 0px 0px 0px 0px; + font-family: helvetica, arial, sans-serif; + padding: 0; + } + +/* on separate page without div.chapter, so need same padding */ +div.sect1 { + margin : 0px 20px 0px 20px; + font-family: helvetica, arial, sans-serif; + } + +/* same as dev.sect1 except no padding because div.sect1 doesn't end before div.sect2, etc.*/ +div.sect2, div.sect3, div.sect4 { + margin : 0px 0px 0px 0px; + font-family: helvetica, arial, sans-serif; + padding: 0; + } + +/* chapter, preface, and colophon titles don't have a class */ +h1 { + margin : 0px 0px 0px 0px; + font-family: helvetica, arial, sans-serif; + font-size: 18pt; + font-weight: bold; + color: #3399FF; + } + +h1.sect1, h2.sect1 { + /* already in div.sect1, so no margins */ + margin : 0px 0px 0px 0px; + font-family: helvetica, arial, sans-serif; + font-size: 18pt; + font-weight: bold; + color: #3399FF; + } + +h2.sect2, h2.title { + /* already in div.sect1, so no margins */ + margin : 0px 0px 0px 0px; + font-family: helvetica, arial, sans-serif; + font-size: 16pt; + font-weight: bold; + color: #3399FF; + } + +h3.sect3, h3.title { + /* already in div.sect1, so no margins */ + margin : 0px 0px 0px 0px; + font-family: helvetica, arial, sans-serif; + font-size: 14pt; + font-weight: bold; + color: #3399FF; + } + + +h4.sect4, h5.sect5, h6.sect6 { + /* already in div.sect1, so no margins */ + margin : 0px 0px 0px 0px; + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + font-weight: bold; + color: #3399FF; + } + +/* book and article titles on index.html page and part title pages */ +h1.title { + font-family: helvetica, arial, sans-serif; + font-size: 22pt; + font-weight: bold; + color: #3399FF; + margin : 10px 10px 10px 10px; + /* add padding so title is not touching top margin */ + padding: 10 0 0; + } + +body.refentry h1 { + margin: 0 0 0 20px; +} + +div.glossary h1 { + font-family: helvetica, arial, sans-serif; + font-size: 22pt; + font-weight: bold; + color: #3399FF; + margin : 10px 10px 10px 0px; + /* add padding so title is not touching top margin */ + padding: 10 0 0; + } + + +.subtitle { + font-family: helvetica, arial, sans-serif; + font-size: 18pt; + color:#666666; + font-weight: bold; + margin : 10px 10px 10px 10px; + padding: 0; + } + +b.othername { + font-family: helvetica, arial, sans-serif; + font-size: 18pt; + color:#666666; + font-weight: bold; + margin : 10px 10px 10px 10px; + padding: 0; + } + +.copyright, .affiliation { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + color:#666666; + margin : 10px 10px 10px 10px; + padding: 0; + } + +isbn.isbn { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + color:#666666; + margin : 10px 10px 10px 10px; + padding: 0; + } + +.toc { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + padding: 0; + margin : 10px 20px 10px 20px; + } + +.citetitle { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + color:#666666; + font-weight: bold; + } + +div.qandaset big { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + color: #3399FF; + } + +.author { + font-family: helvetica, arial, sans-serif; + font-size: 12pt; + color:#3399FF; + font-weight: bold; + margin : 10px; + line-height: 1.4em; + } + +/* make guibuttons look like real buttons */ +.guibutton { + color: #000000; + font-family: helvetica, arial, sans-serif; + background-color: #DCDCDC; + padding: 1px 3px; + font-size: 10pt; + border: outset 2px; + text-decoration: none; + } + diff --git a/generic-release-1.0/eula.en_US b/generic-release-1.0/eula.en_US new file mode 100644 index 0000000..1c25c76 --- /dev/null +++ b/generic-release-1.0/eula.en_US @@ -0,0 +1,172 @@ +Huawei End-User Software Licensing Agreement + +Important note: This agreement is the end-user software licensing +agreement (hereinafter referred to as "Agreement") between you +(an individual, company, or any other entity) and Huawei Technologies Co., Ltd. +(hereinafter referred to as "Huawei") for the use of this Software +(see Article 1.1 of this Agreement). Please read this Agreement carefully +before you use your Huawei product or download a Software update mentioned +in this Agreement. Your use of a Huawei product or download of this Software +update will be deemed as your acceptance of the constraints mentioned in this +Agreement. Otherwise, please do not use any Huawei product or download this +Software update. If you do not accept this Agreement, you may return your +Huawei product to our franchise store or authorized distributor where you +obtained it for a refund as long as our return policy is satisfied. That +policy is in accordance with the relevant laws and regulations of your country. + +The Software governed by this Agreement does not include the Open Source Software +Components as defined in Section 1.2 + +1. General Rules +1.1 Software under this Agreement refers to: (1) the software componentes provided +to you with a Huawei product, including but not limited to the codes as well as +other embedded software, documents, interfaces, contents, fonts and any data stored +on it that is protected by copyright held by Huawei or its licensor; (2) updates or +upgrades to the ones mentioned in (1).The Software excludes the Open Source Software +Components in Section 1.2. + +1.2. Huawei product or its updates or upgrades may also include software components +that are protected by copyrights held by third parties, who licensed these software +components under open source software licenses ("Open Source Software Components"). +Such Open Source Software Components are identified as such through specific license +information provided within the device also indicating the Open Source Software license +applicable for the respective component. Therefore the terms and conditions of open +source software licenses shall be applied when you are using these Open Source Software +Components. This Agreement does not alter any rights and obligations you may have under +such open source software licenses. If any conflicts between the license conditions +mentioned in this Agreement and the contents of open source software licenses with +respect to any Open Source Software Components, the open source software licenses will +prevail. + +1.3 Software under this Agreement shall be bound by it, whether it is stored in a +read-only memory or any other media or form or it is from an online download +location authorized by Huawei, unless otherwise agreed upon. + +2. End User Software License +You are licensed to use this Software (as defined in Section 1.1) on a single +Huawei product or computer in a limited, non-exclusive way rather than selling it, +on condition that you obey the terms and conditions of this Agreement. + +3. Use Limitation + +3.1 You may not use Huawei technologies or Huawei intellectual properties (IPs) +to design, develop, manufacture, sell, or license third-party devices/accessories +associated with Huawei products and/or Software or develop application software, +unless otherwise agreed upon. + +3.2 You may make a Software copy on a computer hard disk drive or other storage +media for the purpose of archiving. Nonetheless, you may not distribute or provide +the Software through networks so that it is available to multiple devices or +computers at the same time. + +3.3 You may not sell, rent, lease, lend, sublicense or distribute the entirety +or part of the Software to any third party without a prior written permission +from Huawei. Nonetheless, you may make a one-time permanent transfer to another +party the entire license to the Software along with the transfer of ownership +of your Huawei product, provided that: (1) the transfer must include your Huawei +product and all the Huawei Software; (2) you do not retain all or part of the +Software copies; (3) the party that receives the Huawei product and Software has +read and accepted all the terms and conditions of this Agreement. + +3.4 Except as expressly permitted, you may not and agree not to, or to enable any +other person to, copy, reverse engineer, decompile, disassemble or create derivative +works of the Software. + +3.5 While using the Software for storage or copying, you need to be authorized by +relevant right holders in particular countries or regions. Huawei Software may be +used to reproduce materials so long as such use is limited to reproduction of +non-copyrighted materials, materials in which you own the copyright, or materials +you are authorized or legally permitted to reproduce. + +3.6 You agree that you shall only use the Software in compliance with all applicable +laws and regulations of the countries or regions in which you reside or use the Software. + +4. Right Reservation +Huawei and its licensors are the right holders of the Software and reserve any other +right that is not explicitly granted to you by this Agreement. + +5. Termination and Ongoing Effectiveness + +5.1 This Agreement is effective from the first date you install the Software. You may +terminate this Agreement at any time by permanently deleting, destroying and returning, +at your own costs, the Software, all backup copies and all related materials provided by +Huawei. Huawei or its licensors may terminate this Agreement at any time without notice if +you fail to comply with any terms or conditions of this Agreement. Once it is terminated, +you MUST stop using this Software and delete all the Software and associated materials +already copied and/or installed on your Huawei product or computer immediately. + +5.2 Articles 6, 7, 8, 9, 11and 12 remain effective after this Agreement is terminated. + +6. Disclaimer of Warranties + +6.1 YOU ACKNOWLEDGE THAT THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, AND TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW NEITHER HUAWEI, +ITS LICENSORS OR AFFILIATES NOR THE COPYRIGHT HOLDERS MAKE ANY REPRESENTATIONS OR WARRANTIES, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, SATISFACTORY +QUALITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, QUIET ENJOYMENT, AND NON-INFRINGEMENT OF +THIRD PARTY RIGHTS. THERE IS NO WARRANTY BY HUAWEI OR BY ANY OTHER PARTY THAT THE FUNCTIONS +CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE +WILL BE UNINTERRUPTED OR ERROR-FREE. YOU ASSUME ALL RESPONSIBILITY AND RISK FOR THE SELECTION +OF THE SOFTWARE TO ACHIEVE YOUR INTENDED RESULTS AND FOR THE INSTALLATION, USE AND RESULTS +OBTAINED FROM IT. + +6.2 INSTALLING THIS SOFTWARE MAY AFFECT THE AVAILABILITY OF THIRD-PARTY SOFTWARE, APPLICATION +PROGRAMS, OR SERVICES. THERE IS NO WARRANTY BY HUAWEI THAT THIS SOFTWARE CONTAINS FUNCTIONS +OR SERVICES THAT IT WILL PROVIDE CONTINUOUS, PERMANENT SERVICES OR THAT THIS SOFTWARE WILL BE +COMPATIBLE WITH ANY THIRD-PARTY SOFTWARE OR SERVICES. + +6.3 YOU FURTHER ACKNOWLEGE THAT THE HUAWEI SOFTWARE AND SERVICES ARE NOT INTENDED OR SUITABLE +FOR USE IN SITUATIONS OR ENVIRONMENTS WHERE THE FAILURE OR TIME DELAYS OF, OR ERRORS OR +INACCURACIES IN, THE CONTENT, DATA, OR INFORMATION PROVIDED BY THE HUAWEI SOFTWARE OR SERVICES +COULD LEAD TO DEATH, PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE, INCLUDING BUT +NOT LIMITED TO THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, +AIR TRAFFIC CONTROL, LIFE SUPPORT OR WEAPONS SYSTEMS. + +7. Limitation of Liability + +7.1 HUAWEI WILL NOT TAKE ANY RESPONSIBILITY FOR SOFTWARE USE PROBLEMS CAUSED BY ABUSE, MISUSE, +OR UNAUTHORIZED MODIFICATION. + +7.2 TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT SHALL HUAWEI, ITS EMPLOYEES OR +LICENSORS OR AFFILIATES BE LIABLE FOR ANY LOST PROFITS, REVENUE, SALES, DATA OR COSTS OF +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, PROPERTY DAMAGE, PERSONAL INJURY, INTERRUPTION +OF BUSINESS, LOSS OF BUSINESS INFORMATION OR FOR ANY SPECIAL, DIRECT, INDIRECT, INCIDENTAL, +ECONOMIC, COVER, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND WHETHER ARISING +UNDER CONTRACT, TORT, NEGLIGENCE, OR OTHER THEORY OF LIABILITY ARISING OUT OF THE USE OF OR +INABILITY TO USE THE SOFTWARE, EVEN IF HUAWEI OR ITS LICENSORS OR AFFILIATES ARE ADVISED OF +THE POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OF LIABILITY +FOR PERSONAL INJURY, OR OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION MAY NOT +APPLY TO YOU. + +7.3 IN NO EVENT SHALL HUAWEI'S TOTAL LIABILITY TO YOU FOR ALL DAMAGES (OTHER THAN AS MAY BE +REQUIRED BY APPLICABLE LAW IN CASES INVOLVING DEATH OR PERSONAL INJURY RESULTING FROM HUAWEI'S +NEGLIGENCE) EXCEED THE AMOUNT YOU PAID FOR HUAWEI PRODUCT. + +8. Technical Support +Huawei has no obligation to provide you with any technical support service for the Software +under this Agreement. + +9. Export Control +You may not use or otherwise export or reexport the Huawei Software except as authorized by +United States law and the laws of the jurisdiction(s) in which the Huawei Software was obtained. + +10. Notification +Any and all the notices and correspondence shall be made in written forms through registered +mails or those with receipts. + +11. Dispute Settlement and Governing Laws + +11.1 This Agreement is governed by and construed in accordance with the laws of the People's +Republic of China. + +11.2 Any and all disputes arising from or in connection with this Agreement shall first be +settled through friendly negotiations between the parties hereto. Otherwise, they shall be +submitted to Shenzhen Arbitration Commission for arbitration which shall be conducted in +accordance with the Commission's arbitration rules in effect at the time of applying for +arbitration. The arbitral awards are final and binding upon both parties. + +12. Integrity +This Agreement and its annexes constitute the entire agreement between you and Huawei and +govern your use of the Software, superseding any prior agreements between you and Huawei for +the use of the Software. You also may be subject to additional terms and conditions that may +apply when you use or purchases open source software, third party content, or certain other Huawei service. diff --git a/generic-release-1.0/supportinfo b/generic-release-1.0/supportinfo new file mode 100644 index 0000000..7090deb --- /dev/null +++ b/generic-release-1.0/supportinfo @@ -0,0 +1,16 @@ +# Copyright (c) [2019] Huawei Technologies Co., Ltd. +# generic-release is licensed under the Mulan PSL v1. +# You can use this software according to the terms and conditions of the Mulan PSL v1. +# You may obtain a copy of Mulan PSL v1 at: +# http://license.coscl.org.cn/MulanPSL +#THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +#IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +#PURPOSE. +#See the Mulan PSL v1 for more details. +# +# supported hardware descriptor for openEuler 1.0 +# + +Variant: AS +MinRAM: 256 MB + diff --git a/generic-release-1.0/system-info.sh b/generic-release-1.0/system-info.sh new file mode 100644 index 0000000..c28bb64 --- /dev/null +++ b/generic-release-1.0/system-info.sh @@ -0,0 +1,58 @@ +#/bin/sh +#Copyright (c) [2019] Huawei Technologies Co., Ltd. +#generic-release is licensed under the Mulan PSL v1. +#You can use this software according to the terms and conditions of the Mulan PSL v1. +#You may obtain a copy of Mulan PSL v1 at: +# http://license.coscl.org.cn/MulanPSL +#THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +#IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +#PURPOSE. +#See the Mulan PSL v1 for more details. + +# Welcome +welcome=$(uname -r) + +# Memory +memory_usage=$(free -m | awk '/Mem:/ { printf("%3.1f%%", $3/$2*100) }') + +# Swap memory +swap_mem=$(free -m | awk '/Swap:/ { printf("%3.1f%%", $3/$2*100) }') + +# Usage +usageof=$(df -h / | awk '/\// {print $(NF-1)}') + +# System load +load_average=$(awk '{print $1}' /proc/loadavg) + +# WHO I AM +whoiam=$(whoami) + +# Time +time_cur=$(date) + +# Processes +processes=$(ps aux | wc -l) + +# Users +user_num=$(users | wc -w) + +# Ip address +ip_address=$(/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6 | awk '{print $2}' | tr -d "addr:") + +echo -e "\n" +echo -e "Welcome to $welcome\n" +echo -e "System information as of time: \t$time_cur\n" +echo -e "System load: \t\033[0;33;40m$load_average\033[0m" +echo -e "Processes: \t$processes" +echo -e "Memory used: \t$memory_usage" +echo -e "Swap used: \t$swap_mem" +echo -e "Usage On: \t$usageof" +echo -e "IP address: \t$ip_address" +echo -e "Users online: \t$user_num\n" +if [ "$whoiam"=="root" ] +then + echo -e "\n" +else + echo -e "To run a command as administrator(user \"root\"),use \"sudo \"." + echo "See "man sudo_root" for details" +fi diff --git a/generic-release.spec b/generic-release.spec new file mode 100644 index 0000000..703f21d --- /dev/null +++ b/generic-release.spec @@ -0,0 +1,145 @@ +%define debug_package %{nil} +%define product_family %{?_vendor:%{_vendor}}%{!?_vendor:openEuler} +%define variant_titlecase Server +%define variant_lowercase server +%define dist_release_version 8 +%define generic_version 1.0 +%define generic_patch_level %{nil} +%define generic_release 21 +%define builtin_release_version 1.0 + +%define current_arch %{_arch} +%ifarch i386 +%define current_arch x86 +%endif + +Name: %{product_family}-release +Version: %{generic_version}%{generic_patch_level} +Release: %{generic_release} +Summary: %{product_family} release file +License: Mulan PSL v1 +Provides: %{product_family}-release +Provides: %{_vendor}-release +Provides: generic-release +Provides: system-release = %{generic_version}%{generic_patch_level} +Source0: generic-release-%{builtin_release_version}.tar.gz +Source1: 85-display-manager.preset +Source2: 90-default.preset +Source3: 99-default-disable.preset + +BuildRequires: python +Requires: %{product_family}-repos + +%description +%{product_family} release files + +%prep +%setup -q -n generic-release-%{builtin_release_version} + +%build +echo OK + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/etc +echo "%{product_family} release %{generic_version} (%{generic_patch_level})" > $RPM_BUILD_ROOT/etc/%{product_family}-release +ln -sf %{product_family}-release $RPM_BUILD_ROOT/etc/system-release + +# create /etc/os-release +cat << EOF >>$RPM_BUILD_ROOT/etc/os-release +NAME="%{product_family}" +VERSION="%{generic_version} (%{generic_patch_level})" +ID="%{product_family}" +VERSION_ID="%{generic_version}" +PRETTY_NAME="%{product_family} %{generic_version} (%{generic_patch_level})" +ANSI_COLOR="0;31" + +EOF + +mkdir -p -m 755 $RPM_BUILD_ROOT/etc/profile.d +cp -a system-info.sh $RPM_BUILD_ROOT/etc/profile.d/ + +# write cpe to /etc/system/release-cpe +echo "cpe:/o:%{product_family}:%{product_family}:%{version}:ga:server" > $RPM_BUILD_ROOT/etc/system-release-cpe + +# create /etc/issue and /etc/issue.net +echo '\S' > $RPM_BUILD_ROOT/etc/issue +echo 'Kernel \r on an \m' >> $RPM_BUILD_ROOT/etc/issue +cp $RPM_BUILD_ROOT/etc/issue $RPM_BUILD_ROOT/etc/issue.net +echo >> $RPM_BUILD_ROOT/etc/issue + +mkdir -p $RPM_BUILD_ROOT/usr/share/eula +cp eula.[!py]* $RPM_BUILD_ROOT/usr/share/eula + +mkdir -p $RPM_BUILD_ROOT/var/lib +cp supportinfo $RPM_BUILD_ROOT/var/lib/supportinfo + +# set up the dist tag macros +install -d -m 755 $RPM_BUILD_ROOT/etc/rpm +cat >> $RPM_BUILD_ROOT/etc/rpm/macros.dist << EOF +# dist macros. + +%%dist %%{nil} +%%%{product_family} 2 +EOF + +# use unbranded datadir +mkdir -p -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{product_family}-release +install -m 644 EULA $RPM_BUILD_ROOT/%{_datadir}/%{product_family}-release + +# use unbranded docdir +mkdir -p -m 755 $RPM_BUILD_ROOT/%{_docdir}/%{product_family}-release +cp -p License/LICENSE $RPM_BUILD_ROOT/%{_docdir}/%{product_family}-release + +# copy systemd presets +mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-preset/ +install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/systemd/system-preset/ +install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/systemd/system-preset/ +install -m 0644 %{SOURCE3} %{buildroot}%{_prefix}/lib/systemd/system-preset/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(0644,root,root,0755) +/etc/system-release +/etc/profile.d/system-info.sh +/etc/%{product_family}-release +%config(noreplace) /etc/os-release +%config /etc/system-release-cpe +%config(noreplace) /etc/issue +%config(noreplace) /etc/issue.net +/etc/rpm/macros.dist +%{_docdir}/%{product_family}-release/* +%{_datadir}/%{product_family}-release/* +%{_prefix}/lib/systemd/system-preset/* +/var/lib/supportinfo +/usr/share/eula/eula.* + +%changelog +* Fri Dec 27 2019 openEuler Buildteam - 1.0-21 +- Delete unneeded info + +* Mon Dec 23 2019 openEuler Buildteam - 1.0-20 +- Delete unneeded provides + +* Thu Dec 19 2019 openEuler Buildteam - 1.0-19 +- Delete unneeded message + +* Tue Oct 15 2019 fanghuiyu - 1.0-18 +- Change to generic-release + +* Fri Sep 20 2019 hexiaowen - 1.0-17 +- Provides generic-release + +* Sat Aug 31 2019 hexiaowen - 1.0-16 +- add eula.US + +* Mon Aug 26 2019 zhangrui - 1.0-15 +- Add system-info.sh to /etc/profile.d/ to show some information in welcome screen + +* Thu Aug 22 2019 hexiaowen - 1.0-14 +- add License + +* Thu Aug 8 2019 openEuler Buildteam - 1.0-13 +- Package init -- Gitee