--- /dev/null
+#launch+=lua2
+
+## lua2-api Lua backend API version
+#lua2-api=2
+
+## lua2-filename Filename of the script for lua backend
+#lua2-filename=powerdns-luabackend.lua
+
+## lua2-query-logging Logging of the Lua2 Backend
+#lua2-query-logging=no
.
This package contains the Lua backend for PowerDNS.
+Package: pdns-backend-lua2
+Architecture: any
+Depends: pdns-server (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Provides: pdns-backend
+Description: Lua backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains the Lua2 backend for PowerDNS.
+
Package: pdns-backend-remote
Architecture: any
Depends: pdns-server (= ${binary:Version}),
--- /dev/null
+debian/config/pdns.local.lua2.conf
--- /dev/null
+usr/lib/*/pdns/liblua2backend.so*
--- /dev/null
+#!/bin/sh
+#
+# postinst script for pdns-backend-lua2
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+ echo "now debugging $0 $@"
+ set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- /dev/null
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+ invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# Backends
-backends := bind ldap pipe gmysql godbc gpgsql gsqlite3 geoip lua mydns remote random opendbx tinydns
+backends := bind ldap pipe gmysql godbc gpgsql gsqlite3 geoip lua lua2 mydns remote random opendbx tinydns
# Disable systemd integration on non-linux archs
ifeq ($(DEB_HOST_ARCH_OS),linux)
--- /dev/null
+#launch+=lua2
+
+## lua2-api Lua backend API version
+#lua2-api=2
+
+## lua2-filename Filename of the script for lua backend
+#lua2-filename=powerdns-luabackend.lua
+
+## lua2-query-logging Logging of the Lua2 Backend
+#lua2-query-logging=no
.
This package contains the Lua backend for PowerDNS.
+Package: pdns-backend-lua2
+Architecture: any
+Depends: pdns-server (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Provides: pdns-backend
+Description: Lua backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains the Lua2 backend for PowerDNS.
+
Package: pdns-backend-remote
Architecture: any
Depends: pdns-server (= ${binary:Version}),
--- /dev/null
+debian/config/pdns.local.lua2.conf
--- /dev/null
+usr/lib/*/pdns/liblua2backend.so*
--- /dev/null
+#!/bin/sh
+#
+# postinst script for pdns-backend-lua2
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+ echo "now debugging $0 $@"
+ set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- /dev/null
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+ invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# Backends
-backends := bind ldap pipe gmysql godbc gpgsql gsqlite3 geoip lua mydns remote random opendbx tinydns
+backends := bind ldap pipe gmysql godbc gpgsql gsqlite3 geoip lua lua2 mydns remote random opendbx tinydns
# Disable systemd integration on non-linux archs
ifeq ($(DEB_HOST_ARCH_OS),linux)
--- /dev/null
+#launch+=lua2
+
+## lua2-api Lua backend API version
+#lua2-api=2
+
+## lua2-filename Filename of the script for lua backend
+#lua2-filename=powerdns-luabackend.lua
+
+## lua2-query-logging Logging of the Lua2 Backend
+#lua2-query-logging=no
.
This package contains the Lua backend for PowerDNS.
+Package: pdns-backend-lua2
+Architecture: any
+Depends: pdns-server (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Provides: pdns-backend
+Description: Lua backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains the Lua2 backend for PowerDNS.
+
Package: pdns-backend-remote
Architecture: any
Depends: pdns-server (= ${binary:Version}),
--- /dev/null
+debian/config/pdns.local.lua2.conf
--- /dev/null
+usr/lib/*/pdns/liblua2backend.so*
--- /dev/null
+#!/bin/sh
+#
+# postinst script for pdns-backend-lua2
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+ echo "now debugging $0 $@"
+ set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- /dev/null
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+ invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# Backends
-backends := bind ldap pipe gmysql godbc gpgsql gsqlite3 geoip lua mydns remote random opendbx tinydns
+backends := bind ldap pipe gmysql godbc gpgsql gsqlite3 geoip lua lua2 mydns remote random opendbx tinydns
# Use new build system
# This defines the dstribution base layer
# Put only the bare minimum of common commands here, without dev tools
FROM centos:6 as dist-base
-RUN yum install -y epel-release centos-release-scl-rh && \
+RUN which yum
+RUN yum clean all
+RUN yum install -y --verbose epel-release centos-release-scl-rh && \
yum install -y --nogpgcheck devtoolset-3-gcc-c++
# Do the actual rpm build
%description backend-lua
This package contains the lua backend for %{name}
+%package backend-lua2
+Summary: Lua backend for %{name}
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}
+%global backends %{backends} lua2
+
+%description backend-lua2
+This package contains the lua2 backend for %{name}
+
%package backend-sqlite
Summary: SQLite backend for %{name}
Group: System Environment/Daemons
%files backend-lua
%{_libdir}/%{name}/libluabackend.so
+%files backend-lua2
+%{_libdir}/%{name}/liblua2backend.so
+
%files backend-sqlite
%doc modules/gsqlite3backend/schema.sqlite3.sql
%doc modules/gsqlite3backend/dnssec-3.x_to_3.4.0_schema.sqlite3.sql