Ignore:
Timestamp:
Apr 29, 2012, 6:02:29 PM (13 years ago)
Author:
rick
Message:

Make port building whole bunch more stupid:

1) Bundle ports in the tree itself, instead of global shared banch.
2) Copy the local ports just in the /usr/ports tree to allow playing around

with just the ordenary tools.

Location:
branches/releng-9.0/nanobsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-9.0/nanobsd

    • Property svn:externals
      •  

        old new  
        1 ports http://svn.wirelessleiden.nl/svn/code/ports
         1
  • branches/releng-9.0/nanobsd/tools/image

    r10593 r10612  
    2222# rebuild                       - Rebuild NanoBSD (aka force rebuilding all)
    2323# deploy on <node> [and reboot] - Deploy the image on node and reboot if needed
     24# ports update                  - Update the packages from ports
     25# ports force rebuild           - Forcefully rebuilding all required packages
    2426EOF
    2527}
     
    110112}
    111113
    112 
    113114#
    114115# Argument parsing
     
    150151  fi
    151152  deploy_image
     153elif [ "$1" = "ports" ]; then
     154  if [ "$2" = "update" ]; then
     155    # Fetch the latest details and provide listing of packages to be updated
     156    portsnap fetch update || exit 1
     157
     158    # HACK: install our own ports _inside_ the normal ports dir
     159    cp -fR $WL_PORTSDIR/* $PORTSDIR
     160
     161    # Make sure portmaster is present to update all ports
     162    portmaster --version 1>/dev/null 2>/dev/null || make -C /usr/ports/ports-mgmt/portmaster BATCH=yes install clean || exit 1
     163
     164    # Update via portmaster
     165    portmaster --no-confirm --update-if-newer -y -d -G  `echo $PKG_MAKE_ARGS | xargs -n1 echo -m `  $PACKAGE_LIST || exit 1
     166
     167    . ${BASEDIR}/package-build.sh
     168  elif [ "$2" = "force" -a "$3" = "rebuild" ]; then
     169    export FORCE_REBUILD=1
     170    . ${BASEDIR}/package-build.sh
     171  else
     172    shift 1
     173    echo "Arguments Error - '$*'"; exit 128
     174  fi
    152175else
    153176  echo "Argument Error - '$1'"; exit 128
Note: See TracChangeset for help on using the changeset viewer.