Changeset 14123 in hybrid for branches/releng-11


Ignore:
Timestamp:
Apr 10, 2018, 9:39:27 PM (7 years ago)
Author:
rick
Message:

Fix duplicated entry locations

Make options and port selected are confusingly specified or generated at
multiple locations. Merging all back into cfg/nanobsd.wleiden configuration.

Location:
branches/releng-11/nanobsd
Files:
1 deleted
1 edited

Legend:

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

    r14121 r14123  
    88. `dirname $0`/common.inc.sh
    99
     10
    1011cfg_dir=`dirname $0`/../cfg
    1112abs_cfg_dir=`cd $cfg_dir; pwd -P`
    1213
    13 poudriere_pkglist_file=${cfg_dir}/wlpkgbuild-default-node-pkglist
     14# Wireless Leiden configuration file
     15. $cfg_dir/nanobsd.wleiden
    1416
    1517
     
    5254        POUDRIERE_OPTIONS=wlpkgbuild-node-options
    5355
    54         # Clean old stuff (legacy directories)
     56
     57        # Clean old stuff (legacy directories & symlinks)
    5558        rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE
    5659        rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS
    5760
    58         # Generate new symlinks
    59         ln -s ${abs_cfg_dir}/$POUDRIERE_MAKE_CONF_FILE /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE
     61        # Generate new content
     62        echo "$PKG_MAKE_CONF" > /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE
    6063        ln -s ${abs_cfg_dir}/$POUDRIERE_OPTIONS /usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS
    6164}
     
    6366
    6467packages_build() {
    65         poudriere bulk -j wlpkgbuild -p default -z node -f ${poudriere_pkglist_file}
     68        poudriere bulk -j wlpkgbuild -p default -z node $*
    6669}
    6770
    68 # Make package list
    69 . $cfg_dir/nanobsd.wleiden
    70 echo $PACKAGE_LIST | tr " " "\n" > ${poudriere_pkglist_file}
    7171
    7272
     
    7777        packages_refresh
    7878elif [ "x$1" = "xconfig" ]; then
     79        packages_refresh
    7980        packages_config $*
    8081elif [ "x$1" = "xrebuild" ]; then
    8182        packages_refresh
    82         packages_build
     83        packages_build $PACKAGE_LIST
    8384elif [ "x$1" = "xbuild" ]; then
    84         packages_build
     85        packages_refresh
     86        packages_build $PACKAGE_LIST
    8587else
    8688        echo "Usage $0 <initenv|config|rebuild|build>"
Note: See TracChangeset for help on using the changeset viewer.