diff --git a/src/lua51-event/.SRCINFO b/src/lua51-event/.SRCINFO new file mode 100644 index 0000000..98d327e --- /dev/null +++ b/src/lua51-event/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Thu Aug 4 18:14:40 UTC 2016 +pkgbase = lua51-event + pkgdesc = libevent binding for Lua + pkgver = 0.4.4 + pkgrel = 1 + url = https://github.com/harningt/luaevent + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + license = MIT + makedepends = lua51 + makedepends = lua51-socket + depends = libevent>=1.4 + source = luaevent-0.4.4.tar.gz::https://github.com/harningt/luaevent/archive/v0.4.4.tar.gz + sha256sums = 242c95b9cacd87201aa35ba618eb1cd0b0e2a7d1a8fc6734c0bc06dd742e2455 + +pkgname = lua51-event + diff --git a/src/lua51-event/.gitignore b/src/lua51-event/.gitignore new file mode 100644 index 0000000..e92d375 --- /dev/null +++ b/src/lua51-event/.gitignore @@ -0,0 +1,6 @@ +/pkg/ +/src/ + +*.tar.gz +*.tar.xz + diff --git a/src/lua51-event/PKGBUILD b/src/lua51-event/PKGBUILD new file mode 100644 index 0000000..793bfd2 --- /dev/null +++ b/src/lua51-event/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Dwayne Bent +# Contributor: Timothée Ravier + +pkgname=lua51-event +_pkgbase=luaevent +pkgver=0.4.4 +pkgrel=1 +pkgdesc="libevent binding for Lua" +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +url="https://github.com/harningt/luaevent" +license=('MIT') +makedepends=('lua51' 'lua51-socket') +depends=('libevent>=1.4') +source=(${_pkgbase}-${pkgver}.tar.gz::https://github.com/harningt/${_pkgbase}/archive/v${pkgver}.tar.gz) +sha256sums=('242c95b9cacd87201aa35ba618eb1cd0b0e2a7d1a8fc6734c0bc06dd742e2455') + +build() { + cd ${_pkgbase}-${pkgver} + make LUA_INC_DIR=/usr/include/lua5.1 +} + +package() { + cd ${_pkgbase}-${pkgver} + make INSTALL_DIR_BIN='/usr/lib/lua/5.1' \ + INSTALL_DIR_LUA='/usr/share/lua/5.1' \ + DESTDIR="${pkgdir}" \ + install +} + diff --git a/src/luaunbound/.SRCINFO b/src/luaunbound/.SRCINFO new file mode 100644 index 0000000..e4349e6 --- /dev/null +++ b/src/luaunbound/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = luaunbound + pkgdesc = drop-in replacement for Prosodys internal DNS library with a binding to libunbound + pkgver = 2016.01.10 + pkgrel = 2 + url = https://www.zash.se/luaunbound.html + install = luaunbound.install + arch = i686 + arch = x86_64 + license = custom:MIT + makedepends = mercurial + makedepends = unbound + makedepends = lua + depends = unbound + optdepends = luajit: jit for lua + source = luaunbound::hg+https://code.zash.se/luaunbound + sha512sums = SKIP + +pkgname = luaunbound + diff --git a/src/luaunbound/PKGBUILD b/src/luaunbound/PKGBUILD new file mode 100644 index 0000000..60f4edb --- /dev/null +++ b/src/luaunbound/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: fordprefect +# Contributor: jhass +pkgname=luaunbound +pkgver=2016.01.10 +pkgrel=3 +pkgdesc="drop-in replacement for Prosodys internal DNS library with a binding to libunbound" +url="https://www.zash.se/luaunbound.html" +arch=('i686' 'x86_64') +license=('custom:MIT') +depends=("unbound") +makedepends=("mercurial" "unbound" "lua") +optdepends=("luajit: jit for lua") +install=luaunbound.install +source=("${pkgname}::hg+https://code.zash.se/luaunbound" "use_cc.patch") +sha512sums=('SKIP' + '6b11dfe9f5de743f101463fb3fb2144fe3aff75e7e19036f67d0e0b8adc8c36db73cf73d0aba483d651f8f5b2773093adc27e788354b165314c777e8de45bf28') + +prepare() { + cd "$srcdir/$pkgname" + # fixed commit + hg checkout f270a1cf86ce + patch -p1 < "$srcdir/use_cc.patch" +} + +build() { + cd "$srcdir/$pkgname" + make all +} + +package() { + cd "$srcdir/$pkgname" + install -Dm644 use_unbound.lua "$pkgdir/etc/prosody/use_unbound.lua" + install -Dm755 lunbound.so "$pkgdir/usr/lib/prosody/util/lunbound.so" + install -Dm644 README.markdown "$pkgdir/usr/share/doc/luaunbound/README" + install -Dm444 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/src/luaunbound/luaunbound.install b/src/luaunbound/luaunbound.install new file mode 100644 index 0000000..c267b58 --- /dev/null +++ b/src/luaunbound/luaunbound.install @@ -0,0 +1,5 @@ +post_install(){ + echo "To enable luaunbound, add the following to the global section of your 'prosody.cfg.lua':" + echo "RunScript 'use\_unbound.lua'" + echo "More config info can be found in /usr/share/doc/luaunbound/README" +} diff --git a/src/luaunbound/use_cc.patch b/src/luaunbound/use_cc.patch new file mode 100644 index 0000000..85ffab9 --- /dev/null +++ b/src/luaunbound/use_cc.patch @@ -0,0 +1,12 @@ +diff -r f270a1cf86ce Makefile +--- a/Makefile Sun Jan 10 19:49:52 2016 +0100 ++++ b/Makefile Mon Jun 20 15:34:28 2016 +0200 +@@ -33,7 +33,7 @@ + xsltproc root-anchors.xsl root-anchors.xml > $@ + + %.so: %.o +- $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) ++ $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) + + install: + install -d $(DESTDIR)$(LUA_LIBDIR)/ diff --git a/src/prosody-mod-s2s-auth-dane/.SRCINFO b/src/prosody-mod-s2s-auth-dane/.SRCINFO new file mode 100644 index 0000000..0dd1e86 --- /dev/null +++ b/src/prosody-mod-s2s-auth-dane/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = prosody-mod-s2s-auth-dane + pkgdesc = implements DANE as server to server authentication for prosody xmpp server + pkgver = 2016.06.01 + pkgrel = 1 + url = https://modules.prosody.im/mod_s2s_auth_dane.html + arch = any + license = MIT + depends = prosody + depends = lua-sec + optdepends = luaunbound: unbound bindings for DNSSEC-aware resolving + source = https://hg.prosody.im/prosody-modules/raw-file/90a444ccaa8e/mod_s2s_auth_dane/mod_s2s_auth_dane.lua + md5sums = 75bfc61a73197b5bd3964cd27a0fc156 + +pkgname = prosody-mod-s2s-auth-dane + diff --git a/src/prosody-mod-s2s-auth-dane/PKGBUILD b/src/prosody-mod-s2s-auth-dane/PKGBUILD new file mode 100644 index 0000000..98a0430 --- /dev/null +++ b/src/prosody-mod-s2s-auth-dane/PKGBUILD @@ -0,0 +1,17 @@ +# Maintainer: fordprefect +pkgname=prosody-mod-s2s-auth-dane +pkgver=2016.06.01 +_commit=90a444ccaa8e +pkgrel=1 +pkgdesc="implements DANE as server to server authentication for prosody xmpp server" +url="https://modules.prosody.im/mod_s2s_auth_dane.html" +arch=('any') +license=('MIT') +depends=("prosody" "lua-sec") +optdepends=("luaunbound: unbound bindings for DNSSEC-aware resolving") +source=("https://hg.prosody.im/prosody-modules/raw-file/$_commit/mod_s2s_auth_dane/mod_s2s_auth_dane.lua") +md5sums=('75bfc61a73197b5bd3964cd27a0fc156') + +package() { + install -Dm 644 "mod_s2s_auth_dane.lua" "${pkgdir}/usr/lib/prosody/modules/mod_s2s_auth_dane.lua" +}