2020年2月26日 星期三

Gentoo Linux -- 建立自己用的 overlay

放在 ~/overlays/mybox 的目錄下
必須建2個檔
~/overlays/mybox/profiles/repo_name,內容只有一行,如下,
-------------
mybox
-------------

~/overlays/mybox/metadata/layout.conf ,內容也只有一行,如下,
------------------
masters = gentoo
--------------------

然後在 /etc/portage/make.conf 中加入
------------------------
PORTDIR_OVERLAY="/home/ajax/overlays/mybox"
------------------------

要把自己加入 portage 的 group

ebuild 測試步驟摘要

  • 修改後,執行 ebuild gcin-2.8.5.ebuild digest,重新建立 Manifest
  • ebuild gcin-2.8.5.ebuild clean,清除暫存檔
  • ebuild gcin-2.8.5.ebuild prepare,執行 src_prepare() 的部分
  • ebuild gcin-2.8.5.ebuild configure,執行 src_configure() 的部分
  • ebuild gcin-2.8.5.ebuild compile,執行 src_compile() 的部分
  • ebuild gcin-2.8.5.ebuild install,執行 src_install() 的部分
  • ebuild gcin-2.8.5.ebuild qmerge,移除舊版本,安裝新的版本


沒有留言:

張貼留言

網誌存檔