Changeset 13499 in hybrid for branches/releng-10


Ignore:
Timestamp:
Nov 24, 2015, 2:52:12 PM (9 years ago)
Author:
rick
Message:

Package options to be set automatically for poudriere.

Location:
branches/releng-10/nanobsd
Files:
90 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-10/nanobsd/tools/package-build.sh

    r13483 r13499  
    3636}
    3737
     38packages_refresh() {
     39        # Install new package options
     40        POUDRIERE_MAKE_CONF_FILE=wlpkgbuild10_2-node-make.conf
     41        POUDRIERE_OPTIONS=wlpkgbuild10_2-node-options
     42
     43        if [ -d "/usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS" ]; then
     44          rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS
     45        fi
     46
     47        cp ${config_dir}/$POUDRIERE_MAKE_CONF_FILE /usr/local/etc/poudriere.d
     48        cp -R ${config_dir}/$POUDRIERE_OPTIONS /usr/local/etc/poudriere.d
     49}
     50
    3851
    3952package_build() {
     
    4861if [ "x$1" = "xinitenv" ]; then
    4962        packages_initenv
     63        packages_refresh
     64elif [ "x$1" = "xrebuild" ]; then
     65        package_refresh
     66        package_build
    5067elif [ "x$1" = "xbuild" ]; then
    5168        package_build
    5269else
    53         echo "Usage $0 <initenv|build>"
     70        echo "Usage $0 <initenv|rebuild|build>"
    5471        exit 128
    5572fi
Note: See TracChangeset for help on using the changeset viewer.