Difference between revisions of "Debian packages"
From Bashlinux
(Created page with "=== How to build Debian backports === * Install pbuild and the needed tools apt-get install --no-install-recommends pbuilder devscripts dpkg-dev build-essential fakeroot debh...") |
(No difference)
|
Latest revision as of 01:31, 17 June 2015
How to build Debian backports
- Install pbuild and the needed tools
apt-get install --no-install-recommends pbuilder devscripts dpkg-dev build-essential fakeroot debhelper dh-autoreconf
- Create the configuration file ~/.pbuilderrc-squeeze
DISTRIBUTION=squeeze COMPONENTS="main contrib non-free" MIRRORSITE=http://ftp.nl.debian.org/debian DEBSECSERVER=http://security.debian.org/debian-security OTHERMIRROR="deb ${DEBSECSERVER} ${DISTRIBUTION}/updates ${COMPONENTS}" BUILDPLACE=/home/bashlinux/pbuilder/build BASETGZ=/home/bashlinux/pbuilder/base-squeeze.tgz BUILDRESULT=/home/bashlinux/pbuilder/result APTCACHE=/home/bashlinux/pbuilder/apt-cache DEBBUILDOPTS="-sa" if -n $SUDO_USER ; then BUILDRESULTUID=$SUDO_UID BUILDRESULTGID=$SUDO_GID fi
- Create a chroot for builds
pbuilder create --configfile ~/.pbuilderrc-squeeze
- Get the package description
dget http://ftp.de.debian.org/debian/pool/main/h/hidapi/hidapi_0.8.0~rc1+git20140201.3a66d4e+dfsg-3.dsc
- Extract the sources
dpkg-source -x hidapi_0.8.0~rc1+git20140201.3a66d4e+dfsg-3.dsc
- Update the changelog
cd hidapi-0.8.0~rc1+git20140201.3a66d4e+dfsg dch -n -l bashlinux -D raspbian
- Build the package
dpkg-buildpackage -rfakeroot -us -uc
- Export the packages
cd /path/to/repo reprepro includedsc wheezy /path/to/build/hidapi_0.8.0*dfsg-3.1.dsc reprepro include wheezy /path/to/build/hidapi_0.8.0*dfsg-3.1_armhf.changes