Subject: Re: /usr/pkgsrc/mail/nullmailer
To: Iain Hibbert <>
From: Johnny C. Lam <>
List: tech-pkg
Date: 11/26/2007 16:22:26
Iain Hibbert wrote:
> On Mon, 26 Nov 2007, Johnny C. Lam wrote:
>>> I'm not sure if there is a better way to make a fifo, or if there is a
>>> different target that it could be made at (pre-post-install ? :)
>> If nullmailer runs as a daemon and has an rc.d script, I would create the fifo
>> in the rc.d script as a start_precmd.  Just substitute the hard-coded path of
>> the trigger compiled into the nullmailer binary into the rc.d script.
> Hm, yeah - I thought about that but then it means you cannot run
> nullmailer except through the rc.d script which could be a problem on
> platform that does not use them (I guess?)

Create the fifo in both places -- once in the INSTALL script like your 
patch does, and once more in the start_precmd of the rc.d script, which 
verifies the existence and the correct permissions on the fifo.  This is 
the approach I took in some packages I maintain.


	-- Johnny C. Lam