Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2021 22:18:28 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r569361 - in head: . Keywords
Message-ID:  <202103272218.12RMITeB074322@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Mar 27 22:18:28 2021
New Revision: 569361
URL: https://svnweb.freebsd.org/changeset/ports/569361

Log:
  Add a new @touch keyword
  
  it takes 1 pr N arguments, it creates each of the said files
  if they do not exist yet
  
  As it is using lua, it means it has the bonus of being cross installable,
  rootdir friendly and sandboxed.
  
  Reviewed by:	mat, manu
  Differential Revision:	https://reviews.freebsd.org/D29426

Added:
  head/Keywords/touch.ucl   (contents, props changed)
Modified:
  head/CHANGES

Modified: head/CHANGES
==============================================================================
--- head/CHANGES	Sat Mar 27 21:52:27 2021	(r569360)
+++ head/CHANGES	Sat Mar 27 22:18:28 2021	(r569361)
@@ -26,6 +26,13 @@ AUTHOR: gnome@FreeBSD.org
 
   	DEFAULT_VERSIONS+=librsvg2=legacy
 
+20210327;
+AUTHOR: bapt@FreeBSD.org
+
+  New @touch keyword
+  Its purpose is to ensure that a file is being created at install time
+  while not necessary tracked by the package.
+
 20201120:
 AUTHOR: pauamma@gundo.com
 

Added: head/Keywords/touch.ucl
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/Keywords/touch.ucl	Sat Mar 27 22:18:28 2021	(r569361)
@@ -0,0 +1,10 @@
+# $FreeBSD$
+#
+# MAINTAINER:	portmgr@FreeBSD.org
+actions: []
+arguments: true
+post-install-lua: <<EOD
+	for i=1, #arg do
+		assert(io.open(pkg.prefixed_path(arg[i]), "a"):close())
+	end
+EOD



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