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

Re: i can't find my /etc/*.conf files

On Fri, Aug 03, 2001 at 01:56:59PM +0430, Pratik Sinha wrote:
> This is my first packaging experience...i read the New Maintainers Guide
> and the debmake documentation...earlier i tried my hand out at making a
> few rpms...

Use debhelper rather than debmake. Oh wait, you are already.

> 	./configure --prefix=/usr --exec_prefix= --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sbindir=\$${prefix}/sbin --bindir=\$${prefix}/bin --libdir=\$${prefix}/lib --datadir=\$${prefix}/share --localstatedir=/var --includedir=\$${prefix}/include --oldincludedir=\$${prefix}/include --sysconfdir=\$${exec_prefix}/etc --libexecdir=\$${prefix}/lib

That's massive overkill, as most of those should be the defaults. Just
specify the ones you change. I'd use:

        ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
                    --infodir=\$${prefix}/share/info \

Even then, only specify all of that if it actually uses them all.

> install: build
> 	dh_testdir
> 	dh_testroot
> 	dh_clean -k
> 	dh_installdirs
> 	# Add here commands to install the package into debian/tmp.
> 	$(MAKE) install prefix=`pwd`/debian/tmp/usr

You also need to override the directories that weren't set to depend on
${prefix} above to go into the temporary package build directory, so:

        $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr \
                        localstatedir=$(CURDIR)/debian/tmp/var \

> 	dh_suidregister

In testing/unstable, dh_suidregister has been obsoleted in favour of the
dpkg-statoverride mechanism.

Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: