From patchwork Tue Jul 4 16:35:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 784197 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x28kj6cdmz9sR8 for ; Wed, 5 Jul 2017 02:35:41 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="f+G7EkgY"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 33A5C87979; Tue, 4 Jul 2017 16:35:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fqk8NKmx5wII; Tue, 4 Jul 2017 16:35:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 6B92C87075; Tue, 4 Jul 2017 16:35:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id C4CFA1C0021 for ; Tue, 4 Jul 2017 16:35:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BAC1D88F00 for ; Tue, 4 Jul 2017 16:35:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OSzgYN9xGsmY for ; Tue, 4 Jul 2017 16:35:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1E69988EF8 for ; Tue, 4 Jul 2017 16:35:37 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id j85so27390549wmj.0 for ; Tue, 04 Jul 2017 09:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=x6aI+LpPvqmstStZGTzr5Q+AGHkfgzfjvnHUZGzQuho=; b=f+G7EkgYsgbSU6Jah9H37MImKtGiKk4WtevntWryKj4JTC3Pk0rU7W3c4ygz9MOBko HLH6T+iXvsTSfpxfyOVrIY5gLZkdNYrre0GNCTK3WTPYFbs2fz7mLiaYjb4ElsiWc+kx OMLUqjacwH5A8V1qr17V1tBZXs6IGDSdCMruepr69CHC3n1sP7n+kKCtPcBIZZeFEo1p ehxMKg2vWbx6ngn3vWvcCIt+5es9zjkg0iUHl9lisSCIrardNyBXWNfjwaWgxu7rCuNR 7xZKaqb9HXFbAsLvcJHpojr7BK7MyA7P3jVKq4IlgmI6FPoAkpmPevme2V8omeqmufie +RFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=x6aI+LpPvqmstStZGTzr5Q+AGHkfgzfjvnHUZGzQuho=; b=e1gRMye9C2wcu4hJJiQ8eYkhdR5edJPfCfxabTtBZKb90uvJvivI/Of9AIS7cyy2ql MhmG8H1K/wm0LRClio+78B11ZVjDWOKO3R33aoYscnh8A3hfAfH2SebWHFEFbgtS4XhP oIQSh4aMtNbm/GH3q1LBb8u9BPm+7mwS5VvSyESN0W/RRaZCEhZh+qLlhUxbEMXeJATU ZjpEHL690JpgqOfEm+KeOZGkwiSUilW/2RJ5EGglCa4pW+m/kDcfvAMoeRe1ASqy0ti+ i7tZ6uA4eUzo+z1hC5AYIrsgkz33ALEtgGUK1C8SEtCzTRbccH6Gs0PDUpZqSPg/ybJQ Uo2w== X-Gm-Message-State: AIVw112wpxm9uejNfyvLoccob1b4nR8O1bK8N5xCKbvKxAKlPjx49xlm WeFQimYRs3aR7iuqqQ8= X-Received: by 10.28.130.194 with SMTP id e185mr2448158wmd.7.1499186135387; Tue, 04 Jul 2017 09:35:35 -0700 (PDT) Received: from cerise.bzh.lan (2a01cb0886107300297010e522b1c364.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:2970:10e5:22b1:c364]) by smtp.gmail.com with ESMTPSA id f128sm9498853wmd.34.2017.07.04.09.35.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 09:35:34 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@buildroot.org Date: Tue, 4 Jul 2017 18:35:32 +0200 Message-Id: <20170704163533.13923-1-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.13.2 Subject: [Buildroot] [PATCH] avahi: create missing "services" directory X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes a warning in avahi-daemon startup log: "Failed to read /etc/avahi/services." This directory can contain services files that you want avahi to advertise. Signed-off-by: Maxime Hadjinlian --- package/avahi/avahi.mk | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.13.2 diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk index a356a08291..5f6f3c36b3 100644 --- a/package/avahi/avahi.mk +++ b/package/avahi/avahi.mk @@ -180,6 +180,12 @@ endef AVAHI_POST_INSTALL_TARGET_HOOKS += AVAHI_REMOVE_INITSCRIPT +define AVAHI_CREATE_SERVICES_DIRECTORY + mkdir -p $(TARGET_DIR)/etc/avahi/services +endef + +AVAHI_POST_INSTALL_TARGET_HOOKS += AVAHI_CREATE_SERVICES_DIRECTORY + ifeq ($(BR2_PACKAGE_AVAHI_AUTOIPD),y) define AVAHI_INSTALL_AUTOIPD rm -f $(TARGET_DIR)/var/lib/avahi-autoipd