Re: DESTDIR and .conf file

2005-03-09 Thread martin f krafft
also sprach Justin Pryzby [EMAIL PROTECTED] [2005.03.08.2315 +0100]:
 Yes.  This makes it a configuration file.  If you want it to be a
 conffile (which I suspect you do), you should also list it in
 debian/conffiles.

This is actually not necessary if you use dh_installdeb. Since
DH_COMPAT 3, it automatically marks all files in /etc as conffiles.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: DESTDIR and .conf file

2005-03-09 Thread martin f krafft
[sorry for the AOL re: DH_COMPAT mode 3 and dh_installdeb]

also sprach Justin Pryzby [EMAIL PROTECTED] [2005.03.09.0036 +0100]:
 If a file is provided by the package, then it is a conffile and
 not only a configuration file.

Yes.

 OTOH, if maintainer scripts create the file (possibly from
 a template in /usr/share/), then it is a configuration file but
 not a conffile.

The point is that the policy says that configuration files that are
automatically generated must not be marked as conffiles. Yet the
maintainer must ensure that they are treated as configuration files,
with help from tools like ucf.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


DESTDIR and .conf file

2005-03-08 Thread Rakotomandimby (R12y) Mihamina
Hello,
I'm still learning to build debian package.
Following the Debian New Maintainer's guide.
There are two things I dont understand:

1 ) ---
 I want that once the binary package is installed, the file
'minimalist.pl' is into '/usr/bin'. To do so, I put these in the install
section of my rules file:

install: build
dh_testdir
dh_testroot
dh_clean -k 
dh_installdirs

cp minimalist.pl debian/minimalist/usr/bin

Is it right? Where should I specify i want it into '/usr/bin',
'/usr/sbin', whatever... ?
There's no makefile for this software. It's just about copying one file
into the path.

2 ) 

To install the configuration file, I append to what I written (in the
install section yet:

cp minimalist.conf-sample debian/minimalist/etc/minimalist.conf

I had to append 'etc' into the 'dirs' file.
Is it right ?


PS: I do know there is a minimalist package.
I just do it to learn.
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours (France).
Tél : 02 34 08 26 04 / 06 33 26 13 14


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: DESTDIR and .conf file

2005-03-08 Thread Lucas Wall
On 03/08/2005 07:15 PM, Justin Pryzby wrote:
On Tue, Mar 08, 2005 at 11:02:19PM +0100, Rakotomandimby (R12y) Mihamina wrote:
2 ) 
To install the configuration file, I append to what I written (in the
install section yet:
   cp minimalist.conf-sample debian/minimalist/etc/minimalist.conf
I had to append 'etc' into the 'dirs' file.
Is it right ?
Yes.  This makes it a configuration file.  If you want it to be a
conffile (which I suspect you do), you should also list it in
debian/conffiles.
You don't need to add it to debian/conffiles if you use debhelper 
compatibility level 3 or higher[1] (current dh_make sets comp level to 
4). All files in etc/ are automatically flagged as conffiles by 
dh_installdeb.

K.
[1] man debhelper
--
Lucas Wall [EMAIL PROTECTED]  .''`.
Buenos Aires, Argentina: :ø :   Debian GNU/Linux
http://www.kadath.com.ar   `. `'  http://www.debian.org
PGP: 1024D/84FB46D6  `-
 5D25 528A 83AB 489B 356Ahttp://people.debian.org/~lwall
 4087 BC9B 4733 84FB 46D6mailto:[EMAIL PROTECTED]


signature.asc
Description: OpenPGP digital signature


Re: DESTDIR and .conf file

2005-03-08 Thread Justin Pryzby
On Tue, Mar 08, 2005 at 08:11:24PM -0300, Lucas Wall wrote:
 On 03/08/2005 07:15 PM, Justin Pryzby wrote:
 On Tue, Mar 08, 2005 at 11:02:19PM +0100, Rakotomandimby (R12y) Mihamina 
 wrote:
 2 ) 
 
 To install the configuration file, I append to what I written (in the
 install section yet:
 
cp minimalist.conf-sample debian/minimalist/etc/minimalist.conf
 I had to append 'etc' into the 'dirs' file.
 Is it right ?
 
 Yes.  This makes it a configuration file.  If you want it to be a
 conffile (which I suspect you do), you should also list it in
 debian/conffiles.
 
 You don't need to add it to debian/conffiles if you use debhelper 
 compatibility level 3 or higher[1] (current dh_make sets comp level to 
 4). All files in etc/ are automatically flagged as conffiles by 
 dh_installdeb.
Thanks for pointing this out:)  You just forced me to confront my
understanding of conffiles again.

If a file is provided by the package, then it is a conffile and not
only a configuration file.

OTOH, if maintainer scripts create the file (possibly from a template
in /usr/share/), then it is a configuration file but not a conffile.

Cheers,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]