Aims. This article presents very-high-energy (VHE; E > 100 GeV) data from the $\gamma$-ray binary PSR B1259-63 as taken during the years 2005, 2006 and before as well as shortly after the 2007 periastron passage. These data extend the knowledge of the lightcurve of this object to all phases of the 3.4 year binary orbit. The lightcurve constrains physical mechanisms present in this TeV source. Methods. Observations of VHE $\gamma$-rays with the HESS telescope array using the Imaging Atmospheric Cherenkov Technique were performed. The HESS instrument features an angular resolution of < 0.1° and an energy resolution of < 20%. Gamma-ray events in an energy range of 0.5-70 TeV were recorded. From these data, energy spectra and lightcurve with a monthly time sampling were extracted. Results. VHE $\gamma$-ray emission from PSR B1259-63 was detected with an overall significance of 9.5 standard deviations using 55h of exposure, obtained from April to August 2007. The monthly flux of $\gamma$-rays during the observation period was measured, yielding VHE lightcurve data for the early pre-periastron phase of the system for the first time. No spectral variability was found on timescales of months. The spectrum is described by a power law with a photon index of $\Gamma$ = 2.8 $\pm$ 0.2stat $\pm$ 0.2sys and flux normalisation $\Phi_{0}$ = (1.1 $\pm$ 0.1stat $\pm$ 0.2sys) $\times$ 10-12 TeV-1 cm-2 s-1. PSR B1259-63 was also monitored in 2005 and 2006, far from periastron passage, comprising 8.9 h and 7.5 h of exposure, respectively. No significant excess of $\gamma$-rays is seen in those observations. Conclusions. PSR B1259-63 has been re-confirmed as a variable TeV $\gamma$-ray emitter. The firm detection of VHE photons emitted at a true anomaly $\theta$$\approx$-0.35 of the pulsar orbit, i.e. already ~50 days prior to the periastron passage, disfavors the stellar disc target scenario as a primary emission mechanism, based on current knowledge about the companion star's disc inclination, extension, and density profile. Results. VHE $\gamma$-ray emission from PSR B1259-63 was detected with an overall significance of 9.5 standard deviations using 55h of exposure, obtained from April to August 2007. The monthly flux of $\gamma$-rays during the observation period was measured, yielding VHE lightcurve data for the early pre-periastron phase of the system for the first time. No spectral variability was found on timescales of months. The spectrum is described by a power law with a photon index of $\Gamma$ = 2.8 $\pm$ 0.2stat $\pm$ 0.2sys and flux normalisation $\Phi_{0}$ = (1.1 $\pm$ 0.1stat $\pm$ 0.2sys) $\times$ 10-12 TeV-1 cm-2 s-1. PSR B1259-63 was also monitored in 2005 and 2006, far from periastron passage, comprising 8.9 h and 7.5 h of exposure, respectively. No significant excess of $\gamma$-rays is seen in those observations. Conclusions. PSR B1259-63 has been re-confirmed as a variable TeV $\gamma$-ray emitter. The firm detection of VHE photons emitted at a true anomaly $\theta$$\approx$-0.35 of the pulsar orbit, i.e. already ~50 days prior to the periastron passage, disfavors the stellar disc target scenario as a primary emission mechanism, based on current knowledge about the companion star's disc inclination, extension, and density profile.