Ebuild

Ebuild

Un fichier ebuild est un script bash écrit pour l'utilitaire Portage de Gentoo Linux qui décrit les étapes à suivre pour récupérer les sources d'un programme, les compiler puis les installer. Il s'agit essentiellement d'une couche d'abstraction par rapport au classique:

  • ./configure
  • make
  • make install

Qui permet de compiler puis d'installer une application manuellement.

Chaque application dans l'arborescence de portage possède autant d'ebuilds que de versions disponibles, les fichiers ebuild étant nommés par « nom-version.ebuild ». La commande « emerge nom_du_programme » installe de manière automatique la dernière version stable du programme, en s'appuyant sur le fichier ebuild correspondant. De manière générale, un ebuild permet d'installer une application à partir d'une ou plusieurs sources, bien que les ebuilds gèrent aussi les fichiers binaires. D'autres ebuilds installent des meta-paquets ou paquets virtuels. Voici un exemple d'ebuild pour le logiciel Beep :

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/beep/beep-1.2.2-r1.ebuild,v 1.7 2007/04/15 19:50:32 corsair Exp $

inherit eutils base

DESCRIPTION="the advanced PC speaker beeper"
HOMEPAGE="http://www.johnath.com/beep/"
SRC_URI="http://www.johnath.com/beep/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
IUSE=""

PATCHES="${FILESDIR}/${P}-nosuid.patch"

src_compile() {
    emake FLAGS="${CFLAGS}" || die "compile problem"
}

src_install() {
    dobin beep
    fperms 0711 /usr/bin/beep
    doman beep.1.gz
    dodoc CHANGELOG CREDITS README
}

Voir aussi

Articles connexes

Références externes


Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Ebuild de Wikipédia en français (auteurs)

Игры ⚽ Поможем написать реферат

Regardez d'autres dictionnaires:

  • Ebuild — формат bash сценариев для системы Portage в ОС Gentoo. Ebuild файлы имеют расширение .ebuild и содержат переменные, команды, информацию о зависимостях, список файлов, необходимых для скачивания, распаковки, наложения патчей, сборки и установки… …   Википедия

  • ebuild — формат bash сценариев для системы управления пакетами Portage в операционной системе Gentoo. Файлы этого формата имеют расширение .ebuild и содержат переменные, команды, информацию о зависимостях, список файлов, необходимых для скачивания,… …   Википедия

  • Ebuild — Saltar a navegación, búsqueda Un ebuild es un procesamiento por lotes especializado creado por el proyecto Gentoo Linux para usarlo con el sistema de mantenimiento de software Portage. Un ebuild es una forma automática de compilar e instalar… …   Wikipedia Español

  • Ebuild — An ebuild is a specialized bash script format created by the Gentoo Linux project for use in its Portage software management system, which automates compilation and installation procedures for software packages.Each version of an application or… …   Wikipedia

  • Ebuild — Ebuilds bezeichnet im Paketmanager Portage (Gentoo Linux) die Skripte, die Informationen über jedes einzelne Programmpaket speichern. Inhaltsverzeichnis 1 Inhalt 2 Benennung 3 Eclasses 4 …   Deutsch Wikipedia

  • Ебилд — ebuild формат Portage в ОС патчей, сборки и установки пакета. Ебилды именуются по шаблону «название версия.ebuild» (например apache 2.0.59 r2.ebuild). Существуют ebuild как для компилирования пакетов из исходных кодов, так и для установки… …   Википедия

  • Portage (software) — Infobox Software name = Portage logo = caption = Portage in action author = developer = released = latest release version = [http://packages.gentoo.org/package/sys apps/portage 2.1.4.5] latest release date = latest preview version =… …   Wikipedia

  • Ebuilds — bezeichnet im Paketmanager Portage (Gentoo Linux) die Skripte, die Informationen über jedes einzelne Programmpaket speichern. Inhaltsverzeichnis 1 Inhalt 2 Benennung 3 Eclasses 4 Weblinks …   Deutsch Wikipedia

  • Portage — Работа системы Portage Тип Система управления пакетами …   Википедия

  • Paludis — Процесс работы Paludis Тип Менеджер пакетов Разработчик Ciaran McCreesh …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”