Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pakettien konffaus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Finnish
View previous topic :: View next topic  
Author Message
k00ma
n00b
n00b


Joined: 22 Jul 2004
Posts: 65
Location: Finland

PostPosted: Tue Nov 02, 2004 2:11 pm    Post subject: Pakettien konffaus Reply with quote

Normaalisti noita paketteja asennellaan emerge paketti ja käytetään lisäks USE-flageja, mutta miten saan esim. ngircd pakettiin määriteltyä
"--with-ident"
Back to top
View user's profile Send private message
Viha
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2003
Posts: 121
Location: Jon's World

PostPosted: Tue Nov 02, 2004 3:31 pm    Post subject: Reply with quote

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:
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ä.
Back to top
View user's profile Send private message
phekko
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2004
Posts: 109
Location: Espoo Esbo

PostPosted: Tue Nov 02, 2004 4:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Viha
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2003
Posts: 121
Location: Jon's World

PostPosted: Tue Nov 02, 2004 4:08 pm    Post subject: Reply with quote

Tämä olikin vähän erilainen tapaus tuosta mainitsemastani, joten tässä valmiiksi muokattu ebuild (ngircd-0.8.0):
Code:
# 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
}
Back to top
View user's profile Send private message
Viha
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2003
Posts: 121
Location: Jon's World

PostPosted: Tue Nov 02, 2004 4:18 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
k00ma
n00b
n00b


Joined: 22 Jul 2004
Posts: 65
Location: Finland

PostPosted: Tue Nov 02, 2004 4:19 pm    Post subject: sourcesta kääntäminen Reply with quote

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

Code:
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...
Back to top
View user's profile Send private message
Viha
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2003
Posts: 121
Location: Jon's World

PostPosted: Tue Nov 02, 2004 4:29 pm    Post subject: Reply with quote

Tuo -lident kertoo että tarvitaan ident kirjasto, joka siis pitää asentaa.
Code:
emerge net-libs/libident
Tai voit käyttää tuota ebuildia.
Back to top
View user's profile Send private message
Flammie
Retired Dev
Retired Dev


Joined: 02 Jun 2003
Posts: 633
Location: Dublin, Ireland

PostPosted: Tue Nov 02, 2004 10:30 pm    Post subject: Reply with quote

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

Code:
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.
Back to top
View user's profile Send private message
Viha
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2003
Posts: 121
Location: Jon's World

PostPosted: Wed Nov 03, 2004 8:31 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Finnish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum