View previous topic :: View next topic |
Author |
Message |
Klavs Guru
Joined: 22 May 2002 Posts: 536 Location: Denmark
|
Posted: Mon Mar 17, 2003 10:07 am Post subject: I'm writing an ipv6 (usagi) tools ebuild |
|
|
Hi guys,
when the ebuild comes to src_install I get this output:
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-ipv6tools-20030303-10782.log"
chmod: /usr/lib
chmod: /usr/sbin
open_wr: /usr/sbin/dtcpc
chmod: /usr/bin
chmod: /usr/sbin
chmod: /usr/bin
chmod: /usr/sbin
chmod: /usr/sbin
chmod: /usr/sbin
chmod: /usr/sbin
chmod: /usr/sbin
mkdir: /usr/etc
mkdir: /usr/local/v6
mkdir: /usr/etc
chmod: /usr/sbin
chmod: /usr/sbin
chmod: /usr/bin
open_wr: /usr/sbin/pluto
open_wr: /usr/sbin/whack
open_wr: /usr/etc
chmod: /usr/bin
chmod: /usr/bin
chmod: /usr/sbin
chmod: /usr/bin
chmod: /usr/sbin
chmod: /usr/bin
chmod: /usr/sbin
chmod: /usr/sbin
chmod: /usr/sbin
chmod: /usr/sbin
chmod: /usr/bin
chmod: /usr/sbin
chmod: /usr/sbin
chmod: /usr/bin
chmod: /usr/sbin
chmod: /usr/bin
chmod: /usr/sbin
chmod: /usr/bin
chmod: /usr/bin
chmod: /usr/bin
chmod: /usr/sbin
--------------------------------------------------------------------------------
How do I fix that? _________________ Best regards,
Klavs Klavsen
Denmark
Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38. |
|
Back to top |
|
|
Klavs Guru
Joined: 22 May 2002 Posts: 536 Location: Denmark
|
Posted: Mon Mar 17, 2003 11:26 am Post subject: |
|
|
well - I updated my ebuild to use einstall and that fixed a lot of the errors - except for these:
(happens in the usagi/usagi/mipdiag Makefile)
mkdir: /usr/local/v6
open_wr: /usr/local/v6/etc/init.d/mobile-ip6
(happens in the usagi/usagi/rtsol Makefile)
chmod: /usr/sbin
I have this configure line:
econf --sysconfdir=$D/etc/ipv6tools --program-prefix=$D
The problem is that the install script would put a hell of a lot of files in /etc - and I really want them in /etc/ipv6tools/ - or am I just wacked - and should leave them in /etc ?
also that still doesn't fix the other problems - and I can't seem to figure out why mipdiag is the only one who still wants to use /usr/local/v6 as it's prefix - even though the others don't - and they still have prefix=/usr/local/v6 in their makefile - but install fine.
Any help would be greatly appreciated. _________________ Best regards,
Klavs Klavsen
Denmark
Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38. |
|
Back to top |
|
|
Klavs Guru
Joined: 22 May 2002 Posts: 536 Location: Denmark
|
Posted: Mon Mar 17, 2003 11:37 am Post subject: |
|
|
It would seem I need to patch usagi/usagi/mipdiag/configure.in - as it uses a self-invented variable called INIT_USAGI (which another selfinvented var INITDIR - i set =).
Any tips to how to best do this - can I f.ex. do a sed replacement?
Here's the entire ebuild:
MY_DIR="usagi"
MY_P="usagi-tool-s20030303"
S=${WORKDIR}/${MY_DIR}
DESCRIPTION="ipv6tools allows the users to manage ipv6 routes and interfaces and includes too
ls such traceroute6 and ping6."
HOMEPAGE="http://www.linux-ipv6.org/"
KEYWORDS="x86"
SRC_URI="ftp://ftp.linux-ipv6.org/pub/usagi/snap/split/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
DEPEND="virtual/glibc
dev-libs/gmp
>=sys-kernel/gentoo-sources-2.4.20"
src_compile() {
make prepare TARGET=linux24 || dir " make prepare failed"
cd usagi
econf
emake || die
}
src_install () {
cd usagi
einstall
dodoc RELNOTES.USAGI
} _________________ Best regards,
Klavs Klavsen
Denmark
Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38. |
|
Back to top |
|
|
Klavs Guru
Joined: 22 May 2002 Posts: 536 Location: Denmark
|
Posted: Mon Mar 17, 2003 12:43 pm Post subject: |
|
|
I finally got it working with some sed action
you can see the final ebuild here:
https://bugs.gentoo.org/show_bug.cgi?id=17681
I learned a lot creating it atleast _________________ Best regards,
Klavs Klavsen
Denmark
Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38. |
|
Back to top |
|
|
|