Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
questioni su costruzione ebuild
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
DuDe
Guru
Guru


Joined: 04 Dec 2002
Posts: 314
Location: Roma Italy

PostPosted: Wed Nov 19, 2003 12:41 pm    Post subject: questioni su costruzione ebuild Reply with quote

Visto che non esiste l'ebuild per un package che interessa me, ma che potrebbe interessare molti, mi sono deciso a costruire l'ebuild per tale package prendendo spunto da quello per jboss avevo anche visto come sistemare il problema del nome che e' questo:

Il pacchetto si chiama opennms ed e' un clone open source di HP OPenView sul sito del pacchetto i source si chiamano opennms-source-1.1.1-0.tar.gz il mio problema e' proprio il -0 che fa' si che non sia possibile aggiungere il -source come fanno in jboss
Questo e' il jboss , come vedete assegnano a MY_P il nome dell'ebuild seguito da -scr

Code:

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-www/jboss/jboss-3.2.1.ebuild,v 1.3 2003$

MY_P="${P}-src"

DESCRIPTION="The Open Source J2EE app server implementation"
SRC_URI="mirror://sourceforge/jboss/${MY_P}.tgz"
HOMEPAGE="http://www.jboss.org"
LICENSE="LGPL-2"
IUSE="doc"
SLOT="0"
KEYWORDS="~x86"


questo e' parte dell' ebuild
Code:

DESCRIPTION="OpenNMS is a open-source clone of HP OpenView Network management system"
MY_P="{$P}-source"
# Homepage, not used by Portage directly but handy for developer reference
HOMEPAGE="http://www.opennms.org/"

SRC_URI="ftp://www.opennms.org/files/releases/sources/${MY_P}.tar.gz"

LICENSE="GNU GPL"

SLOT="0"

KEYWORDS="x86"
IUSE=""

DEPEND="dev-java/sun-j2sdk-1.4.1
        >=net-www/tomcat-4.1.20-r1
        >=dev-db/postgresql-7.3.4
        >=dev-java/jdbc2-postgresql-7.3
        >=dev-java/jdbc3-postgresql-7.3
        >=dev-java/jboss-3.0.6-r1
        >=dev-perl/DBI-1.37
        >=dev-perl/DBD-Pg-1.22
        >=net-analyzer/rrdtool-1.0.45"

# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
RDEPEND=""
#>=net-www/tomcat-4.1.20-r
#>=dev-db/postgresql-7.3.4
#>=dev-java/jdbc2-postgresql-7.3
#>=dev-java/jdbc3-postgresql-7.3
#>=dev-java/jboss-3.0.6-r1
#>=dev-perl/DBI-1.37
#>=dev-perl/DBD-Pg-1.22
#>=net-analyzer/rrdtool-1.0.45"

# Source directory; the dir where the sources can be found (automatically
# unpacked) inside ${WORKDIR}.  S will get a default setting of ${WORKDIR}/${P}
# if you omit this line.
S=${WORKDIR}/${P}

e questo e' l'errore che mi da' facendo un semplcie digest
Code:

netbackup opennms # ebuild  opennms-1.1.1-0.ebuild digest
!!! Name error in opennms-1.1.1-0: multiple version parts.
!!! Error: PF is null; exiting.


come faccio a risolvere il problema? e poi c'e' un modo per far stampare all'ebuild le varabili in gioco?

Grazie
_________________
mount -t brain /dev/brain /body/skull
Back to top
View user's profile Send private message
Gandalf98
Guru
Guru


Joined: 28 Feb 2003
Posts: 472
Location: Loano

PostPosted: Wed Nov 19, 2003 12:58 pm    Post subject: Reply with quote

Nel portage c'è un prog per creare gli ebuild: app-portage/abeni
Non so come funzioni, è masked ed ha parecchie dipendenze, non invoglia molto, però ....
Back to top
View user's profile Send private message
DuDe
Guru
Guru


Joined: 04 Dec 2002
Posts: 314
Location: Roma Italy

PostPosted: Wed Nov 19, 2003 1:01 pm    Post subject: Reply with quote

vero, non invoglia, e poi richiede X che io non ho e non voglio mettere su questa macchina, mi deve fare da server e aver X non mi serve
_________________
mount -t brain /dev/brain /body/skull
Back to top
View user's profile Send private message
Gandalf98
Guru
Guru


Joined: 28 Feb 2003
Posts: 472
Location: Loano

PostPosted: Wed Nov 19, 2003 1:02 pm    Post subject: Reply with quote

Sei sicuro che l'indirizzo messo nell'ebuild sia giusto! A me dice che non esiste. Questo funziona
ftp://www.opennms.org/pub/releases/opennms/stable/source
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Wed Nov 19, 2003 1:03 pm    Post subject: Reply with quote

Ispirati ad un altro ebuild, tipo quello per fluxbox; nel versioni 0.9.6-pre dovrebbero andare bene, anche loro hanno la parte -qualcosa (mi ricordo che avevo avuto un problemino simile quando stavo preparando l'ebuild per la versione -pre2 di fluxbox, che in portage ancora non c'era).
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
DuDe
Guru
Guru


Joined: 04 Dec 2002
Posts: 314
Location: Roma Italy

PostPosted: Wed Nov 19, 2003 1:15 pm    Post subject: Reply with quote

Gandalf98 wrote:
Sei sicuro che l'indirizzo messo nell'ebuild sia giusto! A me dice che non esiste. Questo funziona
ftp://www.opennms.org/pub/releases/opennms/stable/source


Vero, e' sbagliato, ma l'errore viene fuori prima di contattare quel sito sembra che all'ebuil sia sgradito il -0 dopo il nome+versione
_________________
mount -t brain /dev/brain /body/skull
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Wed Nov 19, 2003 1:23 pm    Post subject: Reply with quote

A suo tempo o fatto un ebuild per ls SciPy la cui versione era del tipo:
SciPy-0.2.0_alpha_200.416
ed ho risolto cosi':
Code:

MY_P="SciPy-0.2.0_alpha_200.4161"
S=${WORKDIR}/${MY_P}

DESCRIPTION="SciPy is a set of open source scientific/numeric tools for Python"
SRC_URI="http://www.scipy.org/site_content/downloads/${MY_P}_src.tar.gz"
HOMEPAGE="http://www.scipy.org"
......
......


Ciauz
morellik
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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