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
This commit is contained in:
parent
a6560981d4
commit
86dce8416e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533337
12
CHANGES
12
CHANGES
|
@ -10,6 +10,18 @@ in the release notes and/or placed into UPDATING.
|
|||
|
||||
All ports committers are allowed to commit to this file.
|
||||
|
||||
20200414:
|
||||
AUTHOR: bapt@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@FreeBSD.org
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user