Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2008 05:48:32 GMT
From:      Sunghyuk Do <sunghyuk@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/121139: New port: databases/postgresql-pllua, lua procedural language for postgresql
Message-ID:  <200802270548.m1R5mW4H067585@www.freebsd.org>
Resent-Message-ID: <200802270600.m1R603cP079821@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121139
>Category:       ports
>Synopsis:       New port: databases/postgresql-pllua, lua procedural language for postgresql
>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:   Wed Feb 27 06:00:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Sunghyuk Do
>Release:        FreeBSD 6.3-PRERELEASE i386
>Organization:
Daum
>Environment:
FreeBSD sunghyuk-bsd 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Tue Dec 11 13:47:02 KST 2007
>Description:
PL/Lua is an implementation of Lua as a loadable procedural language for PostgreSQL
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	postgresql-pllua/
#	postgresql-pllua/Makefile
#	postgresql-pllua/files
#	postgresql-pllua/files/patch-Makefile
#	postgresql-pllua/files/pkg-message.in
#	postgresql-pllua/pkg-descr
#	postgresql-pllua/distinfo
#	postgresql-pllua/pkg-plist
#
echo c - postgresql-pllua/
mkdir -p postgresql-pllua/ > /dev/null 2>&1
echo x - postgresql-pllua/Makefile
sed 's/^X//' >postgresql-pllua/Makefile << 'END-of-postgresql-pllua/Makefile'
X# New Ports collection makefile for:  postgresql-pllua
X# Date created:    27 Feb 2008
X# Whom:            sunghyuk
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pllua
XPORTVERSION=	0.2.2
XCATEGORIES=	databases
XMASTER_SITES=	http://pgfoundry.org/frs/download.php/1602/
XPKGNAMEPREFIX=	postgresql-
X
XMAINTAINER=	sunghyuk@gmail.com
XCOMMENT=	PL/Lua procedural language for PostgreSQL database
X
XUSE_PGSQL=	yes
XUSE_GMAKE=	yes
XUSE_LUA=	5.1+
X
XSUB_FILES=	pkg-message
XPKGMESSAGE=	${WRKSRC}/pkg-message
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|%LUA_INC%|${LUA_INCDIR}|g' \
X			-e 's|%LUA_LIB%|${LUA_LIBDIR}|g' \
X			${WRKSRC}/Makefile
Xpost-install:
X	@${ECHO_MSG} ''
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_MSG} ''
X
X.include <bsd.port.mk>
END-of-postgresql-pllua/Makefile
echo c - postgresql-pllua/files
mkdir -p postgresql-pllua/files > /dev/null 2>&1
echo x - postgresql-pllua/files/patch-Makefile
sed 's/^X//' >postgresql-pllua/files/patch-Makefile << 'END-of-postgresql-pllua/files/patch-Makefile'
X--- Makefile.orig	2008-02-27 11:29:32.000000000 +0900
X+++ Makefile	2008-02-27 11:30:16.000000000 +0900
X@@ -4,8 +4,8 @@
X # Lua specific
X 
X # General
X-LUAINC =
X-LUALIB = -llua
X+LUAINC = -I%LUA_INC%
X+LUALIB = -L%LUA_LIB% -llua
X 
X # Debian/Ubuntu
X #LUAINC = -I/usr/include/lua5.1
END-of-postgresql-pllua/files/patch-Makefile
echo x - postgresql-pllua/files/pkg-message.in
sed 's/^X//' >postgresql-pllua/files/pkg-message.in << 'END-of-postgresql-pllua/files/pkg-message.in'
XUse the following sql script to create PL/Lua
X
X	ex) psql -f %%PREFIX%%/share/postgresql/contrib/pllua.sql <database>
END-of-postgresql-pllua/files/pkg-message.in
echo x - postgresql-pllua/pkg-descr
sed 's/^X//' >postgresql-pllua/pkg-descr << 'END-of-postgresql-pllua/pkg-descr'
XPL/Lua is an implementation of Lua as a loadable procedural language 
Xfor PostgreSQL: with PL/Lua you can use PostgreSQL functions and 
Xtriggers written in the Lua programming language.
X
XWWW: http://pllua.projects.postgresql.org/
END-of-postgresql-pllua/pkg-descr
echo x - postgresql-pllua/distinfo
sed 's/^X//' >postgresql-pllua/distinfo << 'END-of-postgresql-pllua/distinfo'
XMD5 (pllua-0.2.2.tar.gz) = 5d68a539fec0ea49bd08fa91698b9c8a
XSHA256 (pllua-0.2.2.tar.gz) = 2e7a5b970d2ea3b50ff1814460a0703ffb4cdd3a8e19a79a2e30fa82cbdf03ed
XSIZE (pllua-0.2.2.tar.gz) = 22345
END-of-postgresql-pllua/distinfo
echo x - postgresql-pllua/pkg-plist
sed 's/^X//' >postgresql-pllua/pkg-plist << 'END-of-postgresql-pllua/pkg-plist'
Xlib/postgresql/pllua.so
Xshare/postgresql/contrib/pllua.sql
X@dirrmtry lib/postgresql
X@dirrmtry share/postgresql/contrib
X@dirrmtry share/postgresql
END-of-postgresql-pllua/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802270548.m1R5mW4H067585>