SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Downloaden Sie, um offline zu lesen
Ebuild とと オーバーレイオーバーレイ
オーバーレイはなんですかオーバーレイはなんですか
• overlayは追加のportage repositoryです。
• ここにあなたのebuildを追加ができます。
ローカルオーバーレイの作り方ローカルオーバーレイの作り方
make.confに設定します。に設定します。
# PORTDIR_OVERLAY="/usr/local/portage/"
このダイレクトリにPortageが追加のpackageを探しています。
ダイレクトリをつくります。ダイレクトリをつくります。
# mkdir -p /usr/local/portage/app-misc/hello-world
# cd $_
$_ recalls last argument
ebuildのテンプレを作ります。のテンプレを作ります。
# cp /usr/portage/header.txt ./hello-world-1.0.ebuild
これだけ動かない。これだけ動かない。
# echo 'SLOT="0"' >> ./hello-world-1.0.ebuild
Ebuildのは何ですかのは何ですか
Ebuildは何ですかは何ですか
- Ebuildはテクストファイルです。
- Portageで使われるパッケージ管理用のBashスクリプトです。
ebuildのインストル方のインストル方
ebuildのインストル方。のインストル方。
# ebuild hello-world-1.0.ebuild manifest clean merge
ebuildを作くった。を作くった。
Variableを追加を追加
/usr/portage/skel.ebuild ドキュメントドキュメント
これを読んで方がいいです。
大切のコマンド大切のコマンド
man 5 ebuild
repoman manifest && repoman full
enalyze analyze -v USE
layman -S emerge --regen /etc/eixrc OVERLAY_CACHE_METHOD="assign"
http://devmanual.gentoo.org/
emerge --moo
EAPI
PMS portage manager specificationはebuildの標準化(ひょうじゅんか)です。 EAPIの番号
はどんなPMSのバージョンを使います。
おすすめおすすめEAPIははEAPI5ですです
EAPIの情報はここ: http://devmanual.gentoo.org/ebuild-writing/eapi/
ebuildにEAPI="5"を追加します。 このVariableは一?上です。
EAPI=5 も同じ
DESCRIPTION
DESCRIPTIONははPackageの概要(がいよう) の概要(がいよう) 
DESCRIPTION="A simple ebuild learning example."
homepageを追加を追加
homepageは何のページにこのは何のページにこのpackageを見つけたを見つけた
HOMEPAGE="https://github.com/aliceinwire/Gentoo-landslide/tree/
master/ebuild-overlay"
SRC_URIを追加を追加
SRC_URIはどこでこのはどこでこのpackageダウンロードをしてますか。ダウンロードをしてますか。
SRC_URI="https://github.com/aliceinwire/Gentoo-landslide/tree/
master/ebuild-overlay/hello-world-1.0.tar.gz"
LICENSEを追加を追加
LICENSEははGPLややMIT等のソフトウェアライセンスです。等のソフトウェアライセンスです。
LICENSE="MIT"
KEYWORDSを追加を追加
KEYWORDSはどこでこのはどこでこのscriptを動きますか。を動きますか。
shell scriptだからどこでも動きます。
全部のarchを追加します。
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh
~sparc ~x86"
maskのPackageは -と追加しない。
untestedは ~
Stableは追加けど前の文字がない。
EBUILDの最後の最後
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
SLOT="0"
DESCRIPTION="A simple ebuild learning example."
HOMEPAGE="https://github.com/aliceinwire/Gentoo-landslide/tree/
master/ebuild-overlay"
SRC_URI="https://github.com/aliceinwire/Gentoo-landslide/tree/
master/ebuild-overlay/hello-world-1.0.tar.gz"
LICENSE="MIT"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
ビルドをします。ビルドをします。
ebuild hello-world-1.0.ebuild manifest clean merge
でもなにもインストルをした。でもなにもインストルをした。
インストルのインストルのphase
http://devmanual.gentoo.org/ebuild-writing/functions/
インストルのインストルのfunction
http://devmanual.gentoo.org/function-reference/install-functions
インストルはライブファイルsystemの中でなにもインストルをします。 だからebuildの中で
mv cp rm のコマンドを普通使わない。
Gentooインストルfunctionのコマンドだけ使いますと ${D} (これは目的のダイレクトリで
す。)
src_installととdobin
src_install() {
dobin hello-world
}
dobinはhello-worldのscriptをビルドのダイレクトリにコピーをしてexecutableのpermission
を設定して 後でPortageがこのファイルをチェックしてとライブのファイルsystemにコピー
をします。
も一回びるどをします。も一回びるどをします。
ebuild hello-world-1.0.ebuild manifest clean merge
>>> /usr/bin/hello-world
を見えます。
オーバーレイの作り方オーバーレイの作り方
オーバーレイのソフトをインストルします。オーバーレイのソフトをインストルします。
# emerge layman
バージョン管理システムのためUSE FLAGを選びます。
make.conf ファイルの中でファイルの中でlaymanダイレクトリを追加します。ダイレクトリを追加します。
# echo "source /var/lib/layman/make.conf" >> /etc/portage/make.conf
Laymanの設定をします。の設定をします。
# vim /etc/layman/layman.cfg
overlays : file:///var/lib/layman/my-list.xml
追加をします。
my-list.xml
<?xml version="1.0" ?>
<repositories version="1.0">
<repo priority="50" quality="experimental" status="unofficial">
<name>aliceinwire</name>
<description>Custom stuff for Gentoo from aliceinwire.</description>
<homepage>http://github.com/aliceinwire/</homepage>
<owner>
<email>alice.ferrazzi@gmail.com</email>
</owner>
<source type="git">git@github.com:aliceinwire/overlay.git</source>
</repo>
</repositories>
Proxy-maintainer
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
Ebuild and overlay

Weitere ähnliche Inhalte

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Ebuild and overlay