On Mon, Feb 09, 2009 at 09:41:49AM -0800, Quanah Gibson-Mount wrote:
> We currently use postfix as a part of our overall product, which means that
> it ends up being packaged inside our own RPM (or deb, etc) packages, and
> then redeployed when our product is installed. One thing I've noticed
> about the postfix build system in this is that it assumes you are building
> postfix specifically to be run on the box you're building it on, which in
> what we are doing is not really the case.
Please explain what you mean by this.
> As a part of all this, we also allow people to check out and build the FOSS
> edition of our product. To make it easier on those who want to do this,
> I'm trying to make it so they can build postfix as whatever user they want,
> since our own install process takes care of setting up permission, etc, for
> postfix.
I build and install (for deployment to other systems) Postfix as "viktor"
all the time.
<http://www.postfix.org/PACKAGE_README.html>
The only thing that requires "root" is actually making "postdrop" and
"postqueue" setgid as $setdig_group, this is a post-install step.
> However, the postfix-install script doesn't seem to have a
> concept of this, which makes it somewhat annoying to use, as I have to
> essentially patch around it.
You have not read "PACKAGE_README".
> Of the numerous software applications we
> build as the underlying components to our product, Postfix is the only one
> that goes to such pains. Is there a way that I'm missing to turn off this
> behavior in postfix-install besides patching it to turn off its checks?
What "checks" are you objecting to? When I install for packaging, I run:
sh ./postfix-install -non-interactive install_root=$iroot \
config_directory=${INSTALL_EXEC_PREFIX}/etc \
command_directory=${INSTALL_EXEC_PREFIX}/sbin \
data_directory=${BUILD}/data \
daemon_directory=${INSTALL_EXEC_PREFIX}/libexec \
manpage_directory=${INSTALL_PREFIX}/man \
queue_directory=${BUILD}/spool \
readme_directory=${INSTALL_PREFIX}/readme \
sample_directory=${INSTALL_PREFIX}/sample \
html_directory=${INSTALL_PREFIX}/html \
mailq_path=${INSTALL_EXEC_PREFIX}/sbin/mailq \
newaliases_path=${INSTALL_EXEC_PREFIX}/sbin/newaliases \
sendmail_path=${INSTALL_EXEC_PREFIX}/sbin/sendmail
This delivers all the files to the (desired by me) locations with no fuss.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.