svn commit: r569361 - in head: . Keywords

Baptiste Daroussin bapt at FreeBSD.org
Sat Mar 27 22:18:29 UTC 2021


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 at FreeBSD.org
 
   	DEFAULT_VERSIONS+=librsvg2=legacy
 
+20210327;
+AUTHOR: bapt at 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 at 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 at 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


More information about the svn-ports-all mailing list