From patchwork Fri Nov 1 02:44:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1187736 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ma5JpmYs"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47463R5n27z9sPF for ; Fri, 1 Nov 2019 13:44:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3F5D68816B; Fri, 1 Nov 2019 02:44:30 +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 Lp9bNNk7pQts; Fri, 1 Nov 2019 02:44:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 911AA883A3; Fri, 1 Nov 2019 02:44:29 +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 4E8DD1BF20F for ; Fri, 1 Nov 2019 02:44:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4AAC4883A3 for ; Fri, 1 Nov 2019 02:44:28 +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 6bTmKqumAQ7E for ; Fri, 1 Nov 2019 02:44:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 9F4AF8816B for ; Fri, 1 Nov 2019 02:44:27 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id k1so9338603iom.9 for ; Thu, 31 Oct 2019 19:44:27 -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:mime-version :content-transfer-encoding; bh=ZNLS/pkTSllfDvek7pdDxnDjGZlDQ/V7wjNpXr5rG+4=; b=Ma5JpmYscEXD06jZAcZUn0gvoDf+eIltPpT5lJYfVspu/iBot7PpoDImhUHxfAvj6B j1+VzhCaGjC/8wM9yf8624Q2TT+KH/VMZr+02SEpdRplqAHtzBcMcKjOamPhtXWb5Bl6 1f+4vl2c3u430n/UBK2D8q9tmunEY95d8hYpcE/5u4WFXSv7tSSuJD3REt2jdmUv/7WK ZUVZc0Z2VzfBDqo8KXry0ByiltHQqIQ9jxjfe9es3D4KTEROQvTrbe0fURcRsBDsC6/Y JOr/2+Fb7B9j+CEO2qkl/EixwBnuNf+EYeSt3asadzdSozKdSoYYOX6PFMlekKN4Gdll mM3g== 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:mime-version :content-transfer-encoding; bh=ZNLS/pkTSllfDvek7pdDxnDjGZlDQ/V7wjNpXr5rG+4=; b=laqtQgA23imJ1y2tAt6GB8uQAz1juE5ratbkXS6owBAo6WVA70dw1hSPBVCKTDAgA8 PJGgbijYqBrGf5lOkQJb2emxHhpnYRGmu6g75VdlKdhDF4zDygOQcfFFVya+NUsIDy+C K23epa/JPKXR0kFUMtqXH9SZWjGqZAP90Jjr05jRvSJBiiDSFWkg66PjiwIN3mKd9Nd7 lkAwzWQIzcdnMBhYrIjgx2p9Ix2lUnYi9ccog2hZ7ZBHusYrMYgAs+pzUTEkh0LKz0i8 M2BkbzIDukCsAOITlES3IVI1hyvsUKVtxeGhlHVcOApB78m/N5jK8kEpcpKRlIhcWFnA 2ufA== X-Gm-Message-State: APjAAAUTsTQrAhI5klBwvrKTKJt8z+jAwLuOjofmhmRQk4AE9ES9942W 4MbqPrQUDaOvVkGmbdJrmVxQ+sNW X-Google-Smtp-Source: APXvYqy4oiT4zkpBsh7IPJjlKl7SLk2NHjbWQ+iRVzSfsntszqwcOvR8BahVVBsqUxj1zvS1zhGEfg== X-Received: by 2002:a6b:b88a:: with SMTP id i132mr8537011iof.1.1572576266412; Thu, 31 Oct 2019 19:44:26 -0700 (PDT) Received: from james-x399.localdomain (71-218-240-127.hlrn.qwest.net. [71.218.240.127]) by smtp.gmail.com with ESMTPSA id y13sm864456ily.16.2019.10.31.19.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 19:44:25 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 31 Oct 2019 20:44:22 -0600 Message-Id: <20191101024422.102466-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/iputils: enable systemd services X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James Hilliard Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" These are normally enabled by systemctl preset-all. Signed-off-by: James Hilliard Reviewed-by: Petr Vorel --- package/iputils/iputils.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk index 4a06581790..822c8d8a1b 100644 --- a/package/iputils/iputils.mk +++ b/package/iputils/iputils.mk @@ -47,11 +47,21 @@ else IPUTILS_CONF_OPTS += -DUSE_CRYPTO=none # BUILD_NINFOD=true and USE_CRYPTO=none cannot be combined IPUTILS_CONF_OPTS += -DBUILD_NINFOD=false +IPUTILS_NO_NINFOD = y endif # ninfod requires ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y) IPUTILS_CONF_OPTS += -DBUILD_NINFOD=false +IPUTILS_NO_NINFOD = y +endif + +ifneq ($(IPUTILS_NO_NINFOD),y) +define IPUTILS_INSTALL_SERVICE_NINFOD + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -sf ../../../../lib/systemd/system/ninfod.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ninfod.service +endef endif ifeq ($(BR2_SYSTEM_ENABLE_NLS),y) @@ -103,4 +113,15 @@ define IPUTILS_PERMISSIONS endef endif +define IPUTILS_INSTALL_SERVICE_RDISC + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -sf ../../../../lib/systemd/system/rdisc.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rdisc.service +endef + +define IPUTILS_INSTALL_INIT_SYSTEMD + $(IPUTILS_INSTALL_SERVICE_NINFOD) + $(IPUTILS_INSTALL_SERVICE_RDISC) +endef + $(eval $(meson-package))