diff --git a/libexec/portzap/portzap-install b/libexec/portzap/portzap-install index 952b6da..e223754 100755 --- a/libexec/portzap/portzap-install +++ b/libexec/portzap/portzap-install @@ -5,7 +5,8 @@ gitdir=$1 installdir=$2 revfile=$3 -libexec="/usr/local/libexec/portzap" +localbase="${LOCALBASE:-/usr/local}" +libexec="${localbase}/libexec/portzap" mode="u=rwX,g=rwX,o=" ## diff --git a/libexec/portzap/portzap-setup b/libexec/portzap/portzap-setup index 9e75eb8..54c6ab2 100755 --- a/libexec/portzap/portzap-setup +++ b/libexec/portzap/portzap-setup @@ -2,8 +2,9 @@ ## # variables -conf=$(cat /usr/local/share/portzap/doas.conf) -doas=/usr/local/etc/doas.conf +localbase="${LOCALBASE:-/usr/local}" +conf=$(cat "${localbase}"/share/portzap/doas.conf) +doas="${localbase}"/etc/doas.conf ## # main