]> granicus.if.org Git - pdns/commitdiff
Move lmdb-safe files to ext/lmdb-safe/
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 14 Aug 2019 13:57:39 +0000 (15:57 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 14 Aug 2019 13:57:39 +0000 (15:57 +0200)
18 files changed:
ext/lmdb-safe/.gitignore [new file with mode: 0644]
ext/lmdb-safe/LICENSE [new file with mode: 0644]
ext/lmdb-safe/Makefile.am [new file with mode: 0644]
ext/lmdb-safe/lmdb-safe.cc [moved from pdns/lmdb-safe.cc with 100% similarity]
ext/lmdb-safe/lmdb-safe.hh [moved from pdns/lmdb-safe.hh with 100% similarity]
ext/lmdb-safe/lmdb-typed.cc [moved from modules/lmdbbackend/lmdb-typed.cc with 100% similarity]
ext/lmdb-safe/lmdb-typed.hh [moved from modules/lmdbbackend/lmdb-typed.hh with 99% similarity]
modules/lmdbbackend/Makefile.am
modules/lmdbbackend/OBJECTFILES
modules/lmdbbackend/lmdbbackend.hh
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/dnsdist-kvs.hh
pdns/dnsdistdist/ext/lmdb-safe/LICENSE [new symlink]
pdns/dnsdistdist/ext/lmdb-safe/Makefile.am [new symlink]
pdns/dnsdistdist/ext/lmdb-safe/lmdb-safe.cc [new symlink]
pdns/dnsdistdist/ext/lmdb-safe/lmdb-safe.hh [new symlink]
pdns/dnsdistdist/lmdb-safe.cc [deleted symlink]
pdns/dnsdistdist/lmdb-safe.hh [deleted symlink]

diff --git a/ext/lmdb-safe/.gitignore b/ext/lmdb-safe/.gitignore
new file mode 100644 (file)
index 0000000..282522d
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/ext/lmdb-safe/LICENSE b/ext/lmdb-safe/LICENSE
new file mode 100644 (file)
index 0000000..47216d4
--- /dev/null
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 bert hubert
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/ext/lmdb-safe/Makefile.am b/ext/lmdb-safe/Makefile.am
new file mode 100644 (file)
index 0000000..452f220
--- /dev/null
@@ -0,0 +1,8 @@
+EXTRA_DIST = \
+        LICENSE
+
+noinst_LTLIBRARIES = liblmdb-safe.la
+
+liblmdb-safe_la_SOURCES = \
+        lmdb-safe.cc lmdb-safe.hh \
+        lmdb-typed.cc lmdb-typed.hh
similarity index 100%
rename from pdns/lmdb-safe.cc
rename to ext/lmdb-safe/lmdb-safe.cc
similarity index 100%
rename from pdns/lmdb-safe.hh
rename to ext/lmdb-safe/lmdb-safe.hh
similarity index 99%
rename from modules/lmdbbackend/lmdb-typed.hh
rename to ext/lmdb-safe/lmdb-typed.hh
index d9d6f17fbeb45d323d1b409b63da7d163d34b1b1..e6da3dd7d21d9397c645545bcf270d4ebc887f81 100644 (file)
@@ -1,6 +1,6 @@
 #pragma once
 #include <iostream>
-#include "pdns/lmdb-safe.hh"
+#include "lmdb-safe.hh"
 #include <boost/archive/binary_oarchive.hpp>
 #include <boost/archive/binary_iarchive.hpp>
 #include <boost/serialization/vector.hpp>
index 0ad0eb2cfd69f7c02fa0e933725c942636b2b23b..b234c2a63f6b15c8bf71864ec593a28e8b294f2d 100644 (file)
@@ -4,7 +4,8 @@ pkglib_LTLIBRARIES = liblmdbbackend.la
 
 EXTRA_DIST = OBJECTFILES OBJECTLIBS
 
-liblmdbbackend_la_SOURCES = lmdbbackend.cc lmdbbackend.hh lmdb-typed.hh lmdb-typed.cc \
-       ../../pdns/lmdb-safe.hh ../../pdns/lmdb-safe.cc
+liblmdbbackend_la_SOURCES = lmdbbackend.cc lmdbbackend.hh \
+       ../../ext/lmdb-safe/lmdb-typed.hh ../../ext/lmdb-safe/lmdb-typed.cc \
+       ../../ext/lmdb-safe/lmdb-safe.hh ../../ext/lmdb-safe/lmdb-safe.cc
 liblmdbbackend_la_LDFLAGS = -module -avoid-version
 liblmdbbackend_la_LIBADD = $(LMDB_LIBS) $(BOOST_SERIALIZATION_LIBS)
index cb9c8d7b92c36b01a0e2a902aa0b597b6226bfc7..892bbe5bfbceda7e6673a1801daaad5a57087794 100644 (file)
@@ -1 +1 @@
-lmdbbackend.lo lmdb-typed.lo ../../pdns/lmdb-safe.lo
+lmdbbackend.lo ../../ext/lmdb-safe/lmdb-typed.lo ../../ext/lmdb-safe/lmdb-safe.lo
index fa51d0d83fd1e5a96c066ed2fdc19ebc02f83ff9..19604b6ef4c828ac02e9423bebce0efeae76eccc 100644 (file)
@@ -1,6 +1,6 @@
 #pragma once
 #include "pdns/dnsbackend.hh"
-#include "lmdb-typed.hh"
+#include "ext/lmdb-safe/lmdb-typed.hh"
 
 template<class T, typename std::enable_if<std::is_same<T, DNSName>::value,T>::type* = nullptr>
 std::string keyConv(const T& t)
index 7ea3678d09bde870dd7f4d8910f8e83b42c1e991..1cbe7598aeb7f5309b9f5f4b572ee0997ce7ff78 100644 (file)
@@ -277,8 +277,8 @@ endif
 if HAVE_LMDB
 dnsdist_LDADD += $(LMDB_LDFLAGS) $(LMDB_LIBS)
 testrunner_LDADD += $(LMDB_LDFLAGS) $(LMDB_LIBS)
-dnsdist_SOURCES += lmdb-safe.cc lmdb-safe.hh
-testrunner_SOURCES += lmdb-safe.cc lmdb-safe.hh
+dnsdist_SOURCES += ext/lmdb-safe/lmdb-safe.cc ext/lmdb-safe/lmdb-safe.hh
+testrunner_SOURCES += ext/lmdb-safe/lmdb-safe.cc ext/lmdb-safe/lmdb-safe.hh
 endif
 
 if HAVE_DNS_OVER_TLS
index c9cd7fc2afc705c47aae543d1e97d888a2ba259a..14f0dad1dc1d20f8737491ca1bb205d7714b0d02 100644 (file)
@@ -153,7 +153,7 @@ public:
 
 #ifdef HAVE_LMDB
 
-#include "lmdb-safe.hh"
+#include "ext/lmdb-safe/lmdb-safe.hh"
 
 class LMDBKVStore: public KeyValueStore
 {
diff --git a/pdns/dnsdistdist/ext/lmdb-safe/LICENSE b/pdns/dnsdistdist/ext/lmdb-safe/LICENSE
new file mode 120000 (symlink)
index 0000000..4853cdd
--- /dev/null
@@ -0,0 +1 @@
+../../../../ext/lmdb-safe/LICENSE
\ No newline at end of file
diff --git a/pdns/dnsdistdist/ext/lmdb-safe/Makefile.am b/pdns/dnsdistdist/ext/lmdb-safe/Makefile.am
new file mode 120000 (symlink)
index 0000000..4a66489
--- /dev/null
@@ -0,0 +1 @@
+../../../../ext/lmdb-safe/Makefile.am
\ No newline at end of file
diff --git a/pdns/dnsdistdist/ext/lmdb-safe/lmdb-safe.cc b/pdns/dnsdistdist/ext/lmdb-safe/lmdb-safe.cc
new file mode 120000 (symlink)
index 0000000..e37c98c
--- /dev/null
@@ -0,0 +1 @@
+../../../../ext/lmdb-safe/lmdb-safe.cc
\ No newline at end of file
diff --git a/pdns/dnsdistdist/ext/lmdb-safe/lmdb-safe.hh b/pdns/dnsdistdist/ext/lmdb-safe/lmdb-safe.hh
new file mode 120000 (symlink)
index 0000000..b805748
--- /dev/null
@@ -0,0 +1 @@
+../../../../ext/lmdb-safe/lmdb-safe.hh
\ No newline at end of file
diff --git a/pdns/dnsdistdist/lmdb-safe.cc b/pdns/dnsdistdist/lmdb-safe.cc
deleted file mode 120000 (symlink)
index bdc1219..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../lmdb-safe.cc
\ No newline at end of file
diff --git a/pdns/dnsdistdist/lmdb-safe.hh b/pdns/dnsdistdist/lmdb-safe.hh
deleted file mode 120000 (symlink)
index 4e3d388..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../lmdb-safe.hh
\ No newline at end of file