Move bin/portzap-install-port to libexec/portzap/install-port

This commit is contained in:
0x1eef 2023-01-20 00:25:21 -03:00
parent f40cfb9e67
commit 20f379d11e
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@
source_url="https://git.hardenedbsd.org/hardenedbsd/ports.git"
transient_dir="/home/_portzap/ports"
rest_dir="/usr/ports/"
libexec_dir=$(realpath $(dirname $0)/../libexec/portzap/)
##
# Default masks
@ -109,7 +110,7 @@ install() {
cd $transient_dir
find . -maxdepth 1 -type f -exec install -m $install_mode {} $rest_dir \;
find . -maxdepth 1 -type d -exec mkdir -p -m $install_mode $rest_dir/{} \;
find . -depth 2 -type d -exec portzap-install-port {} $rest_dir $install_mode \;
find . -depth 2 -type d -exec $libexec_dir/install-port {} $rest_dir $install_mode \;
}
case $1 in