Index: head/CHANGES =================================================================== --- head/CHANGES +++ head/CHANGES @@ -11,6 +11,18 @@ 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 USES=lua gained flavors. Index: head/Mk/Scripts/create-manifest.sh =================================================================== --- head/Mk/Scripts/create-manifest.sh +++ head/Mk/Scripts/create-manifest.sh @@ -104,6 +104,7 @@ 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 Index: head/Mk/bsd.port.mk =================================================================== --- head/Mk/bsd.port.mk +++ head/Mk/bsd.port.mk @@ -1047,7 +1047,7 @@ .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}