diff options
author | pav <pav@FreeBSD.org> | 2011-05-03 16:31:37 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2011-05-03 16:31:37 +0000 |
commit | 2396196d1fd7b7fff2b77f4e66d682e3873a9f63 (patch) | |
tree | d4ae0767d272191579a1333b1248bd4dd778bd92 | |
parent | f6f70ada3d53aae8af9e88294682b06ca9370fce (diff) | |
download | FreeBSD-ports-2396196d1fd7b7fff2b77f4e66d682e3873a9f63.zip FreeBSD-ports-2396196d1fd7b7fff2b77f4e66d682e3873a9f63.tar.gz |
- Restore this port, I'm still using it
PR: ports/156774
Submitted by: Chris Rees <utisoft@gmail.com>
-rw-r--r-- | MOVED | 1 | ||||
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/biabam/Makefile | 29 | ||||
-rw-r--r-- | mail/biabam/distinfo | 3 | ||||
-rw-r--r-- | mail/biabam/files/patch-biabam | 83 | ||||
-rw-r--r-- | mail/biabam/pkg-descr | 14 |
6 files changed, 130 insertions, 1 deletions
@@ -2009,7 +2009,6 @@ math/qscanplot||2011-05-02|Has expired: Upstream disapear and distfile is no mor math/rpc||2011-05-02|Has expired: Upstream disapear and distfile is no more available math/ss||2011-05-02|Has expired: Upstream disapear and distfile is no more available math/wmcalc||2011-05-02|Has expired: Upstream disapear and distfile is no more available -mail/biabam||2011-05-02|Has expired: Upstream disapear and distfile is no more available mail/crashecho||2011-05-02|Has expired: Upstream disapear and distfile is no more available mail/drbl||2011-05-02|Has expired: Upstream disapear and distfile is no more available mail/glbiff||2011-05-02|Has expired: Upstream disapear and distfile is no more available diff --git a/mail/Makefile b/mail/Makefile index 8275593..af08ac6 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -30,6 +30,7 @@ SUBDIR += batv-milter SUBDIR += bayespam SUBDIR += bbmail + SUBDIR += biabam SUBDIR += biffer SUBDIR += bincimap SUBDIR += bmf diff --git a/mail/biabam/Makefile b/mail/biabam/Makefile new file mode 100644 index 0000000..37e6d40 --- /dev/null +++ b/mail/biabam/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: biabam +# Date created: 03 January 2001 +# Whom: George Reid <greid@ukug.uk.freebsd.org> +# +# $FreeBSD$ +# + +PORTNAME= biabam +PORTVERSION= 0.9.7 +PORTREVISION= 2 +CATEGORIES= mail +MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/ + +MAINTAINER= utisoft@gmail.com +COMMENT= A command-line attachment mailer + +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash + +NO_BUILD= yes +PLIST_FILES= bin/biabam + +post-patch: + @${REINPLACE_CMD} -e '1s|\(#!\)\(/bin/bash\)|\1${LOCALBASE}\2|' \ + ${WRKSRC}/${PORTNAME} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/biabam ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/mail/biabam/distinfo b/mail/biabam/distinfo new file mode 100644 index 0000000..36f5550 --- /dev/null +++ b/mail/biabam/distinfo @@ -0,0 +1,3 @@ +MD5 (biabam-0.9.7.tar.gz) = 1e72070576b6040522050e70f1f75ee9 +SHA256 (biabam-0.9.7.tar.gz) = d4165f432b371628d6a39e0b99a1f245182cc547f984309e2f5f6837acd3f707 +SIZE (biabam-0.9.7.tar.gz) = 8873 diff --git a/mail/biabam/files/patch-biabam b/mail/biabam/files/patch-biabam new file mode 100644 index 0000000..aa6a16a --- /dev/null +++ b/mail/biabam/files/patch-biabam @@ -0,0 +1,83 @@ +--- biabam.orig Tue Dec 21 00:08:38 2004 ++++ biabam Tue Dec 21 00:10:02 2004 +@@ -33,15 +33,15 @@ + exit 1 + fi + +-if ! which uuencode > /dev/null; then +- echo "This program needs the uuencode utility to perform base64 encoding." ++if ! which b64encode > /dev/null; then ++ echo "This program needs the b64encode utility to perform base64 encoding." + exit 1 + fi + + # Find out the number of files to attach + TOTAL_ATTACHMENTS=`echo "$1" | awk -F$SP '{print NF}'` + +-for i in `seq 1 $TOTAL_ATTACHMENTS`; ++for i in `jot $TOTAL_ATTACHMENTS 1`; + do + STR="'{print \$$i}'" + # store filenames in an array +@@ -55,7 +55,7 @@ + + BASETEMP="`basename $TEMPFILE`" + +-for i in `seq 1 $TOTAL_ATTACHMENTS`; do ++for i in `jot $TOTAL_ATTACHMENTS 1`; do + # array for attachments basename + BASEATTACHMENT[$i]="`basename \"${ARR_ATTACHMENTS[$i]}\"`" + # test if file exists +@@ -78,7 +78,7 @@ + TYPE[$i]=${MIME:-application/unknown} + fi + +- uuencode --base64 -- "${ARR_ATTACHMENTS[$i]}" "${BASEATTACHMENT[$i]}" | \ ++ b64encode -- "${ARR_ATTACHMENTS[$i]}" "${BASEATTACHMENT[$i]}" | \ + sed '1d;$d' > ${TEMPUUENCODED[$i]} + done + +@@ -97,7 +97,7 @@ + # Find out the number of recipients to send the email + TOTAL_EMAILS=`echo "$1" | awk -F$SP '{print NF}'` + +-for i in `seq 1 $TOTAL_EMAILS`; do ++for i in `jot $TOTAL_EMAILS 1`; do + STR="'{print \$$i}'" + # store recipients in an array + ARR_EMAILS[$i]=`sh -c "echo "$1" | awk -F$SP $STR" ` +@@ -105,7 +105,7 @@ + + TO="To:" + +-for i in `seq 1 $TOTAL_EMAILS`; do ++for i in `jot $TOTAL_EMAILS 1`; do + # write the 'To:' field with all recipients previously stored in the array + TO="$TO <${ARR_EMAILS[$i]}>," + done +@@ -129,7 +129,7 @@ + cat >> $TEMPFILE + echo >> $TEMPFILE + +-for i in `seq 1 $TOTAL_ATTACHMENTS`; do ++for i in `jot $TOTAL_ATTACHMENTS 1`; do + echo "--$BOUNDARY" >> $TEMPFILE + echo "Content-Type: ${TYPE[$i]}" >> $TEMPFILE + echo "Content-Disposition: attachment; filename=\"${BASEATTACHMENT[$i]}\"" >> $TEMPFILE +@@ -143,14 +143,14 @@ + echo "--$BOUNDARY--" >> $TEMPFILE + echo >> $TEMPFILE + +-for i in `seq 1 $TOTAL_EMAILS`; do ++for i in `jot $TOTAL_EMAILS 1`; do + # put all recipients together to call sendmail below + RECIPIENTS="$RECIPIENTS ${ARR_EMAILS[$i]}" + done + + cat $TEMPFILE | $SENDMAIL $SENDMAIL_OPTS $RECIPIENTS # here we call sendmail + +-for i in `seq 1 $TOTAL_ATTACHMENTS`; do ++for i in `jot $TOTAL_ATTACHMENTS 1`; do + /bin/rm -f ${TEMPUUENCODED[$i]} # remove all temp files created + done + diff --git a/mail/biabam/pkg-descr b/mail/biabam/pkg-descr new file mode 100644 index 0000000..9789764 --- /dev/null +++ b/mail/biabam/pkg-descr @@ -0,0 +1,14 @@ +Biabam Is A Bash Attachment Mailer + +To use BIABAM use the following syntax: + +echo [body] | biabam attachment1,[attachment2,attachmentN] [-s subject] \ + recipient1[,recipient2,recipientN] + +Example: +echo "Here are the tarballs you requested" | biabam \ + foobar-0.7.8.tar.gz,coolapp-0.4.3.tar.gz,otherapp-4.3.0.tar.gz \ + -s "Answer to your request" john@doe.org,irene@prima.org,cira@alpispa.es + +If no text is piped into biabam, it will wait for text on standard input +(finish with CTRL-D) |