Download raw body.
Sending patch to ports mail list
On Sun, Jun 16, 2024 at 06:02:30PM +0200, danielhejduk wrote:
> Hello everyone,
>
> I need to send a patch to ports tree. I've just ran "git format-patch -1", I
> see that everyone's using cvs.
>
> How can I format it correctly for everyone?
OpenBSD build system will make them for you.
Here is what I learnt on this list:
> 2) What is the easiest way to create acceptable to the build system patches
> in patches/ ?
> I just do "git diff > patchifile" and manually edit patchfile, but
> that's clearly suboptimal.
Copy the clean original file to have the suffix .orig.port, edit,
then run "make update-patches" from the port dir. If you're using
SUBST_CMD then "update-patches" needs to be run at the right time.
HTH
Dima
>
> Best regards,
>
> Daniel Hejduk
> From 7efb7dc893aa09cecab99cac1bdb1ed501be7a39 Mon Sep 17 00:00:00 2001
> From: Daniel Hejduk <danielhejduk@disroot.org>
> Date: Sun, 16 Jun 2024 19:47:59 +0200
> Subject: [PATCH] Adding sysutils/pfetch to tree
>
> Committer: Daniel Hejduk <danielhejduk@disroot.org>
> ---
> sysutils/pfetch/Makefile | 23 +++++++++++++++++++++++
> sysutils/pfetch/distinfo | 2 ++
> sysutils/pfetch/pkg/DESCR | 1 +
> sysutils/pfetch/pkg/PLIST | 1 +
> 4 files changed, 27 insertions(+)
> create mode 100644 sysutils/pfetch/Makefile
> create mode 100644 sysutils/pfetch/distinfo
> create mode 100644 sysutils/pfetch/pkg/DESCR
> create mode 100644 sysutils/pfetch/pkg/PLIST
>
> diff --git a/sysutils/pfetch/Makefile b/sysutils/pfetch/Makefile
> new file mode 100644
> index 000000000..1ae210143
> --- /dev/null
> +++ b/sysutils/pfetch/Makefile
> @@ -0,0 +1,23 @@
> +COMMENT = Pretty system information tool written in POSIX sh
> +CATEGORIES = sysutils misc
> +
> +MAINTAINER = Daniel Hejduk <danielhejduk@disroot.org>
> +
> +GH_ACCOUNT = un1q32
> +GH_PROJECT = pfetch
> +GH_TAGNAME = 1.1.0
> +REVISION = 0
> +
> +# MIT
> +PERMIT_PACKAGE = Yes
> +
> +NO_BUILD = Yes
> +
> +NO_TEST = Yes
> +
> +PKG_ARCH = *
> +
> +do-install:
> + ${INSTALL_SCRIPT} ${WRKSRC}/pfetch ${PREFIX}/bin/pfetch
> +
> +.include <bsd.port.mk>
> diff --git a/sysutils/pfetch/distinfo b/sysutils/pfetch/distinfo
> new file mode 100644
> index 000000000..d30ca6d9e
> --- /dev/null
> +++ b/sysutils/pfetch/distinfo
> @@ -0,0 +1,2 @@
> +SHA256 (pfetch-1.1.0.tar.gz) = A78+nfNRGtjxK657yFkxGSPw7ZMVp3U/fL7NQqU8xbg=
> +SIZE (pfetch-1.1.0.tar.gz) = 23482
> diff --git a/sysutils/pfetch/pkg/DESCR b/sysutils/pfetch/pkg/DESCR
> new file mode 100644
> index 000000000..f1d7823e1
> --- /dev/null
> +++ b/sysutils/pfetch/pkg/DESCR
> @@ -0,0 +1 @@
> +Pretty system information tool written in POSIX sh
> diff --git a/sysutils/pfetch/pkg/PLIST b/sysutils/pfetch/pkg/PLIST
> new file mode 100644
> index 000000000..d5b399bdf
> --- /dev/null
> +++ b/sysutils/pfetch/pkg/PLIST
> @@ -0,0 +1 @@
> +bin/pfetch
> --
> 2.44.1
>
Sending patch to ports mail list