svn commit: r533337 - in head: . Mk Mk/Scripts
Baptiste Daroussin
bapt at FreeBSD.org
Wed Apr 29 14:01:07 UTC 2020
Author: bapt
Date: Wed Apr 29 14:01:05 2020
New Revision: 533337
URL: https://svnweb.freebsd.org/changeset/ports/533337
Log:
Allow lua scripts in the framworks.
Bump the minimum required pkg version to a version that accepts
properly lua scripts
Lua script offers the advantages over shell scripts that they are
running in a capsicum sandbox and they are natively rootdir friendly
Reviewed by: portmgr (mat)
Differential Revision: https://reviews.freebsd.org/D21433
Modified:
head/CHANGES
head/Mk/Scripts/create-manifest.sh
head/Mk/bsd.port.mk
Modified: head/CHANGES
==============================================================================
--- head/CHANGES Wed Apr 29 13:40:39 2020 (r533336)
+++ head/CHANGES Wed Apr 29 14:01:05 2020 (r533337)
@@ -11,6 +11,18 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
20200414:
+AUTHOR: bapt at FreeBSD.org
+
+ package scripts can now be done in lua, the following are supported:
+
+ - pkg-pre-install.lua
+ - pkg-post-install.lua
+ - pkg-pre-deinstall.lua
+ - pkg-post-deinstall.lua
+
+ see pkg-lua-script(5) for more details.
+
+20200414:
AUTHOR: mat at FreeBSD.org
USES=lua gained flavors.
Modified: head/Mk/Scripts/create-manifest.sh
==============================================================================
--- head/Mk/Scripts/create-manifest.sh Wed Apr 29 13:40:39 2020 (r533336)
+++ head/Mk/Scripts/create-manifest.sh Wed Apr 29 14:01:05 2020 (r533337)
@@ -104,6 +104,7 @@ for stage in INSTALL DEINSTALL UPGRADE; do
output=${dp_METADIR}/+${prepost:+${prepost}_}${stage}
for input in ${files}; do
[ -f "${input}" ] && cat ${input} >> ${output}
+ [ -f "${input}.lua" ] && cp ${input}.lua ${dp_METADIR}
done
done
done
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Wed Apr 29 13:40:39 2020 (r533336)
+++ head/Mk/bsd.port.mk Wed Apr 29 14:01:05 2020 (r533337)
@@ -1047,7 +1047,7 @@ _FLAVOR:= ${FLAVOR}
.if !defined(PORTS_FEATURES) && empty(${PORTS_FEATURES:MFLAVORS})
PORTS_FEATURES+= FLAVORS
.endif
-MINIMAL_PKG_VERSION= 1.6.0
+MINIMAL_PKG_VERSION= 1.13.0
_PORTS_DIRECTORIES+= ${PKG_DBDIR} ${PREFIX} ${WRKDIR} ${EXTRACT_WRKDIR} \
${STAGEDIR}${PREFIX} ${WRKDIR}/pkg ${BINARY_LINKDIR}
More information about the svn-ports-head
mailing list