Add lua51-event luaunbound prosody-mod-s2s-auth-dane
This commit is contained in:
19
src/luaunbound/.SRCINFO
Normal file
19
src/luaunbound/.SRCINFO
Normal file
@@ -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
|
||||
|
36
src/luaunbound/PKGBUILD
Normal file
36
src/luaunbound/PKGBUILD
Normal file
@@ -0,0 +1,36 @@
|
||||
# Maintainer: fordprefect <fordprefect@dukun.de>
|
||||
# Contributor: jhass <me@jhass.eu>
|
||||
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"
|
||||
}
|
5
src/luaunbound/luaunbound.install
Normal file
5
src/luaunbound/luaunbound.install
Normal file
@@ -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"
|
||||
}
|
12
src/luaunbound/use_cc.patch
Normal file
12
src/luaunbound/use_cc.patch
Normal file
@@ -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)/
|
Reference in New Issue
Block a user