[gentoo-commits] repo/gentoo:master commit in: net-dns/knot/, net-dns/knot/files/

2017-08-22 Thread Michał Górny
commit: 876e8830edfffb6579136f527f5914630b145744
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Wed Aug 16 14:27:11 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Aug 22 09:07:04 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=876e8830

net-dns/knot: add upstreamed MIPS compatibility patch

 net-dns/knot/files/2.5.3-link-with-libatomic.patch | 117 +
 net-dns/knot/knot-2.5.3-r1.ebuild  |   4 +
 2 files changed, 121 insertions(+)

diff --git a/net-dns/knot/files/2.5.3-link-with-libatomic.patch 
b/net-dns/knot/files/2.5.3-link-with-libatomic.patch
new file mode 100644
index 000..14e5366f7d9
--- /dev/null
+++ b/net-dns/knot/files/2.5.3-link-with-libatomic.patch
@@ -0,0 +1,117 @@
+From 5cf2d1acf87fa0ab18375534ca210f1cabf212b3 Mon Sep 17 00:00:00 2001
+From: Pierre-Olivier Mercier 
+Date: Wed, 2 Aug 2017 23:16:43 +0200
+Subject: [PATCH] Link with libatomic on architectures that requires it
+
+---
+ configure.ac| 10 +-
+ src/Makefile.am |  2 +-
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 2a28214..5bd1798 100644
+--- a/configure.ac
 b/configure.ac
+@@ -504,8 +504,16 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], 
[[cpuset_t* set = cpuset
+ AC_COMPILE_IFELSE(
+   [AC_LANG_PROGRAM([[#include ]],
+[[uint64_t val = 0; __atomic_add_fetch(, 1, 
__ATOMIC_RELAXED);]])],
+-  [AC_DEFINE(HAVE_ATOMIC, 1, [Define to 1 if you have '__atomic' functions.])]
++  [AC_DEFINE(HAVE_ATOMIC, 1, [Define to 1 if you have '__atomic' functions.])
++AC_LINK_IFELSE(
++ [AC_LANG_PROGRAM([[#include ]],
++  [[uint64_t val = 0; __atomic_add_fetch(, 1, 
__ATOMIC_RELAXED);]])],
++ [atomic_LIBS=""],
++ [atomic_LIBS="-latomic"]
++  )],
++  [atomic_LIBS=""]
+ )
++AC_SUBST([atomic_LIBS])
+ 
+ # Prepare CFLAG_VISIBILITY to be used where needed
+ gl_VISIBILITY()
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 948912e..bf28013 100644
+--- a/src/Makefile.am
 b/src/Makefile.am
+@@ -399,7 +399,7 @@ libknotd_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) 
$(systemd_CFLAGS) \
+$(liburcu_CFLAGS) -DKNOTD_MOD_STATIC
+ libknotd_la_LDFLAGS  = $(AM_LDFLAGS) -export-symbols-regex '^knotd_'
+ libknotd_la_LIBADD   = libknot.la zscanner/libzscanner.la $(systemd_LIBS) \
+-   $(liburcu_LIBS)
++   $(liburcu_LIBS) $(atomic_LIBS)
+ 
+ ###
+ # Knot DNS Daemon #
+--- a/src/Makefile.in  2017-08-05 18:09:14.029882010 +0200
 b/src/Makefile.in  2017-08-05 18:12:43.541190937 +0200
+@@ -379,7 +379,7 @@
+ @STATIC_MODULE_dnstap_TRUE@   contrib/dnstap/libdnstap.la
+ libknotd_la_DEPENDENCIES = libknot.la zscanner/libzscanner.la \
+   $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+-  $(am__DEPENDENCIES_2)
++  $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2)
+ am__libknotd_la_SOURCES_DIST = knot/conf/base.c knot/conf/base.h \
+   knot/conf/conf.c knot/conf/conf.h knot/conf/confdb.c \
+   knot/conf/confdb.h knot/conf/confio.c knot/conf/confio.h \
+@@ -937,6 +937,7 @@
+ am__quote = @am__quote@
+ am__tar = @am__tar@
+ am__untar = @am__untar@
++atomic_LIBS = @atomic_LIBS@
+ bindir = @bindir@
+ build = @build@
+ build_alias = @build_alias@
+@@ -1275,7 +1276,8 @@
+   $(am__append_11)
+ libknotd_la_LDFLAGS = $(AM_LDFLAGS) -export-symbols-regex '^knotd_'
+ libknotd_la_LIBADD = libknot.la zscanner/libzscanner.la \
+-  $(systemd_LIBS) $(liburcu_LIBS) $(am__append_12)
++  $(systemd_LIBS) $(liburcu_LIBS) $(atomic_LIBS) \
++  $(am__append_12)
+ @HAVE_DAEMON_TRUE@sbin_SCRIPTS = utils/pykeymgr/pykeymgr
+ @HAVE_DAEMON_TRUE@CLEAN_FILES = $(sbin_SCRIPTS)
+ @HAVE_DAEMON_TRUE@knotddir = $(includedir)/knot
+--- a/configure2017-08-05 18:09:14.039882551 +0200
 b/configure2017-08-05 18:12:18.779857706 +0200
+@@ -655,6 +655,7 @@
+ CODE_COVERAGE_ENABLED_TRUE
+ HAVE_VISIBILITY
+ CFLAG_VISIBILITY
++atomic_LIBS
+ libidn_LIBS
+ libidn_CFLAGS
+ libidn2_LIBS
+@@ -16347,10 +16358,32 @@
+ 
+ $as_echo "#define HAVE_ATOMIC 1" >>confdefs.h
+ 
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include 
++int
++main ()
++{
++uint64_t val = 0; __atomic_add_fetch(, 1, __ATOMIC_RELAXED);
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_link "$LINENO"; then :
++  atomic_LIBS=""
++else
++  atomic_LIBS="-latomic"
++
++fi
++rm -f core conftest.err conftest.$ac_objext \
++conftest$ac_exeext conftest.$ac_ext
++else
++  atomic_LIBS=""
+ 
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ 
++
+ # Prepare CFLAG_VISIBILITY to be used where needed
+ 
+ 

diff --git a/net-dns/knot/knot-2.5.3-r1.ebuild 
b/net-dns/knot/knot-2.5.3-r1.ebuild
index 1913ab2364d..82772faaabb 100644
--- a/net-dns/knot/knot-2.5.3-r1.ebuild
+++ b/net-dns/knot/knot-2.5.3-r1.ebuild
@@ -47,6 +47,10 @@ 

[gentoo-commits] repo/gentoo:master commit in: net-dns/knot/, net-dns/knot/files/

2016-10-15 Thread Patrice Clement
commit: eea282ad74f5640e9775e785e68b0f05e1fb3a94
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Fri Oct 14 09:43:27 2016 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Sat Oct 15 15:08:24 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eea282ad

net-dns/knot: version bump to 2.3.1.

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2552
Signed-off-by: Patrice Clement  gentoo.org>

 net-dns/knot/Manifest  |   2 +-
 ...ire-format-when-writing-FNV64-hash-values.patch | 216 -
 .../knot/{knot-2.3.0.ebuild => knot-2.3.1.ebuild}  |   8 +-
 3 files changed, 3 insertions(+), 223 deletions(-)

diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
index 6193b8c..bbe30e5 100644
--- a/net-dns/knot/Manifest
+++ b/net-dns/knot/Manifest
@@ -1 +1 @@
-DIST knot-2.3.0.tar.xz 1066852 SHA256 
8abf9a6562ecf2f7f4222d16ca6c75463399870db360eda7caa40530b469533c SHA512 
28f0f6a00af3feb95ebd9af0c324ffeff1093f8e74136ce81f5a6e7f4434f22b9e371715b4b116de9b8faf39776be4d943c2ae09fb786e6061cc0394a767e8b6
 WHIRLPOOL 
b0cc054c79d6b2ef7e9e0c2dba727042d92d235a08a0b15c56189c06f69087aee36d21947e1bf33304bbe0834d50421e9f01a4b4d7597aed05ed1b552c5ea52c
+DIST knot-2.3.1.tar.xz 1072808 SHA256 
42e4ec64dc8f017329d1753eb074a5759d6bb380e1f2a272101adccc0552f9b4 SHA512 
10d8c09d7cce88aba95b067da9b138af710864de4ef9c00d7ab165b4aca621d9ff15a49b5102e0cdd7bfb14e2806ed8587fd138b6e6af74a01e26e6d6ffe1163
 WHIRLPOOL 
70cdb9434a80c56b7e425b1aa3389ae22c9dea289a8081464be21abf6afebc46a9bffaa6363955a01aa3aa1bea3a71e46ef75dfce77c7e0a63dcd3c8622287c0

diff --git 
a/net-dns/knot/files/2.3.0-added-conversion-to-wire-format-when-writing-FNV64-hash-values.patch
 
b/net-dns/knot/files/2.3.0-added-conversion-to-wire-format-when-writing-FNV64-hash-values.patch
deleted file mode 100644
index 60667ab..
--- 
a/net-dns/knot/files/2.3.0-added-conversion-to-wire-format-when-writing-FNV64-hash-values.patch
+++ /dev/null
@@ -1,216 +0,0 @@
-From 84849be189c49ef9556bd84d5e5103317372e8a7 Mon Sep 17 00:00:00 2001
-From: Karel Slany 
-Date: Thu, 11 Aug 2016 11:39:39 +0200
-Subject: [PATCH] Added conversion to wire format when writing FNV64 hash 
values.
-
-Test on big-endian machines have been failing.

- src/libknot/cookies/alg-fnv64.c |  6 +++---
- tests/libknot/test_cookies-client.c | 20 ++--
- tests/libknot/test_cookies-server.c | 20 ++--
- 3 files changed, 23 insertions(+), 23 deletions(-)
-
-diff --git a/src/libknot/cookies/alg-fnv64.c b/src/libknot/cookies/alg-fnv64.c
-index 9989a4f..5e263c1 100644
 a/src/libknot/cookies/alg-fnv64.c
-+++ b/src/libknot/cookies/alg-fnv64.c
-@@ -17,10 +17,10 @@
- #include 
- #include 
- #include 
--#include 
- 
- #include "contrib/fnv/fnv.h"
- #include "contrib/sockaddr.h"
-+#include "contrib/wire.h"
- #include "libknot/attribute.h"
- #include "libknot/cookies/alg-fnv64.h"
- #include "libknot/rrtype/opt-cookie.h"
-@@ -80,7 +80,7 @@ static uint16_t cc_gen_fnv64(const struct knot_cc_input 
*input,
-   assert(KNOT_OPT_COOKIE_CLNT == sizeof(hash_val));
- 
-   cc_len = sizeof(hash_val);
--  memcpy(cc_out, _val, cc_len);
-+  wire_write_u64(cc_out, hash_val);
- 
-   return cc_len;
- }
-@@ -127,7 +127,7 @@ static uint16_t sc_gen_fnv64(const struct knot_sc_input 
*input,
-   assert(SRVR_FNV64_HASH_SIZE == sizeof(hash_val));
- 
-   hash_len = sizeof(hash_val);
--  memcpy(hash_out, _val, hash_len);
-+  wire_write_u64(hash_out, hash_val);
- 
-   return hash_len;
- }
-diff --git a/tests/libknot/test_cookies-client.c 
b/tests/libknot/test_cookies-client.c
-index 44be903..712dbba 100644
 a/tests/libknot/test_cookies-client.c
-+++ b/tests/libknot/test_cookies-client.c
-@@ -110,7 +110,7 @@ int main(int argc, char *argv[])
-   hash_len = knot_cc_alg_fnv64.gen_func(_in, hash, hash_len);
-   ok(hash_len != 0 && hash_len == knot_cc_alg_fnv64.cc_size, "cookies: 
FNV64 client cookie output");
-   {
--  uint8_t expected[] = { 0x74, 0x31, 0xf9, 0xa8, 0x03, 0xef, 
0x15, 0xb1 };
-+  uint8_t expected[] = { 0xb1, 0x15, 0xef, 0x03, 0xa8, 0xf9, 
0x31, 0x74 };
-   ok(sizeof(expected) == hash_len && 0 == memcmp(expected, hash, 
hash_len), "cookies: FNV64 client cookie content");
-   }
- 
-@@ -123,7 +123,7 @@ int main(int argc, char *argv[])
-   hash_len = knot_cc_alg_fnv64.gen_func(_in, hash, hash_len);
-   ok(hash_len != 0 && hash_len == knot_cc_alg_fnv64.cc_size, "cookies: 
FNV64 client cookie output");
-   {
--  uint8_t expected[] = { 0x7c, 0x62, 0x25, 0xd2, 0x43, 0xdd, 
0x09, 0xe7 };
-+  uint8_t expected[] = { 0xe7, 0x09, 0xdd, 0x43, 0xd2, 0x25, 
0x62, 0x7c };
-   ok(sizeof(expected) == hash_len && 0 == memcmp(expected, hash, 
hash_len), "cookies: FNV64 client cookie content");
-   }
- 
-@@ -136,7 +136,7 @@ int main(int argc, char 

[gentoo-commits] repo/gentoo:master commit in: net-dns/knot/, net-dns/knot/files/

2016-08-30 Thread Patrice Clement
commit: 71006dc98d472ee4b0842f4da61de340bc6903b4
Author: Pierre-Olivier Mercier  nemunai  re>
AuthorDate: Thu Aug 25 19:49:29 2016 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Tue Aug 30 16:32:10 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71006dc9

net-dns/knot: version bump + clean up.

* bump to EAPI=6
* call eapply_user
* generate only HTML documentation
* parallel testing have been fixed
* backport a patch fixing tests on big-endian arch

Gentoo-Bug: https://bugs.gentoo.org/581568
Gentoo-Bug: https://bugs.gentoo.org/588654
Gentoo-Bug: https://bugs.gentoo.org/589166
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2117

Signed-off-by: Patrice Clement  gentoo.org>

 net-dns/knot/Manifest  |   4 +-
 .../1.6.3-dont-create-extra-directories.patch  |  15 --
 .../2.0.2-dont-create-extra-directories.patch  |  15 --
 ...ire-format-when-writing-FNV64-hash-values.patch | 216 +
 net-dns/knot/files/knot-2.1.0-nettle.patch |  26 ---
 .../knot/{knot-1.6.6.ebuild => knot-1.6.8.ebuild}  |  45 ++---
 .../knot/{knot-2.1.0.ebuild => knot-2.3.0.ebuild}  |  48 ++---
 7 files changed, 247 insertions(+), 122 deletions(-)

diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
index 9c93d00..5fc7ed3 100644
--- a/net-dns/knot/Manifest
+++ b/net-dns/knot/Manifest
@@ -1,2 +1,2 @@
-DIST knot-1.6.6.tar.xz 793380 SHA256 
6ccae42b0878201e2113a048317bf518acad70fe436b04e24da32703d27edf03 SHA512 
ac8ab0feb45a584f6e68fda99c818502e48413a6e986c05fa63f9a62363d181b998d9ee19ff777a37fc1a0bdf6faa80eb5c15fddc4a2309223055ddc703d5597
 WHIRLPOOL 
5cd520404d2981435c9ecdbc55ef0f54268419fea0a01868f05ee6c67bb2248aad63473afed738b55ef1c3e67db15aedc2f30027b86df4f390c2296b8e77b07c
-DIST knot-2.1.0.tar.xz 999188 SHA256 
1f6ea98da000386bf86e015655a9ec974d361b62711caf06b55f3d9bb2aa85a9 SHA512 
303440fe9d7da86daecc484be6fe0956b6ebd3c55824018c30541767a24b856c8ef5a34a378d38cfaffafa1df7150cea77b2cb28b5bf1b7f97abf28c6d71caa7
 WHIRLPOOL 
6b44a4ae1e8eb3d8b114e166c148c5a0c6bceb63502080d62d7078a095040c91906d0e9e7a9ee813757247e7c14ef566d28997795e2de6753a63ac9c38944fbe
+DIST knot-1.6.8.tar.xz 806748 SHA256 
8d95dfd359fb187289d7d085e217d8fabb6022135d358134ed4165418a269237 SHA512 
ee205a0813729bea712b0ac550209538382a2f0a7698607c3baa045a345f08e118e1b927116ad00fa58939051db70a6b21e154259276f3647acc80edf043efc8
 WHIRLPOOL 
ed33ebdf99ba402b18550a880fb10e24f428108e297cb007d48ebbc0eea3f2e803034fe72052989e2eeb22859e3d47a5f93303b363bb50daddec868fd030e1a4
+DIST knot-2.3.0.tar.xz 1066852 SHA256 
8abf9a6562ecf2f7f4222d16ca6c75463399870db360eda7caa40530b469533c SHA512 
28f0f6a00af3feb95ebd9af0c324ffeff1093f8e74136ce81f5a6e7f4434f22b9e371715b4b116de9b8faf39776be4d943c2ae09fb786e6061cc0394a767e8b6
 WHIRLPOOL 
b0cc054c79d6b2ef7e9e0c2dba727042d92d235a08a0b15c56189c06f69087aee36d21947e1bf33304bbe0834d50421e9f01a4b4d7597aed05ed1b552c5ea52c

diff --git a/net-dns/knot/files/1.6.3-dont-create-extra-directories.patch 
b/net-dns/knot/files/1.6.3-dont-create-extra-directories.patch
deleted file mode 100644
index e8d84a1..
--- a/net-dns/knot/files/1.6.3-dont-create-extra-directories.patch
+++ /dev/null
@@ -1,15 +0,0 @@
 src/Makefile.in.orig   2015-05-03 16:34:53.177934984 +0200
-+++ src/Makefile.in2015-05-03 16:35:11.481325329 +0200
-@@ -2712,12 +2712,6 @@
-   uninstall-sbinPROGRAMS
- 
- 
--# Create storage and run-time directories
--install-data-hook:
--  $(INSTALL) -d $(DESTDIR)/@config_dir@
--  $(INSTALL) -d $(DESTDIR)/@run_dir@
--  $(INSTALL) -d $(DESTDIR)/@storage_dir@
--
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:

diff --git a/net-dns/knot/files/2.0.2-dont-create-extra-directories.patch 
b/net-dns/knot/files/2.0.2-dont-create-extra-directories.patch
deleted file mode 100644
index 538afec..
--- a/net-dns/knot/files/2.0.2-dont-create-extra-directories.patch
+++ /dev/null
@@ -1,15 +0,0 @@
 src/Makefile.in.orig   2015-05-10 20:59:26.854079700 +0200
-+++ src/Makefile.in2015-05-10 21:00:01.870857369 +0200
-@@ -3401,12 +3401,6 @@
-   uninstall-pkgconfigDATA uninstall-sbinPROGRAMS
- 
- 
--# Create storage and run-time directories
--@HAVE_DAEMON_TRUE@install-data-hook:
--@HAVE_DAEMON_TRUE@$(INSTALL) -d $(DESTDIR)/@config_dir@
--@HAVE_DAEMON_TRUE@$(INSTALL) -d $(DESTDIR)/@run_dir@
--@HAVE_DAEMON_TRUE@$(INSTALL) -d $(DESTDIR)/@storage_dir@
--
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:

diff --git 
a/net-dns/knot/files/2.3.0-added-conversion-to-wire-format-when-writing-FNV64-hash-values.patch
 
b/net-dns/knot/files/2.3.0-added-conversion-to-wire-format-when-writing-FNV64-hash-values.patch
new file mode 100644
index ..60667ab
--- /dev/null
+++ 

[gentoo-commits] repo/gentoo:master commit in: net-dns/knot/, net-dns/knot/files/

2015-12-09 Thread Ian Delaney
commit: 76519647495ea758a6ba3148362a6a89d15a1432
Author: Arc Riley  gmail  com>
AuthorDate: Sat Nov 28 05:25:40 2015 +
Commit: Ian Delaney  gentoo  org>
CommitDate: Sat Nov 28 11:26:54 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76519647

net-dns/knot: Version bump; remove old unstable version

 net-dns/knot/Manifest  |  3 ++-
 .../files/2.0.0_beta-spell-enable-vars-correctly.patch | 11 ---
 ...ies.patch => 2.0.2-dont-create-extra-directories.patch} |  0
 net-dns/knot/files/knot.service| 14 ++
 net-dns/knot/{knot-2.0.0_beta.ebuild => knot-2.0.2.ebuild} |  9 +
 5 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
index c375116..b11fd13 100644
--- a/net-dns/knot/Manifest
+++ b/net-dns/knot/Manifest
@@ -1,3 +1,4 @@
 DIST knot-1.5.3.tar.gz 1175445 SHA256 
8d82ad5b2c7162750dc40c57d45dcae2665171a862767a350379fe1c4e0afcdd SHA512 
4426ed136e5bcdb0d2b1729ab838418c880728a045dc1a40a6b6fc2a3b77ddcd7a375c8ec160efb6d009fc12eaf55587cf00af141f84d0bd1eb9cdac888fd445
 WHIRLPOOL 
dbc1f59e2f2801f61dfbff4f2fcdc33e72647226e300adc85e9b0febd996aaad9615da33e21ebe22f83c6bf4c52cbcb7ca3a60fef8b66a9339d08f255909f16d
 DIST knot-1.6.3.tar.xz 785052 SHA256 
48da608e29c2c1ef5937eb692f8ef0462ebb50fa7d128478a23e0a9788533e86 SHA512 
c39f74ec49ec13d845705a11cf4b5474f101687db5cc44be0c2c8347faacf2fe4436d684a3e96d99afedd8408da1c7b3ad39fa5dc7bc3e52dafc899ac3a04958
 WHIRLPOOL 
4d6ae6b05be05c5a0c11f707a2c438801e9e7570d1aa2e946f659d9ccec25728c972cfa6caf96ccedb34f95fa28f4e904179cc123f34a78889961902333ce0f5
-DIST knot-2.0.0-beta.tar.xz 939468 SHA256 
7ed997d15b523abcaede51d7ce3670a687d7658b96eb742b9dd87ac5d3e0e9af SHA512 
98c872eea28b00b5da52ff8c74c6cf1c88b11e3d68038126a76de99ae2b39c60430294382b14a530fc2912cad419a7d509386deb78b7faa64320cdec21a1bc36
 WHIRLPOOL 
3b505d757a7591d32e33a07e9a46cb210e886a566bed705b326ce4d5be18d62865fdf165a97e21c8ad756631a5a448ef9ded67bae0002047ad209d7dad2ab5b6
+DIST knot-2.0.2.tar.xz 958800 SHA256 
0418a22f9e801503993b3c872f2403bf73eab5ef7266128789b0531b41ea0c7e SHA512 
5bb36f01a2f39c97d1278be1bb1be60e842a75b3a0f2bc51651907ad937a42229f0df988a5e865de7f869011eb4ac836bda1c5d92c86357ac2556dcf8134b09f
 WHIRLPOOL 
f10c2e35d80b8f05959aec9c18360c9ffb7b3572eff278527131271695efd3ed03b1da52b523ef9330dcece17de6ca3314f59e29d18054c057f6ac1368e75308
+

diff --git a/net-dns/knot/files/2.0.0_beta-spell-enable-vars-correctly.patch 
b/net-dns/knot/files/2.0.0_beta-spell-enable-vars-correctly.patch
deleted file mode 100644
index 5861ee5..000
--- a/net-dns/knot/files/2.0.0_beta-spell-enable-vars-correctly.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 configure.orig 2015-05-10 19:25:43.365929384 +0200
-+++ configure  2015-05-10 19:26:00.452648532 +0200
-@@ -12833,7 +12833,7 @@
- if test "$enable_daemon" = "yes"; then :
- 
- 
--if test "$enable_system" != "no"; then :
-+if test "$enable_systemd" != "no"; then :
- 
-   case $enable_systemd in #(
-   auto) :

diff --git a/net-dns/knot/files/2.0.0_beta-dont-create-extra-directories.patch 
b/net-dns/knot/files/2.0.2-dont-create-extra-directories.patch
similarity index 100%
rename from net-dns/knot/files/2.0.0_beta-dont-create-extra-directories.patch
rename to net-dns/knot/files/2.0.2-dont-create-extra-directories.patch

diff --git a/net-dns/knot/files/knot.service b/net-dns/knot/files/knot.service
new file mode 100644
index 000..4684f9c
--- /dev/null
+++ b/net-dns/knot/files/knot.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Knot high-performance DNS Server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/knotd
+ExecReload=/usr/sbin/knotc reload
+ExecStop=/usr/sbin/knotc stop
+PrivateTmp=true
+RuntimeDirectory=knot
+RuntimeDirectoryMode=750
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-dns/knot/knot-2.0.0_beta.ebuild 
b/net-dns/knot/knot-2.0.2.ebuild
similarity index 90%
rename from net-dns/knot/knot-2.0.0_beta.ebuild
rename to net-dns/knot/knot-2.0.2.ebuild
index 0ed9ae0..deb9f03 100644
--- a/net-dns/knot/knot-2.0.0_beta.ebuild
+++ b/net-dns/knot/knot-2.0.2.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit eutils user
+inherit bash-completion-r1 eutils systemd user
 
 DESCRIPTION="High-performance authoritative-only DNS server"
 HOMEPAGE="http://www.knot-dns.cz/;
@@ -12,7 +12,7 @@ SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz;
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS=""
+KEYWORDS="~amd64 ~x86"
 IUSE="debug dnstap doc caps +fastparser idn systemd"
 
 RDEPEND="
@@ -34,8 +34,7 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/${P/_/-}"
 
 src_prepare() {
-   epatch "${FILESDIR}/${PV}-spell-enable-vars-correctly.patch"
-   epatch "${FILESDIR}/${PV}-dont-create-extra-directories.patch"
+   epatch "${FILESDIR}/2.0.2-dont-create-extra-directories.patch"
 }
 
 src_configure() {
@@ -43,6 +42,7 @@ src_configure() {
--with-storage="${EPREFIX}/var/lib/${PN}" \