ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Gentoo 创建本地 Overlay / ebuild repository

2022-01-05 17:33:33  阅读:231  来源: 互联网

标签:Gentoo repository Overlay repos ebuild var xpkgs dwm


Gentoo 创建本地 Overlay / ebuild repository

Creating an ebuild repository - Gentoo Wiki / Defining a custom ebuild repository

必要性

  • 更好的学习 Gentoo 的 “核心

  • 补充官方仓库

  • 自定义官方仓库对应版本
    比如将dwm打补丁后的源码作为上游源

创建本地仓库

Creating an empty ebuild repository

Using the eselect repository module, it is possible to make an ebuild repository skeleton with just one command:

eselect repository create xpkgs

A new ebuild repository can also be created "by hand", as explained in the Handbook section defining a custom ebuild repository.

可选 跟踪修改

Track changes (optional)

To start using git to develop an ebuild repository, first initialize the git repository:

cd /var/db/repos/xpkgs
git init
git add .
git commit

添加ebuild

Adding an ebuild to an ebuild repository

Search Portage & Overlays: Gentoo Portage Overlays - Newest Ebuilds (zugaina.org)

mkdir -p /var/db/repos/xpkgs/x11-wm/dwm
cp ~/dwm-6.2.ebuild /var/db/repos/xpkgs/x11-wm/dwm/dwm-6.2.ebuild
chown -R portage:portage /var/db/repos/xpkgs

Simple version bump of an ebuild

In the best possible case, it may be feasible to bump just by duplicating the ebuild in an ebuild repository and updating the version number in the filename - but not for an ebuild repository configured to be synced, the changes would be overwritten when syncing.

生成校验文件

repoman

Use repoman's functions to act on an ebuild repository, all while enforcing a minimal level of quality in the changes to ebuilds and related metadata, and to perform checks.

pushd /var/db/repos/xpkgs/x11-wm/dwm
repoman manifest
popd

ebuild

The ebuild command can still be used to generate manifest/digest files, however it does not include any of the other quality assurance benefits (such as debug output) included with repoman:

ebuild dwm-6.2.ebuild digest
or
ebuild dwm-6.2.ebuild manifest
>>> Creating Manifest for /var/db/repos/xpkgs/x11-wm/dwm

标签:Gentoo,repository,Overlay,repos,ebuild,var,xpkgs,dwm
来源: https://www.cnblogs.com/wonux/p/15767973.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有