Permalink
Browse files

Set default pkg repo to remote

When repo is set to local, require poudriere
  • Loading branch information...
kmoore134 committed Nov 12, 2013
1 parent e5d85c9 commit 74268bfd6d65e7a12e6a03a972300b2aad3a26b8
Showing with 12 additions and 1 deletion.
  1. +1 −1 pcbsd.cfg.dist
  2. +3 −0 scripts/build-iso.sh
  3. +8 −0 scripts/checkprogs.sh
View
@@ -27,5 +27,5 @@ export POUD
# Set if we are using a locally built PKGNG repo, or a remote one
# local / remote
-PKGREPO="local"
+PKGREPO="remote"
export PKGREPO
View
@@ -100,6 +100,9 @@ if [ -z "$TARGET" ] ; then TARGET="all"; fi
case $TARGET in
all|ALL) do_world
+ if [ "$PKGREPO" = "local" ] ; then
+ do_ports
+ fi
do_iso ;;
world) do_world ;;
iso) do_iso ;;
View
@@ -41,3 +41,11 @@ if [ ! -d "/usr/local/lib/grub/x86_64-efi" ]; then
echo "Installing grub2-efi.."
rc_halt "pkg install sysutils/grub2-efi"
fi
+
+if [ "$PKGREPO" = "local" ] ; then
+ which poudriere >/dev/null 2>/dev/null
+ if [ "$?" != "0" ]; then
+ echo "Installing poudriere.."
+ rc_halt "pkg install ports-mgmt/poudriere"
+ fi
+fi

0 comments on commit 74268bf

Please sign in to comment.