From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/luasec/ChangeLog | 60 +++++++++++++++++++++++++++++++++++++++++++ community/luasec/PKGBUILD | 30 ++++++++++++++++++++++ community/luasec/luasec.patch | 27 +++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 community/luasec/ChangeLog create mode 100644 community/luasec/PKGBUILD create mode 100644 community/luasec/luasec.patch (limited to 'community/luasec') diff --git a/community/luasec/ChangeLog b/community/luasec/ChangeLog new file mode 100644 index 000000000..4a64bc6a7 --- /dev/null +++ b/community/luasec/ChangeLog @@ -0,0 +1,60 @@ +2010-02-15 Dwayne Bent + + * PKGBUILD: + Install license file + [ea00bf4731a9] [tip] + + * PKGBUILD: + Updated email address + [7dbb9017cecc] + +2009-12-19 Dwayne Bent + + * .hgtags: + Added tag v0.4-1 for changeset 91906cc7dfbd + [3c36a2298de6] + + * PKGBUILD, luasec.patch: + New upstream version + [91906cc7dfbd] [v0.4-1] + +2009-08-19 Dwayne Bent + + * .hgtags: + Added tag v0.3.3-1 for changeset 9635074f31a3 + [e6b3934bbbba] + + * PKGBUILD: + New upstream version + [9635074f31a3] [v0.3.3-1] + +2009-07-01 Dwayne Bent + + * PKGBUILD, luasec.patch: + Changed to using custom patch + [30893f6a9840] + + * PKGBUILD: + Added minimum versions to dependencies + [b538b6270f60] + +2009-05-22 Dwayne Bent + + * .hgtags: + Added tag v0.3.2-1 for changeset eacacff733b2 + [f93b17e1495c] + + * PKGBUILD: + New upstream version + [eacacff733b2] [v0.3.2-1] + +2009-05-11 Dwayne Bent + + * .hgtags: + Added tag v0.3.1-1 for changeset 9f9bd46fe838 + [9d25feaa12a5] + + * PKGBUILD: + Initial commit. + [9f9bd46fe838] [v0.3.1-1] + diff --git a/community/luasec/PKGBUILD b/community/luasec/PKGBUILD new file mode 100644 index 000000000..893559266 --- /dev/null +++ b/community/luasec/PKGBUILD @@ -0,0 +1,30 @@ +# $Id$ +# Maintainer: Sergej Pupykin +# Maintainer: Dwayne Bent +# Contributor: Paul-Sebastian Manole + +pkgname=luasec +pkgver=0.4 +pkgrel=2 +pkgdesc="Lua bindings for OpenSSL library to provide TLS/SSL communication." +arch=('i686' 'x86_64') +url="http://luasec.luaforge.net/" +license=('MIT') +depends=('openssl>=0.9.7' 'lua>=5.1' 'luasocket>=2.0.2') +source=("http://www.inf.puc-rio.br/~brunoos/luasec/download/$pkgname-$pkgver.tar.gz" + 'luasec.patch') +md5sums=('712158d60207bdbb6215fc7e07d8db24' + '6f607af3351454754762421b27afe7f6') + +build() { + install -d "$pkgdir/usr/share/lua/5.1" || return 1 + install -d "$pkgdir/usr/lib/lua/5.1" || return 1 + install -d "$pkgdir/usr/share/licenses/$pkgname" || return 1 + + cd "$srcdir/$pkgname-$pkgver" + patch -p1 Makefile "$startdir/luasec.patch" || return 1 + make linux || return 1 + make DESTDIR=$pkgdir install || return 1 + + install -m644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 +} diff --git a/community/luasec/luasec.patch b/community/luasec/luasec.patch new file mode 100644 index 000000000..96035df7a --- /dev/null +++ b/community/luasec/luasec.patch @@ -0,0 +1,27 @@ +--- Makefile.orig 2009-12-19 14:54:45.000000000 -0500 ++++ Makefile 2009-12-19 14:57:22.000000000 -0500 +@@ -1,11 +1,11 @@ + # Inform the location to intall the modules +-LUAPATH=/usr/local/share/lua/5.1 +-LUACPATH=/usr/local/lib/lua/5.1 ++LUAPATH=/usr/share/lua/5.1 ++LUACPATH=/usr/lib/lua/5.1 + + # Edit the lines below to inform new path, if necessary + # +-#INCDIR=-I/usr/local/lua-5.1/include -I/usr/local/openssl-0.9.8/include +-#LIBDIR=-L/usr/local/openssl-0.9.8/lib -R/usr/local/openssl-0.9.8/lib ++INCDIR=-I/usr/include -I/usr/include/openssl ++LIBDIR=-L/usr/lib -R/usr/lib + + # For Mac OS X: set the system version + MACOSX_VERSION=10.4 +@@ -26,7 +26,7 @@ + @echo " * macosx" + + install: +- @cd src ; $(MAKE) LUACPATH="$(LUACPATH)" LUAPATH="$(LUAPATH)" install ++ @cd src ; $(MAKE) LUACPATH="$(DESTDIR)$(LUACPATH)" LUAPATH="$(DESTDIR)$(LUAPATH)" install + + linux: + @echo "---------------------" -- cgit v1.2.3-54-g00ecf