Subject: improving mail/mailwrapper and postfix's sendmail to libexec/postfix/sendmail
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/26/2004 11:38:38
mail/mailwrapper assumes you want symlinks made for /usr/bin/mailq,
/usr/bin/newaliases, and ${SENDMAIL} (which is defined there as
/usr/sbin/sendmail).

It should probably make symlinks for ${PREFIX}/bin/mailq,
${PREFIX}/bin/newaliases and ${PREFIX}/sbin/sendmail instead.

Also, on deinstall it has:

@unexec ${RM} /usr/bin/mailq /usr/bin/newaliases /usr/sbin/sendmail
@unexec mv /usr/libexec/sendmail/sendmail /usr/sbin/sendmail
@unexec ln /usr/sbin/sendmail /usr/bin/mailq
@unexec ln /usr/sbin/sendmail /usr/bin/newaliases
@unexec ${RMDIR} /usr/libexec/sendmail

It probably should not do that either. It seems like on some systems,
mailq and newaliases may really be different tools.

And that wrongly assumes that /usr/libexec/sendmail/sendmail exists or is
the desired "/usr/sbin/sendmail".

The package should have a MESSAGE that shows how to set up links for
/usr/bin and /usr/sbin.

Is it okay if we change the mail/mailwrapper behaviour?

mail/postfix will need to be fixed first, to not install to
sbin/sendmail. It should probably install to libexec/postfix/sendmail
instead. Any problems with that also?

   Jeremy C. Reed
   http://bsd.reedmedia.net/