From d3e58fed8517d63bf0b925ea1cdec968cdd4517a Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 22 Oct 2020 06:39:16 +0000 Subject: [PATCH] Convert @shell from shell script to lua script This makes @shell rootdir friendly and cross install friendly as well as capsicumized. Bonus: the /etc/shells is now only touched when needed Reviewed by: manu, mat Approved by: portmgr (mat) Differential Revision: D26640 --- Keywords/shell.ucl | 51 +++++++++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/Keywords/shell.ucl b/Keywords/shell.ucl index 269640f1d14d..27d0b460aeb3 100644 --- a/Keywords/shell.ucl +++ b/Keywords/shell.ucl @@ -8,21 +8,40 @@ # actions: [file] -post-install: < ${PKG_ROOTDIR}/etc/shells - rm -f ${PKG_ROOTDIR}/etc/shells.bak +post-install-lua: < ${PKG_ROOTDIR}/etc/shells - rm -f ${PKG_ROOTDIR}/etc/shells.bak +pre-deinstall-lua: <