Differences between revisions 9 and 10
Revision 9 as of 2015-03-29 10:44:32
Size: 3127
Comment:
Revision 10 as of 2015-03-29 10:50:15
Size: 3218
Comment:
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
The pogo tea,s maintains two ppa's, one which is considered stable, which we are going to use The pogo team maintains two PPA's, a stable PPA, which we are going to use
Line 24: Line 24:
at and one "dev" here and a dev" PPA here
Line 27: Line 27:
Step 1: On the page of the PPA, look for the heading that reads "Adding this PPA to your system" and click the "Technical details about this PPA link". Step 1: On the page of the PPA, look for the heading that reads "Adding this PPA to your system" and click the "Technical details about this PPA" link.
Line 55: Line 55:
===== Install the package source and buildbuild the package ===== ===== Install the package source and build the package =====
Line 76: Line 76:

If you feel brave, have a look at what's inside the {{{pogo-0.8.3/debian/}}} directory, read IntroDebianPackaging

If a package is availaible in a Ubuntu PPA but not in Debian, you can easily create a Debian version of if.

Here we're going to build a Debian package of the Pogo music player.

Checking that the package is absent from debian

The package might not be availaible in your version from Debian, but maybe it is available in testing/unstable You can check that with the command rmadison. If you're interested by a package called vagrant and rmadison vagrant returns something like:

vagrant | 1.6.5+dfsg1-2 | sid          | source, all

it means you should rather do a SimpleBackportCreation of the vagrant package.

Install the Debian SDK

apt-get install devscripts build-essential

Add the PPA source url to your sources.list

The pogo team maintains two PPA's, a stable PPA, which we are going to use https://launchpad.net/~pogo-dev/+archive/ubuntu/daily and a dev" PPA here https://launchpad.net/~pogo-dev/+archive/ubuntu/daily

Step 1: On the page of the PPA, look for the heading that reads "Adding this PPA to your system" and click the "Technical details about this PPA" link.

Step 2: Use the Display sources.list entries drop-down box, and select here the latest version of Ubuntu

Step 3: You'll see that the text-box directly below reads something like this:

deb http://ppa.launchpad.net/pogo-dev/stable/ubuntu utopic main 

We are interested in the line start with with **deb-src**. which is the source repository of the package.

Step 4: Now we can add this line in your list of repos As root:

echo "deb-src http://ppa.launchpad.net/pogo-dev/stable/ubuntu utopic main" > /etc/apt/sources.list.d/pogo.list 

Step 5: To use this repository safely we also have to add the repository signing key, localted on the same page. Here it reads:

Signing key:
1024R/0D4D9B55 (What is this?) 

The 0D4D9B55 part in the middle, is the key ID, that we will use to add this key to our list of trusted apted sources. As root:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0D4D9B55

Install the package source and build the package

All of this is possible with the magical command. As normal user:

apt-get source --build pogo

Note: For this to work you need to uncomment the lines starting with *deb-src* in /etc/apt/sources.list, or you will get the error "E: You must put some 'source' URIs in your sources.list".

Install the resulting stuff

You habe a package in the directory called something like pogo_0.8.3-0~579~ubuntu14.10.1_all.deb You can install it with

dpkg -i pogo_0.8.3-0~579~ubuntu14.10.1_all.deb

Going further

If you find that the program you used would be of interest to other debian users, check it if an "ITP:IntentToPackage" or a "RFP:RequestForPackage" bug report has been used. If no one has done this before, create a new bug report. For instance this the RFP for Pogo: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666008

If you feel brave, have a look at what's inside the pogo-0.8.3/debian/ directory, read IntroDebianPackaging