if you run configure --help, you will see this (and more):
Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX]
By default,
make install' will install all the files in
/usr/local/bin',/usr/local/lib' etc. You can specify an installation prefix other than
/usr/local' using--prefix', for instance
--prefix=$HOME'.For better control, use the options below.
Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] I see now I missed something so I will redefine my request. If I invoke configure with: --prefix=/usr/local/dovecot-bld/<timestamp> --eprefix=/usr/local/dovecot-bld/<timestamp> where /usr/local/dovecot-bld/<timestamp> is a directory Q1: Will I have everything in that one directory so that by tar'ing and untar'ing that one directory I can tar up everything necessary to run dovecot on another machine with the same OSlevel/patches/OpenSSL. Will dovecot be able to reference everything it needs? I notice that
--oldincludedir=DIR C header files for non-gcc [/usr/include]
will not be there. Will that be a problem? Q2: Will dovecot not be able to find system resources it needs?
Tar'ing up a directory is doable. RPM'ing hundreds of files scattered here and there, perhaps referenced by others, perhaps with new additions/deletions you don't know about sounds like an heroic task. Does anybody see how simple it is to upgrade UWImap with its one binary?
Lior Okman wrote:
Looking at the debianized version, the bulk of the files are placed in € or under /usr/lib/dovecot, with all of the configuration files in € /etc/dovecot, and relevant binaries under /usr/bin and /usr/sbin. €
€ However, reading from the comment in the begining of the default € dovecot.conf file, you can probably compile your own version of € dovecot where you specify the following parameters to configure: € "--prefix=/usr --sysconfdir=/etc --localstatedir=/var € --with-ssldir=/etc/ssl". € Just make sure to replace all the paths with where you want to install € this version of dovecot. €
€ Lior €
€ On 3/7/06, Stewart Dean <sdean@bard.edu> wrote: €
Hmmm, hadn't thought of RPM. But I would like a direct answer to my
€
question, which was: Can I just tar up everything in a dovecot-only
€
prefix directory (defined in the invocation of configure) when the make
€
and make install is done, and then untar/extract it in a directory of
€
the same name over on another machine with the same OS, patches and
€
OpenSSL? Are there Dovecot dependencies outside prefix directory.
€
€
My OS is AIXV5.3 maintenance/tech level 4. There is no distro RPMs for
€
same, so I am building it myself.
€
€
Lior wrote:
€
The problem you are describing is solved with tools like RPM and DEB.
€
€
You can install/remove an entire package with a single command, you
€
can verify the installation with a single command, you can safetly
€
upgrade with a single command, and safetly revert to an older version
€
with a single command.
€
€
These tools allow you to find out exactly which file belongs to what
€
package, and they prevent conflicting files from two different
€
packages from being installed. Not to mention (almost) automatic (at
€
least on debian) dependency resolving for packages.
€
€
If you're using Debian, you can just "apt-get install dovecot-imap
€
dovecot-pop", and have the dpkg handle all of the issues you
€
mentioned. If you're using an RPM based distro- try yum or apt-rpm.
€
€
Lior
€
€
€
Timothy White wrote:
€
If you're using Debian, you can just "apt-get install dovecot-imap
€
dovecot-pop", and have the dpkg handle all of the issues you
€
mentioned. If you're using an RPM based distro- try yum or apt-rpm.
€
€
€
And there is nothing stopping you making a deb package, from a newer
€
version of dovecot, that Debian has, AND, duplicating the server, so
€
you can do a test upgrade... Of course, with any upgrade, someone will
€
notice something ;-)
€
€
Tim
€
--
€
Linux Counter user #273956
€
€
€
--
€
====
€
Stewart Dean, Unix System Admin, Henderson Computer Resources
€
Center of Bard College, Annandale-on-Hudson, New York 12504
€
sdean@bard.edu voice: 845-758-7475, fax: 845-758-7035
€
€
€
--
Stewart Dean, Unix System Admin, Henderson Computer Resources Center of Bard College, Annandale-on-Hudson, New York 12504 sdean@bard.edu voice: 845-758-7475, fax: 845-758-7035