ports/96803: [NEW PORT] databases/erlang-mysql - Native MySQL interface for Erlang
Shaun Amott
shaun at inerd.com
Fri May 5 00:10:19 UTC 2006
>Number: 96803
>Category: ports
>Synopsis: [NEW PORT] databases/erlang-mysql - Native MySQL interface for Erlang
>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: Fri May 05 00:10:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Shaun Amott
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
>Description:
This is a module for Erlang to provide native access to MySQL databases.
I need this for my planned work on net-im/ejabberd.
>How-To-Repeat:
>Fix:
--- erlang-mysql.shar begins here ---
# 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:
#
# erlang-mysql
# erlang-mysql/pkg-descr
# erlang-mysql/distinfo
# erlang-mysql/Makefile
# erlang-mysql/pkg-plist
#
echo c - erlang-mysql
mkdir -p erlang-mysql > /dev/null 2>&1
echo x - erlang-mysql/pkg-descr
sed 's/^X//' >erlang-mysql/pkg-descr << 'END-of-erlang-mysql/pkg-descr'
XThis port provides a native (as opposed to ODBC) MySQL interface for
XErlang applications. It has been extracted from the codebase of the
XYxa SIP Software [1], and is provided by Process One [2].
X
X[1] http://www.stacken.kth.se/project/yxa/
X[2] http://www.process-one.net/
X
XWWW: http://support.process-one.net/doc/display/CONTRIBS/Yxa/
END-of-erlang-mysql/pkg-descr
echo x - erlang-mysql/distinfo
sed 's/^X//' >erlang-mysql/distinfo << 'END-of-erlang-mysql/distinfo'
XMD5 (mysql.tar.gz) = 0dc724df6fdc8a5b1ce133c6f31091d4
XSIZE (mysql.tar.gz) = 13500
END-of-erlang-mysql/distinfo
echo x - erlang-mysql/Makefile
sed 's/^X//' >erlang-mysql/Makefile << 'END-of-erlang-mysql/Makefile'
X# New ports collection makefile for: erlang-mysql
X# Date Created: 2006-05-04
X# Whom: Shaun Amott <shaun at inerd.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mysql
XPORTVERSION= 1.0
XCATEGORIES= databases
XMASTER_SITES= https://support.process-one.net/doc/download/attachments/415/ \
X http://mirror.inerd.com/FreeBSD/distfiles/erlang-mysql/
XPKGNAMEPREFIX= erlang-
XDISTNAME= ${PORTNAME}
X
XMAINTAINER= shaun at inerd.com
XCOMMENT= Native MySQL driver for Erlang
X
XBUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XERLC?= erlc
XERLANGDIR?= ${PREFIX}/lib/erlang/lib
X
XPLIST_SUB= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \
X ERLANGDIR=${ERLANGDIR:S/^${PREFIX}\///}
X
X.include <bsd.port.pre.mk>
X
Xdo-build:
X cd ${WRKSRC} && ${ERLC} *.erl
X
Xdo-install:
X @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/src
X @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/ebin
X @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/include
X
X cd ${WRKSRC} \
X && ${INSTALL_DATA} *.erl ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/src \
X && ${INSTALL_DATA} *.beam ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/ebin \
X && ${INSTALL_DATA} *.hrl ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/include
X
X.include <bsd.port.post.mk>
END-of-erlang-mysql/Makefile
echo x - erlang-mysql/pkg-plist
sed 's/^X//' >erlang-mysql/pkg-plist << 'END-of-erlang-mysql/pkg-plist'
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/mysql.erl
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/mysql_auth.erl
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/mysql_conn.erl
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/mysql_recv.erl
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/mysql.beam
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/mysql_auth.beam
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/mysql_conn.beam
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/mysql_recv.beam
X%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/include/mysql.hrl
X at dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src
X at dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin
X at dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/include
X at dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%
END-of-erlang-mysql/pkg-plist
exit
--- erlang-mysql.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list