From nobody Sun Apr 17 10:47:57 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2D20311DCBA4; Sun, 17 Apr 2022 10:47:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kh6Gk0c93z4nvH; Sun, 17 Apr 2022 10:47:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650192478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2clezlmH8BSE+KAkyXGZjTLltUwHlbdylZ0JawylY74=; b=cjSGz5tCZD5268O9cyoxOM68T1Mizle6slBdzplu55jd7Km4O9xw2L5Ss7zDpgW/QmLEqx OTQnSo2uZhaw28CGCuZWKfGNg4cI6qcwpY/7Q6qqZiaIh+ma6uu+cKC/HX4qfW8BX1WCEN pMWcdJ6C0ZXm2Br6UqSnV3/vcB/RlIeYSULQa/jc7FW2cmKkaEU45JpzyjdrWJ+qf6QPi5 6EhZYX2vFeyF+teqt+ENo64Gqsd1SdykGny//RLxmNslYqKAcD5TFHCc4CCQyDp67aJf02 VKBoCag0w38NgviYjxEdarLrjTxaaWOyu/pZQH3h7fkO0CooeW+Gw0I1Xs6BRg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E4D0F1C7F5; Sun, 17 Apr 2022 10:47:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23HAlvU9062253; Sun, 17 Apr 2022 10:47:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23HAlvVP062252; Sun, 17 Apr 2022 10:47:57 GMT (envelope-from git) Date: Sun, 17 Apr 2022 10:47:57 GMT Message-Id: <202204171047.23HAlvVP062252@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Bernhard Froehlich Subject: git: d5c22b1552d6 - main - sysutils/containerd: Add rc.d script List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: decke X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d5c22b1552d65b9c9e291cb94e45b0ebcd8ee12c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650192478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2clezlmH8BSE+KAkyXGZjTLltUwHlbdylZ0JawylY74=; b=n/zcEkXHfoJjPbX89L3Z9UAuVrW/00pbOiQCjHehVyAgl0PSLHEGgR3ZyjeJczRHOWrt7U AxIPGZUCuC5EFkufcT8E5/uoeKn0pI1FCZhey3+GndTGKnJ6xjxdcEyWDoBmUqcRVUj2Q7 RJDxRf65kRXltJ40hc1bfgdDxBo2kvZkM1+FKmfxjkG3IYe7ZYizcJplBFNB2cj+RAdFzk Hr6YYUKFfXoCoBJGnDs6BB4HnY7xCSlO1OT98E0djgRDej/r5LEOs0QxAQNLQBEDLVmC2S vEcGMSPOZttlbSAQGEXlO6gGkw1i44HqbMEkC0g2KuCLwkte6hLKZKYBJmTSYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650192478; a=rsa-sha256; cv=none; b=x/VFdrU3nV2ULEDdyVbVIFN3b/D7tiV1NuQkFdzEIxM307vnVjA+SIWCXIvD7m9UN0jn93 fu1r8GRSXny84ajff9b49ujx77tFJQt+OeeCudK7Ndtr4by3y/rnDhpsbsrdtQfXmPpKW2 gg5hsonUHwI9QGb7/tDNG9CmHC5t/Vd0g2F6zczUn/hoo+qOC2BqwSBEkb6vtJbQMrnR2R hrlue4MjiDzUQuBGcxTm/okhbVps2jvMdD3SKCvlNncUko+opURPtGlhFvRR1egoN811Qg Sw0XuYbaXWqJeE+8udv6hl3vfWLD0oVRbKm1AViqJEK66Rj2Eeb884TvKpUaUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by decke: URL: https://cgit.FreeBSD.org/ports/commit/?id=d5c22b1552d65b9c9e291cb94e45b0ebcd8ee12c commit d5c22b1552d65b9c9e291cb94e45b0ebcd8ee12c Author: Bernhard Froehlich AuthorDate: 2022-04-17 10:45:24 +0000 Commit: Bernhard Froehlich CommitDate: 2022-04-17 10:45:24 +0000 sysutils/containerd: Add rc.d script PR: 263236 Submitted by: Mateusz Kwiatkowski (based on) --- sysutils/containerd/Makefile | 3 +++ sysutils/containerd/files/containerd.in | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/sysutils/containerd/Makefile b/sysutils/containerd/Makefile index bc30877121a1..9820300a8428 100644 --- a/sysutils/containerd/Makefile +++ b/sysutils/containerd/Makefile @@ -1,6 +1,7 @@ PORTNAME= containerd DISTVERSIONPREFIX=v DISTVERSION= 1.6.2 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= decke@FreeBSD.org @@ -18,6 +19,8 @@ GH_SUBDIR= src/github.com/containerd/containerd CPE_VENDOR= linuxfoundation +USE_RC_SUBR= containerd + MAKE_ENV= ${GO_ENV} \ GOFLAGS="${GO_BUILDFLAGS}" \ VERSION="${DISTVERSION}" diff --git a/sysutils/containerd/files/containerd.in b/sysutils/containerd/files/containerd.in new file mode 100644 index 000000000000..634a3d5b6db4 --- /dev/null +++ b/sysutils/containerd/files/containerd.in @@ -0,0 +1,26 @@ +#!/bin/sh +# +# PROVIDE: containerd +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable containerd: +# +# containerd_enable="YES" + +. /etc/rc.subr + +name="containerd" +rcvar="containerd_enable" + +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +command_args="-P ${pidfile} -r -S -t ${name} -T ${name} %%LOCALBASE%%/bin/containerd" + +load_rc_config $name +: ${containerd_enable:=no} + +# containerd needs to execute a runtime (eg. runj) +PATH="${PATH}:%%PREFIX%%/sbin:%%PREFIX%%/bin" + +run_rc_command "$1"