In the literature it has so far been common practice to consider solitary waves N-waves (composed of solitary waves) as the appropriate model of tsunamis approaching the shoreline. Unfortunately, this approach is based on a tie between the nonlinearity and the horizontal length scale (or duration) of the wave, which is not realistic for geophysical tsunamis. To resolve this problem, we first derive analytical solutions to the nonlinear shallow-water (NSW) equations for the runup/rundown of single waves, where the duration and the wave height can be specified separately. The formulation is then extended to cover leading depression N-waves composed of a superposition of positive and negative single waves. As a result the temporal variations of the runup elevation, the associated velocity and breaking criteria are specified in terms of polylogarithmic functions. Finally, we consider incoming transient wavetrains generated by monopole and dipole disturbances in the deep ocean. The evolution of these wavetrains, while travelling a considerable distance over a constant depth, is influenced by weak dispersion and is governed by the linear Korteweg-De Vries (KdV) equation. This process is described by a convolution integral involving the Airy function. The runup on the plane sloping beach is then determined by another convolution integral involving the incoming time series at the foot of the slope. A good agreement with numerical model results is demonstrated.