[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packaging af source dist



On Wed, May 05, 2004 at 05:57:32PM +0100, Lars E. D. Jensen wrote:
> I've made a package of vpopmail, but when running:
> 
> dpkg -i name_of_package.deb it installs the files a weird place.
> 
> I want it to install in /var/vpopmail/ but somehow the files end up
> /var/vpopmail/root/vpopmail-5.4.3/debian/tmp/
> Which is not so good.
> I have $(MAKE) install-strip DESTDIR=/var/vpopmail in my rules file.
> Even though I configure the source package with --prefix=/var/vpopmail the
> files are placed the wrong place.

You should install under debian/vpopmail in your build tree, so use
'DESTDIR=$(CURDIR)/debian/vpopmail'. The contents of debian/vpopmail
will then be packed up by the rest of the usual debian/rules boilerplate
and used as the filesystem archive for the .deb, which you later
install.

While Paul Johnson's advice to use a chroot jail may well be useful for
other reasons (see pbuilder, for example), it's not actually relevant to
your problem.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: