From 22910f5d14da606bd7f06e19a2f61c5d1a8fc94b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 25 May 2018 15:22:17 +0100 Subject: gentoo resync : 25.05.2018 --- .../avahi-0.6.31-build-client-without-daemon.patch | 27 ------- .../avahi-0.6.31-host-name-from-machine-id.patch | 85 ---------------------- .../files/avahi-0.6.31-install-exec-hook.patch | 11 --- .../avahi/files/avahi-0.6.31-invalid_packet.patch | 21 ------ ...reuseport-may-not-exist-in-running-kernel.patch | 30 -------- net-dns/avahi/files/avahi-0.6.32-mocqt4.patch | 12 --- ...ahi-0.6.32-openrc-0.21.7-fix-init-scripts.patch | 18 ----- ...ahi-0.6.x-openrc-0.9.x-init-scripts-fixes.patch | 22 ------ 8 files changed, 226 deletions(-) delete mode 100644 net-dns/avahi/files/avahi-0.6.31-build-client-without-daemon.patch delete mode 100644 net-dns/avahi/files/avahi-0.6.31-host-name-from-machine-id.patch delete mode 100644 net-dns/avahi/files/avahi-0.6.31-install-exec-hook.patch delete mode 100644 net-dns/avahi/files/avahi-0.6.31-invalid_packet.patch delete mode 100644 net-dns/avahi/files/avahi-0.6.31-so_reuseport-may-not-exist-in-running-kernel.patch delete mode 100644 net-dns/avahi/files/avahi-0.6.32-mocqt4.patch delete mode 100644 net-dns/avahi/files/avahi-0.6.32-openrc-0.21.7-fix-init-scripts.patch delete mode 100644 net-dns/avahi/files/avahi-0.6.x-openrc-0.9.x-init-scripts-fixes.patch (limited to 'net-dns/avahi/files') diff --git a/net-dns/avahi/files/avahi-0.6.31-build-client-without-daemon.patch b/net-dns/avahi/files/avahi-0.6.31-build-client-without-daemon.patch deleted file mode 100644 index df0c420fa62a..000000000000 --- a/net-dns/avahi/files/avahi-0.6.31-build-client-without-daemon.patch +++ /dev/null @@ -1,27 +0,0 @@ -From ce3b83de6aa689c0cefe0b1e85c03a627b537099 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= -Date: Mon, 12 May 2014 19:46:22 +0200 -Subject: [PATCH] Allow building client without the daemon. - -There's no good reason to disallow that, and that's what we specifically -want to do for multilib. ---- - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index 0e190ba..c56cf01 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -1185,7 +1185,7 @@ fi - - BUILD_CLIENT="no (You need avahi-daemon and D-Bus!)" - --if test "x$BUILD_DAEMON" = "xyes" -a "x$HAVE_DBUS" = "xyes" ; then -+if "x$HAVE_DBUS" = "xyes" ; then - BUILD_CLIENT=yes - fi - --- -1.9.3 - diff --git a/net-dns/avahi/files/avahi-0.6.31-host-name-from-machine-id.patch b/net-dns/avahi/files/avahi-0.6.31-host-name-from-machine-id.patch deleted file mode 100644 index 17ecba52534b..000000000000 --- a/net-dns/avahi/files/avahi-0.6.31-host-name-from-machine-id.patch +++ /dev/null @@ -1,85 +0,0 @@ -From: David Zeuthen -Date: Tue, 5 Mar 2013 19:52:38 +0000 (-0800) -Subject: avahi-daemon: add option "host-name-from-machine-id=" -X-Git-Url: http://git.0pointer.de/?p=avahi.git;a=commitdiff_plain;h=147cdce70b22ae7cee9fb4fe123db40952f31c9e - -avahi-daemon: add option "host-name-from-machine-id=" - -Signed-off-by: David Zeuthen ---- - -diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c -index d46f40a..8c28fd6 100644 ---- a/avahi-daemon/main.c -+++ b/avahi-daemon/main.c -@@ -65,6 +65,7 @@ - #include - #include - #include -+#include - - #ifdef ENABLE_CHROOT - #include "chroot.h" -@@ -576,6 +577,29 @@ static int parse_usec(const char *s, AvahiUsec *u) { - return 0; - } - -+static char *get_machine_id(void) { -+ int fd; -+ char buf[32]; -+ -+ fd = open("/etc/machine-id", O_RDONLY|O_CLOEXEC|O_NOCTTY); -+ if (fd == -1 && errno == ENOENT) -+ fd = open("/var/lib/dbus/machine-id", O_RDONLY|O_CLOEXEC|O_NOCTTY); -+ if (fd == -1) -+ return NULL; -+ -+ /* File is on a filesystem so we never get EINTR or partial reads */ -+ if (read(fd, buf, sizeof buf) != sizeof buf) { -+ close(fd); -+ return NULL; -+ } -+ close(fd); -+ -+ /* Contents can be lower, upper and even mixed case so normalize */ -+ avahi_strdown(buf); -+ -+ return avahi_strndup(buf, sizeof buf); -+} -+ - static int load_config_file(DaemonConfig *c) { - int r = -1; - AvahiIniFile *f; -@@ -631,6 +655,15 @@ static int load_config_file(DaemonConfig *c) { - c->server_config.use_iff_running = is_yes(p->value); - else if (strcasecmp(p->key, "disallow-other-stacks") == 0) - c->server_config.disallow_other_stacks = is_yes(p->value); -+ else if (strcasecmp(p->key, "host-name-from-machine-id") == 0) { -+ if (*(p->value) == 'y' || *(p->value) == 'Y') { -+ char *machine_id = get_machine_id(); -+ if (machine_id != NULL) { -+ avahi_free(c->server_config.host_name); -+ c->server_config.host_name = machine_id; -+ } -+ } -+ } - #ifdef HAVE_DBUS - else if (strcasecmp(p->key, "enable-dbus") == 0) { - -diff --git a/man/avahi-daemon.conf.5.xml.in b/man/avahi-daemon.conf.5.xml.in -index bea7ed5..2d15017 100644 ---- a/man/avahi-daemon.conf.5.xml.in -+++ b/man/avahi-daemon.conf.5.xml.in -@@ -40,6 +40,12 @@ - - - -+ -+