From nobody Fri May 27 15:35:15 2022 X-Original-To: dev-commits-ports-main@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 170911B45D19 for ; Fri, 27 May 2022 15:35:27 +0000 (UTC) (envelope-from vanilla@fatpipi.com) Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L8ply1qFYz3mmj for ; Fri, 27 May 2022 15:35:26 +0000 (UTC) (envelope-from vanilla@fatpipi.com) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-300312ba5e2so51739087b3.0 for ; Fri, 27 May 2022 08:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fatpipi-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=bxw0fnDbWtP5Of4apuGtr4x2XRlbkzRz3LNkm7Czpn0=; b=oMVGh/qgdMnBnC3tOH2FkBClk8tVNGG5ZP8XG8nnfMWxOVUILG/3RlfDNIEef+jXET Ywqei8FHIMBAY0pimOSfxqOI56avhJ1d1itfnrG6oTRp7XBk/fejBDae0EeyqRNzE3vd ZAXG3qTPmTPdhLvr7ZmOSA9opQWYEd1xhpRtiEjce0lOsAHnsbHCwlrw5txCyVKlB3KO ow7j/FPZjjF4TDkk1hAHrKV5A/OgZtjEjX/jY3GcpxqRhY02EAEHGyeIXQ8xnVeCV1B7 3VayTUb4ETGGFN6WvZ806v0ZHuzGvy45oeZk5FXCkKfspclALqiwB6hEcVdn8tl9WrnL pZXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=bxw0fnDbWtP5Of4apuGtr4x2XRlbkzRz3LNkm7Czpn0=; b=pOI62DK8i9TyZCPaVEp26oDH+rYYo8Ty/4FBNXwuwDMCBaKZdOmuB8IStVQbEV7xIK f+kcCWIE1E+dkqlUkDmTzg8X8iyyMIvxJzvRXmOtLB8vqKBt76STUPva4s8CVrDu7/N2 tCWjw6v0SJtgJ+YioRlmqRAJquFPHovFpTP7keAPHyvuLQfcfqE5Py8ES4X0fBt/VDD2 8Fop5eDj5McAa30QHC8GI/huN10TtkVa9lFo5wC48434uAVHeEQNbKmOnpijxk2i1ewF axSqQmU3qFjEMGI/3vwQkcmDS+gtQGx0xmY4Ln7PsdNcPpSIbP0qgOPJZana5AmA3ltD AO7A== X-Gm-Message-State: AOAM530jUSFzhLslQwrMGwSxcp/Du2XmPxA1v0DIuiHaP7YbnvrxD8CV 9ZbOG9/8GFmpPtNVVmhW+BnDvDcV5GO1KNJMpTcBkA== X-Google-Smtp-Source: ABdhPJzg9NfV3LuTBUvMmeHMoNlbTUFrUzvbAY8fLTjM18RjfrfohaULAj0CqK7BCJ4iozjXG/9Epc2ZPpNGCJI4m+U= X-Received: by 2002:a0d:d946:0:b0:309:7856:e6b5 with SMTP id b67-20020a0dd946000000b003097856e6b5mr2000540ywe.377.1653665725709; Fri, 27 May 2022 08:35:25 -0700 (PDT) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 References: <202205271519.24RFJcCi002478@gitrepo.freebsd.org> In-Reply-To: <202205271519.24RFJcCi002478@gitrepo.freebsd.org> Reply-To: v@fatpipi.com From: Vanilla Hsu Date: Fri, 27 May 2022 23:35:15 +0800 Message-ID: Subject: Re: git: 3d6e3986a577 - main - sysutils/firstboot-cloudsetup: Add new port To: Baptiste Daroussin Cc: ports-committers , dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Content-Type: multipart/alternative; boundary="00000000000028935305e0000edf" X-Rspamd-Queue-Id: 4L8ply1qFYz3mmj X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fatpipi-com.20210112.gappssmtp.com header.s=20210112 header.b="oMVGh/qg"; dmarc=none; spf=none (mx1.freebsd.org: domain of vanilla@fatpipi.com has no SPF policy when checking 2607:f8b0:4864:20::1133) smtp.mailfrom=vanilla@fatpipi.com X-Spamd-Result: default: False [-2.30 / 15.00]; HAS_REPLYTO(0.00)[v@fatpipi.com]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[fatpipi-com.20210112.gappssmtp.com:s=20210112]; FREEFALL_USER(0.00)[vanilla]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; REPLYTO_DOM_EQ_FROM_DOM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-ports-main@freebsd.org]; URI_COUNT_ODD(1.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[fatpipi-com.20210112.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1133:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[dev-commits-ports-main]; R_SPF_NA(0.00)[no SPF record]; DMARC_NA(0.00)[fatpipi.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000028935305e0000edf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable the WWW line of pkg-desc, should not use ${PORTNAME}, right? -- WWW: https://git.sr.ht/~jornane/${PORTNAME} -- Baptiste Daroussin =E6=96=BC 2022=E5=B9=B45=E6=9C=8827= =E6=97=A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=8811:19=E5=AF=AB=E9=81=93=EF= =BC=9A > The branch main has been updated by bapt: > > URL: > https://cgit.FreeBSD.org/ports/commit/?id=3D3d6e3986a57795cd8fa0680cce25a= 2fe04859703 > > commit 3d6e3986a57795cd8fa0680cce25a2fe04859703 > Author: J=C3=B8rn =C3=85ne de Jong > AuthorDate: 2022-05-27 14:39:58 +0000 > Commit: Baptiste Daroussin > CommitDate: 2022-05-27 15:19:25 +0000 > > sysutils/firstboot-cloudsetup: Add new port > > Configure network and user data from cloud configuration at first boo= t. > The configuration is written before the netif service is started. > Compatible with OpenNebula. > > PR: 264286 > --- > sysutils/Makefile | 1 + > sysutils/firstboot-cloudsetup/Makefile | 20 ++++++++++++++++++++ > sysutils/firstboot-cloudsetup/distinfo | 3 +++ > sysutils/firstboot-cloudsetup/pkg-descr | 5 +++++ > sysutils/firstboot-cloudsetup/pkg-plist | 10 ++++++++++ > 5 files changed, 39 insertions(+) > > diff --git a/sysutils/Makefile b/sysutils/Makefile > index b2019a0ff14d..3c7dfe366ae3 100644 > --- a/sysutils/Makefile > +++ b/sysutils/Makefile > @@ -368,6 +368,7 @@ > SUBDIR +=3D filevercmp > SUBDIR +=3D filewatcherd > SUBDIR +=3D finfo > + SUBDIR +=3D firstboot-cloudsetup > SUBDIR +=3D firstboot-freebsd-update > SUBDIR +=3D firstboot-growfs > SUBDIR +=3D firstboot-pkgs > diff --git a/sysutils/firstboot-cloudsetup/Makefile > b/sysutils/firstboot-cloudsetup/Makefile > new file mode 100644 > index 000000000000..5d6539c0fdcc > --- /dev/null > +++ b/sysutils/firstboot-cloudsetup/Makefile > @@ -0,0 +1,20 @@ > +PORTNAME=3D cloudsetup > +PORTVERSION=3D 1.0 > +CATEGORIES=3D sysutils > +MASTER_SITES=3D https://git.sr.ht/~jornane/${PORTNAME}/archive/ > +PKGNAMEPREFIX=3D firstboot- > + > +MAINTAINER=3D jornane@icloud.com > +COMMENT=3D Configure network and user when the system first boots > + > +LICENSE=3D BSD3CLAUSE > + > +WRKSRC=3D work/${PORTNAME}-${DISTNAME} > +NO_BUILD=3D yes > +NO_ARCH=3D yes > + > +post-patch: > + @${REINPLACE_CMD} -e "s,/usr/local,${PREFIX},g" \ > + ${WRKSRC}/firstboot_cloudsetup.rc > + > +.include > diff --git a/sysutils/firstboot-cloudsetup/distinfo > b/sysutils/firstboot-cloudsetup/distinfo > new file mode 100644 > index 000000000000..7d0c06dde937 > --- /dev/null > +++ b/sysutils/firstboot-cloudsetup/distinfo > @@ -0,0 +1,3 @@ > +TIMESTAMP =3D 1653658894 > +SHA256 (cloudsetup-1.0.tar.gz) =3D > b13c1bb680b741116ec830bfad7b09d01f6dec014b37dda2e2d5f3351ccf07e6 > +SIZE (cloudsetup-1.0.tar.gz) =3D 6805 > diff --git a/sysutils/firstboot-cloudsetup/pkg-descr > b/sysutils/firstboot-cloudsetup/pkg-descr > new file mode 100644 > index 000000000000..e73cc9a11b6f > --- /dev/null > +++ b/sysutils/firstboot-cloudsetup/pkg-descr > @@ -0,0 +1,5 @@ > +Configure network and user data from cloud configuration at first boot. > +The configuration is written before the netif service is started. > +Compatible with OpenNebula. > + > +WWW: https://git.sr.ht/~jornane/${PORTNAME} > diff --git a/sysutils/firstboot-cloudsetup/pkg-plist > b/sysutils/firstboot-cloudsetup/pkg-plist > new file mode 100644 > index 000000000000..0cd35542b2f6 > --- /dev/null > +++ b/sysutils/firstboot-cloudsetup/pkg-plist > @@ -0,0 +1,10 @@ > +etc/rc.d/firstboot_cloudsetup > +sbin/cloudsetup > +%%DATADIR%%/cloudsetup-network > +%%DATADIR%%/cloudsetup-user > +%%DATADIR%%/functions.sh > +%%DATADIR%%/netconf-network.sh > +%%DATADIR%%/netconf-resolv.sh > +%%DATADIR%%/netconf-routing.sh > +%%DATADIR%%/show-context.sh > +%%DATADIR%%/userconf-sshkey.sh > --00000000000028935305e0000edf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

the WWW line of pkg-desc, should not use ${PORTNA= ME}, right?

--
--


Baptiste Daroussin <bapt@freebsd.org> =E6=96=BC 2022=E5=B9=B45=E6=9C=8827=E6=97=A5 =E9= =80=B1=E4=BA=94 =E4=B8=8B=E5=8D=8811:19=E5=AF=AB=E9=81=93=EF=BC=9A
The branch main has been updated by bapt:

URL: https://cgi= t.FreeBSD.org/ports/commit/?id=3D3d6e3986a57795cd8fa0680cce25a2fe04859703

commit 3d6e3986a57795cd8fa0680cce25a2fe04859703
Author:=C2=A0 =C2=A0 =C2=A0J=C3=B8rn =C3=85ne de Jong <
git@jornane.no>
AuthorDate: 2022-05-27 14:39:58 +0000
Commit:=C2=A0 =C2=A0 =C2=A0Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-05-27 15:19:25 +0000

=C2=A0 =C2=A0 sysutils/firstboot-cloudsetup: Add new port

=C2=A0 =C2=A0 Configure network and user data from cloud configuration at f= irst boot.
=C2=A0 =C2=A0 The configuration is written before the netif service is star= ted.
=C2=A0 =C2=A0 Compatible with OpenNebula.

=C2=A0 =C2=A0 PR:=C2=A0 =C2=A0 =C2=A0264286
---
=C2=A0sysutils/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 1 +
=C2=A0sysutils/firstboot-cloudsetup/Makefile=C2=A0 | 20 +++++++++++++++++++= +
=C2=A0sysutils/firstboot-cloudsetup/distinfo=C2=A0 |=C2=A0 3 +++
=C2=A0sysutils/firstboot-cloudsetup/pkg-descr |=C2=A0 5 +++++
=C2=A0sysutils/firstboot-cloudsetup/pkg-plist | 10 ++++++++++
=C2=A05 files changed, 39 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index b2019a0ff14d..3c7dfe366ae3 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -368,6 +368,7 @@
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D filevercmp
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D filewatcherd
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D finfo
+=C2=A0 =C2=A0 SUBDIR +=3D firstboot-cloudsetup
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D firstboot-freebsd-update
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D firstboot-growfs
=C2=A0 =C2=A0 =C2=A0SUBDIR +=3D firstboot-pkgs
diff --git a/sysutils/firstboot-cloudsetup/Makefile b/sysutils/firstboot-cl= oudsetup/Makefile
new file mode 100644
index 000000000000..5d6539c0fdcc
--- /dev/null
+++ b/sysutils/firstboot-cloudsetup/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 cloudsetup
+PORTVERSION=3D=C2=A0 =C2=A01.0
+CATEGORIES=3D=C2=A0 =C2=A0 sysutils
+MASTER_SITES=3D=C2=A0 https://git.sr.ht/~jornane= /${PORTNAME}/archive/
+PKGNAMEPREFIX=3D firstboot-
+
+MAINTAINER=3D=C2=A0 =C2=A0 jornane@icloud.com
+COMMENT=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0Configure network and user when the s= ystem first boots
+
+LICENSE=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0BSD3CLAUSE
+
+WRKSRC=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 work/${PO= RTNAME}-${DISTNAME}
+NO_BUILD=3D=C2=A0 =C2=A0 =C2=A0 yes
+NO_ARCH=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0yes
+
+post-patch:
+=C2=A0 =C2=A0 =C2=A0 =C2=A0@${REINPLACE_CMD} -e "s,/usr/local,${PREFI= X},g" \
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${WRKSRC}/firstboot= _cloudsetup.rc
+
+.include <bsd.port.mk>
diff --git a/sysutils/firstboot-cloudsetup/distinfo b/sysutils/firstboot-cl= oudsetup/distinfo
new file mode 100644
index 000000000000..7d0c06dde937
--- /dev/null
+++ b/sysutils/firstboot-cloudsetup/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP =3D 1653658894
+SHA256 (cloudsetup-1.0.tar.gz) =3D b13c1bb680b741116ec830bfad7b09d01f6dec0= 14b37dda2e2d5f3351ccf07e6
+SIZE (cloudsetup-1.0.tar.gz) =3D 6805
diff --git a/sysutils/firstboot-cloudsetup/pkg-descr b/sysutils/firstboot-c= loudsetup/pkg-descr
new file mode 100644
index 000000000000..e73cc9a11b6f
--- /dev/null
+++ b/sysutils/firstboot-cloudsetup/pkg-descr
@@ -0,0 +1,5 @@
+Configure network and user data from cloud configuration at first boot. +The configuration is written before the netif service is started.
+Compatible with OpenNebula.
+
+WWW:=C2=A0 =C2=A0https://git.sr.ht/~jornane/${PORTNAME}
diff --git a/sysutils/firstboot-cloudsetup/pkg-plist b/sysutils/firstboot-c= loudsetup/pkg-plist
new file mode 100644
index 000000000000..0cd35542b2f6
--- /dev/null
+++ b/sysutils/firstboot-cloudsetup/pkg-plist
@@ -0,0 +1,10 @@
+etc/rc.d/firstboot_cloudsetup
+sbin/cloudsetup
+%%DATADIR%%/cloudsetup-network
+%%DATADIR%%/cloudsetup-user
+%%DATADIR%%/functions.sh
+%%DATADIR%%/netconf-network.sh
+%%DATADIR%%/netconf-resolv.sh
+%%DATADIR%%/netconf-routing.sh
+%%DATADIR%%/show-context.sh
+%%DATADIR%%/userconf-sshkey.sh
--00000000000028935305e0000edf--