1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
|
maildrop 1.2
If you're upgrading from maildrop 0.74 or earlier, read the next
section, then come back here.
Starting with maildrop 1.2, the installation directories will use the
GNU layout. It might be painful, but it has to be done. The previous
installation directories were based on two years' worth of legacy
code, and had to go, in order for maildrop to be able to be shipped in
a distribution.
The installation layout used by maildrop 1.1 and earlier:
/usr/local/lib/maildrop/bin - binaries.
/usr/local/lib/maildrop/man - manual pages.
/usr/local/lib/maildrop/html - HTML documentation.
/usr/local/bin - soft links to binaries in
/usr/local/lib/maildrop/bin.
Starting with maildrop 1.2, maildrop will use the GNU installation
layout:
{bindir} - binaries.
{mandir} - manual pages.
{datadir}/maildrop - scripts and HTML documentation.
For scripts that are intended to be invoked from the shell command
line, there will be soft links from {bindir} to {datadir}/maildrop.
This means that the default installation layout will be as follows:
/usr/local/bin - binaries.
/usr/local/man - manual pages.
/usr/local/share/maildrop - scripts and HTML documentation.
maildrop 1.2 also installs development libraries. They are optional,
and can be removed after installation, if not needed. The development
files will be installed in {libdir} and {includedir}. The default
installation layout would be:
/usr/local/include - include files.
/usr/local/lib - libraries.
Manually upgrading from earlier versions of maildrop
The recommended upgrade path is to first manually remove the previous
version of maildrop, then install the new version of maildrop
afterwards.
Upgrading using the packaged RPM build script
The packaged RPM build script now installs maildrop in /usr/bin,
instead of the previous /usr/local/bin. This is because the build
script now uses the platform build defaults.
The new script also puts manual pages into a separate RPM, as well as
creating a separate devel RPM with the libraries and include files.
maildrop 0.75
Read this document if you're upgrading from 0.74, or earlier.
Maildrop 0.75 includes several bug fixes to the userdb scripts,
however the main change in 0.75 is a different installation layout.
Maildrop versions 0.74 and earlier used the following installation
layout. Typically, the following files were installed in the directory
/usr/local/bin:
/usr/local/bin/dotlock
/usr/local/bin/maildrop
/usr/local/bin/reformail
/usr/local/bin/reformime - core maildrop binaries
/usr/local/bin/maildirmake - soft link to maildrop.maildirmake
/usr/local/bin/maildrop.maildirmake
/usr/local/bin/makedat - soft link to maildrop.makedat
/usr/local/bin/maildrop.makedat - optionally installed if GDBM/DB
support is selected during configuration
/usr/local/bin/deliverquota - soft link to maildrop.deliverquota
/usr/local/bin/maildrop.deliverquota - optionally installed if maildir
quota support is selected during configuration
/usr/local/bin/makeuserdb - soft link to maildrop.makeuserdb
/usr/local/bin/pw2userdb - soft link to maildrop.pw2userdb
/usr/local/bin/userdb - soft link to maildrop.userdb
/usr/local/bin/maildrop.makeuserdb
/usr/local/bin/maildrop.pw2userdb
/usr/local/bin/maildrop.userdb - optional scripts installed if userdb
support is selected during configuration
/usr/local/man - various manual pages were installed underneath this
directory.
There was a reason why I initially decided to use this particular
installation layout. At least, I think I had one.
Although I haven't received any comments on this layout, I believe
that this layout is not very convenient, and may be confusing. So I've
decided to try a new installation layout starting with maildrop 0.75.
My goals were:
* A logical, straightforward layout
* Try to avoid breaking any existing stuff
* Allow easier management. For example, permit a quick and painless
way to roll back to a previous release of maildrop (for some
future releases, of course).
Maildrop 0.75 and onward will use the following installation layout by
default:
/usr/local/lib/maildrop/bin - all base and optional binaries will be
installed here
/usr/local/lib/maildrop/man - all manual pages will be installed here
/usr/local/lib/maildrop/html - all HTML versions of manual pages, and
additional documentation, will be installed here.
Soft links in /usr/local/bin. The installation script will install the
following soft links in the /usr/local/bin directory. The following
soft links will point to the binaries that are installed in the
/usr/local/lib/maildrop/bin directory:
/usr/local/bin/maildrop
/usr/local/bin/reformail
/usr/local/bin/reformime
/usr/local/bin/dotlock
/usr/local/bin/maildirmake
/usr/local/bin/makedat
/usr/local/bin/deliverquota
/usr/local/bin/makeuserdb
/usr/local/bin/pw2userdb
/usr/local/bin/userdb
Configuration switches that select whether or not certain optional
binaries are installed will remain the same.
Basically, anything that expects to find things in /usr/local/bin
should continue to work.
However, when you are ready to install a later release of maildrop,
you can simply move your current /usr/local/lib/maildrop directory
before installing the later release. In the event that you need to
back out to the previous version of maildrop, you can do that simply
by removing the newly installed /usr/local/lib/maildrop directory, and
moving the previous one in its place.
I think that this is a definite improvement from the previous layout.
Upgrading from maildrop 0.74 and earlier
If you compile and install maildrop 0.74 from the original source code
tarball, you can proceed to configure, compile, and install maildrop
as usual. You can use the --prefix option to the configure script to
change the main installation directory from /usr/local/lib/maildrop to
something else. If your previous version of maildrop was not installed
in the default directory /usr/local/bin, you can use the --bindir
option to the configure script to specify your non-default
installation directory.
make install should be able to create the correct soft links. After
running make install, or make install-strip, you will need to manually
perform the following steps:
* Manually remove any old maildrop binaries from /usr/local/bin,
such as maildrop.makedat, maildrop.deliverquota, and others.
Anything maildrop.* can be removed.
* New manual pages are installed underneath the main
/usr/local/lib/maildrop directory. You will need to remove old
manual pages from the /usr/local/man directory. Find all files
underneath /usr/local/man that begin with "maildrop". You will
also need to look for a corresponding soft link that points to
each manual page.
* Configure your man(1) command to search
/usr/local/lib/maildrop/man for manual pages, which is where
maildrop's manual pages are now installed. In most cases, you need
to simply add the path /usr/local/lib/maildrop/man to the MANPATH
environment variable. If you use the Bourne or Bash shells, simply
add the following code to /etc/profile:
MANPATH="/usr/local/lib/maildrop:$MANPATH"
export MANPATH
Upgrading binary RPMS for Red Hat Linux
I recommend that instead of using the rpm -U command to upgrade your
binary RPM, you should first remove the old maildrop rpm, using rpm
-e, then install the new RPM using rpm -i.
The binary RPM takes care of setting the MANPATH variable. Also, note
that the binary RPM installes the HTML version of manual pages, plus
additional documentation, in /usr/doc instead of
/usr/local/lib/maildrop/html.
|