Re: Detecting the installed MTA

2005-04-08 Thread Antti-Juhani Kaijanaho
On 20050407T172533+0300, Antti-Juhani Kaijanaho wrote:
 (Don't use grep-status or grep-available in package scripts.)

Since I've been asked, here's some more about that from
/usr/share/doc/grep-dctrl/Compatibility :

8--
If you use grep-dctrl in a Debian package, you should depend on the
grep-dctrl package and heed the following compatibility notes:

   * Always call only the grep-dctrl executable.
Although the grep-status and grep-available symlinks
are installed by default, this may change in the future.
Those symlinks are meant for manual - not scripted - use.

   * Always specify an explicit file name
Don't rely on the implicit file name feature.  The system
administrator may have changed the default file name.

   * Not all features have been with us in every version
Check if any of the features you use is mentioned in the
changelog.  Use a versioned dependency on grep-dctrl, if it
is necessary.
8--

The same information used to be included in the manual page, but it
seems to have been dropped.  I just uploaded 2.1.10 which reinserts the
warning.
-- 
Antti-Juhani Kaijanaho, Debian developer 

http://kaijanaho.info/antti-juhani/blog/en/debian


signature.asc
Description: Digital signature


Detecting the installed MTA

2005-04-07 Thread Søren Boll Overgaard
Hello,

During packaging, that is, during the installation of a package, I need to
determine which MTA is currently installed, since I need to set certain
permissions specific to my package, so that they match with those of the 
currently running MTA.

Looking through /etc/passwd for signs of MTA specific users seems a less than
optimal way of doing things, and google hasn't produced any obvious ideas, so I
would love some input.

Thanks.

-- 
Søren O.   ,''`.
  : :' :
GPG key id: 0x1EB2DE66`. `'
GPG signed mail preferred.  `-


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



Re: Detecting the installed MTA

2005-04-07 Thread Christoph Berg
Re: Søren Boll Overgaard in [EMAIL PROTECTED]
 During packaging, that is, during the installation of a package, I need to
 determine which MTA is currently installed, since I need to set certain
 permissions specific to my package, so that they match with those of the 
 currently running MTA.

grep-status -FProvides mail-transport-agent | grep-dctrl -FStatus installed 
-sPackage -n

Christoph
-- 
[EMAIL PROTECTED] | http://www.df7cb.de/


signature.asc
Description: Digital signature


Re: Detecting the installed MTA

2005-04-07 Thread Josselin Mouette
Le jeudi 07 avril 2005 à 15:10 +0200, Søren Boll Overgaard a écrit :
 Hello,
 
 During packaging, that is, during the installation of a package, I need to
 determine which MTA is currently installed, since I need to set certain
 permissions specific to my package, so that they match with those of the 
 currently running MTA.
 
 Looking through /etc/passwd for signs of MTA specific users seems a less than
 optimal way of doing things, and google hasn't produced any obvious ideas, so 
 I
 would love some input.

Maybe check where the /usr/lib/sendmail link points at?
-- 
 .''`.   Josselin Mouette/\./\
: :' :   [EMAIL PROTECTED]
`. `'[EMAIL PROTECTED]
   `-  Debian GNU/Linux -- The power of freedom



Re: Detecting the installed MTA

2005-04-07 Thread Sebastian Ley
* Søren Boll Overgaard wrote:

 During packaging, that is, during the installation of a package, I need to
 determine which MTA is currently installed, since I need to set certain
 permissions specific to my package, so that they match with those of the
 currently running MTA.

Might be hackish, but seems to work:

dpkg -S /usr/sbin/sendmail | awk -F ':' '{print $1}'

Regards,
Sebastian

-- 
PGP-Key: http://www.withouthat.org/~sebastian/public.key
Fingerprint: A46A 753F AEDC 2C01 BE6E  F6DB 97E0 3309 9FD6 E3E6



Re: Detecting the installed MTA

2005-04-07 Thread Antti-Juhani Kaijanaho
On 20050407T153710+0200, Christoph Berg wrote:
 Re: Søren Boll Overgaard in [EMAIL PROTECTED]
  During packaging, that is, during the installation of a package, I need to
[...]
 grep-status -FProvides mail-transport-agent | grep-dctrl -FStatus installed 
 -sPackage -n

grep-dctrl -FProvides mail-transport-agent -a -FStatus installed -sPackage -n \
  /var/lib/dpkg/status

(Don't use grep-status or grep-available in package scripts.)
-- 
Antti-Juhani Kaijanaho, Debian developer 

http://kaijanaho.info/antti-juhani/blog/en/debian


signature.asc
Description: Digital signature


Re: Detecting the installed MTA

2005-04-07 Thread Marc 'HE' Brockschmidt
Søren Boll Overgaard [EMAIL PROTECTED] writes:
 During packaging, that is, during the installation of a package, I need to
 determine which MTA is currently installed, since I need to set certain
 permissions specific to my package, so that they match with those of the 
 currently running MTA.

dpkg -S /usr/sbin/sendmail.

Marc
-- 
$_=')(hBCdzVnS})3..0}_$;//::niam/s~=)]3[))_$(rellac(=_$({pam(esrever })e$.)4/3*
)e$(htgnel+23(rhc,u(kcapnu ,nioj ;|_- |/+9-0z-aZ-A|rt~=e$;_$=e${pam tnirp{y
V2ajFGabus} yV2ajFGa{gwmclBHIbus}gwmclBHI{yVGa09mbbus}yVGa09mb{hBCdzVnSbus';
s/\n//g;s/bus/\nbus/g;eval scalar reverse   # mailto:[EMAIL PROTECTED]


pgpETlvHGvHud.pgp
Description: PGP signature


Re: Detecting the installed MTA

2005-04-07 Thread Lars Wirzenius
to, 2005-04-07 kello 15:10 +0200, Søren Boll Overgaard kirjoitti:
 During packaging, that is, during the installation of a package, I need to
 determine which MTA is currently installed, since I need to set certain
 permissions specific to my package, so that they match with those of the 
 currently running MTA.

What happens if the sysadmin later replaces the MTA?



Re: Detecting the installed MTA

2005-04-07 Thread Nico Golde
Hello Lars,

* Lars Wirzenius [EMAIL PROTECTED] [2005-04-07 17:17]:
 to, 2005-04-07 kello 15:10 +0200, Søren Boll Overgaard kirjoitti:
  During packaging, that is, during the installation of a package, I need to
  determine which MTA is currently installed, since I need to set certain
  permissions specific to my package, so that they match with those of the 
  currently running MTA.
 
 What happens if the sysadmin later replaces the MTA?

I think there is no other way expect to specify this in a
config file. Or it should be documentated that in this case
the user has do dpkg-reconfigure the package.
Regards Nico

-- 
Nico Golde - [EMAIL PROTECTED] | GPG: 1024D/73647CFF
http://www.ngolde.de | http://www.muttng.org | http://grml.org 
VIM has two modes - the one in which it beeps 
and the one in which it doesn't -- encrypted mail preferred


pgpU4VAHPoN3x.pgp
Description: PGP signature


Re: Detecting the installed MTA

2005-04-07 Thread Humberto Massa
Nico Golde wrote:
I think there is no other way expect to specify this in a
config file. Or it should be documentated that in this case
the user has do dpkg-reconfigure the package.
Regards Nico
 

Isn't there a way to write a trigger to be... hmmm... triggered in 
case some specific package (/in/ /casu/ one of the MUAs) get 
installed/uninstalled/reconfigured?

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


Re: Detecting the installed MTA

2005-04-07 Thread Tollef Fog Heen
* Humberto Massa 

| Isn't there a way to write a trigger to be... hmmm... triggered in
| case some specific package (/in/ /casu/ one of the MUAs) get
| installed/uninstalled/reconfigured?

Not yet.  One of the many to-be-implemented dpkg features.

-- 
Tollef Fog Heen,''`.
UNIX is user friendly, it's just picky about who its friends are  : :' :
  `. `' 
`-  


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