Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Finnish
  • Search

Pakettien konffaus

Keskustelua Gentoo Linuxista suomeksi. Tervetuloa!

Moderator: Chiitoo

Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
Author
Message
k00ma
n00b
n00b
Posts: 65
Joined: Thu Jul 22, 2004 11:04 am
Location: Finland

Pakettien konffaus

  • Quote

Post by k00ma » Tue Nov 02, 2004 2:11 pm

Normaalisti noita paketteja asennellaan emerge paketti ja käytetään lisäks USE-flageja, mutta miten saan esim. ngircd pakettiin määriteltyä
"--with-ident"
Top
Viha
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Sat Oct 04, 2003 4:06 pm
Location: Jon's World

  • Quote

Post by Viha » Tue Nov 02, 2004 3:31 pm

Editoit ebuildia (eli teet kopion overlay hakemistoon ja muokkaat sitä). Sitten IUSE riville lisäät ident ja src_compile funktion alkuun jotakin tämän tyyppistä:

Code: Select all

myconf="$myconf $(use_with ident)"
Tämä ident (tai sen sisältävä) paketti pitää siis olla asennettuna tai sitten pitää muokata RDEPEND tai DEPEND riviä, joka taas on tapauskohtaista.
Lopuksi digest ebuildille, minkä jälkeen paketti on valmis asennettavaksi emergellä.
Force you to be nice to each other, kill you before you kill each other!
Top
phekko
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 109
Joined: Tue Feb 17, 2004 1:41 pm
Location: Espoo Esbo

  • Quote

Post by phekko » Tue Nov 02, 2004 4:03 pm

Tämä vaikutti otolliselta threadilta kysäistä, että mistä lähtisi kurkkimaan howtoja omien ebuildien tekemiseen. Haluaisin laittaa FUDforumin koneeseen mutta olisi eliittiä tehdä se emergellä eikä käsin installoimalla.
Top
Viha
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Sat Oct 04, 2003 4:06 pm
Location: Jon's World

  • Quote

Post by Viha » Tue Nov 02, 2004 4:08 pm

Tämä olikin vähän erilainen tapaus tuosta mainitsemastani, joten tässä valmiiksi muokattu ebuild (ngircd-0.8.0):

Code: Select all

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/ngircd/ngircd-0.8.0.ebuild,v 1.3 2004/08/14 12:01:04 swegener Exp $

inherit eutils

DESCRIPTION="A IRC server written from scratch."
HOMEPAGE="http://arthur.ath.cx/~alex/ngircd/"
SRC_URI="ftp://download.berlios.de/pub/ngircd/${P}.tar.gz
	ftp://arthur.ath.cx/pub/Users/alex/ngircd/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~amd64"

IUSE="zlib tcpd debug ident"

RDEPEND="virtual/libc
	zlib? ( sys-libs/zlib )
	ident? ( net-libs/libident )"
DEPEND="${RDEPEND}
	>=sys-apps/sed-4"

src_compile() {
	econf \
		--sysconfdir=/etc/ngircd \
		$(use_with zlib) \
		$(use_with tcpd tcp-wrappers) \
		$(use_with ident) \
		$(use_enable debug) \
		$(use_enable debug sniffer) \
		|| die "econf failed"
	emake || die "emake failed"
}

src_install() {
	sed -i \
		-e "s:/usr/local/etc/ngircd.motd:/etc/ngircd/ngircd.motd:" \
		-e "s:;ServerUID = 65534:ServerUID = ngircd:" \
		-e "s:;ServerGID = 65534:ServerGID = nogroup:" \
		doc/sample-ngircd.conf

	make \
		DESTDIR="${D}" \
		docdir=/usr/share/doc/${PF} \
		install || die "make install failed"

	exeinto /etc/init.d
	newexe ${FILESDIR}/ngircd.init.d ngircd
}

pkg_postinst() {
	enewuser ngircd
	chown ngircd ${ROOT}/etc/ngircd/ngircd.conf
}
Force you to be nice to each other, kill you before you kill each other!
Top
Viha
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Sat Oct 04, 2003 4:06 pm
Location: Jon's World

  • Quote

Post by Viha » Tue Nov 02, 2004 4:18 pm

Gentoo Development Documentation, erityisesti Gentoo Developer Handbook:stä Ebuild HOWTO

EDIT: /usr/portage/skel.ebuild on varmaan myös hyvä lähtökohta uudelle ebuildille.
Last edited by Viha on Tue Nov 02, 2004 4:24 pm, edited 1 time in total.
Force you to be nice to each other, kill you before you kill each other!
Top
k00ma
n00b
n00b
Posts: 65
Joined: Thu Jul 22, 2004 11:04 am
Location: Finland

sourcesta kääntäminen

  • Quote

Post by k00ma » Tue Nov 02, 2004 4:19 pm

Koitin kääntää tota suoraan sourcesta ja tuli virheilmo:

Code: Select all

checking for ident_id in -lident... no
checking for ident_id... no
configure: error: Can't enable IDENT support!
===>  Script "configure" failed unexpectedly.
Onko ideoita mitä pitää tehdä, softan sivuilla ei ole infoo tosta...
Top
Viha
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Sat Oct 04, 2003 4:06 pm
Location: Jon's World

  • Quote

Post by Viha » Tue Nov 02, 2004 4:29 pm

Tuo -lident kertoo että tarvitaan ident kirjasto, joka siis pitää asentaa.

Code: Select all

emerge net-libs/libident
Tai voit käyttää tuota ebuildia.
Force you to be nice to each other, kill you before you kill each other!
Top
Flammie
Retired Dev
Retired Dev
User avatar
Posts: 632
Joined: Mon Jun 02, 2003 9:48 pm
Location: Dublin, Ireland
Contact:
Contact Flammie
Website

  • Quote

Post by Flammie » Tue Nov 02, 2004 10:30 pm

Lisädataa saa tungettua configurelle muuttujassa EXTRA_ECONF, jollei välttämättä halua säätää ebuildien kanssa, eli bashissa

Code: Select all

EXTRA_ECONF=--with-ident emerge ngircd
Löytyy muuten myös man-sivuilta ;-)

Tietenkin jotkin ebuildien ylläpitäjät rikkovat extra_econfin, joten siihen ei kannata aina luottaa.
Top
Viha
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Sat Oct 04, 2003 4:06 pm
Location: Jon's World

  • Quote

Post by Viha » Wed Nov 03, 2004 8:31 pm

Tähän vielä selvennykseksi sellainen seikka, että ainakin periaattessa --with ja --without (use_with ebuildeissä) koskevat ominaisuuksia jotka otetaan mukaan ulkopuolisista paketeista, kun taas --enable ja --disable vaikuttavat sisäisiin ominaisuuksiin.
Force you to be nice to each other, kill you before you kill each other!
Top
Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Finnish”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic