3127
Comment:
|
3210
typo/spelling/language fixes
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
If a package is availaible in a Ubuntu PPA but not in Debian, you can easily create a Debian version of if. | If a package is available in an Ubuntu PPA but not in Debian, you can easily create a Debian version of it. |
Line 7: | Line 7: |
===== 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: |
===== Checking that the package is absent from Debian ===== The package might not be available in your Debian version, but it may be available in testing/unstable. You can check this with the command rmadison. If you're interested in a package called {{{vagrant}}}, {{{rmadison vagrant}}} returns something like: |
Line 14: | Line 14: |
it means you should rather do a SimpleBackportCreation of the vagrant package. | which means you should instead do a SimpleBackportCreation of the vagrant package. |
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 36: | Line 36: |
We are interested in the line start with with **deb-src**. which is the source repository of the package. | We are interested in the line starting with **deb-src**. which is the source repository of the package. |
Line 38: | Line 38: |
Step 4: Now we can add this line in your list of repos | Step 4: Now we can add this line in your list of repos. |
Line 44: | Line 44: |
Step 5: To use this repository safely we also have to add the repository signing key, localted on the same page. Here it reads: | Step 5: To use this repository safely we also have to add the repository signing key, located on the same page. Here it reads: |
Line 55: | Line 55: |
===== Install the package source and buildbuild the package ===== | ===== Install the package source and build the package ===== |
Line 65: | Line 65: |
You habe a package in the directory called something like pogo_0.8.3-0~579~ubuntu14.10.1_all.deb | You have a package in the directory called something like pogo_0.8.3-0~579~ubuntu14.10.1_all.deb |
Line 72: | Line 72: |
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 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. |
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 available in an Ubuntu PPA but not in Debian, you can easily create a Debian version of it.
Here we're going to build a Debian package of the Pogo music player.
Contents
Checking that the package is absent from Debian
The package might not be available in your Debian version, but it may be available in testing/unstable. You can check this with the command rmadison. If you're interested in a package called vagrant, rmadison vagrant returns something like:
vagrant | 1.6.5+dfsg1-2 | sid | source, all
which means you should instead 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 starting 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, located 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 have 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