Changeset 14123 in hybrid for branches/releng-11/nanobsd
- Timestamp:
- Apr 10, 2018, 9:39:27 PM (7 years ago)
- Location:
- branches/releng-11/nanobsd
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-11/nanobsd/tools/package-build.sh
r14121 r14123 8 8 . `dirname $0`/common.inc.sh 9 9 10 10 11 cfg_dir=`dirname $0`/../cfg 11 12 abs_cfg_dir=`cd $cfg_dir; pwd -P` 12 13 13 poudriere_pkglist_file=${cfg_dir}/wlpkgbuild-default-node-pkglist 14 # Wireless Leiden configuration file 15 . $cfg_dir/nanobsd.wleiden 14 16 15 17 … … 52 54 POUDRIERE_OPTIONS=wlpkgbuild-node-options 53 55 54 # Clean old stuff (legacy directories) 56 57 # Clean old stuff (legacy directories & symlinks) 55 58 rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE 56 59 rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS 57 60 58 # Generate new symlinks59 ln -s ${abs_cfg_dir}/$POUDRIERE_MAKE_CONF_FILE/usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE61 # Generate new content 62 echo "$PKG_MAKE_CONF" > /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE 60 63 ln -s ${abs_cfg_dir}/$POUDRIERE_OPTIONS /usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS 61 64 } … … 63 66 64 67 packages_build() { 65 poudriere bulk -j wlpkgbuild -p default -z node -f ${poudriere_pkglist_file}68 poudriere bulk -j wlpkgbuild -p default -z node $* 66 69 } 67 70 68 # Make package list69 . $cfg_dir/nanobsd.wleiden70 echo $PACKAGE_LIST | tr " " "\n" > ${poudriere_pkglist_file}71 71 72 72 … … 77 77 packages_refresh 78 78 elif [ "x$1" = "xconfig" ]; then 79 packages_refresh 79 80 packages_config $* 80 81 elif [ "x$1" = "xrebuild" ]; then 81 82 packages_refresh 82 packages_build 83 packages_build $PACKAGE_LIST 83 84 elif [ "x$1" = "xbuild" ]; then 84 packages_build 85 packages_refresh 86 packages_build $PACKAGE_LIST 85 87 else 86 88 echo "Usage $0 <initenv|config|rebuild|build>"
Note:
See TracChangeset
for help on using the changeset viewer.