From patchwork Wed May 10 02:51:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Stewart X-Patchwork-Id: 760397 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 3wN1983HwMz9s1h for ; Wed, 10 May 2017 12:56:44 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=paral-in.20150623.gappssmtp.com header.i=@paral-in.20150623.gappssmtp.com header.b="IC5Pmou2"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DFFF889177; Wed, 10 May 2017 02:56: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 Xgikh6Sje7LT; Wed, 10 May 2017 02:56:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 242D789160; Wed, 10 May 2017 02:56:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 9D4971C01DA for ; Wed, 10 May 2017 02:56:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 866A12F76A for ; Wed, 10 May 2017 02:56:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 92z0f8CHxlSY for ; Wed, 10 May 2017 02:56:26 +0000 (UTC) X-Greylist: delayed 00:05:13 by SQLgrey-1.7.6 Received: from mail-pg0-f43.google.com (mail-pg0-f43.google.com [74.125.83.43]) by silver.osuosl.org (Postfix) with ESMTPS id 1F36127F2E for ; Wed, 10 May 2017 02:56:26 +0000 (UTC) Received: by mail-pg0-f43.google.com with SMTP id u187so9177165pgb.0 for ; Tue, 09 May 2017 19:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paral-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=NX1nPlQjVexQrE7aHiOdug2hN5uQ9/5k4qY4A2MLdAs=; b=IC5Pmou28TJxTb/ZGzAhypwV/YQHokQnThDCDgg0EoqUfeu9hhZFzebP71fPzJdGay xvfWIdI957FK2AoLI5QaNxKh4Q0aCvjDrXIROGSN+hVm4S8p9C1HTIkbD5r9tWA+2oPZ oH1380GGaMdyGLUxLI0MYhFpFLpz1BOYFqLrY3F1PqsMb+NqwhL8ShzjXnVgNN5WFske bcCWGon2XvLNHLZYEYduXPF4mEX5I8OXwNuU29s1pU6AgEhhDAnTdOo1xRtq811h076Y xpPWiZw5VLtgTWsJ+NVl8CjD5mHAguUvEgom0qk7tI1xtoVDIjWo/+KtTmvapcz2v5bd p9MA== 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=NX1nPlQjVexQrE7aHiOdug2hN5uQ9/5k4qY4A2MLdAs=; b=hJqxQMJSOlFteEkiVmuDigo3KrHkbi5jWtJIqIn2XPG29vIROYUC95tpKsjubdzvyh lzNbh60J3wtHw+C1lDheUa4hAgSEkLsfzeG9FPYL5CQCT88pjdshosZiZC/KS2XBrN92 xtceNMdKmds+4k/bn29YSy1WuPCojzV2eSLhskXd427ohUtyqxMjhEgB/17LhDWsAWqU 6sFrz4L2x0NGgZbSvIy54d1qtc5/whuxRW2gBpX3UL1KS0JD0Fbwz0fk9BosZ2z5CPty gMWNHTmoHedOyM21Cb0WoMyZG5lzzJHGlZw9rTAB+hnQxO14HLpMsSj/UivYAdJmRYzC Jtog== X-Gm-Message-State: AODbwcD9dhnJo9tbmy0vIaAqPt3OB1iisjFqi3UtnUay+N0ILxzigh8n MpZ1KK2RZxw9hg== X-Received: by 10.98.145.18 with SMTP id l18mr3549361pfe.45.1494384672884; Tue, 09 May 2017 19:51:12 -0700 (PDT) Received: from localhost.localdomain ([2605:e000:6106:100:c9f2:48f0:2df:d658]) by smtp.gmail.com with ESMTPSA id t5sm2036379pgo.48.2017.05.09.19.51.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 May 2017 19:51:12 -0700 (PDT) From: Christian Stewart To: buildroot@buildroot.org Date: Tue, 9 May 2017 22:51:06 -0400 Message-Id: <20170510025108.21169-1-christian@paral.in> X-Mailer: git-send-email 2.10.2 Cc: thomas.petazzoni@free-electrons.com, geoff@infradead.org, Christian Stewart , fontaine.fabrice@gmail.com Subject: [Buildroot] [PATCH 1/3] dumb-init: new package 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" dumb-init is a minimal init process to act as PID 1 for containers. dumb-init can be used to satisfy docker-engine's docker-init binary requirement. Signed-off-by: Christian Stewart --- package/Config.in | 1 + package/dumb-init/Config.in | 7 +++++++ package/dumb-init/dumb-init.hash | 2 ++ package/dumb-init/dumb-init.mk | 22 ++++++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/dumb-init/Config.in create mode 100644 package/dumb-init/dumb-init.hash create mode 100644 package/dumb-init/dumb-init.mk diff --git a/package/Config.in b/package/Config.in index d57813c..b784f4a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1770,6 +1770,7 @@ comment "Utilities" source "package/crudini/Config.in" source "package/dialog/Config.in" source "package/dtach/Config.in" + source "package/dumb-init/Config.in" source "package/file/Config.in" source "package/gnupg/Config.in" source "package/gnupg2/Config.in" diff --git a/package/dumb-init/Config.in b/package/dumb-init/Config.in new file mode 100644 index 0000000..e817493 --- /dev/null +++ b/package/dumb-init/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_DUMB_INIT + bool "dumb-init" + help + dumb-init is a simple but valid init binary to + act as PID 1 for containers. + + https://github.com/Yelp/dumb-init diff --git a/package/dumb-init/dumb-init.hash b/package/dumb-init/dumb-init.hash new file mode 100644 index 0000000..4705ce4 --- /dev/null +++ b/package/dumb-init/dumb-init.hash @@ -0,0 +1,2 @@ +# Locally computed +sha256 74486997321bd939cad2ee6af030f481d39751bc9aa0ece84ed55f864e309a3f v1.2.0.tar.gz diff --git a/package/dumb-init/dumb-init.mk b/package/dumb-init/dumb-init.mk new file mode 100644 index 0000000..f06fe6a --- /dev/null +++ b/package/dumb-init/dumb-init.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# dumb-init +# +################################################################################ + +DUMB_INIT_VERSION = v1.2.0 +DUMB_INIT_SITE = https://github.com/Yelp/dumb-init/archive +DUMB_INIT_SOURCE = $(DUMB_INIT_VERSION).tar.gz +DUMB_INIT_LICENSE = MIT +DUMB_INIT_LICENSE_FILES = LICENSE + +define DUMB_INIT_BUILD_CMDS + $(TARGET_CC) \ + -o $(@D)/dumb-init $(@D)/dumb-init.c +endef + +define DUMB_INIT_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/dumb-init $(TARGET_DIR)/usr/bin/dumb-init +endef + +$(eval $(generic-package))