Import of nail 9.31.

Submitted by Jeffrey Neitzel <jneitzel@sdf.lonestar.org>.

Nail is a mail user agent derived from Berkeley Mail 8.1 and contains
builtin support for MIME messages.  This means it can handle international
character sets as well as attachments.  In recent system environments, nail
is Unicode/UTF-8 capable.  It further contains some minor enhancements like
the ability to set a From: Address.
This commit is contained in:
naddy 2002-07-23 19:13:09 +00:00
parent 8be9b51785
commit da9fe72f0c
7 changed files with 158 additions and 0 deletions

39
mail/nail/Makefile Normal file
View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2002/07/23 19:13:09 naddy Exp $
COMMENT= "enhanced, MIME capable Berkeley Mail"
DISTNAME= nail-9.31
CATEGORIES= mail
HOMEPAGE= http://omnibus.ruf.uni-freiburg.de/~gritter/
MAINTAINER= Jeffrey Neitzel <jneitzel@sdf.lonestar.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://omnibus.ruf.uni-freiburg.de/~gritter/archive/nail/ \
http://jneitzel.freeshell.org/nail/
MODULES= iconv
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --with-rcfile="${SYSCONFDIR}/nail.rc"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBS="-liconv"
post-extract:
@cd ${WRKSRC}; touch -r configure.in configure.in.stamp
post-configure:
@cd ${WRKSRC}; touch -r configure.in.stamp configure.in
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nail
${INSTALL_DATA} ${WRKSRC}/nail.rc ${PREFIX}/share/examples/nail/
.include <bsd.port.mk>

3
mail/nail/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (nail-9.31.tar.gz) = d274d7bcd408d10fb0e31345e071bc6d
RMD160 (nail-9.31.tar.gz) = 2dbf4d6bc435d5930fb25bb4ed2128c1eee7cd58
SHA1 (nail-9.31.tar.gz) = eb14a4b4848b8b0745890a82012d46e6c5aaed8d

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-configure_in,v 1.1.1.1 2002/07/23 19:13:09 naddy Exp $
--- configure.in.orig Tue Jul 23 02:08:06 2002
+++ configure.in Tue Jul 23 02:15:59 2002
@@ -190,7 +190,8 @@ AC_CHECK_FUNC(gethostent, AC_DEFINE(HAVE
)
if test "x$enable_all_chars" != xyes
then AC_CHECK_HEADERS(iconv.h, AC_CHECK_FUNCS(iconv, ,
- echo "*** Character set conversion not available ***" >&2),
+ [AC_CHECK_FUNCS(libiconv, , AC_DEFINE(HAVE_ICONV),
+ echo "*** Character set conversion not available ***" >&2)]),
echo "*** Character set conversion not available ***" >&2)
AC_CHECK_HEADERS(locale.h, AC_CHECK_FUNCS(setlocale, ,
echo "*** Locale support not available ***" >&2),

25
mail/nail/pkg/DEINSTALL Normal file
View File

@ -0,0 +1,25 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1.1.1 2002/07/23 19:13:09 naddy Exp $
#
# nail de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/nail.rc
if [ -f $CONFIG_FILE ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -f $CONFIG_FILE"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

7
mail/nail/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
Nail is a mail user agent derived from Berkeley Mail 8.1 and contains
builtin support for MIME messages. This means it can handle international
character sets as well as attachments. In recent system environments, nail
is Unicode/UTF-8 capable. It further contains some minor enhancements like
the ability to set a From: Address.
WWW: ${HOMEPAGE}

66
mail/nail/pkg/INSTALL Normal file
View File

@ -0,0 +1,66 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2002/07/23 19:13:09 naddy Exp $
#
# Pre/post-installation setup for nail
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/nail.rc
SAMPLE_CONFIG_FILE=$PREFIX/share/examples/nail/nail.rc
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration file, $CONFIG_FILE,"
echo "| has NOT been changed. You may want to compare it to the"
echo "| current sample file, $SAMPLE_CONFIG_FILE,"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
do_install()
{
install -o root -g wheel -m 644 $SAMPLE_CONFIG_FILE $CONFIG_FILE
echo
echo "+---------------"
echo "| The $1 configuration file, $CONFIG_FILE,"
echo "| has been installed. Please view this file and change"
echo "| the configuration to meet your needs."
echo "|"
echo "| See nail(1) for more information."
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ -f $CONFIG_FILE ]; then
do_notice $1
else
do_install $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

5
mail/nail/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/07/23 19:13:09 naddy Exp $
bin/nail
man/man1/nail.1
share/examples/nail/nail.rc
@dirrm share/examples/nail