Personally I think default should be /usr/local/dbmail and *EVERYTHING*
should default under that. I don't like programs (especially hand
compiled one) spraying files all over my file system. I find it much
neater when they are all contained under one directory.
Plus this allows a user to compile and test the program without root
access, and makes it easy to have multiple installs on the same system
for testing purposes.
Now I understand that may not be a popular view, so I would be satisfied
with the additional configure flags you suggest below. As long as there
is a fairly standard way of getting everything in one place without
having to edit .h files, I'm happy.
Matt
Aaron Stone wrote:
I agree in principle, but I think we should use different standard
configure options: --sysconfdir and --localstatedir.
Theoretically if we started picked them up, though, they'd all begin
with /usr/local or whatever --prefix is -- but I have no clue
what /usr/etc or /usr/var are supposed to be...
Aaron
On Tue, 2006-08-15 at 17:00 -0400, Matthew T. O'Connor wrote:
I would like to see a small change in the way the build works. That is,
I would like to have the --prefix be added to the path for the config
file, the pid file, and the log files. So for example, after:
configure --prefix=/home/testuser/dbmail
The default paths for the logs, config file and pid files in dbmail.h
would be:
/** default directory and extension for pidfiles */
#define DEFAULT_PID_DIR "/home/testuser/dbmail/var/run"
#define DEFAULT_PID_EXT ".pid"
/** default configuration file */
#define DEFAULT_CONFIG_FILE "/home/testuser/dbmail/etc/dbmail.conf"
/** default log files */
#define DEFAULT_LOG_FILE "/home/testuser/var/log/dbmail.log"
#define DEFAULT_ERROR_LOG "/home/testuser/dbmail/var/log/dbmail.err"
This allows DBMail to be more easily self contained, and eliminates the
need for root access just to test things.
What do people think of this idea?
Matt
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev