Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2019 17:01:58 +0200
From:      =?UTF-8?B?VMSzbA==?= Coosemans <tijl@FreeBSD.org>
To:        Mathieu Arnold <mat@FreeBSD.org>, bapt@FreeBSD.org
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r503385 - head/Mk/Scripts
Message-ID:  <20190615170158.489616a4@kalimero.tijl.coosemans.org>
In-Reply-To: <201906031257.x53Cvi9P092541@repo.freebsd.org>
References:  <201906031257.x53Cvi9P092541@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 3 Jun 2019 12:57:44 +0000 (UTC) Mathieu Arnold <mat@FreeBSD.org>
wrote:
> Author: mat
> Date: Mon Jun  3 12:57:44 2019
> New Revision: 503385
> URL: https://svnweb.freebsd.org/changeset/ports/503385
> 
> Log:
>   Use UCL for pkg-message
>   
>   Remain backward compatible but use ucl for the pkg-messages, which allows to:
>   - append messages one after the other
>   - only print message on delete, install, upgrade from a version to another
>   
>   If pkg-message starts with a [ we consider it should be a valid ucl file
>   
>   The format is the following:
>   [
>   { message: "Always print" },
>   { message: "package being removed", type: remove },
>   { message: "package being installed", type: install },
>   { message: "package is being upgraded", type: upgrade },
>   { message: "Upgrading from lower than 1.0", maximum_version: "1.0", type: upgrade },
>   { message: "Upgrading from higher than 1.0", minimum_version: "1.0", type: upgrade  },
>   { message: "Upgrading from >1.0 < 3.0", maximum_version: "3.0", minimum_version: "1.0",
>   ]
>   
>   Because it is ucl one can use some sugar like:
>   [
>   { message = <<EOD
>   formatted
>   message 'with fancy things'
>   EOD
>   },
>   }

Can this be extended to include these fields:
opsys: <operating system this message applies to>
osversion: <list of os version ranges this message applies to>
arch: <list of architectures this message applies to>
options: <list of options that need to be on or off>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190615170158.489616a4>