To build the package as deb: apt-get install build-essential devscripts lintian libgeoip-dev php-all-dev Clone this repo Switch to folder php-geoip-1.2.0 Run there: debuild -b -uc -us