ports/150115: New port: mail/rubygem-smtp_tls (adds tls support to ruby 1.8.6)
Eric Freeman
freebsdports at chillibear.com
Mon Aug 30 11:50:03 UTC 2010
>Number: 150115
>Category: ports
>Synopsis: New port: mail/rubygem-smtp_tls (adds tls support to ruby 1.8.6)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 30 11:50:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Eric Freeman
>Release: 8.1
>Organization:
>Environment:
FreeBSD bsd8.localnet 8.1-STABLE-201008 FreeBSD 8.1-STABLE-201008 #0: Mon Aug 2 20:04:38 UTC 2010 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
This is a simple gem port of the smtp_tls gem (http://seattlerb.rubyforge.org/smtp_tls/). This gem provides SMTP STARTTLS support for Ruby 1.8.6, this functionality is built-in for Ruby 1.8.7+.
I've done the port because I'm about to submit a port of the 'pony' gem (http://github.com/benprew/pony) which can optionally use this port with earlier versions of Ruby. Whilst I don't expect massive usage of this Gem it does 'complete the set' and provide the option for anyone using the older versions of Ruby.
I don't know if the way I've done the depends to prevent installation on 1.8.7+ systems is the best, so any suggestions/improvements are welcome there.
>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:
#
# rubygem-smtp_tls
# rubygem-smtp_tls/distinfo
# rubygem-smtp_tls/Makefile
# rubygem-smtp_tls/pkg-descr
#
echo c - rubygem-smtp_tls
mkdir -p rubygem-smtp_tls > /dev/null 2>&1
echo x - rubygem-smtp_tls/distinfo
sed 's/^X//' >rubygem-smtp_tls/distinfo << 'd119de61ccd14f2404301d39e1d284be'
XMD5 (rubygem/smtp_tls-1.0.3.gem) = 01a6b38a718c85f90e6d46eecd46d89a
XSHA256 (rubygem/smtp_tls-1.0.3.gem) = fe5abcbcc3200e21dec2f9cf22657b9a3776c5e1210a5e7505097c3091dd5914
XSIZE (rubygem/smtp_tls-1.0.3.gem) = 10240
d119de61ccd14f2404301d39e1d284be
echo x - rubygem-smtp_tls/Makefile
sed 's/^X//' >rubygem-smtp_tls/Makefile << '75bc3474f7a108687310bd97e6de6c76'
X# Ports collection makefile for: rubygem-smtp_tls
X# Date created: 30 Aug 2010
X# Whom: Eric Freeman <freebsdports at chillibear.com>
X#
X# $FreeBSD$
X#
X# NOTE that this gem is only required if you run Ruby 1.8.6
X# SMTP TLS is built into Ruby 1.8.7+
X#
X
XPORTNAME= smtp_tls
XPORTVERSION= 1.0.3
XCATEGORIES= mail rubygems
XMASTER_SITES= RG
X
XMAINTAINER= freebsdports at chillibear.com
XCOMMENT= Provides SMTP STARTTLS support for Ruby 1.8.6
X
XRUN_DEPENDS= ruby<=1.8.6:${PORTSDIR}/lang/ruby18 \
X rubygem-hoe>=2.3.2:${PORTSDIR}/devel/rubygem-hoe
X
XUSE_RUBY= yes
XUSE_RUBYGEMS= yes
XRUBYGEM_AUTOPLIST= yes
X
X.include <bsd.port.mk>
75bc3474f7a108687310bd97e6de6c76
echo x - rubygem-smtp_tls/pkg-descr
sed 's/^X//' >rubygem-smtp_tls/pkg-descr << '5a3ad6ba1c3579d0bd27b08dab138079'
XProvides SMTP STARTTLS support for Ruby 1.8.6, this
Xfunctionality is built-in for Ruby 1.8.7+.
X
XTo use simply: require 'smtp_tls' and use the
XNet::SMTP#enable_starttls method to talk to
Xservers that use STARTTLS.
X
XWWW: http://seattlerb.rubyforge.org/smtp_tls/
5a3ad6ba1c3579d0bd27b08dab138079
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list