summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/chroot-tools/libremakepkg13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index cd81876..baf8015 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -174,7 +174,11 @@ build() {
local user=$LIBREUSER
$INCHROOT || user=nobody
- run -N "$copydir" "sudo -u ${user} -- makepkg ${makepkg_args} -e"
+ if $NONET; then
+ run -N "$copydir" "sudo -u ${user} -- makepkg ${makepkg_args} -e"
+ else
+ run "$copydir" "sudo -u ${user} -- makepkg ${makepkg_args} -e"
+ fi
}
# Functions that check for issues with the build ###############################
@@ -221,6 +225,9 @@ usage() {
echo 'Options:'
echo ' -n <CHROOT> Name of the chroot to use'
echo ' -l <COPY> Name of, or absolute path to, the copy to use'
+ echo " -N Don't disable networking during build() or package()"
+ echo ' Only use this as a temporary hack to use distcc,'
+ echo ' until actual distcc support is added.'
echo ' -R Repackage contents of the package without rebuilding'
echo ' -h Show this message'
}
@@ -241,10 +248,12 @@ main() {
INCHROOT=true
fi
- while getopts 'n:l:Rh' arg ; do
+ NONET=true
+ while getopts 'n:l:NRh' arg ; do
case "${arg}" in
n) CHROOT=$OPTARG;;
l) COPY=$OPTARG;;
+ N) NONET=false;;
R) repack=true; makepkg_args+=" -R";;
h) usage; return 0;;
*) usage; return 1;;