Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
п²п╟п©п╦я│п╟п╫п╦п╣ я│п╡п╬п╣пЁп╬ ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Yokodzun
n00b
n00b


Joined: 17 Dec 2003
Posts: 8
Location: Kiev, Ukrain

PostPosted: Fri Dec 16, 2005 10:24 am    Post subject: п²п╟п©п╦я│п╟п╫п╦п╣ я│п╡п╬ Reply with quote

п∙я│я┌я▄ я┌я┐я┌ п╩я▌п╢п╦ я│ п╬п©я▀я┌п╬п╪ п╫п╟п©п╦я│п╟п╫п╦я▐ я│п╡п╬п╣пЁп╬ ebuldп╟?
п·п╠п╫п╟я─я┐п╤п╦п╩, я┤я┌п╬ п╡ portage п╫п╣я┌ я┌п╟п╨п╬п╧ п©п╬п╩п╣п╥п╫п╬п╧ п©я─п╬пЁя─п╟п╪п╨п╦ п╨п╟п╨ bgpq.
п═п╣я┬п╦п╩ п╫п╟п©п╦я│п╟я┌я▄ я│п╟п╪ ebuild п╨ п╫п╣п╧.
п⌠п╩я▐п╢я▐ я│я▌п╢п╟ http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1 п╦ п╡ я┐п╤п╣ пЁп╬я┌п╬п╡я▀п╣ ebuilds п╫п╟я─п╦я│п╬п╡п╟п╩ я│п╩п╣п╢я┐я▌я┴п╣п╣:

xroads bgpq # cat bgpq-1.0.9.1.ebuild
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

MY_PV="bgpq-${PV}"
DESCRIPTION="bgpq -- generate access-lists for cisco routers and GateD"
HOMEPAGE="http://www.lexa.ru/snar/bgpq.html"
SRC_URI="ftp://ftp.lexa.ru/pub/domestic/snar/${MY_PV}.tgz"

LICENSE="bgpq"
SLOT="0"
KEYWORDS="~x86 x86"
IUSE=""

DEPEND=""
RDEPEND=""

S="${WORKDIR}/${MY_PV}"

src_unpack() {
unpack ${A}
cd ${S}
}

src_compile() {
econf || die
emake || die
}

src_install() {
emake install DESTDIR=${D} || die "make install failed"
dodoc CHANGES COPYRIGHT
}

п÷я─п╬п©п╦я│п╟п╩ п╡ п╬п╡п╣я─п╩п╣п╧, я│пЁп╣п╫п╣я─п╦п╩ п╢п╟п╧п╢п╤п╣я│я┌
п÷я▀я┌п╟я▌я│я▄ п╥п╟п╦п╫я│я┌п╟п╩п╦я┌я▄ п╦ п╫п╟ п╪п╬п╪п╣п╫я┌п╣ src_install п©п╬п╩я┐я┤п╟я▌ я┌п╟п╨п╬п╣:


>>> Install bgpq-1.0.9.1 into /var/tmp/portage/bgpq-1.0.9.1/image/ category net-misc
/bin/install -c -s -m 755 bgpq /usr/bin
ACCESS DENIED open_wr: /usr/bin/bgpq
/bin/install: cannot create regular file `/usr/bin/bgpq': Permission denied
make: *** [install] Error 1

п я┌п╬ я│я┌п╟п╩п╨п╦п╡п╟п╩я│я▐ я│ я┌п╟п╨п╦п╪, п╣я│я┌я▄ п╦п╢п╣п╦?
Back to top
View user's profile Send private message
4nykey
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 176

PostPosted: Sat Dec 17, 2005 4:38 pm    Post subject: Reply with quote

Можно сделать проще:
Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="bgpq -- generate access-lists for cisco routers and GateD"
HOMEPAGE="http://www.lexa.ru/snar/bgpq.html"
SRC_URI="ftp://ftp.lexa.ru/pub/domestic/snar/${P}.tgz"

LICENSE="bgpq"
SLOT="0"
KEYWORDS="~x86 x86"
IUSE=""

DEPEND=""
RDEPEND=""

src_install() {
        dobin bgpq
        doman bgpq.8
        dodoc CHANGES COPYRIGHT
        dohtml *.html
}

_________________
anykey banykey yelee varanykey
Back to top
View user's profile Send private message
Yokodzun
n00b
n00b


Joined: 17 Dec 2003
Posts: 8
Location: Kiev, Ukrain

PostPosted: Mon Dec 19, 2005 8:46 am    Post subject: Reply with quote

Хм, и правда.
Так арбайтен.
Спасибо!
Попробую через багзилу добавить эту тулзу в основное дерево.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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