diff options
author | sem <sem@FreeBSD.org> | 2004-12-21 05:21:38 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2004-12-21 05:21:38 +0800 |
commit | 0f2403c523c1bc950e0a55e45d741c12d1c3708a (patch) | |
tree | 8b3156be79b8304706a86402444673d3dff5c0e2 /mail/biabam | |
parent | 209221d5bc2493bc16c46e20cb5da6d752a6b5ac (diff) | |
download | freebsd-ports-gnome-0f2403c523c1bc950e0a55e45d741c12d1c3708a.tar.gz freebsd-ports-gnome-0f2403c523c1bc950e0a55e45d741c12d1c3708a.tar.zst freebsd-ports-gnome-0f2403c523c1bc950e0a55e45d741c12d1c3708a.zip |
- Update to 0.9.7
- Fixes: s/seq/jot/;s/uuencode --base64/b64encode/
Reported by: UAFUG
Diffstat (limited to 'mail/biabam')
-rw-r--r-- | mail/biabam/Makefile | 4 | ||||
-rw-r--r-- | mail/biabam/distinfo | 4 | ||||
-rw-r--r-- | mail/biabam/files/patch-biabam | 83 |
3 files changed, 87 insertions, 4 deletions
diff --git a/mail/biabam/Makefile b/mail/biabam/Makefile index 3ecf036d9e14..8cb608063ea3 100644 --- a/mail/biabam/Makefile +++ b/mail/biabam/Makefile @@ -6,7 +6,7 @@ # PORTNAME= biabam -PORTVERSION= 0.9.6 +PORTVERSION= 0.9.7 CATEGORIES= mail MASTER_SITES= http://mmj.dk/biabam/ @@ -19,7 +19,7 @@ USE_REINPLACE= yes NO_BUILD= yes PLIST_FILES= bin/biabam -do-patch: +post-patch: @${REINPLACE_CMD} -e 's|\(#!\)\(/bin/bash\)|\1${LOCALBASE}\2|' \ ${WRKSRC}/${PORTNAME} diff --git a/mail/biabam/distinfo b/mail/biabam/distinfo index 2135e398a385..7de9cc4b2a20 100644 --- a/mail/biabam/distinfo +++ b/mail/biabam/distinfo @@ -1,2 +1,2 @@ -MD5 (biabam-0.9.6.tar.gz) = f4e610b38ab35f55a9a0512521c04cb6 -SIZE (biabam-0.9.6.tar.gz) = 8763 +MD5 (biabam-0.9.7.tar.gz) = 1e72070576b6040522050e70f1f75ee9 +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 000000000000..20104efefa86 --- /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 1 $TOTAL_ATTACHMENTS`; + 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 1 $TOTAL_ATTACHMENTS`; 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 1 $TOTAL_EMAILS`; 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 1 $TOTAL_EMAILS`; 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 1 $TOTAL_ATTACHMENTS`; 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 1 $TOTAL_EMAILS`; 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 1 $TOTAL_ATTACHMENTS`; do + /bin/rm -f ${TEMPUUENCODED[$i]} # remove all temp files created + done + |