def main(): for i in files_to_save: sh('mv ${WORLD_DESTDIR}/${i} ${WORLD_DESTDIR}/${i}.bak') chroot('${WORLD_DESTDIR}', 'pkg delete -y -f gcc\* || true') for i in files_to_save: sh('mv ${WORLD_DESTDIR}/${i}.bak ${WORLD_DESTDIR}/${i}')
def install_ports(): pkgs = ' '.join(get_port_names(ports.ports)) info('Installing packages') sh('mkdir -p ${INSTUFS_DESTDIR}/usr/local/etc/pkg/repos') sh('cp ${BUILD_CONFIG}/templates/pkg-repos/local.conf ${INSTUFS_DESTDIR}/usr/local/etc/pkg/repos/' ) chroot('${INSTUFS_DESTDIR}', 'env ASSUME_ALWAYS_YES=yes pkg install -r local -f ${pkgs}')
def install_binary_packages(): for i in config.binary_packages: _, name = os.path.split(i) path = e('/usr/ports/packages/${name}') chroot( '${WORLD_DESTDIR}', 'env ASSUME_ALWAYS_YES=yes pkg -o DEBUG_LEVEL=3 install -f ${path}', log=logfile)
def main(): # If doing SDK build we can stop here if e('${SDK}') == "yes": info('SDK: Skipping remove-gcc...') return 0 for i in files_to_save: sh('mv ${WORLD_DESTDIR}/${i} ${WORLD_DESTDIR}/${i}.bak') chroot('${WORLD_DESTDIR}', 'pkg delete -y -f gcc\* || true') for i in files_to_save: sh('mv ${WORLD_DESTDIR}/${i}.bak ${WORLD_DESTDIR}/${i}')
def install_ports(): pkgs = ' '.join(get_port_names(config.ports)) sh('mount -t devfs devfs ${WORLD_DESTDIR}/dev') err = chroot('${WORLD_DESTDIR}', 'env ASSUME_ALWAYS_YES=yes pkg -o DEBUG_LEVEL=3 install -r local -f ${pkgs}', log=logfile, nofail=True) sh('umount -f ${WORLD_DESTDIR}/dev') if not os.path.isdir(e('${WORLD_DESTDIR}/data')) or err != 0: error('Packages installation failed, see log file {0}', logfile)
def install_ports(): pkgs = ' '.join(get_port_names(config.ports)) sh('mount -t devfs devfs ${WORLD_DESTDIR}/dev') err = chroot('${WORLD_DESTDIR}', 'env ASSUME_ALWAYS_YES=yes pkg install -r local -f ${pkgs}', log=logfile, nofail=True) sh('umount -f ${WORLD_DESTDIR}/dev') if not os.path.isdir(e('${WORLD_DESTDIR}/data')) or err != 0: error('Packages installation failed, see log file {0}', logfile)
def install_ports(): pkgs = ' '.join(get_port_names(config.ports)) sh('mount -t devfs devfs ${WORLD_DESTDIR}/dev') err = chroot('${WORLD_DESTDIR}', 'env ASSUME_ALWAYS_YES=yes pkg install -r local -f ${pkgs}', log=logfile, nofail=True) sh('umount -f ${WORLD_DESTDIR}/dev') if not os.path.isdir(e('${WORLD_DESTDIR}/data')) or err != 0: error('Packages installation failed, see log file {0}', logfile) # If we are SDK'ing lets save the ports.txz file if e('${SDK}') == "yes": sh('mkdir -p ${WORLD_DESTDIR}/sdk') info('Saving ports.txz to /sdk/') sh('cp ${BE_ROOT}/ports.txz ${WORLD_DESTDIR}/sdk/ports.txz') info('Saving src.txz to /sdk/') sh('cp ${BE_ROOT}/src.txz ${WORLD_DESTDIR}/sdk/src.txz')
def install_ports(): pkgs = ' '.join(get_port_names(ports.ports)) info('Installing packages') sh('mkdir -p ${INSTUFS_DESTDIR}/usr/local/etc/pkg/repos') sh('cp ${BUILD_CONFIG}/templates/pkg-repos/local.conf ${INSTUFS_DESTDIR}/usr/local/etc/pkg/repos/') chroot('${INSTUFS_DESTDIR}', 'env ASSUME_ALWAYS_YES=yes pkg install -r local -f ${pkgs}')
def main(): chroot('${WORLD_DESTDIR}', 'pkg clean -a -y')
def main(): chroot( '${WORLD_DESTDIR}', 'cap_mkdb -f /conf/base/etc/login.conf /conf/base/etc/login.conf.template' )
def main(): if not os.path.exists(e('${WORLD_DESTDIR}/var/cache/pkg')): os.makedirs(e('${WORLD_DESTDIR}/var/cache/pkg')) chroot('${WORLD_DESTDIR}', 'pkg clean -a -y')
def install_binary_packages(): for i in config.binary_packages: _, name = os.path.split(i) path = e('/usr/ports/packages/${name}') chroot('${WORLD_DESTDIR}', 'env ASSUME_ALWAYS_YES=yes pkg -o DEBUG_LEVEL=3 install -f ${path}', log=logfile)
def main(): chroot('${WORLD_DESTDIR}', 'cap_mkdb /conf/base/etc/login.conf')
def main(): chroot('${WORLD_DESTDIR}', 'pkg delete -y -f gcc48\* || true') chroot('${WORLD_DESTDIR}', 'pkg delete -y -f gcc-ecj\* || true')