Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My First Ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kevev
n00b
n00b


Joined: 05 Jan 2005
Posts: 42
Location: Tejas

PostPosted: Mon Apr 04, 2005 3:19 am    Post subject: My First Ebuild Reply with quote

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.:wink:

*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
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Mon Apr 04, 2005 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Tue Apr 05, 2005 6:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
kevev
n00b
n00b


Joined: 05 Jan 2005
Posts: 42
Location: Tejas

PostPosted: Wed Apr 06, 2005 3:19 am    Post subject: yup Reply with quote

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.......8)
Thank You!
_________________
your only as smart as the Computer doing your thinking.
Back to top
View user's profile Send private message
kevev
n00b
n00b


Joined: 05 Jan 2005
Posts: 42
Location: Tejas

PostPosted: Sat Apr 09, 2005 5:15 am    Post subject: hellew Reply with quote

anyone know where I can find one???:roll:
_________________
your only as smart as the Computer doing your thinking.
Back to top
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Sat Apr 09, 2005 6:57 am    Post subject: Reply with quote

Code:
cp Makefile Makefile.orig
vi Makefile  # make your changes here
#test it out
diff -u Makefile.orig Makefile > makefile.diff
Back to top
View user's profile Send private message
kevev
n00b
n00b


Joined: 05 Jan 2005
Posts: 42
Location: Tejas

PostPosted: Thu Apr 14, 2005 8:42 pm    Post subject: great! Reply with quote

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) :wink: 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
View user's profile Send private message
kevev
n00b
n00b


Joined: 05 Jan 2005
Posts: 42
Location: Tejas

PostPosted: Wed Jun 15, 2005 1:58 pm    Post subject: ok......... Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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