View previous topic :: View next topic |
Author |
Message |
kevev n00b
Joined: 05 Jan 2005 Posts: 42 Location: Tejas
|
Posted: Mon Apr 04, 2005 3:19 am Post subject: My First Ebuild |
|
|
Hello I am makin an ebuild of a bsd program. These are the steps to install it manually.
./config.sh linux
make
make install
The config.sh process fine. when the Makefile.linux is called. I get an error.
Its trying to do:
mkdir -m 755 -p /usr/local/doc/bsd 2>/dev/null
I get error:
make: *** [install] error 1
I think the problem is that the ebuild is not given root privelages. I can run the command from root and the directory is created.
Plese someone give me some advise. If I get this working it will be my first attempt an ebuild and it will make Gentoo the first Linux distro to include this great app.
*EDIT*
here is the place in Makefile.linux where I think the issue is.....
install: ftp ftpd
mkdir -m 755 -p $(INSTALLTOP)/doc/bsdftpd-ssl 2>/dev/null
mkdir -m 755 -p $(INSTALLTOP)/doc/bsdftpd-ssl/docs 2>/dev/null
mkdir -m 755 -p $(INSTALLTOP)/doc/bsdftpd-ssl/cert 2>/dev/null
mkdir -m 755 -p $(INSTALLTOP)/man/man1 2>/dev/null
mkdir -m 755 -p $(INSTALLTOP)/man/man3 2>/dev/null
mkdir -m 755 -p $(INSTALLTOP)/man/man5 2>/dev/null
mkdir -m 755 -p $(INSTALLTOP)/man/man8 2>/dev/null
install -s -m 555 -o root -g root ftp/ftps $(INSTALLTOP)/bin/ftps
install -s -m 555 -o root -g root ftpd/ftpd $(INSTALLTOP)/sbin/ftpd
install -m 444 -o root -g root ftp/ftps.1.gz _________________ your only as smart as the Computer doing your thinking. |
|
Back to top |
|
|
genstef Retired Dev
Joined: 13 Jun 2004 Posts: 668 Location: M/Bay/Germany
|
Posted: Mon Apr 04, 2005 2:50 pm Post subject: |
|
|
You cannot write to "/" in an ebuild, because the files an ebuild installs need to be monitored and known.
Thus you install everything in ${D} and it is then merged to root (/) by portage.
You need to patch the makefile sometimes, but usually it just works with:
make DESTDIR="${D}" install |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Tue Apr 05, 2005 6:23 pm Post subject: |
|
|
genstef wrote: | You need to patch the makefile sometimes, but usually it just works with:
make DESTDIR="${D}" install |
Won't work on the above Makefile. The best thing to do is to talk to upstream and persuade them to add in DESTDIR install support. Usually they're quite happy to do so once they understand the issue. See? |
|
Back to top |
|
|
kevev n00b
Joined: 05 Jan 2005 Posts: 42 Location: Tejas
|
Posted: Wed Apr 06, 2005 3:19 am Post subject: yup |
|
|
I need to make a patch. Im gonna try and do it myself. Dont want to bug the developer. He is working hard on the next release. Now if someone could just point me in the right direction for a tutorial on patch files.......
Thank You! _________________ your only as smart as the Computer doing your thinking. |
|
Back to top |
|
|
kevev n00b
Joined: 05 Jan 2005 Posts: 42 Location: Tejas
|
Posted: Sat Apr 09, 2005 5:15 am Post subject: hellew |
|
|
anyone know where I can find one??? _________________ your only as smart as the Computer doing your thinking. |
|
Back to top |
|
|
genstef Retired Dev
Joined: 13 Jun 2004 Posts: 668 Location: M/Bay/Germany
|
Posted: Sat Apr 09, 2005 6:57 am Post subject: |
|
|
Code: | cp Makefile Makefile.orig
vi Makefile # make your changes here
#test it out
diff -u Makefile.orig Makefile > makefile.diff |
|
|
Back to top |
|
|
kevev n00b
Joined: 05 Jan 2005 Posts: 42 Location: Tejas
|
Posted: Thu Apr 14, 2005 8:42 pm Post subject: great! |
|
|
Thank You very much. I will do that. I have been working with a friend on the ebuild and we have progressed very well. There is alot of patching that needs to be done to make the app compile in Gentoo. My friends server took a dump last week and it still is not up so we haven't been working on it lately. I may use my server to host the working source till then just to get going on it. I will use this thread for further updates.
PS.
OHHH....BTW I guess its ok to let the cat out of the bag.(sorta) I am working on porting a secure file storage server over to Gentoo. Thats all I wanna say now. _________________ your only as smart as the Computer doing your thinking. |
|
Back to top |
|
|
kevev n00b
Joined: 05 Jan 2005 Posts: 42 Location: Tejas
|
Posted: Wed Jun 15, 2005 1:58 pm Post subject: ok......... |
|
|
Status Update!
havent worked on this in a while. but I am going to strart again. need to create the diff file and Im done. A new version of the app came out with good features so I want to do this quick...................... _________________ your only as smart as the Computer doing your thinking. |
|
Back to top |
|
|
|