Le Vendredi 14 Octobre 2005 11:16, Damyan Ivanov a écrit :

> Upstream Makefile is configured to install things in /usr/local. You must
> make it install everything in debian/blockrage/usr instead.
>
> Perhaps calling ./configure with --prefix=debian/blockrage is sufficient.
> If not, you should fix Makefile.in yourself and inform upstream.
>
Well, it has not worked because when I checked how the make file is generated, 
I saw that  --prefix option doesn't exist in the configure script, now my 
configure script starts by :
PREFIX=/usr
PROGNAME=blockrage
SYSCONFDIR="$PREFIX"/etc/games/"$PROGNAME"
BINDIR="$PREFIX"/games
TOPTENDIR=/var/games/"$PROGNAME"
DATADIR="$PREFIX"/share/"$PROGNAME"
MANDIR="$PREFIX"/man

I also noticed that make install DESTDIR doesn't existe either so I added it 
into Makefile.in 
install: $(PROGNAME)$(XSUF)
        ./inst -dp 755 -t $(DESTDIR)$(DATADIR)
        ./inst -dp 755 -t $(DESTDIR)$(SYSCONFDIR)
        ./inst -dp 755 -fp 644 -t $(DESTDIR)$(DATADIR) ./data/*
        ./inst -dp 755 -fp 755 -t $(DESTDIR)$(BINDIR)  $(PROGNAME)$(XSUF)
        ./inst -dp 755 -fp 644 -t $(DESTDIR)$(SYSCONFDIR) $(PROGNAME).cfg
        ./inst -dp 755 -fp 644 -T $(DESTDIR)$(SYSCONFDIR)/$(PROGNAME).rc 
src/$(PROGNAME)-fhs.rc
        ./inst -dp 755 -fp 644 -t $(DESTDIR)$(MANDIR)/man6 $(PROGNAME).6

uninstall:
        rm -r $(DATADIR)
        rm -r $(SYSCONFDIR)
        rm $(BINDIR)/$(PROGNAME)$(XSUF)
        rm $(MANDIR)/man6/$(PROGNAME).6


And now It works but it not an elegant solution to my views.

> Note that in the latter case you need to edit Makefile.in, since Makefile
> is generated from it by ./configure
>
This is whrere the solution was found ^^.

Now, all I have to do is to create a gpg key in order to have the 
blockrage_0.2.1-1_i386.changes file to be generated then launch linda or 
lintian.

Thanks for your help.

Sébastien Marbrier

Reply via email to