diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-09-04 09:28:36 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-09-04 09:28:36 +0000 |
commit | 438ed29512b364a792944ce04ace91088aef9c36 (patch) | |
tree | 7c344a671b3432d9587e61c97ea498dc7445541a /net-dns | |
parent | Version bump, remove old. (diff) | |
download | historical-438ed29512b364a792944ce04ace91088aef9c36.tar.gz historical-438ed29512b364a792944ce04ace91088aef9c36.tar.bz2 historical-438ed29512b364a792944ce04ace91088aef9c36.zip |
Version bump to release.
Package-Manager: portage-2.2.0_alpha124/cvs/Linux x86_64
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/knot/ChangeLog | 9 | ||||
-rw-r--r-- | net-dns/knot/Manifest | 36 | ||||
-rw-r--r-- | net-dns/knot/files/knot-1.0.6-userpriv.patch | 338 | ||||
-rw-r--r-- | net-dns/knot/files/knot-braindead-lto.patch | 11 | ||||
-rw-r--r-- | net-dns/knot/knot-1.0.6-r1.ebuild | 52 | ||||
-rw-r--r-- | net-dns/knot/knot-1.1.0.ebuild (renamed from net-dns/knot/knot-1.1.0_rc1.ebuild) | 12 |
6 files changed, 31 insertions, 427 deletions
diff --git a/net-dns/knot/ChangeLog b/net-dns/knot/ChangeLog index 0c8540b671c2..e1d4155ebdaa 100644 --- a/net-dns/knot/ChangeLog +++ b/net-dns/knot/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-dns/knot # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/knot/ChangeLog,v 1.11 2012/08/20 11:08:19 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/knot/ChangeLog,v 1.12 2012/09/04 09:28:36 scarabeus Exp $ + +*knot-1.1.0 (04 Sep 2012) + + 04 Sep 2012; Tomáš Chvátal <scarabeus@gentoo.org> +knot-1.1.0.ebuild, + -files/knot-1.0.6-userpriv.patch, -files/knot-braindead-lto.patch, + -knot-1.0.6-r1.ebuild, -knot-1.1.0_rc1.ebuild: + Version bump to release. *knot-1.1.0_rc1 (20 Aug 2012) diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest index ca3f4dbf33ab..687a83079031 100644 --- a/net-dns/knot/Manifest +++ b/net-dns/knot/Manifest @@ -1,30 +1,26 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -AUX knot-1.0.6-userpriv.patch 9493 SHA256 c259100aa016a1976696a99fb06fd1b7e29227688e59a775e7fa3718f46c190a SHA512 b882b0a2eedb43ab2526ebc7bc4351fd326c28eeafccfceca3e537d980e1ce63afb48dbb151c7557029eefba14618217275ff0223680516260dc353f5bdbb952 WHIRLPOOL 3e3ece8745f4d961d5a52e7a0a784e391cf500e4115ce19d773e4954f7d22c34fd2ea8550409940fbff9accfa8de28f8951c64377f6d0a269eca09aa1c26d9ce -AUX knot-braindead-lto.patch 483 SHA256 66c398a04df766a0450842f3eacfe34fa32686632ffb6edef9adfc520b6264b0 SHA512 3a61b7760f455b0048cf30ebbc8d582be378e337b8c93a2b8feae55bdc7a866d68b34982475d02e332415c9aa6c7f1461f3af8489828957775713930cc9ffbc2 WHIRLPOOL 7785a5688c2987ab87c1b5207d7fc02cbbf7a0d2565f9c913f7549a546f8031c99c8456a38174b88cf24d1604c8b01bd8b328f7f3017fc531280e8de0fdd5a59 AUX knot-move-pidfile-to-var.patch 764 SHA256 0ee573b4fb4cf16265f1ee431587dbdf090424dabd4b0cce0b3fbcaecbae8d60 SHA512 83cf3a4de266fd18baba2fd5693444420410b0cc1beae2f4ca95caf8b3773ce5b1830901e4c186f927a5a128456ea56646a021abe27fa1e6fe3c4164350c889d WHIRLPOOL 982f7e4ac27443ea609347c042ca5401540c820c9bdc270d03fca107d24fa83d7eaadfbce9de698e06037eb01d0fb7a43440e6633042cfb905db069fb2f260f3 AUX knot.init 673 SHA256 730e530a56e233cb92df4edbd918df8da24c62370f472ee449a47a344e7f738d SHA512 421cab56a6f80c15043efbb5006ac67071ac24d29d02fc5113e8c20d61b1633d14456d43fadc6a234a7392db2ef4103c45117fe61de499ea6251c5555d8504d9 WHIRLPOOL 0fe9d8549fce806eb03f3f55f541e70d011c93a35ee1d8c7b14b1c5bb7b87ffa253db686e335ee71c6a8280a8da5ae49a3b6adff3b4ee87c1b09e5a90cdc2928 -DIST knot-1.0.6.tar.gz 1065751 SHA256 baa4e086372015e233ff90cf72ef06e18513b8f2b17196684b6718aa7854f028 SHA512 dad45539e9649f68e7107b1784bb7f16b50ec3431824b896fcb7dc5caa731d9a93f22043479b9878f952df511b74067e3fa9fd1a3fbbea23f01b6a0326fc1943 WHIRLPOOL 55f7175a23fcecbf3f96fae79f0fd3d6d3e47cb430cb8856404de9aff760464efec602d973167d23d707f104bf2170c69755a5cec0b37ace556b0c90df911a9b -DIST knot-1.1.0-rc1.tar.gz 1196915 SHA256 80ed730ff1c469c8ee09f5fc0e484006d0b06d998cf66b5349b341e05a8295d1 SHA512 44c295582e0f120f1e2042054b7fb6d39ee1a034c3bc732b4e837f7159bba7c5c59bb722a8fc2233d4d45ea937dff1e88a3b2ad4f09f2b85d90d0419f9b1c7f8 WHIRLPOOL e2c635537759c6ba1abc64e18bb1e72022e215331b0eceaf743d934ae6cbffbcd0df66125da74634d2e58a8b2c949af706d1162f8dfb3884a17c744868b1f862 -EBUILD knot-1.0.6-r1.ebuild 1085 SHA256 629743c014a08da97fae54d6346d4454038860d4079b33411ea0a65cf458a5be SHA512 4bebdc289b410976b04f3ed1cbe4625bf368ee32c7dde86b9460d4eacf9aea41fee4933063b50675de863d0b16fcb648a7a89b7cd708e12ceed62bfcf998be72 WHIRLPOOL b35e4f464c0f5cda8cfb490923db4bbcfd6c1891659b95231ba90240f660c50fb99db78dd8693b129c0c424b94338b655fda9a3dfcac728ff1a01ae546500cca -EBUILD knot-1.1.0_rc1.ebuild 1294 SHA256 27bef925a143ce8a04d4912187392f205d947c33b43ec184e00cb25372cf77a8 SHA512 0ecbf9e1f7d96ff892b520e668cd2ac6011c0d2a40dbc376097ba2ba06a33d6fcc0c03326298b0b75fbf0d2c0fac2e43897849f759e843928b60ed061580cc80 WHIRLPOOL 5ecc155cc827d0851475ecb214e4dc908e1b0075629aca4ff7e5eb7b1690b8f03a1848d88f94bddd857d34d4541f1d02d8e040fd13a06990d00357a1c5d2b5b0 -MISC ChangeLog 2217 SHA256 440f18bcd7d74d4bd8b6354f181478fefd1476d83df6c224681af59da1f17792 SHA512 ecc65b73e03a0c4a7abe178852b9e17679c183f436dd0c51e0d72a68dd1a8c9434d2073ca50c0388a8d64ba158eb9234319545b845a139487180f205901652d8 WHIRLPOOL d6c79e8715dcf63d04b61c1bbfdfa49bf43c105a5b8fa1fc2910afe0b504e34f6399ae66d471ffa3e918bbf909e90cf5067eb778bd33279b53d67342b59f0a70 +DIST knot-1.1.0.tar.gz 1180069 SHA256 6b1a429d39abb8378e2c62750e04d04a67ef89daae52fefb5c93b881c001446e SHA512 4d4a6f93fd16f202e3fa7fa3b821270dac1c5a6a53179afd7c10f326dc5abf8f7767491c5286cb0a96f5dca723004841f6c615c4dac7f1e2c2aac00cc8bb02ed WHIRLPOOL d3e6410873b8f281b6da41459d299df049ce25dc3b0d35769c0e5718b1ed39359169e12a6a24d8340824f040240efa8bbc696e5439747a2c8cd7b16abd9b44a4 +EBUILD knot-1.1.0.ebuild 1340 SHA256 b3466c341da648797c4b998555ed67b0a5bf85d2654a88b5db2db6b5493068d0 SHA512 814ebf83e3a246946eb19d51c4ee5531b7d28c1a0d6e927b50fd65bba1f021b31a6c13ae874c9fa3ebed4002e8fcc2241743e151c22289419262c72bc7b86812 WHIRLPOOL fa2edf47f5f2fd479b1c64f1623d8a5d9fe5055db80851d100a4aeca389dea910471219e0f6450682810badcbbfe21e0a14236057deac14b0b52b9747180aa0a +MISC ChangeLog 2465 SHA256 2a9d40282176ac3df36f2c6282f0cf40e0228ed96d42e5b499867924c77a2331 SHA512 058177c61274d808b798f9d282a0a96036ea63a4985349af94245713f7005cb56cfe9d5a8e7a4818d5dadae8a02fddcf0578af03baf673f45a015d71b0732f60 WHIRLPOOL 93585e4edf2d6ad9e62fe8fe45623e4f1006c3dac43f4d951fd719b5cba100c1e5221e9ae276d75c46650ef5a3df134948cc63205d09b278eb70680948f9277d MISC metadata.xml 206 SHA256 87401a34cc110e7b975f1774eee544305a081b1de3346928a0a410a7e8e761bf SHA512 6c37bce69957a1a76be6fe0b6a005d6f9f24e32429f0e6ea87e2a787ef1832d4fd8ee0fc029bba6487d6e6d9404594b365ad7d4a63a79cafa65dc4e5dc736dc1 WHIRLPOOL e4c0fc31bb5f4c03c8837d0102ab067e7c4fb1de15e93ee2926aa271515f10e4d27542151764ed199e6643f99c1010a07e1c7656ae6e286ddaed1f3e7f7f027a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCAAGBQJQMhqSAAoJEOSiRoyO7jvoTUQP/2sm7Sga4pMxLtdytlF4nie/ -V8fn4s/O44jhCAzHcP/KUoywmwRjikcCVrN5g2SrzW4AQHJzMNZ7rkdM2EQFCOri -B7h+SVeOPuXZwy+NxT9tFtyVDAjZMthBMCkQWRNdH3lIgIKgNBTbBK01diQryGVE -rnjhtBojnhuRpO0mwBFXzjuot3OIZcCrUQCiKdWwHrc6+UZkfucrkM2EusacLv1t -lHKKkP6TuZ5gK44PkDP3ZPS3gX7lY1cisc4/qqfzz7ujk9G2/NW2qKHJLGvSV9SY -t+ZvI+K0HiBG3YqCHgNmobz8tS2uvYvx0p/o9f0yTBREXQJ1qZ8YgO7NVvnL4XWI -S63jKAN3LJ0F+kjwlZcHvVV6Cfa3b0AUyZThec78IWZ9vTLTZVlWjwWWxDLSkuvd -AQ9FeGJ5NXmQQf6pE+GgHRwRhnVDs8/FdMIGrvYIicoT+DhZrKu2yLDfA8iXZkD3 -lHU3p70puqARSxm9m2rgdpEqNG4opbjjh26lI2Pd+VUYk6W3/udi+8piG7FYjkOc -iOuhJxzqfqujhy7vYWwnk8en/cPEC82vJkKyPk4rf9PGzm3P59lYpX+AsxiOnQYn -A3dt4Igjvxe0Lq+g3b/Er5AKiKz9qUngadugGZtm7zcDnXRPFOaCEDRnuvtw9+az -Mw/4pVjuL4ez6V80Sfdh -=75wx +iQIcBAEBCAAGBQJQRcnNAAoJEOSiRoyO7jvoHJgP/2ZH6acBYTo1VK2bIRgzyvks +t5DeIh6sulSa+vI5W0o0754xThGH39oow8C86zrKKl6rmCEkbWFtEESM1q821Mv9 +lPLNhaQ/DugILOe/AAXIHt1EOkuBbGxgKBMUBuUSDqfGGta3l+OHhpWvskNSuZWW +0/75Rl1aT7Q6DLsCPILIXIbhPjeTLCXp2kofwp4FMB9yPSj36dqmqaiHOKW+a9BO +AS8iyLGWDRMO1BHHerHSnRgeimLHKwDbXMsAR7CHzhWDV627osBZGMqnaCqRfOoo +GF/eXiQ+ZaCqNJKljRUV6MelMr++YIcnV40YCN39K7+c+LCeiBs/sDHuCYqI3gEf +deATTmM2AfAIF8VSH0sh7yQuCzwpLiqiki+0L3Q0lX4IH1kzqWojRe/JnnLaBFCj +SLe4t91YLAl3oAdzrzKpfHK9OQz3lJA5zbD/fnKgRn5KJ9r/1etGA2+TQgwWwlKT +9Tmu8hUIIwAP1MHlNpqCzDJUF3RbQwQ1Ehd4qSIG7Mg6ltNcpRae1XIhxcPnxt3a +R53Yo61USy+/jg2vbyRigEzjyyze91ReXVRsb7FAouXe0nSIZ5qpCbECqbd8emHk +yNxAlQ9Av/yhQcDg39mDC2UN7L6aTWaUamgHtBwrrJQBcz3s0IByiHyZJ3H6ZUvr +bnUiYKWTqHvyXehddez1 +=z8pf -----END PGP SIGNATURE----- diff --git a/net-dns/knot/files/knot-1.0.6-userpriv.patch b/net-dns/knot/files/knot-1.0.6-userpriv.patch deleted file mode 100644 index 1526ca445dfb..000000000000 --- a/net-dns/knot/files/knot-1.0.6-userpriv.patch +++ /dev/null @@ -1,338 +0,0 @@ -diff --git a/src/knot/conf/conf.c b/src/knot/conf/conf.c
-index 4bbf622..0785b04 100644
---- a/src/knot/conf/conf.c
-+++ b/src/knot/conf/conf.c
-@@ -309,6 +309,10 @@ static int conf_process(conf_t *conf)
- strncat(dest, dbext, strlen(dbext));
- zone->ixfr_db = dest;
- }
-+
-+ /* Update UID and GID. */
-+ if (conf->uid < 0) conf->uid = getuid();
-+ if (conf->gid < 0) conf->gid = getgid();
-
- return ret;
- }
-diff --git a/src/knot/ctl/knotc_main.c b/src/knot/ctl/knotc_main.c
-index 97412dd..7f74bca 100644
---- a/src/knot/ctl/knotc_main.c
-+++ b/src/knot/ctl/knotc_main.c
-@@ -43,7 +43,8 @@ enum knotc_flag_t {
- F_VERBOSE = 1 << 1,
- F_WAIT = 1 << 2,
- F_INTERACTIVE = 1 << 3,
-- F_AUTO = 1 << 4
-+ F_AUTO = 1 << 4,
-+ F_UNPRIVILEGED= 1 << 5
- };
-
- static inline unsigned has_flag(unsigned flags, enum knotc_flag_t f) {
-@@ -142,10 +143,15 @@ pid_t wait_cmd(pid_t proc, int *rc)
- return proc;
- }
-
--pid_t start_cmd(const char *argv[], int argc)
-+pid_t start_cmd(const char *argv[], int argc, int flags)
- {
- pid_t chproc = fork();
- if (chproc == 0) {
-+
-+ /* Alter privileges. */
-+ if (flags & F_UNPRIVILEGED) {
-+ proc_update_privileges(conf()->uid, conf()->gid);
-+ }
-
- /* Duplicate, it doesn't run from stack address anyway. */
- char **args = malloc((argc + 1) * sizeof(char*));
-@@ -180,7 +186,7 @@ pid_t start_cmd(const char *argv[], int argc)
- int exec_cmd(const char *argv[], int argc)
- {
- int ret = 0;
-- pid_t proc = start_cmd(argv, argc);
-+ pid_t proc = start_cmd(argv, argc, 0);
- wait_cmd(proc, &ret);
- return ret;
- }
-@@ -291,17 +297,6 @@ int execute(const char *action, char **argv, int argc, pid_t pid,
- int valid_cmd = 0;
- int rc = 0;
- if (strcmp(action, "start") == 0) {
-- // Check pidfile for w+
-- FILE* chkf = fopen(pidfile, "w+");
-- if (chkf == NULL) {
-- log_server_error("PID file '%s' is not writeable, "
-- "refusing to start\n", pidfile);
-- return 1;
-- } else {
-- fclose(chkf);
-- chkf = NULL;
-- }
--
- // Check PID
- valid_cmd = 1;
- // if (pid < 0 && pid == KNOT_ERANGE) {
-@@ -604,7 +599,7 @@ int execute(const char *action, char **argv, int argc, pid_t pid,
- }
- fflush(stdout);
- fflush(stderr);
-- pid_t zcpid = start_cmd(args, ac);
-+ pid_t zcpid = start_cmd(args, ac, F_UNPRIVILEGED);
- zctask_add(tasks, jobs, zcpid, zone);
- ++running;
- }
-@@ -722,7 +717,7 @@ int main(int argc, char **argv)
- log_levels_add(LOGT_STDOUT, LOG_ANY,
- LOG_MASK(LOG_INFO)|LOG_MASK(LOG_DEBUG));
- }
--
-+
- // Fetch PID
- char* pidfile = pid_filename();
- if (!pidfile) {
-diff --git a/src/knot/ctl/process.c b/src/knot/ctl/process.c
-index bb61804..8864cd0 100644
---- a/src/knot/ctl/process.c
-+++ b/src/knot/ctl/process.c
-@@ -21,6 +21,8 @@
- #include <errno.h>
- #include <string.h>
- #include <signal.h>
-+#include <grp.h>
-+#include <unistd.h>
-
- #include "knot/common.h"
- #include "knot/ctl/process.h"
-@@ -113,6 +115,7 @@ int pid_write(const char* fn)
- int pid_remove(const char* fn)
- {
- if (unlink(fn) < 0) {
-+ perror("unlink");
- return KNOTD_EINVAL;
- }
-
-@@ -124,3 +127,45 @@ int pid_running(pid_t pid)
- return kill(pid, 0) == 0;
- }
-
-+void proc_update_privileges(int uid, int gid)
-+{
-+#ifdef HAVE_SETGROUPS
-+ /* Drop supplementary groups. */
-+ if (uid != getuid() || gid != getgid()) {
-+ if (setgroups(0, NULL) < 0) {
-+ log_server_warning("Failed to drop supplementary groups"
-+ " for uid '%d' (%s).\n",
-+ getuid(), strerror(errno));
-+ }
-+ }
-+#endif
-+
-+ /* Watch uid/gid. */
-+ if (gid != getgid()) {
-+ log_server_info("Changing group id to '%d'.\n", gid);
-+ if (setregid(gid, gid) < 0) {
-+ log_server_error("Failed to change gid to '%d'.\n",
-+ gid);
-+ }
-+ }
-+ if (uid != getuid()) {
-+ log_server_info("Changing user id to '%d'.\n", uid);
-+ if (setreuid(uid, uid) < 0) {
-+ log_server_error("Failed to change uid to '%d'.\n",
-+ uid);
-+ }
-+ }
-+
-+ /* Check storage writeability. */
-+ char *lfile = strcdup(conf()->storage, "/knot.lock");
-+ assert(lfile != NULL);
-+ FILE* fp = fopen(lfile, "w");
-+ if (fp == NULL) {
-+ log_server_warning("Storage directory '%s' is not writeable.\n",
-+ conf()->storage);
-+ } else {
-+ fclose(fp);
-+ unlink(lfile);
-+ }
-+ free(lfile);
-+}
-diff --git a/src/knot/ctl/process.h b/src/knot/ctl/process.h
-index d8f2f4c..a387add 100644
---- a/src/knot/ctl/process.h
-+++ b/src/knot/ctl/process.h
-@@ -83,6 +83,15 @@ int pid_remove(const char* fn);
- */
- int pid_running(pid_t pid);
-
-+/*!
-+ * \brief Update process privileges to new UID/GID.
-+ *
-+ * \param uid New user ID.
-+ * \param gid New group ID.
-+ *
-+ */
-+void proc_update_privileges(int uid, int gid);
-+
- #endif // _KNOTD_PROCESS_H_
-
- /*! @} */
-diff --git a/src/knot/main.c b/src/knot/main.c
-index 99ee1cf..a62230a 100644
---- a/src/knot/main.c
-+++ b/src/knot/main.c
-@@ -20,6 +20,7 @@
- #include <unistd.h>
- #include <getopt.h>
- #include <limits.h>
-+
- #ifdef HAVE_CAP_NG_H
- #include <cap-ng.h>
- #endif /* HAVE_CAP_NG_H */
-@@ -161,7 +162,6 @@ int main(int argc, char **argv)
- conf_read_lock();
- conf_add_hook(conf(), CONF_LOG, log_conf_hook, 0);
- conf_add_hook(conf(), CONF_ALL, server_conf_hook, server);
-- conf_add_hook(conf(), CONF_ALL, zones_ns_conf_hook, server->nameserver);
- conf_read_unlock();
-
- // Find implicit configuration file
-@@ -242,21 +242,28 @@ int main(int argc, char **argv)
- }
- log_server_info("\n");
-
-- // Create server instance
-- char* pidfile = pid_filename();
-+ /* Alter privileges. */
-+ proc_update_privileges(conf()->uid, conf()->gid);
-+
-+ /* Load zones and add hook. */
-+ zones_ns_conf_hook(conf(), server->nameserver);
-+ conf_add_hook(conf(), CONF_ALL, zones_ns_conf_hook, server->nameserver);
-
- // Run server
- int res = 0;
-+ int has_pid = 0;
-+ char* pidfile = pid_filename();
- log_server_info("Starting server...\n");
- if ((server_start(server)) == KNOTD_EOK) {
-
- // Save PID
-- int has_pid = 1;
-+ has_pid = 1;
- int rc = pid_write(pidfile);
- if (rc < 0) {
- has_pid = 0;
- log_server_warning("Failed to create "
-- "PID file '%s'.\n", pidfile);
-+ "PID file '%s' (%s).\n",
-+ pidfile, strerror(errno));
- }
-
- // Change directory if daemonized
-@@ -370,7 +377,7 @@ int main(int argc, char **argv)
- server_destroy(&server);
-
- // Remove PID file
-- if (pid_remove(pidfile) < 0) {
-+ if (has_pid && pid_remove(pidfile) < 0) {
- log_server_warning("Failed to remove PID file.\n");
- }
-
-diff --git a/src/knot/server/server.c b/src/knot/server/server.c
-index 5611a0c..5df7fe1 100644
---- a/src/knot/server/server.c
-+++ b/src/knot/server/server.c
-@@ -22,8 +22,6 @@
- #include <errno.h>
- #include <openssl/evp.h>
- #include <assert.h>
--#include <grp.h>
--
-
- #include "common/prng.h"
- #include "knot/common.h"
-@@ -743,51 +741,9 @@ int server_conf_hook(const struct conf_t *conf, void *data)
- "configured interfaces.\n");
- }
- }
--
-- /* Lock configuration. */
-- conf_read_lock();
-- int priv_failed = 0;
--
--#ifdef HAVE_SETGROUPS
-- /* Drop supplementary groups. */
-- if (conf->gid > -1 || conf->uid > -1) {
-- ret = setgroups(0, NULL);
--
-- /* Collect results. */
-- if (ret < 0) {
-- log_server_error("Failed to set supplementary groups "
-- "for uid '%d' (%s).\n",
-- getuid(), strerror(errno));
-- priv_failed = 1;
-- }
-- }
--#endif
--
-- /* Watch uid/gid. */
-- if (conf->gid > -1 && conf->gid != getgid()) {
-- log_server_info("Changing group id to '%d'.\n", conf->gid);
-- if (setregid(conf->gid, conf->gid) < 0) {
-- log_server_error("Failed to change gid to '%d'.\n",
-- conf->gid);
-- priv_failed = 1;
-- }
-- }
-- if (conf->uid > -1 && conf->uid != getuid()) {
-- log_server_info("Changing user id to '%d'.\n", conf->uid);
-- if (setreuid(conf->uid, conf->uid) < 0) {
-- log_server_error("Failed to change uid to '%d'.\n",
-- conf->uid);
-- priv_failed = 1;
-- }
-- }
--
-- if (priv_failed) {
-- ret = KNOTD_EACCES;
-- }
-
- /* Exit if the server is not running. */
- if (ret != KNOTD_EOK || !(server->state & ServerRunning)) {
-- conf_read_unlock();
- return KNOTD_ENOTRUNNING;
- }
-
-@@ -807,9 +763,6 @@ int server_conf_hook(const struct conf_t *conf, void *data)
- }
- }
-
-- /* Unlock config. */
-- conf_read_unlock();
--
- return ret;
- }
-
-diff --git a/src/zcompile/zcompile.c b/src/zcompile/zcompile.c
-index c4415d4..3c39004 100644
---- a/src/zcompile/zcompile.c
-+++ b/src/zcompile/zcompile.c
-@@ -570,7 +570,7 @@ int zone_read(const char *name, const char *zonefile, const char *outfile,
- }
-
- if (!knot_dname_is_fqdn(dname)) {
-- fprintf(stderr, "Error: given zone origin is not FQDN.\n");
-+ log_zone_error("Error: given zone origin is not FQDN.\n");
- knot_dname_release(dname);
- return KNOTDZCOMPILE_EINVAL;
- }
-@@ -660,8 +660,7 @@ int zone_read(const char *name, const char *zonefile, const char *outfile,
-
- if (found_orphans != parser->rrsig_orphan_count) {
- /*! \todo This might be desired behaviour. */
-- fprintf(stderr,
-- "There are unassigned RRSIGs in the zone!\n");
-+ log_zone_error("There are unassigned RRSIGs in the zone!\n");
- parser->errors++;
- }
-
diff --git a/net-dns/knot/files/knot-braindead-lto.patch b/net-dns/knot/files/knot-braindead-lto.patch deleted file mode 100644 index 0089279b80bf..000000000000 --- a/net-dns/knot/files/knot-braindead-lto.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -urN knot-1.0.5.old/configure.ac knot-1.0.5/configure.ac ---- knot-1.0.5.old/configure.ac 2012-06-12 15:50:47.954879966 +0200 -+++ knot-1.0.5/configure.ac 2012-06-12 16:50:33.207942404 +0200 -@@ -123,7 +123,6 @@ - ]) - - # Check for link time optimizations support and predictive commoning --AX_CHECK_COMPILER_FLAGS("-flto", [CFLAGS="$CFLAGS -flto"], []) - AX_CHECK_COMPILER_FLAGS("-fpredictive-commoning", [CFLAGS="$CFLAGS -fpredictive-commoning"], []) - - # Checks for libraries. diff --git a/net-dns/knot/knot-1.0.6-r1.ebuild b/net-dns/knot/knot-1.0.6-r1.ebuild deleted file mode 100644 index 980cf69f11af..000000000000 --- a/net-dns/knot/knot-1.0.6-r1.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/knot/knot-1.0.6-r1.ebuild,v 1.1 2012/07/26 14:00:35 scarabeus Exp $ - -EAPI=4 - -inherit eutils autotools - -DESCRIPTION="High-performance authoritative-only DNS server" -HOMEPAGE="http://www.knot-dns.cz/" -SRC_URI="http://public.nic.cz/files/knot-dns/${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debug" - -RDEPEND=" - dev-libs/openssl - dev-libs/userspace-rcu -" -# sys-libs/glibc -DEPEND="${RDEPEND} - virtual/pkgconfig - sys-devel/flex - virtual/yacc -" - -src_prepare() { - epatch \ - "${FILESDIR}"/${PN}-move-pidfile-to-var.patch \ - "${FILESDIR}"/${PN}-braindead-lto.patch \ - "${FILESDIR}"/${P}-userpriv.patch - sed -i \ - -e 's:-Werror::g' \ - configure.ac || die - eautoreconf -} - -src_configure() { - econf \ - --sysconfdir="${EPREFIX}/etc/${PN}" \ - --libexecdir="${EPREFIX}/usr/libexec/${PN}" \ - --enable-recvmmsg \ - $(use_enable debug debug verbose) -} - -src_install() { - default - - newinitd "${FILESDIR}/knot.init" knot-dns -} diff --git a/net-dns/knot/knot-1.1.0_rc1.ebuild b/net-dns/knot/knot-1.1.0.ebuild index ee0c950ede16..3d7258252c3a 100644 --- a/net-dns/knot/knot-1.1.0_rc1.ebuild +++ b/net-dns/knot/knot-1.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/knot/knot-1.1.0_rc1.ebuild,v 1.1 2012/08/20 11:08:19 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/knot/knot-1.1.0.ebuild,v 1.1 2012/09/04 09:28:36 scarabeus Exp $ EAPI=4 @@ -53,8 +53,10 @@ src_install() { } pkg_postinst() { - einfo "If this is an update, remember to recompile all zones. Run:" - einfo " # knotc stop" - einfo " # knotc compile" - einfo " # knotc start" + if [[ -n ${REPLACING_VERSIONS} ]] ; then + einfo "Remember to recompile all zones after update. Run:" + einfo " # knotc stop" + einfo " # knotc compile" + einfo " # knotc start" + fi } |