Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ebuild Script für eagle schreiben
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Knirps
n00b
n00b


Joined: 10 Feb 2003
Posts: 29

PostPosted: Sat Sep 20, 2003 4:50 pm    Post subject: Ebuild Script für eagle schreiben Reply with quote

Hi,
ich bin grad dabei einen ebuild für eagle zu schreiben in der readme dazu steht

Quote:


Installation des TGZ Archivs:

- Legen Sie ein neues Verzeichnis auf Ihrem System an (z.B. /opt/eagle):

mkdir /opt/eagle
cd /opt/eagle

- Benutzen Sie 'tar' um das Paket zu installieren:

tar xvzf /cdrom/german/linux/install/eagle-4.11g.tgz

- Wechseln Sie in das Verzeichnis das soeben aus dem Archiv extrahiert wurde:

cd /opt/eagle/eagle-4.11

- Rufen Sie das Installations-Script auf.

./install

- Geben Sie das Kommando 'bin/eagle' ein um die Produktregistrierung
zu starten (Sie benötigen dazu Schreibrechte in diesem Verzeichnis!).


Das verusch ich jetzt schon ein paar studnen mit dem ebuild zu machen doch grieg ich es einfach nciht hin die sources ganz simple nach /opt/eagle zu kopieren ich bekomme dabei immer ein acces denied. Habt ihr en tip wie man das am besten machen kann ?

cu
knirps
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Sat Sep 20, 2003 4:53 pm    Post subject: Reply with quote

Dann zeig doch mal, was du bisher geschrieben hast.

Gruß Tobias
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Sat Sep 20, 2003 5:01 pm    Post subject: Re: Ebuild Script für eagle schreiben Reply with quote

Knirps wrote:
/opt/eagle zu kopieren ich bekomme dabei immer ein acces denied. Habt ihr en tip wie man das am besten machen kann ?


Du testest die ebuilds aber schon als root, oder?

ian!
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
Knirps
n00b
n00b


Joined: 10 Feb 2003
Posts: 29

PostPosted: Sat Sep 20, 2003 5:18 pm    Post subject: Reply with quote

Hi,
ja klar teste ichdie ebuilds als root :)
der unterre teil hat bist jetzt dauertd gewechselt habs einmal mit cp versucht einmal mit tar direkt rein zu packen :

Quote:

MY_P=${PN}-${PV/_}
DESCRIPTION="CadsoftEagle Guter Leiterpatten Layouter"
SRC_URI="ftp://ftp.cadsoft.de/pub/program/4.11/${MY_P}.tgz"
HOMEPAGE="http://www.cadsoft.de"

LICENSE="CadSoft"
SLOT="0"
KEYWORDS="-* x86"
IUSE=**

INSTALLDIR=/opt/eagle

src_unpack() {
einfo "file: ${DISTDIR}/${P}.tgz"
tar -xvzf ${DISTDIR}/${P}.tgz -C /opt/
}



sieht wie gesagt etwas gläglich aus doch aus dem gentoo doc werde ich was das prob angeht auch nciht ebsonderst schlau.

cu
Knirps
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Sat Sep 20, 2003 5:21 pm    Post subject: Reply with quote

Hast du dir den 'Ebuild Guide' [1] und die Tipps von liquidx [2] angeschaut?

Gruß Tobias

[1] http://www.gentoo.org/doc/en/gentoo-howto.xml
[2] http://dev.gentoo.org/~liquidx/ebuildmistakes.html
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Sat Sep 20, 2003 7:01 pm    Post subject: Reply with quote

Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

MY_P=${P}g

DESCRIPTION="EAGLE Layout Editor"
SRC_URI="ftp://ftp.cadsoft.de/pub/program/4.11/${MY_P}.tgz"
HOMEPAGE="http://www.cadsoft.de"

SLOT="0"
KEYWORDS="~x86"
RESTRICT="nomirror"

BASE=/opt/eagle

src_install() {
   insinto ${BASE}
   doins README
   insinto ${BASE}/bin
   doins bin/eagle.* bin/freeware.key
   exeinto ${BASE}/bin
   doexe bin/eagle
   dodir /opt/bin
   dosym ${BASE}/bin/eagle /opt/bin
   insinto ${BASE}/cam
   doins cam/*
   insinto ${BASE}/doc
   doins doc/*
   insinto ${BASE}/dru
   doins dru/*
   insinto ${BASE}/help
   doins help/*
   insinto ${BASE}/lbr
   doins lbr/*
   insinto ${BASE}/projects
   doins projects/DESCRIPTION
   insinto ${BASE}/projects/examples
   doins projects/examples/DESCRIPTION
   insinto ${BASE}/projects/examples/hexapod
   doins projects/examples/hexapod/*
   insinto ${BASE}/projects/examples/singlesided
   doins projects/examples/singlesided/*
   insinto ${BASE}/projects/examples/tutorial
   doins projects/examples/tutorial/*
   insinto ${BASE}/scr
   doins scr/*
   insinto ${BASE}/ulp
   doins ulp/*
}


Das ist jetzt nur die deutsche Variante. Die man page habe ich auch weggelassen. Der symlink nach /opt/bin funktioniert nicht, da eagle dann die Lizenzschlüssel nicht findet. Wer mag, schreibe ein kurzes Skript. Da doins noch keinen Rekursionsparameter kennt, ist das Ebuild etwas länglich geraten.

edit: Der Symlink funktioniert doch! Nur beim ersten Programmaufruf muß der vollständige Pfad zum Programm benutzt werden.


Carlo
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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