From owner-freebsd-ports Wed Sep 1 3:21:17 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 80CE914E9C for ; Wed, 1 Sep 1999 03:21:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA63033; Wed, 1 Sep 1999 03:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from pis.toba-cmt.ac.jp (pis.toba-cmt.ac.jp [202.26.248.77]) by hub.freebsd.org (Postfix) with ESMTP id B7DB214E4A for ; Wed, 1 Sep 1999 03:11:54 -0700 (PDT) (envelope-from kiri@pis.toba-cmt.ac.jp) Received: (from kiri@localhost) by pis.toba-cmt.ac.jp (8.9.3/8.9.3) id TAA33435; Wed, 1 Sep 1999 19:12:44 +0900 (JST) (envelope-from kiri) Message-Id: <199909011012.TAA33435@pis.toba-cmt.ac.jp> Date: Wed, 1 Sep 1999 19:12:44 +0900 (JST) From: KIRIYAMA Kazuhiko Reply-To: kiri@pis.toba-cmt.ac.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13518: New ports: prom-wl-1.0.2(mail/prom-wl) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13518 >Category: ports >Synopsis: New ports: prom-wl-1.0.2(mail/prom-wl) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 1 03:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: KIRIYAMA Kazuhiko >Release: FreeBSD 4.0-CURRENT i386 >Organization: Toba National College of Maritime Technology. Department of Electronic Mechanical Engineering >Environment: >Description: prom-wl port has been ported. This port is a procmail reader for Wanderlust on GNU Emacs. I put the port with shar `find prom-wl` below "Fix:" >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # prom-wl/ # prom-wl/files/ # prom-wl/files/md5 # prom-wl/files/dot.emacs # prom-wl/files/byte-compile # prom-wl/files/dot.procmailrc # prom-wl/pkg/ # prom-wl/pkg/COMMENT # prom-wl/pkg/DESCR # prom-wl/pkg/PLIST # prom-wl/Makefile # echo c - prom-wl/ mkdir -p prom-wl/ > /dev/null 2>&1 echo c - prom-wl/files/ mkdir -p prom-wl/files/ > /dev/null 2>&1 echo x - prom-wl/files/md5 sed 's/^X//' >prom-wl/files/md5 << 'END-of-prom-wl/files/md5' XMD5 (prom-wl-1.0.2.tar.gz) = c9e64c1e26fbf3c1d8fa3c9d1662ed8a END-of-prom-wl/files/md5 echo x - prom-wl/files/dot.emacs sed 's/^X//' >prom-wl/files/dot.emacs << 'END-of-prom-wl/files/dot.emacs' X;;; X;;; Prom-WL X;;; X(autoload 'prom-wl "prom-wl" "Prom for Wanderlust" t) X(setq proc-log-list (list "~/Mail/from-log")) X ;; logfile name that procmail output (LOGFILE in ~/.procmailrc) X(setq proc-keep-log "~/Mail/listlog") ;; logfile name for preserve X(setq proc-lock-file "~/Mail/.lock") ;; lockfile name (LOCKFILE in ~/.procmailrc) END-of-prom-wl/files/dot.emacs echo x - prom-wl/files/byte-compile sed 's/^X//' >prom-wl/files/byte-compile << 'END-of-prom-wl/files/byte-compile' X#!/bin/sh X XPREFIX=${PREFIX:-/usr/local} XWRKDIR=${WRKDIR:-`pwd`} X Xtmprfx=`basename $0` X XUsage="\ Xbyte_compile [options] emacs_name port_name [files] X -l load_el : load *.el file when byte-compile X -h : show this message X emacs_name : should be one of below X \"emacs\", \"emacs20\", \"mule\", \"xemacs19\", \"xemacs20\", X \"xemacs21\", \"xemacs-mule\" X port_name : port name(replaced port_name.el when files not specified) X files : *.el files should be compiled" X Xwhile [ -z "`getopts "l: h" opt > /tmp/${tmprfx}:getopt_err.log`" \ X -a X"${opt}" != "X?" ]; do X case ${opt} in X l) X load_el=${OPTARG} X break X ;; X h) X echo "${Usage}" X exit 1 X ;; X *) X ;; X esac X# echo "opt=${opt},OPTARG=${OPTARG}" Xdone X Xif [ -s /tmp/${tmprfx}:getopt_err.log ]; then X cat /tmp/${tmprfx}:getopt_err.log X rm -f /tmp/${tmprfx}:getopt_err.log X exit 1 Xfi Xrm -f /tmp/${tmprfx}:getopt_err.log X Xshift `expr ${OPTIND} - 1` X Xif [ -z "$1" -o -z "$2" ]; then X echo "${Usage}" X exit 1 Xfi X Xemacs_name=$1 Xshift Xport_name=$1 X Xif [ $# -le 1 ]; then X files=${port_name}.el Xelse X files=`echo $* | sed -e "s/${port_name} *//"` Xfi X X#echo "emacs_name=${emacs_name}" X#echo "port_name=${port_name}" X#echo "files=${files}" X#echo "load_el=${load_el}" X#exit 1 X Xcase ${emacs_name} in X emacs) X elispdir=${PREFIX}/share/emacs/site-lisp X load_path=${PREFIX}/share/emacs/site-lisp/${load_el} X emacscmd=emacs X ;; X emacs20) X elispdir=${PREFIX}/share/emacs/site-lisp X load_path=${PREFIX}/share/emacs/site-lisp/${load_el} X emacscmd=emacs20 X ;; X mule) X elispdir=${PREFIX}/share/mule/site-lisp X load_path=${PREFIX}/share/mule/site-lisp/${load_el} X emacscmd=mule X ;; X xemacs19) X elispdir=${PREFIX}/lib/xemacs/site-lisp X load_path=${PREFIX}/lib/xemacs/site-lisp/${load_el} X emacscmd=xemacs X ;; X xemacs20) X elispdir=${PREFIX}/lib/xemacs/site-lisp X load_path=${PREFIX}/lib/xemacs/site-lisp/${load_el} X emacscmd=xemacs X ;; X xemacs21) X elispdir=${PREFIX}/lib/xemacs/site-packages/lisp/${port_name} X load_path=${PREFIX}/lib/xemacs/site-packages/lisp/${load_el} X pkg_path=${PREFIX}/lib/xemacs/site-packages X emacscmd=xemacs X package_install=yes X ;; X xemacs-mule) X elispdir=${PREFIX}/lib/xemacs/site-packages/lisp/${port_name} X load_path=${PREFIX}/lib/xemacs/site-packages/lisp/${load_el} X pkg_path=${PREFIX}/lib/xemacs/site-packages X emacscmd=xemacs X package_install=yes X ;; X *) X echo "${Usage}" X exit 1 X ;; Xesac Xif [ -n "${load_el}" ]; then X echo "(setq load-path (cons \"${load_path}\" load-path))" > /tmp/${tmprfx}:load.el Xfi Xfor f in ${files}; do X if [ -f ${WRKDIR}/${f} ]; then X f_elc=`basename ${f} .el`.elc X if [ -n "${load_el}" ]; then X ${emacscmd} -batch -l /tmp/${tmprfx}:load.el -q -no-site-file \ X -f batch-byte-compile ${WRKDIR}/${f} X else X ${emacscmd} -batch -q -no-site-file -f batch-byte-compile ${WRKDIR}/${f} X fi X if [ X"${WRKDIR}" != "X${elispdir}" ]; then X rm -f ${elispdir}/${f_elc} X ln -sf ${WRKDIR}/${f} ${elispdir}/${f} X install -c -m 444 -g bin -o bin ${WRKDIR}/${f_elc} ${elispdir}/${f_elc} X rm -f ${WRKDIR}/${f_elc} X fi X if [ $? -eq 0 -a -n "${package_install}" ]; then X cp ${pkg_path}/pkginfo/MANIFEST.${port_name} /tmp/${tmprfx}:tempfile X grep -v "${f_elc}" /tmp/${tmprfx}:tempfile \ X > ${pkg_path}/pkginfo/MANIFEST.${port_name} X echo "lisp/${port_name}/${f_elc}" >> ${pkg_path}/pkginfo/MANIFEST.${port_name} X fi X else X echo "\"${WRKDIR}/${f}\": file not found!" X fi Xdone X Xrm -f /tmp/${tmprfx}:load.el /tmp/${tmprfx}:tempfile END-of-prom-wl/files/byte-compile echo x - prom-wl/files/dot.procmailrc sed 's/^X//' >prom-wl/files/dot.procmailrc << 'END-of-prom-wl/files/dot.procmailrc' XMAILDIR=$HOME/Mail # ML folder directory (indispensable for Prom-ML) XLOGFILE=$MAILDIR/from-log # log file (indispensable for Prom-ML) XLOCKFILE=$MAILDIR/.lock # global lockfile (indispensable for Prom-ML) X X# trash X X:0 X* ^To: *undisclosed-recipients Xtrash/. X X# X# Daily outputs X# X X# daily output - fbsd X X:0 X* ^Subject: +daily *run *output$ X* ^From: *Charlie *Root *.*$ Xdaily/. X X# X# Mailing Lists X# X X:0 X* ^Subject: *\[FreeBSD-users-jp *[0-9]+\] X* ^To:.*[Ff]ree[Bb][Ss][Dd]-users-jp@jp\.freebsd\.org XML/FreeBSD-users-jp/. X X:0 X* ^Subject: *\[Mew-dist *[0-9]+\] XML/Mew/. X X# X# Miscs X# X X:0 X* ^Cc:.*sinet-.*@ Xmaintain/. END-of-prom-wl/files/dot.procmailrc echo c - prom-wl/pkg/ mkdir -p prom-wl/pkg/ > /dev/null 2>&1 echo x - prom-wl/pkg/COMMENT sed 's/^X//' >prom-wl/pkg/COMMENT << 'END-of-prom-wl/pkg/COMMENT' Xprocmail reader for Wanderlust on GNU Emacs. END-of-prom-wl/pkg/COMMENT echo x - prom-wl/pkg/DESCR sed 's/^X//' >prom-wl/pkg/DESCR << 'END-of-prom-wl/pkg/DESCR' XProm-Wl is a procmail reader for Wanderlust on GNU Emacs. X XIf you want to install quickly, you shoud do following steps: X X(1) add dot.emacs to your ~/.emacs file and change it suitable for your site X X % cat /usr/local/share/examples/prom-wl/dot.emacs >> ~/.emacs X % vi ~/.emacs X X(2) copy dot.procmailrc to ~/.procmailrc and change it suitable for your site X X % cp /usr/local/share/examples/prom-wl/dot.promailrc ~/.promailrc X % vi ~/.promailrc X X(3) byte-compile with "byte-comile" script if you want with xemacs-mule code X X # cd /usr/local/share/emacs/site-lisp X # /usr/local/share/doc/prom-wl/byte-compile -l wl xemacs-mule prom-wl X XWhere detail specification for .emacs and .procmailrc may be shown in X/usr/local/share/doc/prom-wl/prom-usage.jis or procmail(1). And for Xusage of byte_compile scripts, run byte-compile with -h option. X XRun with "M-x prom-wl" in your emacs editors, Wanderlust will be invoked and then Xsearch unread mails from procmail log to show unread message from top of Xentries that you specfied in ~/.pronmailrc. X X-KIRIYAMA Kazuhiko X END-of-prom-wl/pkg/DESCR echo x - prom-wl/pkg/PLIST sed 's/^X//' >prom-wl/pkg/PLIST << 'END-of-prom-wl/pkg/PLIST' Xshare/emacs/site-lisp/prom-wl.el Xlib/xemacs/site-packages/lisp/prom-wl/prom-wl.el Xlib/xemacs/site-packages/pkginfo/MANIFEST.prom-wl Xshare/doc/prom-wl/ChangeLog Xshare/doc/prom-wl/prom-wl-usage.jis Xshare/doc/prom-wl/byte-compile Xshare/examples/prom-wl/dot.emacs Xshare/examples/prom-wl/dot.procmailrc X@dirrm lib/xemacs/site-packages/lisp/prom-wl X@dirrm share/doc/prom-wl END-of-prom-wl/pkg/PLIST echo x - prom-wl/Makefile sed 's/^X//' >prom-wl/Makefile << 'END-of-prom-wl/Makefile' X# New ports collection makefile for: prom-wl X# Version required: 1.0.2 X# Date created: 28 Aug 1999 X# Whom: KIRIYAMA Kazuhiko X# X# $Id$ X# X XDISTNAME= prom-wl-1.0.2 XCATEGORIES= mail elisp XMASTER_SITES= http://www02.so-net.ne.jp/~murata/software/pub/ X XMAINTAINER= kiri@pis.toba-cmt.ac.jp X X# This port requires Wanderlust. But we can't decide which Wanderlust to depends, X# there is NO RUN_DEPNDS mail/wanderlust-*. XRUN_DEPENDS= procmail:${PORTSDIR}/mail/procmail X XNO_BUILD= yes X XELISPDIR= ${PREFIX}/share/emacs/site-lisp XSITEPKGDIR= ${PREFIX}/lib/xemacs/site-packages X Xdo-install: X @${MKDIR} ${ELISPDIR} ${PREFIX}/share/doc/prom-wl \ X ${PREFIX}/share/examples/prom-wl X @cd ${WRKSRC}; \ X ${INSTALL_DATA} prom-wl.el ${ELISPDIR}; \ X ${INSTALL_DATA} ChangeLog prom-wl-usage.jis ${PREFIX}/share/doc/prom-wl X @cd ${FILESDIR}; \ X ${INSTALL_SCRIPT} byte-compile ${PREFIX}/share/doc/prom-wl; \ X ${INSTALL_DATA} dot.emacs dot.procmailrc ${PREFIX}/share/examples/prom-wl X# For xemacs package install configuration X @${MKDIR} ${SITEPKGDIR}/lisp/prom-wl ${SITEPKGDIR}/pkginfo X @${LN} -sf ${ELISPDIR}/prom-wl.el ${SITEPKGDIR}/lisp/prom-wl/prom-wl.el X @${ECHO} 'pkginfo/MANIFEST.prom-wl' > ${SITEPKGDIR}/pkginfo/MANIFEST.prom-wl X @${ECHO} 'lisp/prom-wl/prom-wl.el' >> ${SITEPKGDIR}/pkginfo/MANIFEST.prom-wl X X.include END-of-prom-wl/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message