Nonlocal boundary-value problems with local boundary conditions