head	1.4;
access;
symbols
	pkgsrc-2026Q1:1.4.0.8
	pkgsrc-2026Q1-base:1.4
	pkgsrc-2025Q4:1.4.0.6
	pkgsrc-2025Q4-base:1.4
	pkgsrc-2025Q3:1.4.0.4
	pkgsrc-2025Q3-base:1.4
	pkgsrc-2025Q2:1.4.0.2
	pkgsrc-2025Q2-base:1.4
	pkgsrc-2025Q1:1.3.0.130
	pkgsrc-2025Q1-base:1.3
	pkgsrc-2024Q4:1.3.0.128
	pkgsrc-2024Q4-base:1.3
	pkgsrc-2024Q3:1.3.0.126
	pkgsrc-2024Q3-base:1.3
	pkgsrc-2024Q2:1.3.0.124
	pkgsrc-2024Q2-base:1.3
	pkgsrc-2024Q1:1.3.0.122
	pkgsrc-2024Q1-base:1.3
	pkgsrc-2023Q4:1.3.0.120
	pkgsrc-2023Q4-base:1.3
	pkgsrc-2023Q3:1.3.0.118
	pkgsrc-2023Q3-base:1.3
	pkgsrc-2023Q2:1.3.0.116
	pkgsrc-2023Q2-base:1.3
	pkgsrc-2023Q1:1.3.0.114
	pkgsrc-2023Q1-base:1.3
	pkgsrc-2022Q4:1.3.0.112
	pkgsrc-2022Q4-base:1.3
	pkgsrc-2022Q3:1.3.0.110
	pkgsrc-2022Q3-base:1.3
	pkgsrc-2022Q2:1.3.0.108
	pkgsrc-2022Q2-base:1.3
	pkgsrc-2022Q1:1.3.0.106
	pkgsrc-2022Q1-base:1.3
	pkgsrc-2021Q4:1.3.0.104
	pkgsrc-2021Q4-base:1.3
	pkgsrc-2021Q3:1.3.0.102
	pkgsrc-2021Q3-base:1.3
	pkgsrc-2021Q2:1.3.0.100
	pkgsrc-2021Q2-base:1.3
	pkgsrc-2021Q1:1.3.0.98
	pkgsrc-2021Q1-base:1.3
	pkgsrc-2020Q4:1.3.0.96
	pkgsrc-2020Q4-base:1.3
	pkgsrc-2020Q3:1.3.0.94
	pkgsrc-2020Q3-base:1.3
	pkgsrc-2020Q2:1.3.0.90
	pkgsrc-2020Q2-base:1.3
	pkgsrc-2020Q1:1.3.0.70
	pkgsrc-2020Q1-base:1.3
	pkgsrc-2019Q4:1.3.0.92
	pkgsrc-2019Q4-base:1.3
	pkgsrc-2019Q3:1.3.0.88
	pkgsrc-2019Q3-base:1.3
	pkgsrc-2019Q2:1.3.0.86
	pkgsrc-2019Q2-base:1.3
	pkgsrc-2019Q1:1.3.0.84
	pkgsrc-2019Q1-base:1.3
	pkgsrc-2018Q4:1.3.0.82
	pkgsrc-2018Q4-base:1.3
	pkgsrc-2018Q3:1.3.0.80
	pkgsrc-2018Q3-base:1.3
	pkgsrc-2018Q2:1.3.0.78
	pkgsrc-2018Q2-base:1.3
	pkgsrc-2018Q1:1.3.0.76
	pkgsrc-2018Q1-base:1.3
	pkgsrc-2017Q4:1.3.0.74
	pkgsrc-2017Q4-base:1.3
	pkgsrc-2017Q3:1.3.0.72
	pkgsrc-2017Q3-base:1.3
	pkgsrc-2017Q2:1.3.0.68
	pkgsrc-2017Q2-base:1.3
	pkgsrc-2017Q1:1.3.0.66
	pkgsrc-2017Q1-base:1.3
	pkgsrc-2016Q4:1.3.0.64
	pkgsrc-2016Q4-base:1.3
	pkgsrc-2016Q3:1.3.0.62
	pkgsrc-2016Q3-base:1.3
	pkgsrc-2016Q2:1.3.0.60
	pkgsrc-2016Q2-base:1.3
	pkgsrc-2016Q1:1.3.0.58
	pkgsrc-2016Q1-base:1.3
	pkgsrc-2015Q4:1.3.0.56
	pkgsrc-2015Q4-base:1.3
	pkgsrc-2015Q3:1.3.0.54
	pkgsrc-2015Q3-base:1.3
	pkgsrc-2015Q2:1.3.0.52
	pkgsrc-2015Q2-base:1.3
	pkgsrc-2015Q1:1.3.0.50
	pkgsrc-2015Q1-base:1.3
	pkgsrc-2014Q4:1.3.0.48
	pkgsrc-2014Q4-base:1.3
	pkgsrc-2014Q3:1.3.0.46
	pkgsrc-2014Q3-base:1.3
	pkgsrc-2014Q2:1.3.0.44
	pkgsrc-2014Q2-base:1.3
	pkgsrc-2014Q1:1.3.0.42
	pkgsrc-2014Q1-base:1.3
	pkgsrc-2013Q4:1.3.0.40
	pkgsrc-2013Q4-base:1.3
	pkgsrc-2013Q3:1.3.0.38
	pkgsrc-2013Q3-base:1.3
	pkgsrc-2013Q2:1.3.0.36
	pkgsrc-2013Q2-base:1.3
	pkgsrc-2013Q1:1.3.0.34
	pkgsrc-2013Q1-base:1.3
	pkgsrc-2012Q4:1.3.0.32
	pkgsrc-2012Q4-base:1.3
	pkgsrc-2012Q3:1.3.0.30
	pkgsrc-2012Q3-base:1.3
	pkgsrc-2012Q2:1.3.0.28
	pkgsrc-2012Q2-base:1.3
	pkgsrc-2012Q1:1.3.0.26
	pkgsrc-2012Q1-base:1.3
	pkgsrc-2011Q4:1.3.0.24
	pkgsrc-2011Q4-base:1.3
	pkgsrc-2011Q3:1.3.0.22
	pkgsrc-2011Q3-base:1.3
	pkgsrc-2011Q2:1.3.0.20
	pkgsrc-2011Q2-base:1.3
	pkgsrc-2011Q1:1.3.0.18
	pkgsrc-2011Q1-base:1.3
	pkgsrc-2010Q4:1.3.0.16
	pkgsrc-2010Q4-base:1.3
	pkgsrc-2010Q3:1.3.0.14
	pkgsrc-2010Q3-base:1.3
	pkgsrc-2010Q2:1.3.0.12
	pkgsrc-2010Q2-base:1.3
	pkgsrc-2010Q1:1.3.0.10
	pkgsrc-2010Q1-base:1.3
	pkgsrc-2009Q4:1.3.0.8
	pkgsrc-2009Q4-base:1.3
	pkgsrc-2009Q3:1.3.0.6
	pkgsrc-2009Q3-base:1.3
	pkgsrc-2009Q2:1.3.0.4
	pkgsrc-2009Q2-base:1.3
	pkgsrc-2009Q1:1.3.0.2
	pkgsrc-2009Q1-base:1.3
	pkgsrc-2008Q4:1.2.0.22
	pkgsrc-2008Q4-base:1.2
	pkgsrc-2008Q3:1.2.0.20
	pkgsrc-2008Q3-base:1.2
	cube-native-xorg:1.2.0.18
	cube-native-xorg-base:1.2
	pkgsrc-2008Q2:1.2.0.16
	pkgsrc-2008Q2-base:1.2
	cwrapper:1.2.0.14
	pkgsrc-2008Q1:1.2.0.12
	pkgsrc-2008Q1-base:1.2
	pkgsrc-2007Q4:1.2.0.10
	pkgsrc-2007Q4-base:1.2
	pkgsrc-2007Q3:1.2.0.8
	pkgsrc-2007Q3-base:1.2
	pkgsrc-2007Q2:1.2.0.6
	pkgsrc-2007Q2-base:1.2
	pkgsrc-2007Q1:1.2.0.4
	pkgsrc-2007Q1-base:1.2
	pkgsrc-2006Q4:1.2.0.2
	pkgsrc-2006Q4-base:1.2
	pkgsrc-2006Q3:1.1.0.32
	pkgsrc-2006Q3-base:1.1
	pkgsrc-2006Q2:1.1.0.30
	pkgsrc-2006Q2-base:1.1
	pkgsrc-2006Q1:1.1.0.28
	pkgsrc-2006Q1-base:1.1
	pkgsrc-2005Q4:1.1.0.26
	pkgsrc-2005Q4-base:1.1
	pkgsrc-2005Q3:1.1.0.24
	pkgsrc-2005Q3-base:1.1
	pkgsrc-2005Q2:1.1.0.22
	pkgsrc-2005Q2-base:1.1
	pkgsrc-2005Q1:1.1.0.20
	pkgsrc-2005Q1-base:1.1
	pkgsrc-2004Q4:1.1.0.18
	pkgsrc-2004Q4-base:1.1
	pkgsrc-2004Q3:1.1.0.16
	pkgsrc-2004Q3-base:1.1
	pkgsrc-2004Q2:1.1.0.14
	pkgsrc-2004Q2-base:1.1
	pkgsrc-2004Q1:1.1.0.12
	pkgsrc-2004Q1-base:1.1
	pkgsrc-2003Q4:1.1.0.10
	pkgsrc-2003Q4-base:1.1
	netbsd-1-6-1:1.1.0.6
	netbsd-1-6-1-base:1.1
	netbsd-1-6:1.1.0.8
	netbsd-1-6-RELEASE-base:1.1
	pkgviews:1.1.0.4
	pkgviews-base:1.1
	buildlink2:1.1.0.2
	buildlink2-base:1.1
	netbsd-1-5-PATCH003:1.1;
locks; strict;
comment	@# @;


1.4
date	2025.05.25.15.04.07;	author vins;	state Exp;
branches;
next	1.3;
commitid	572TQEAWvJ4HDiWF;

1.3
date	2009.01.14.12.20.57;	author sketch;	state Exp;
branches;
next	1.2;

1.2
date	2006.10.20.08.15.15;	author dsainty;	state Exp;
branches;
next	1.1;

1.1
date	2001.10.26.11.46.55;	author agc;	state Exp;
branches;
next	;


desc
@@


1.4
log
@mail/exmh: update to 2.9.0

# pkgsrc changes
* changed MASTER_SITES to SourceForge
* added LICENSE
* Makefile revision
* allow to detect gpg2
* install missing scripts
* removed old patches, merged upstream
* fixed a couple of bugs

# upstream changes (full changelog since 2.7.2, no summary provided)

7/11/2018 valdis.kletnieks@@vt.edu
  Tag and push a 2.9.0 release to clear up the confusion
  from 6 years of moving code calling itself 2.8.0

cvs repository 04/25/2017 valdis.kletnieks@@vt.edu
  Finally heave 'mhn' over the side.
  lib/app-defaults lib/editor.tcl lib/extrasInit.tcl lib/mh.tcl lib/msg.tcl
  lib/partial.tcl lib/sedit.tcl lib/seditExtras.tcl lib/seditMime.tcl
  lib/partial/{Sedit,custom,guide,mime.attack,reference,software}.html

cvs repository 04/24/2017 valdis.kletnieks@@vt.edu
  Add lib/stacktrace.tcl for debugging use

cvs repository 04/21/2017 valdis.kletnieks@@vt.edu
  Fix insufficent quoting of parameters to MDNGenerate - blows up if
  syntactically invalid address is passed in the DSN: header.
  lib/recipt.tcl

cvs repository 04/21/2017 valdis.kletnieks@@vt.edu
  Use version.bash rather than version.csh - who still uses csh for
  shell scripting?
  Makefile, version.bash

cvs repository 04/21/2017 valdis.kletnieks@@vt.edu
  Proclaim myself emperor
  exmh.install

cvs repository 04/21/2017 valdis.kletnieks@@vt.edu
  Fix gnupg Comment field to dynamically update to the currently running version
  lib/pgpGpg.tcl

cvs repository 04/21/2017 valdis.kletnieks@@vt.edu
  Add skeleton support for nmh 'mhical'  and third-party 'gcalcli' to deal
  with text/calendar mail.
  lib/mh.tcl, lib/mime.types, lib/calendar.tcl, lib/extrasInit.tcl

cvs repository 04/21/2017 valdis.kletnieks@@vt.edu
  Tk/Tcl 8.5 is now a decade old.  Heave all pre-8.5 support code
  over the side.
  exmh.MASTER, exmh.install, exmh, install.tcl, lib/addr.tcl,
  lib/main.tcl, lib/mime.tcl, lib/sedit.tcl, lib/utils.tcl

cvs repository 16/6/2012 az@@debian.org
  applied patch by Wolfgang Denk to add 'from+to+cc' option
  to the pick dialog.

cvs repository 21/5/2012 az@@debian.org
  fixed receipt.tcl so that content-disposition-notifications
  work with nmh 1.5.

cvs repository 8/5/2012 az@@debian.org
  applied patches by tom lane and kevin cosgrove:
  improved handling of xhost issues, more robust pgp message parsing

cvs repository 04/24/2012 valdis.kletnieks@@vt.edu
  Fix the 'lassign' issue more correctly - Brent Welch suggested
  how to define one on the fly for pre-tcl8.5.  So we bite the bullet
  and actually use the 8.5 calling sequence.
  main.tcl, html.tcl, html_formtag.tcl, html_get_http.tcl,
  html_links.tcl, msgShow.tcl

cvs repository 04/22/2012 az@@debian.org
  added two patches from debian:
  . make audit logging a configurable option
  . ensure that $HOSTNAME is set in exmhwrapper

cvs repository 04/21/2012 welch@@panasas.com
  Update version to 2.8.0
  This changes
  Makefile
  exmh.install
  lib/html/exmh.README.html
  lib/html/index.html
  lib/html/software.html

cvs repository 04/21/2012 welch@@panasas.com
  Added darwin to ps.tcl "SYS V like systems case
  Added jpilot scripts to misc, contributed by gerhard.siegesmund@@epost.de
  Added Tar.exclude files used for generating tarball releases
  Fixed MH references in index.html and software.html

  Added misc/sequence.patch that reflects my local changes to how
  sequence information is updated in the UI.  This is a non-trivial
  change, and while it is faster, I think there are some lingering
  corner cases where it isn't perfect.  So, I'm just saving the patch
  and not committing the change to the code.

cvs repository 01/23/2012 az@@debian.org
  repaired gnupg cipher option handling

cvs repository az az 01/20/2012 az@@debian.org
  repaired date/time parsing in addr.tcl, which kept
  address db expiration from working properly

cvs repository 12/06/2011 valdis.kletnieks@@vt.edu
  lib/pgpMail.tcl - add code to trim trailing blanks before
  doing PGP signing/encrypting.

cvs repository 04/24/2011 az@@debian.org
  consolidated spell checking options: main on sedit pref page,
  i-spell specific stuff on its own page. i-spell now an explicit
  choice among spelling programs. updated all related preference
  doc strings.
  updated app defaults to include i-spell whole buffer in the more...
  menu. updated i-spell sedit hook to enable/disable ispell or i-spell
  depending on spell checker choice.
  fixed exmh-async integration of custom spell checker: now in line with
  ispell.

cvs repository az 04/21/2011 az@@debian.org
  mime.tcl: fixed  documentation of behaviour of mimeFullHeaders
  exmh.MASTER: fixed tk8.5 font issue. default choice 'fixed' misinterpreted
  by tk8.5 as a font face, not XLFD...now fixed defined as alias for
  TkFixedFont, and aliases are consulted first. still somebody will have to
  extend the font chooser dialog to cover font faces.

cvs repository 09/02/2010 az@@debian.org
  lib/msgShow.tcl: applied Harvey Eneman's patch that fixes handling
  of rfc2369 list-* headers.

cvs repository 08/29/2010 az@@debian.org
  implemented quoting of unknown directives when editing
  text/enriched mails with sedit
  (this is a fix for debian bug #175193, http://bugs.debian.org/175193)

cvs repository 08/26/2010 valdis.kletnieks@@vt.edu
  Finally found the cause of the exmh Log window breaking - we
  carry our own lassign that had the parameters in opposite order
  to what base 8.5 code expects, specifically breaking 'clock format'
  and who knows what else. So rename our lassign to exmh_lassign.
  lib/html.tcl, lib/html_formtag.tcl, lib/html_get_http.tcl,
  lib/html_links.tcl lib/msgShow.tcl, lib/utils.tcl

cvs repository 08/26/2010 valdis.kletnieks@@vt.edu
  By default, convert blanks to _ in the 'save as' dialog
  lib/fileselect.tcl

cvs repository 08/26/2010 valdis.kletnieks@@vt.edu
  Heave some tcl 7.0-specific code over the side, 7.1 came
  out in 1993.  Is our core code *really* that old? :)
  exmh-strip.MASTER exmh-bg.MASTER exmh.MASTER

cvs repository 06/20/2008 az@@debian.org
  incorporated a number of patches from debian
  exmh.l: silence some man warnings
  lib/mh.tcl: mention install-mh by full path in initial greeting
  lib/bogo.tcl: add learning-from-stdin for learning ham, too
   (not just spam)
  lib/glimpse.tcl: add the -W glimpse option (and scope for
   whole file) to permanent preferences
  lib/scan.tcl, lib/folder.tcl: fix the stale scan cache problem
  lib/uri.tcl, html_links.tcl: make html links clickable in
   inline-displayed html, and consolidate status line handling for links
  lib/seditExtras.tcl, lib/mime.tcl: patch from Marion Hakanson to
   fix fd leakage in internal mime qp/base64 decoder
   patch from debian: add support for recode as alternative to mimencode
  lib/pgpExec.tcl, lib/pgpGpg.tcl, lib/extrasInit.tcl: added support
   for gnupg's gpg-agent

cvs repository 06/26/2006 valdis.kletnieks@@vt.edu
  lib/html_dpackage.tcl: Skip over <style>..</style> blocks we don't
  know how to interpret anyhow. Thanks to Don Koch <aardvark@@krl.com>
  for the patch, and Rick Baartman <baartman@@lin12.triumf.ca> for asking.

cvs repository 05/08/2005 valdis.kletnieks@@vt.edu
  exmh.l: debian bug #309891 by way of Alexander Zangerl
  Fix a bunch of typos

cvs repository 4/27/2005 jbeck@@eng.sun.com
  lib/app-defaults-color
  lib/msgShow.tcl: Added support for marking text between stars
    (e.g., I *really* mean it) in a bold font.

cvs repository 4/27/2005 jbeck@@eng.sun.com
  lib/app-defaults-color
  lib/msgShow.tcl: Updated regular expressions for Sun bug report
    highlighting, added support for SpamAssassin report highlighting.

cvs repository 4/27/2005 welch@@panasas.com
  lib/bogo.tcl: Added BogoSetup as a trace on bogo(progname) so that
    preference changes are reflected immediately w/out restarting exmh.

cvs repository 4/21/2005 valdis.kletnieks@@vt.edu
  lib/mime.tcl: Add call to FileExistsDialog to prompt before saving a
    MIME part into an already existing file.

cvs repository 4/15/2005 welch@@panasas.com channeling Alexander Zangerl
  lib/bogo.tcl: add the option to give the spam filter a list of message file
    names on its command line instead of running the filter once on each
    message as standard input.  We know this works for spamassassin,
    but not sure about the other filters.

cvs repository 4/4/2005 welch@@panasas.com
  lib/fileselect.tcl: made use of the built-in tk file dialogs optional.
    The setting is under the "FS Box" preferences panel.
    my fingers have grown to know and love the fileselect behavior.
  lib/fileselect.tcl
  lib/html_content.tcl
  lib/main.tcl
  lib/mime.tcl
  lib/msg.tcl
  lib/seditExtras.tcl
    Restored/updated calls to FSbox (aka fileselect)
  lib/flist.tcl: fixed FlistUncache to properly clear the global variable in the bg interp
  lib/mh.tcl: added calls to FlistUncache

cvs repository 3/18/2005 welch@@panasas.com channeling Alexander Zangerl
  lib/flist.tcl: Adding FlistUncache to unset flistcache when appropriate
  lib/folder.tcl: Call FlistUncache when we commit folder changes

cvs repository 3/17/2005 welch@@panasas.com channeling Alexander Zangerl
  exmhcomp: support mailto URLs

cvs repository 3/4/2005 cwg-exmh@@deepeddy.com
  lib/seqwin.tcl - Make Warp & Narrow work if you aren't already in
  the folder.

cvs repository 3/1/2005 cwg-exmh@@deepeddy.com
  lib/html_content.tcl, lib/main.tcl, lib/mime.tcl, lib/msg.tcl,
  lib/seditExtras.tcl - Call tk_getOpenDialog or tk_GetSaveDialog
  instead of FSBox.

cvs repository 3/1/2005 cwg-exmh@@deepeddy.com
  lib/main.tcl: Add 'Source' button to log window so I can read in a
  new source file w/o erasing what's in the command line.

cvs repository 3/1/2005 cwg-exmh@@deepeddy.com
  lib/flist.tcl: Run FlistUnseenFoldersInit in the foreground so that
  it actually works.

cvs repository 2/18/2005 cwg-exmh@@deepeddy.com
  lib/ftoc.tcl: Fix patch of 2/3 so it doesn't break if you don't have
  a detached message window.

cvs repository 2/9/2005 valdis.kletnieks@@vt.edu
  lib/mime.tcl: resolve (or at least work around) Debian bug 294212
  as a too-zealous splatting of specials broke some content types.
  I'm adding '.' to the list, but I'm not comfortable adding the full
  list of rc2045 chars as it includes some shell metachars...

cvs repository 2/3/2005 cwg-exmh@@deepeddy.com
  lib/ftoc.tcl: Reset exwin(ftext) whenever the ftext window changes size.

cvs repository 1/25/2005 cwg-exmh@@deepeddy.com
  lib/mime.tcl: Special case display of original message in
  spamassassin processed mail so it doesn't display by default.

cvs repository 1/24/2005 welch@@panasas.com
  lib/folder.tcl: fixed the background folder purging script
    to properly pick up things from the script library

cvs repository 1/19/2005 cwg-exmh@@deepeddy.com
  lib/ftoc.tcl: Really fixed bindings for exwin(ftext).

cvs repository 1/18/2005 cwg-exmh@@deepeddy.com
  lib/exwin.tcl: Fixed bindings for exwin(ftext).

cvs repository 1/17/2005 welch@@panasas.com
  lib/seditExtras.tcl: fixed exmh-async variation of ispell command.
  lib/seditSel.tcl: fixed exmh-async variation of ispell command

cvs repository 1/12/2005 welch@@panasas.com
  lib/uri.tcl: changed use of "file link" back to exec ln
  lib/quote.tcl: changed use of "file link" back to exec ln
  exmh-strip.MASTER: eliminated use of [glob ~/.exmh/tk] in
    the setting of exmh(userLibrary), which we shouldn't need
  lib/mime.tcl: fix the exec of exmh-strip to be ${argv0}-strip
    to handle installations with a different base name.
  Makefile: fixed the ftpdist production
@
text
@#! /bin/sh
#
# $NetBSD: build,v 1.3 2009/01/14 12:20:57 sketch Exp $
# FreeBSD Id: build,v 1.5 1997/08/21 08:09:56 peter Exp
#

VERSION="`sed -ne 's/^set vers \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
DATE="`sed -ne 's/^set date \(.*\)/\1/p' ${WRKSRC}/exmh.install`"

SEDFILE=sed.$$

EXPECT="{}"
EXPECTK="{}"
FACES="{}"
DOMAIN="{}"
PGP="{}"
PGP5="{}"
PGP6="{}"
GPG="{}"
GLIMPSE="{}"
PLAY="{}"

if [ -f ${PREFIX}/bin/expect ]; then
  EXPECT=${PREFIX}/bin/expect		#executable
fi
if [ -f ${PREFIX}/bin/expectk ]; then
  EXPECTK=${PREFIX}/bin/expectk		#executable
fi

if [ -d ${PREFIX}/share/faces ]; then
  FACES=${PREFIX}/share/faces		#dir
  shortname="`hostname | sed -e 's/\..*//'`"
  domain="`hostname | sed -e s/^${shortname}// -e s/^.// | tr A-Z a-z`"
  if [ "${domain}" != "" ]; then
    DOMAIN="{${domain}}"
  fi
fi

if [ -f ${PREFIX}/bin/pgp ]; then
  PGP=${PREFIX}/bin			#bindir
fi

if [ -f ${PREFIX}/bin/pgp5 ]; then
  PGP5=${PREFIX}/bin			#bindir
fi

if [ -f ${PREFIX}/bin/gpg2 ]; then
  GPG2=${PREFIX}/bin			#bindir
fi

if [ -f ${PREFIX}/bin/gpg ]; then
  GPG=${PREFIX}/bin			#bindir
fi

if [ -f ${PREFIX}/bin/glimpse ]; then
  GLIMPSE=${PREFIX}/bin			#bindir
fi

if [ -f ${PREFIX}/bin/rplay ]; then
  PLAY=${PREFIX}/bin/rplay		#executable
fi

echo "s@@^#!wish@@#!${WISH}@@" >${SEDFILE}
if [ "${EXPECT}" != "{}" ]; then
  echo "s@@^#!expect@@#!${EXPECT}@@" >>${SEDFILE}
fi
echo "/^#CONFIGURATION/a\\" >>${SEDFILE}

sed <${FILESDIR}/config \
	-e "s+!!PREFIX!!+${PREFIX}+g" \
	-e "s+!!WISH!!+${WISH}+g" \
	-e "s+!!EXPECT!!+${EXPECT}+g" \
	-e "s+!!EXPECTK!!+${EXPECTK}+g" \
	-e "s+!!FACES!!+${FACES}+g" \
	-e "s+!!DOMAIN!!+${DOMAIN}+g" \
	-e "s+!!PGP!!+${PGP}+g" \
	-e "s+!!PGP5!!+${PGP5}+g" \
	-e "s+!!GPG2!!+${GPG2}+g" \
	-e "s+!!GPG!!+${GPG}+g" \
	-e "s+!!GLIMPSE!!+${GLIMPSE}+g" \
	-e "s+!!PLAY!!+${PLAY}+g" \
	-e "s+!!VERSION!!+${VERSION}+g" \
	-e "s+!!DATE!!+${DATE}+g" \
 | sed -e 's/$/\\/' >> ${SEDFILE}

for i in exmh-async exmh-bg exmh-strip exmh
do
	echo "sed -f ${SEDFILE} < $i.MASTER > $i"
	sed -f ${SEDFILE} < $i.MASTER > $i
done

for i in *.expect
do
	printf '%s\n' "setting expect path in $i"
	sed < $i.MASTER -e "s:exec expect:exec ${EXPECT}:" > $i
done

rm -f ${SEDFILE}

echo "cd lib ;  echo 'auto_mkindex . *.tcl ; exit' | ${TCLSH}"
cd lib ;  echo 'auto_mkindex . *.tcl ; exit' | ${TCLSH}
@


1.3
log
@Get rid of `hostname -s` in pkgsrc, on Solaris it sets the hostname to "-s".
@
text
@d3 1
a3 1
# $NetBSD: build,v 1.2 2006/10/20 08:15:15 dsainty Exp $
d47 2
a48 2
if [ -f ${PREFIX}/bin/pgp6 ]; then
  PGP6=${PREFIX}/bin			#bindir
d78 1
a78 1
	-e "s+!!PGP6!!+${PGP6}+g" \
d86 1
a86 1
for i in exmh-async exmh-bg exmh-strip exmh ftp.expect
d92 6
@


1.2
log
@Update to Exmh 2.7.2:

* 2.7.2 More bug fixes, plus some performance improvements for the new
        sequences code added in 2.6. The exmh-strip utility is integrated as
        "Save/Extract Attachments".
* 2.7.1 (Wasn't officially released in tarball form.)
* 2.7.0 Accumulates over a year of minor fixes in the CVS tree.

Also fix some pkglint complaints, and take maintainership.
@
text
@d3 1
a3 1
# $NetBSD: build,v 1.1 2001/10/26 11:46:55 agc Exp $
d32 1
a32 1
  shortname="`hostname -s`"
@


1.1
log
@Since the build and install scripts are executed directly by the package
Makefile, move them from scripts/ to files/ to make it obvious that the
scripts invocations in bsd.pkg.mk are not being used.
@
text
@d3 1
a3 1
# $NetBSD: build,v 1.4 2001/10/22 21:46:50 agc Exp $
d86 1
a86 1
for i in exmh-async exmh-bg exmh ftp.expect
@

