On Monday, September 22, 2003, at 12:21 PM, X-Istence wrote:Uhm, looking at the install of the lib and the rest of the files to that same dir, i would not have screwed upa lot of things note:
+ chmod 700 $(DESTDIR)@vpopmaildir@/@domains_dir@ + chown -R @vpouser@ $(DESTDIR)@vpopmaildir@ + chgrp -R @vpopgroup@ $(DESTDIR)@vpopmaildir@ + chown -R root $(DESTDIR)@vpopmaildir@/lib + chgrp -R root $(DESTDIR)@vpopmaildir@/lib
If @vpopmaildir@ is /usr/local, you've just screwed up a LOT of stuff. This is what we're trying to avoid.
We need to insert something in Makefile.am like this:
if test ! -r $(DESTDIR)@vpopmaildir@/bin; then \
$(INSTALL) -d -g @vpopgroup@ -m 0755 -o @vpopuser@ $(DESTDIR)@vpopmaildir@/bin \
fi
But it needs to happen before Makefile installs the programs.
There should also be something I can set that will alter the options INSTALL uses when installing the programs, so we get the permissions correct on them as well.
If no one has ideas, I'll look into it. I think that it is possible to use install to create directories (and set their permissions) if they don't exist, and to leave them alone (and not alter permissions) if they don't exist.
-- Tom Collins [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
$(INSTALL) -d -g @vpopgroup@ -m 0700 -o @vpopuser@ \ $(DESTDIR)@vpopmaildir@/@domains_dir@
Creates the correct dir, and chown's i to the right user, and chmod's it correctly. So from that we can assume that $(DESTDIR)@vpopmaildir@ is pointing /usr/local/vpopmail/, otherwise all the other files would fail to install correctly as well. Right or wrong?