summaryrefslogtreecommitdiff
path: root/mail/elm+ME
diff options
context:
space:
mode:
authorSADA Kenji <sada@FreeBSD.org>2002-05-10 00:41:58 +0000
committerSADA Kenji <sada@FreeBSD.org>2002-05-10 00:41:58 +0000
commit5c504a90222ed24a142f0b1e1fc3470fc5cdf95a (patch)
treedaeb9f2f03879ab96109f046d83687fe23091ee7 /mail/elm+ME
parent- Update to 0.2.2 snapshot (diff)
Upgrade to 2.4.96b.
PR: ports/34472 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=58824
Diffstat (limited to 'mail/elm+ME')
-rw-r--r--mail/elm+ME/Makefile98
-rw-r--r--mail/elm+ME/distinfo5
-rw-r--r--mail/elm+ME/files/patch-ac54
-rw-r--r--mail/elm+ME/pkg-plist40
-rw-r--r--mail/elm+ME/scripts/pre-configure30
5 files changed, 162 insertions, 65 deletions
diff --git a/mail/elm+ME/Makefile b/mail/elm+ME/Makefile
index 25b13f5eed71..6f7f765545a5 100644
--- a/mail/elm+ME/Makefile
+++ b/mail/elm+ME/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= elm+ME
-PORTVERSION= 2.4.95${PATCHLEVEL}
+PORTVERSION= 2.4.96${PATCHLEVEL}
PORTREVISION= 1
CATEGORIES= mail
DISTNAME= ${PORTNAME:S/+ME//}-${PORTVERSION:R}ME+${PORTVERSION:E:S|${PATCHLEVEL}||}
@@ -26,8 +26,9 @@ MASTER_SITES+= ftp://ftp.lip6.fr/pub/unix/mail/elm-me/ \
# ftp://ftp.rge.com/pub/mail/elm/elm-2.4ME+/ \
# ftp://ftp.uni-trier.de/pub/unix/network/mail/elm-me+/
PATCH_SITES= ${MASTER_SITES}
-PATCHFILES= ${DISTNAME:S/+/+PL/}a.patch.gz
-PATCHLEVEL= a
+PATCHFILES= ${DISTNAME:S/+/+PL/}a.patch.gz \
+ ${DISTNAME:S/+/+PL/}b.patch.gz
+PATCHLEVEL= b
PATCH_DIST_STRIP= -p1
MAINTAINER= cyrille.lefevre@laposte.net
@@ -52,9 +53,12 @@ SCRIPTS_ENV= CFLAGS="${CFLAGS}" ${PLIST_SUB} PREFIX="${PREFIX}" \
LOCALBASE="${LOCALBASE}" MAN1PREFIX="${MAN1PREFIX}"
CONFIGURE_ARGS= -S -P ${PREFIX}
-MAKE_ARGS= MJ="FORMATTER=groff FORMATTER_OPTS=-Tlatin1"
+MAKE_ENV= MJ="FORMATTER=groff FORMATTER_OPTS=-Tlatin1"
ALL_TARGET= all documentation
+# hack! don't know why but it's needed.
+MAKEFILE= Makefile
+
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/%%SHLIB_SUBDIR%%
@@ -78,12 +82,19 @@ MSECS= 1
RCD_SUBDIR= etc/rc.d
LIB_SUBDIR= lib/elm
SHLIB_SUBDIR= libexec/elm
-DOC_SUBDIR= share/doc/elm
+DOC_SUBDIR= share/doc/elm+ME
+
+RCD_DIR= ${PREFIX}/${RCD_SUBDIR}
+LIB_DIR= ${PREFIX}/${LIB_SUBDIR}
RCD_FILE= 00elm.sh
MIME_TYPES= elm.mimetypes
+MIME_CSETS= elm.mimecharsets
+TERM_INFO= elm.terminalinfo
+ELM_RC= elm.rc
DOC_FILES= README.ME+ \
shared_libs/iconv/README.ICONV \
+ shared_libs/smtp/README.SMTP \
shared_libs/tls/README.TLS \
doc/Alias.fmtd doc/Config.fmtd doc/Cover.fmtd \
doc/Form.fmtd doc/Ref.fmtd doc/Users.fmtd
@@ -108,34 +119,76 @@ patch-setgid:
patch-nls-files:
@${PERL} -pi.fbsd -e 's,/usr/local,${PREFIX},' ${WRKSRC}/nls/LANGS
+# Pre-install
+#
+
+pre-install: backup-mime-charsets backup-terminal-info
+
+backup-mime-charsets:
+.if exists(${LIB_DIR}/${MIME_CSETS})
+ @${MV} ${LIB_DIR}/${MIME_CSETS} ${LIB_DIR}/${MIME_CSETS}.orig
+.endif
+
+backup-terminal-info:
+.if exists(${LIB_DIR}/${TERM_INFO})
+ @${MV} ${LIB_DIR}/${TERM_INFO} ${LIB_DIR}/${TERM_INFO}.orig
+.endif
+
# Post-install
#
post-install: install-startup-files install-nls-files \
- install-doc-files install-mime-types install-global-rc-file \
+ install-doc-files install-mime-types \
+ install-mime-charsets restore-mime-charsets \
+ install-terminal-info restore-terminal-info \
+ install-global-rc-file \
remove-catman-files remove-catman-links
install-startup-files:
- @${INSTALL_SCRIPT} ${WRKSRC}/${RCD_FILE} ${PREFIX}/${RCD_SUBDIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/${RCD_FILE} ${RCD_DIR}
install-nls-files:
@cd ${WRKSRC}/nls; ${MAKE} install
install-doc-files:
.if !defined(NOPORTSDOC)
- @${MKDIR} ${PREFIX}/${DOC_SUBDIR}
+ @${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${DOC_SUBDIR}
- @${GZIP_CMD} ${PREFIX}/${DOC_SUBDIR}/${file:T}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ @${GZIP_CMD} ${DOCSDIR}/${file:T}
.endfor
.endif
install-mime-types:
- @${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} \
- ${PREFIX}/${LIB_SUBDIR}/${MIME_TYPES}-dist
-.if !exists(${PREFIX}/${LIB_SUBDIR}/${MIME_TYPES})
- @${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} \
- ${PREFIX}/${LIB_SUBDIR}
+ @${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} ${LIB_DIR}/${MIME_TYPES}-dist
+.if !exists(${LIB_DIR}/${MIME_TYPES})
+ @${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} ${LIB_DIR}
+.endif
+
+install-mime-charsets:
+ @${INSTALL_DATA} ${LIB_DIR}/${MIME_CSETS} ${LIB_DIR}/${MIME_CSETS}-dist
+# was
+# @${LIB_DIR}/elmcharset -G \
+# -I ${WRKSRC}/ConfTool/killsets \
+# -S ${WRKSRC}/charset/MAPPING/ISO8859 \
+# -w ${LIB_DIR}/${MIME_CSETS}-dist \
+# ${WRKSRC}/bin/${MIME_CSETS}
+
+restore-mime-charsets:
+.if exists(${LIB_DIR}/${MIME_CSETS}.orig)
+ @${MV} ${LIB_DIR}/${MIME_CSETS}.orig ${LIB_DIR}/${MIME_CSETS}
+.endif
+
+install-terminal-info:
+ @${INSTALL_DATA} ${LIB_DIR}/${TERM_INFO} ${LIB_DIR}/${TERM_INFO}-dist
+# was
+# @${LIB_DIR}/elmterminal -G \
+# -w ${LIB_DIR}/${TERM_INFO}-dist \
+# ${WRKSRC}/bin/${TERM_INFO}
+
+restore-terminal-info:
+.if exists(${LIB_DIR}/${TERM_INFO}.orig)
+ @${MV} ${LIB_DIR}/${TERM_INFO}.orig ${LIB_DIR}/${TERM_INFO}
.endif
# at installation time, elm already has merged changes to the global
@@ -143,14 +196,12 @@ install-mime-types:
# backup the original rc file, then to generate the -dist rc file
# and to restore the backuped rc file. this allow us, at deinstallation
# time, to not delete an existing customized rc file.
+# same assertion about elm.mimecharsets and elm.terminalinfo.
install-global-rc-file:
- @${MV} ${PREFIX}/${LIB_SUBDIR}/elm.rc \
- ${PREFIX}/${LIB_SUBDIR}/elm.rc.orig
- @${PREFIX}/${LIB_SUBDIR}/elmrc-write -G -I
- @${MV} ${PREFIX}/${LIB_SUBDIR}/elm.rc \
- ${PREFIX}/${LIB_SUBDIR}/elm.rc-dist
- @${MV} ${PREFIX}/${LIB_SUBDIR}/elm.rc.orig \
- ${PREFIX}/${LIB_SUBDIR}/elm.rc
+ @${MV} ${LIB_DIR}/${ELM_RC} ${LIB_DIR}/${ELM_RC}.orig
+ @${LIB_DIR}/elmrc-write -G -I
+ @${MV} ${LIB_DIR}/${ELM_RC} ${LIB_DIR}/${ELM_RC}-dist
+ @${MV} ${LIB_DIR}/${ELM_RC}.orig ${LIB_DIR}/${ELM_RC}
remove-catman-files:
.for sect in ${MSECS}
@@ -176,12 +227,11 @@ FETCH_CMD_INTERIOR= ${FETCH_CMD:M*fetch*}
# only enable the hack if FETCH_CMD is fetch
.if !empty(FETCH_CMD_INTERIOR)
-# lip6 dislike $USER@localhost...
+# some ftp servers dislike $USER@localhost...
FETCH_ENV= FTP_PASSWORD=${FTP_PASSWORD}
IFCONFIG?= ifconfig
-# well, this is a hack to make fetch happy on lip6, ugh!
HOSTIPADDR= ${IFCONFIG} | ${AWK} '/inet /{print $$2; exit}'
FTP_PASSWORD?= ${USER}@`${HOSTIPADDR}`
.endif
diff --git a/mail/elm+ME/distinfo b/mail/elm+ME/distinfo
index 5332d9a86857..1c0f660bd575 100644
--- a/mail/elm+ME/distinfo
+++ b/mail/elm+ME/distinfo
@@ -1,2 +1,3 @@
-MD5 (elm-2.4ME+95.tar.gz) = ecb07943ff5e74a71ee39bb2ceb63187
-MD5 (elm-2.4ME+PL95a.patch.gz) = bd686b1cecc3412560d5080b68a9c306
+MD5 (elm-2.4ME+96.tar.gz) = 512c4ab96eb13b95065396c93e2c5bdb
+MD5 (elm-2.4ME+PL96a.patch.gz) = ed18d1113734874faf160f72e05be0e0
+MD5 (elm-2.4ME+PL96b.patch.gz) = 1579052ae1e3adb3028b6876466587d5
diff --git a/mail/elm+ME/files/patch-ac b/mail/elm+ME/files/patch-ac
index 5b376468189b..30e6ca2e6796 100644
--- a/mail/elm+ME/files/patch-ac
+++ b/mail/elm+ME/files/patch-ac
@@ -1,21 +1,37 @@
---- Configure.orig Fri May 11 19:35:20 2001
-+++ Configure Sun May 13 01:26:06 2001
-@@ -16,10 +16,10 @@
- PATH=".:$PATH:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin"
- export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$)
+--- Configure.orig Fri May 10 09:26:47 2002
++++ Configure Fri May 10 09:29:55 2002
+@@ -84,10 +84,10 @@
+ yes)
+ ;;
+ *)
+- if test ! -t 0; then
+- echo "Say 'sh Configure', not 'sh <Configure'"
+- exit 1
+- fi
++# if test ! -t 0; then
++# echo "Say 'sh Configure', not 'sh <Configure'"
++# exit 1
++# fi
+ ;;
+ esac
--if test ! -t 0; then
-- echo "Say 'sh Configure', not 'sh <Configure'"
-- exit 1
--fi
-+# if test ! -t 0; then
-+# echo "Say 'sh Configure', not 'sh <Configure'"
-+# exit 1
-+# fi
-
- (alias) >/dev/null 2>&1 && \
- echo "(I see you are using the Korn shell. Some ksh's blow up on Configure," && \
-@@ -1971,7 +1971,7 @@
+@@ -157,6 +157,7 @@
+ nomap=y
+ fi
+ . ConfTool/GenCharmap
++ cp doc/terminal.info bin/elm.terminalinfo
+ exit 0
+ ;;
+ map)
+@@ -187,6 +188,7 @@
+ nomap=y
+ fi
+ . ConfTool/GenCharmap
++ cp doc/terminal.info bin/elm.terminalinfo
+ exit 0
+ ;;
+ esac
+@@ -2050,7 +2052,7 @@
echo "Found shlib directory"
fi
@@ -24,7 +40,7 @@
LibLoc=`cd ..; pwd`/shlib
-@@ -2263,7 +2263,10 @@
+@@ -2342,7 +2344,10 @@
: see if crypt exists
echo " "
@@ -36,7 +52,7 @@
echo 'crypt() found.'
d_crypt="$define"
cryptlib=''
-@@ -2767,6 +2770,7 @@
+@@ -2846,6 +2851,7 @@
$echo $n "Testing if inet_aton can be used ... $c"
$cat > try.c <<'EOF'
diff --git a/mail/elm+ME/pkg-plist b/mail/elm+ME/pkg-plist
index 0c7ae088bfc1..292d166ee58d 100644
--- a/mail/elm+ME/pkg-plist
+++ b/mail/elm+ME/pkg-plist
@@ -21,10 +21,29 @@ etc/rc.d/00elm.sh
%%LIB_SUBDIR%%/elm-help.2
%%LIB_SUBDIR%%/elm-help.3
%%LIB_SUBDIR%%/elm.map.bin/unidata.bin
-%%LIB_SUBDIR%%/elm.mimecharsets
+%%LIB_SUBDIR%%/elm.map.txt/8859-14.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-16.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-2.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-3.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-4.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-5.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-6.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-7.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-8.TXT
+%%LIB_SUBDIR%%/elm.map.txt/8859-9.TXT
+@unexec if cmp -s %D/%%LIB_SUBDIR%%/elm.mimecharsets %D/%%LIB_SUBDIR%%/elm.mimecharsets-dist; then rm -f %D/%%LIB_SUBDIR%%/elm.mimecharsets; fi
+%%LIB_SUBDIR%%/elm.mimecharsets-dist
+@exec [ -f %B/elm.mimecharsets ] || cp %B/%f %B/elm.mimecharsets
@unexec if cmp -s %D/%%LIB_SUBDIR%%/elm.mimetypes %D/%%LIB_SUBDIR%%/elm.mimetypes-dist; then rm -f %D/%%LIB_SUBDIR%%/elm.mimetypes; fi
%%LIB_SUBDIR%%/elm.mimetypes-dist
-@exec [ ! -f %B/elm.mimetypes ] && cp %B/%f %B/elm.mimetypes
+@exec [ -f %B/elm.mimetypes ] || cp %B/%f %B/elm.mimetypes
+@unexec if cmp -s %D/%%LIB_SUBDIR%%/elm.rc %D/%%LIB_SUBDIR%%/elm.rc-dist; then rm -f %D/%%LIB_SUBDIR%%/elm.rc; fi
+%%LIB_SUBDIR%%/elm.rc-dist
+@exec if [ -f %B/elm.rc ]; then %D/%%LIB_SUBDIR%%/elmrc-write -G -I; fi
+@exec [ -f %B/elm.rc ] || cp %B/%f %B/elm.rc
+@unexec if cmp -s %D/%%LIB_SUBDIR%%/elm.terminalinfo %D/%%LIB_SUBDIR%%/elm.terminalinfo-dist; then rm -f %D/%%LIB_SUBDIR%%/elm.terminalinfo; fi
+%%LIB_SUBDIR%%/elm.terminalinfo-dist
+@exec [ -f %B/elm.terminalinfo ] || cp %B/%f %B/elm.terminalinfo
%%LIB_SUBDIR%%/elmcharset
%%LIB_SUBDIR%%/elmrc-info
%%LIB_SUBDIR%%/elmrc-write
@@ -33,22 +52,21 @@ etc/rc.d/00elm.sh
%%LIB_SUBDIR%%/prlong
%%SHLIB_SUBDIR%%/libelmme-base.so%%SO_REV%%
%%SHLIB_SUBDIR%%/libelmme-iconv.so%%SO_REV%%
+%%SHLIB_SUBDIR%%/libelmme-smtp.so%%SO_REV%%
%%SHLIB_SUBDIR%%/libelmme-tls.so%%SO_REV%%
-%%PORTDOCS%%%%DOC_SUBDIR%%/README.ME+.gz
-%%PORTDOCS%%%%DOC_SUBDIR%%/README.TLS.gz
-%%PORTDOCS%%%%DOC_SUBDIR%%/README.ICONV.gz
%%PORTDOCS%%%%DOC_SUBDIR%%/Alias.fmtd.gz
%%PORTDOCS%%%%DOC_SUBDIR%%/Config.fmtd.gz
%%PORTDOCS%%%%DOC_SUBDIR%%/Cover.fmtd.gz
%%PORTDOCS%%%%DOC_SUBDIR%%/Form.fmtd.gz
+%%PORTDOCS%%%%DOC_SUBDIR%%/README.ICONV.gz
+%%PORTDOCS%%%%DOC_SUBDIR%%/README.ME+.gz
+%%PORTDOCS%%%%DOC_SUBDIR%%/README.SMTP.gz
+%%PORTDOCS%%%%DOC_SUBDIR%%/README.TLS.gz
%%PORTDOCS%%%%DOC_SUBDIR%%/Ref.fmtd.gz
%%PORTDOCS%%%%DOC_SUBDIR%%/Users.fmtd.gz
share/nls/C/elm2.4me+.cat
-@exec if [ -f %D/%%LIB_SUBDIR%%/elm.rc ]; then mv %D/%%LIB_SUBDIR%%/elm.rc %D/%%LIB_SUBDIR%%/elm.rc.orig; fi
-@exec %D/%%LIB_SUBDIR%%/elmrc-write -G -I; mv %D/%%LIB_SUBDIR%%/elm.rc %D/%%LIB_SUBDIR%%/elm.rc-dist
-@exec if [ -f %D/%%LIB_SUBDIR%%/elm.rc.orig ]; then mv %D/%%LIB_SUBDIR%%/elm.rc.orig %D/%%LIB_SUBDIR%%/elm.rc; else cp -p %D/%%LIB_SUBDIR%%/elm.rc-dist %D/%%LIB_SUBDIR%%/elm.rc; fi
-@unexec if cmp -s %D/%%LIB_SUBDIR%%/elm.rc %D/%%LIB_SUBDIR%%/elm.rc-dist; then rm -f %D/%%LIB_SUBDIR%%/elm.rc; fi; rm -f %D/%%LIB_SUBDIR%%/elm.rc-dist
+%%PORTDOCS%%@dirrm %%DOC_SUBDIR%%
+@dirrm %%SHLIB_SUBDIR%%
+@dirrm %%LIB_SUBDIR%%/elm.map.txt
@dirrm %%LIB_SUBDIR%%/elm.map.bin
@unexec rmdir %D/%%LIB_SUBDIR%% 2> /dev/null || :
-@dirrm %%SHLIB_SUBDIR%%
-%%PORTDOCS%%@dirrm %%DOC_SUBDIR%%
diff --git a/mail/elm+ME/scripts/pre-configure b/mail/elm+ME/scripts/pre-configure
index 0985e3b8354a..c2882379a5e2 100644
--- a/mail/elm+ME/scripts/pre-configure
+++ b/mail/elm+ME/scripts/pre-configure
@@ -52,6 +52,7 @@ pager='builtin++'
startsh='#!/bin/sh'
define='define'
loclist='
+basename
cat
chgrp
chmod
@@ -86,8 +87,8 @@ mv='/bin/mv'
cp='/bin/cp'
tail=''
tr='/usr/bin/tr'
-sort=''
-uniq=''
+sort='/usr/bin/sort'
+uniq='/usr/bin/uniq'
grep='/usr/bin/grep'
fgrep='/usr/bin/fgrep'
head='/usr/bin/head'
@@ -96,6 +97,7 @@ Mcc
compress
cpp
date
+diff
emacs
execmail
finger
@@ -106,7 +108,6 @@ lint
lp
locale
lpr
-mailx
metamail
mips
more
@@ -130,7 +131,7 @@ uname
uuname
vi
'
-test='/bin/test'
+test='test'
inews=''
ispell='${LOCALBASE}/bin/ispell'
egrep='/usr/bin/egrep'
@@ -138,7 +139,7 @@ more='/usr/bin/more'
pg='pg'
Mcc='Mcc'
vi='/usr/bin/vi'
-mailx='mailx'
+mailx=''
mail=''
cpp='/usr/bin/cpp'
perl=''
@@ -166,6 +167,7 @@ lpr='/usr/bin/lpr'
lp='/usr/bin/lp'
touch='/usr/bin/touch'
make='/usr/bin/make'
+make_sets_make='define'
date='/bin/date'
csh=''
pmake='pmake'
@@ -176,7 +178,7 @@ compress='/usr/bin/compress'
execmail=''
libswanted='sun nls c_s'
noaddlib='yes'
-c_date='Sun May 13 02:00:14 CEST 2001'
+c_date='Fri Jan 18 00:59:09 CET 2002'
d_ascii='undef'
d_broke_ctype='undef'
d_calendar='define'
@@ -255,12 +257,13 @@ d_setlinebuf='define'
d_shared='define'
d_shared_rev='${d_shared_rev}'
d_dlopen_libs='define'
-shared_list='iconv tls'
+shared_list='iconv smtp tls'
d_dynamic_main='define'
dynamic_opt='-rdynamic'
dlopen_lib=''
rpath_opt='-rpath '
soname_opt='-shared -soname '
+soname_include_path='define'
tempnamo=''
tempnamc=''
d_termio='undef'
@@ -272,9 +275,9 @@ d_directyry_type='USE_DIRENT'
defbatsub='no subject (file transmission)'
defeditor='/usr/bin/vi'
editoropts=''
-hostname=''
+hostname='localhost'
phostname='hostname'
-mydomain='tld.invalid'
+mydomain='.invalid'
autohostname='define'
i_memory='define'
i_time='define'
@@ -328,6 +331,7 @@ xenlf=''
d_xenix='undef'
d_bsd='define'
locale='locale'
+have_codeset='undef'
d_pgp='define'
pgp='${LOCALBASE}/bin/pgp'
pgp2_path='${LOCALBASE}/bin/pgp'
@@ -351,6 +355,14 @@ iconv_lib_dir='${LOCALBASE}/lib'
iconv_link='iconv'
EOF
+mv ${WRKSRC}/shared_libs/smtp/README.ME+ \
+ ${WRKSRC}/shared_libs/smtp/README.SMTP
+
+tee -a ${WRKSRC}/config.sh > ${WRKSRC}/shared_libs/smtp/config.res << EOF
+# Support for SMTP
+smtp_ok='define'
+EOF
+
mv ${WRKSRC}/shared_libs/tls/README.ME+ \
${WRKSRC}/shared_libs/tls/README.TLS