diff --git a/bin/Makefile b/bin/Makefile index 7e420de5fd..22c393e6d8 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -33,3 +33,5 @@ install: $(BINS) install -d $(SBINDIR) install -m 755 $(BINS) $(SBINDIR) install -m 755 xbps-src.sh $(SBINDIR)/xbps-src + sed -i -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" $(SBINDIR)/xbps-src + diff --git a/bin/xbps-src.sh b/bin/xbps-src.sh index a4ce3121f2..c4f0ab2c72 100755 --- a/bin/xbps-src.sh +++ b/bin/xbps-src.sh @@ -151,6 +151,8 @@ check_config_vars() [ $? -ne 0 ] && msg_error "couldn't create '$f' directory" fi done + + export PATH="$PATH:@@XBPS_INSTALL_PREFIX@@/sbin" } #