1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/openeuler-community

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
create-package.md 3.9 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
hcy1012 Отправлено 23.05.2022 10:58 aa4c785

Adding a New Software Package

Perform the following procedure to add a software package to Gitee and create a repository with the same name as the added software package in OBS.

Procedure

Add a new software package by modifying the openeuler/community repository on Gitee.

  1. Go to the community repository and fork it to your own repository.
  2. Clone the forked community repository to the local host.
git clone https://gitee.com/"$username"/community.git
  1. Modify the community repository. The following describes how to add the zip software package to Gitee and add the package to the openEuler:Factory project.

    • cd community/sig

    • Find the SIG to which the software package belongs. For example, the zip package belongs to the Base-service SIG. (See the Contributor Guide to find the SIG or project that you are interested in.)

    • Modify the contents in the corresponding subfolder of the sig folder, such as the project list.

    • Modify the sig-info.yaml file of the corresponding SIG in the sig folder and add the software package in the form of - src-openeuler/zip. The following uses the zip software package as an example to describe how to modify sig/Base-service/sig-info.yaml:

         repositories:
         - repo: openeuler/openEuler-rpm-config
         - repo: src-openeuler/abseil-cpp
         - repo: src-openeuler/acl
         - repo: src-openeuler/acpica-tools
         - repo: src-openeuler/adcli
         - repo: src-openeuler/aide
         - repo: src-openeuler/airline
      
          ...
      
         - repo: src-openeuler/jansson
         - repo: src-openeuler/apr
         - repo: src-openeuler/python-lxml
         - repo: src-openeuler/zip
    
    • Add the corresponding YAML file to sig/{sig_directory}**/src-openeuler/**initial_letter_of the_software_name to create a repository. (For projects maintained by the openEuler community, use the openeuler directory. For packages introduced from other communities, use the src-openeuler directory. Example: sig/Base-service/src-openeuler/z/zip.yaml)
    name: pkgname
    description: about pkgname
    upstream: https://somepkg.org/
    branches:
    - name: master
      type: protected
    type: public

Modifying the Method of Pulling Code to OBS

OBS uses the source service to obtain the source code. The _service file is required for using the source service. When a software package is added, openEuler automatically uses the tar_scm_kernel_repo plug-in to pull code. You can modify the _service file of the corresponding software package in the src-openeuler/obs_meta repository. The procedure is as follows:

  1. Go to the obs_meta repository and fork it to your own repository.
  2. Clone the forked obs_meta repository to the local host.
git clone https://gitee.com/"$username"/obs_meta.git
  1. Modify the obs_meta repository.
    • cd obs_meta/master/openEuler:Factory/

    • vim "package_name"/service Modify the _service file as required. (package_name indicates the name of the software package whose _service file needs to be customized.)

    • Submit a PR. After the PR is merged, the modified _service file is synchronized to the repository.

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/openeuler-community.git
git@api.gitlife.ru:oschina-mirror/openeuler-community.git
oschina-mirror
openeuler-community
openeuler-community
master