From nobody Fri May 27 15:35:15 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 4228C1B45D97 for ; Fri, 27 May 2022 15:35:32 +0000 (UTC) (envelope-from vanilla@fatpipi.com) Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) (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 4L8pm34Drzz3mcL for ; Fri, 27 May 2022 15:35:31 +0000 (UTC) (envelope-from vanilla@fatpipi.com) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-304ddb9b42cso34249397b3.2 for ; Fri, 27 May 2022 08:35:31 -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=LD27q86vcViG1xkikW810B05EyQB9g2Yd+bBMTISsGxIcyy4sU+4q8xn7xhIVdmJwn facx7kZ5Y8gqXLdPQziNOuNVUPLO+W5NQwZx5tFymmpPNmejUOrEODlvMUV5ouYW6Ea6 aOUKs6YCc50hN8ueP4W/E/HE8+lrZf47TqRf1uXXuZ0f2Ed41oVxLJUFNp+agG7ytLfV G3vpJ2UQw5+rzWrCmFh1KTLUja3lw38cGsS4NSR6kVV3LLotV9FhbVMit23Bl5jAHJFJ E7i/U3OyQ4+lSFR9bItjf2wfELMADZLIg9LkyJCBf+TjhESoVuIlrFqkAu38IOCvc8gd Dpwg== X-Gm-Message-State: AOAM531w0t0ep9DBLlM2S4KiQDOIDqo4HLesMIOvsUFcnq4PX/k9lJOJ n5fKCXlfriKy2QHLUxB5zNfYQtEs7vSTkDAmmcSu96W47+Qq8A== 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: 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 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: 4L8pm34Drzz3mcL 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::1136) 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-all@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]; DMARC_NA(0.00)[fatpipi.com]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1136:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[dev-commits-ports-all]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; 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--