Browse Source

new package: mutt15 1.5.4i (Mail User Agent)

master
parent
commit
ab2e636f16
  1. 18
      mutt15/mailcap
  2. 159
      mutt15/mutt15.spec
  3. 93
      mutt15/muttrc

18
mutt15/mailcap

@ -0,0 +1,18 @@
##
## @l_prefix@/etc/mutt/mailcap -- Global Mutt Mail Capability Database
## Copyright (c) 1998-2003 Ralf S. Engelschall <rse@engelschall.com>
##
text/html; (w3m %s) 2>/dev/null || (lynx %s) 2>/dev/null || mozilla -remote openURL\(%s\); nametemplate=%s.html
text/html; (w3m -dump %s) 2>/dev/null || (lynx -dump %s) 2>/dev/null || cat; nametemplate=%s.html; copiousoutput
image/*; (display %s) 2>/dev/null || xv %s
image/*; (anytopnm %s | pnmscale -xysize 80 46 | ppmtopgm | pgmtopbm | pbmtoascii -1x2) 2>&1; copiousoutput
video/*; mplayer %s
application/pdf; (acroread %s) 2>/dev/null || (mgv %s) 2>/dev/null || (gv %s) 2>/dev/null || (ghostview %s) 2>/dev/null || gs %s
application/postscript; (mgv %s) 2>/dev/null || (gv %s) 2>/dev/null || (ghostview %s) 2>/dev/null || gs %s
application/x-dvi; xdvi %s
application/vnd.ms-powerpoint; (msov --format=ppt %s) 2>/dev/null || openoffice %s
application/vnd.ms-excel; (msov --format=xls %s) 2>/dev/null || openoffice %s
application/vnd.ms-word; (msov --format=doc %s) 2>/dev/null || openoffice %s
application/msword; (msov --format=doc %s) 2>/dev/null || openoffice %s

159
mutt15/mutt15.spec

@ -0,0 +1,159 @@
##
## mutt15.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_mutt 1.5.4
# package information
Name: mutt15
Summary: Mail User Agent
URL: http://www.mutt.org/
Vendor: Michael Elkins
Packager: The OpenPKG Project
Distribution: OpenPKG [EVAL]
Group: Mail
License: BSD
Version: %{V_mutt}i
Release: 20030817
# build options
%option with_comp no
%option with_nntp no
%option with_initials no
%option with_quote no
# list of sources
Source0: ftp://ftp.mutt.org/mutt/devel/mutt-%{V_mutt}i.tar.gz
Source1: mailcap
Source2: muttrc
Patch0: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.rr.compressed.gz
Patch1: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.vvv.nntp.gz
Patch2: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.vvv.initials.gz
Patch3: ftp://ftp.mutt.org.ua/pub/mutt/mutt-%{V_mutt}/patch-%{V_mutt}.vvv.quote.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20030717, make
PreReq: OpenPKG, openpkg >= 20030717
BuildPreReq: openssl, slang
PreReq: openssl, slang
AutoReq: no
AutoReqProv: no
Provides: mutt
%description
Mutt is a small but very powerful text based program for reading
electronic mail under Unix operating systems, including support for
color terminals, MIME, and a threaded sorting mode.
Notice: this is the development series of Mutt. Use it at your own risk!
%prep
%setup -q -n mutt-%{V_mutt}
%if "%{with_comp}" == "yes"
%patch0 -p1
%endif
%if "%{with_nntp}" == "yes"
%patch1 -p1
%endif
%if "%{with_initials}" == "yes"
%patch2 -p1
%endif
%if "%{with_quote}" == "yes"
%patch3 -p1
%endif
%build
# configure for particular platform
echo 'am_cv_func_iconv=no' >config.cache
echo 'ac_cv_header_iconv_h=no' >>config.cache
options=''
case "%{l_target}" in
*-freebsd* ) options="--enable-flock --disable-fcntl" ;;
esac
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="-DICONV_CONST=const" \
LDFLAGS="-Limap %{l_ldflags}" \
./configure \
--cache-file=./config.cache \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/mutt \
--with-docdir=%{l_prefix}/share/mutt \
--with-slang=%{l_prefix} \
--with-ssl=%{l_prefix} \
--enable-pop \
--enable-imap \
%if "%{with_comp}" == "yes"
--enable-compressed \
%endif
%if "%{with_nntp}" == "yes"
--enable-nntp \
%endif
--enable-buffy-size \
--without-iconv \
--without-wc-funcs \
--disable-nls \
$options
# perform standard build procedure
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
# perform standard installation procedure
%{l_shtool} subst \
-e "s;chmod 2755;true;" \
-e "s;chgrp mail;true;" \
Makefile
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
# strip down installation tree
rm -f $RPM_BUILD_ROOT%{l_prefix}/share/mutt/[A-Za-d]*
rm -f $RPM_BUILD_ROOT%{l_prefix}/share/mutt/patch-notes.txt
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/mutt/html
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/mutt/samples
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/flea
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/flea.1
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/muttbug
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/muttbug.1
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
# install additional files
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE muttrc} $RPM_BUILD_ROOT%{l_prefix}/etc/mutt/Muttrc
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE mailcap} $RPM_BUILD_ROOT%{l_prefix}/etc/mutt/mailcap
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT

93
mutt15/muttrc

@ -0,0 +1,93 @@
##
## @l_prefix@/etc/mutt/Muttrc -- OpenPKG Mutt Global Configuration
## Copyright (c) 1998-2003 Ralf S. Engelschall <rse@engelschall.com>
##
# ignore CTRL-Z
unset suspend
# use OpenPKG MTA
set sendmail = @l_prefix@/sbin/sendmail
# use OpenPKG folder paths
set folder = ~/.mail
set record = ~/.mail/sent
set postponed = ~/.mail/postponed
set spoolfile = ~/.mail/inbox
set mbox = ~/.mail/inbox
mailboxes ~/.mail/inbox
# aliases
#source ~/.muttrc.aliases
set alias_file = ~/.muttrc.aliases
set sort_alias = unsorted
# signature
unset sig_dashes
set signature = ~/.signature
# editor
set editor = `echo ${EDITOR-vi}`
set tmpdir = `echo ${TMPDIR-/tmp}`
# addresses
set use_domain
# pager
set pager = builtin
set pager_context = 1
set pager_stop
set pager_index_lines = 0
ignore received content- mime-version status x-status message-id sender
ignore references return-path lines
ignore x-
ignore "from "
# display customization
set to_chars = "L CC "
set charset = iso-8859-1
set quote_regexp="^[ \t]*([A-Za-z ]+>|[]>:}][]>:}]*)"
set smileys="(>From )|(>?[;:][-^]?[][)(><}{|/DP][)}]*)"
mono quoted bold
mono markers bold
set menu_scroll
unset mark_old
set help
set delete = yes
set wait_key = no
set confirmappend = no
set confirmcreate = no
folder-hook . set sort=date-sent
# reply/forward customization
unset edit_hdrs
set autoedit
set fast_reply
set date_format = "!%a, %b %d, %Y"
set attribution = "On %d, %n wrote:\n"
set indent_str = "> "
set include = yes
set forw_format = "[FWD] %s"
unset mime_fwd
unset forw_quote
unset metoo
# new mail generation
set hdrs
set use_8bitmime
# autoviewing via .mailcap handlers
auto_view text/html image/*
# no printing by default
set print = no
# toggle sort mode
macro index \cxd set sort=date-sent
macro index \cxt set sort=threads
# show documentation on <ESC>+'h'
macro generic "\eh" "!${PAGER-more} @l_prefix@/share/mutt/manual.txt\n" "Show Mutt Manual"
macro index "\eh" "!${PAGER-more} @l_prefix@/share/mutt/manual.txt\n" "Show Mutt Manual"
macro pager "\eh" "!${PAGER-more} @l_prefix@/share/mutt/manual.txt\n" "Show Mutt Manual"
Loading…
Cancel
Save