= $stitle ?>
HOWTO: alpine
Description: Mail user agent; Apache-licenced successor to Pine
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything
# Alpine 2.00
# ===========
# Slackware 12.2: alpine 2.00
# Earlier releases of Slackware included Pine
# As of this update of this howto, we're installing everything in to
# the /usr prefix to match where Slackware's package puts it
# To uninstall Alpine, or clean up files from an older version before
# installing the new one, skip down to the bottom for instructions
# Prerequisites:
# gettext (if you don't pass --disable-nls)
# sendmail (used as a MSA)
# aspell (optional)
# OpenLDAP (optional)
# OpenSSL (optional)
# Tcl (required for Web Alpine; optional)
# PAM (optional)
# Kerberos
# If you're replacing Pine with Alpine, run this to remove Pine:
su
test -x /sbin/removepkg && /sbin/removepkg pine
for pfx in /usr /usr/local; do
( cd ${pfx}/bin ; rm -f pine pinef pico pilot )
( cd ${pfx}/man/man1 ; rm -f pine.1 pico.1 pilot.1 )
done
killall pine
exit
cd
test -f installed/alpine-2.00.tar.bz2 && mv installed/alpine-2.00.tar.bz2 .
test ! -f alpine-2.00.tar.bz2 &&
wget ftp://ftp.cac.washington.edu/alpine/alpine-2.00.tar.bz2
# Verify tarball w/ md5sum:
echo "84e44cbf71ed674800a5d57eed9c1c52 alpine-2.00.tar.bz2" | md5sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "alpine-*" -exec rm -r {} \;
tar xjvf ~/alpine-2.00.tar.bz2
cd alpine-2.00
test $UID = 0 && chown -R root:root .
# If you build it with SSL/TLS support, the default is to only allow
# plaintext passwords over encrypted connections.
# If your OpenSSL is not installed under it's own prefix (e.g.
# /usr/local/ssl), leave off --with-ssl-dir below.
./configure --prefix=/usr --mandir=/usr/man --disable-nls \
--with-system-pinerc=/etc/pine.conf \
--with-system-fixed-pinerc=/etc/pine.conf.fixed \
--with-ssl-dir=/usr/local/ssl
make
# Become root to install it
su
# Back up your pine.conf and pine.conf.fixed
mkdir -p -m 0700 ~/backup
for cfg in /usr/local/lib/pine.conf /usr/local/lib/pine.conf.fixed \
/etc/pine.conf /etc/pine.conf.fixed;
do
test -f $cfg && cp -a $cfg ~/backup/$(basename ${cfg})-$(date +%Y%m%d)
done
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg alpine
# Install it
make install
# To create a sample site-wide configuration file, run:
# alpine -pinerc /etc/pine.conf
# then open up pine.conf and modify it as necessary. To create site-wide
# fixed (not changeable by the user) configuration options, create a
# pine.conf.fixed and make sure only root has write permissions on it.
# Web Alpine is in ./web/
# See web/README and web/INSTALL for more info
# There are other things in ~/src/alpine-2.00/imap that you may want to
# check out, like mailutil (run it for usage).
#
# To check how many messages you have in a local mbox folder with it:
# ./mailutil check /var/spool/mail/jason
#
# Check how many messages you have in a folder named "lists" on a
# Cyrus IMAP server via IMAP + TLS (ignoring the complaint about the
# self-signed certificate and not using rsh to connect):
# ./mailutil check {localhost/user=jason/novalidate-cert/NoRsh}INBOX.lists
#
# Check how many messages you have in your Cyrus POP3 inbox via POP3 + TLS:
# ./mailutil check {localhost/pop3/user=jason/novalidate-cert}INBOX
# Make sure your non-root account can remove the source later
chown -R $USER .
chmod -R u+w .
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/alpine-*.tar.*
mv alpine-2.00.tar.bz2 installed/
# If you ever want to uninstall Alpine, this should do it:
cd
su
test -d src/alpine-* && ( cd src/alpine-* ; make uninstall )
( cd /etc ; rm -f pine.conf pine.conf.fixed )
for pfx in /usr /usr/local;
do
( cd ${pfx}/bin ; rm -f alpine pico pilot rpdump rpload )
( cd ${pfx}/lib ; rm -f pine.conf pine.conf.fixed )
( cd ${pfx}/man/man1
rm -f alpine.1 pico.1 pilot.1 rpdump.1 rpload.1 )
( cd ${pfx}/share/man/man1
rm -f alpine.1 pico.1 pilot.1 rpdump.1 rpload.1 )
done
exit
find ~/src -maxdepth 1 -type d -name "alpine-*" -exec rm -r {} \;
rm -f ~/installed/alpine-*.tar.*
|
Last updated: Fri, 26 Mar 2010 13:18:56 -0400 Jason Englander <jason at englanders dot us> |
|