Commit 1a108b92 authored by bapt's avatar bapt
Browse files

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
parent 1bad2055
......@@ -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
......
# $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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment