-
Notifications
You must be signed in to change notification settings - Fork 18
/
debuild.xml
41 lines (35 loc) · 1.69 KB
/
debuild.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<appendix xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
xml:id="debuild">
<title>Building reSIProcate packages on Debian/Ubuntu</title>
<para>reSIProcate packages are usually available in
<emphasis>stable-backports</emphasis>. Sometimes, such as during a
Debian release freeze, <emphasis>stable-backports</emphasis> won't
contain the latest upstream version or there is some other reason to
build the package from source. This is a relatively straightforward
task using the <code>debuild</code> utility.</para>
<example xml:id="debuild-install-debuild">
<title>Installing the <code>debuild</code> command</title>
<programlisting format="linespecific">$ sudo apt-get install devscripts
</programlisting>
</example>
<example xml:id="debuild-install-build-deps">
<title>Installing the compiler and dependencies</title>
<programlisting format="linespecific">$ sudo apt-get build-dep resiprocate</programlisting>
</example>
<example xml:id="debuild-create-deb">
<title>Running the <code>debuild</code> command</title>
<programlisting format="linespecific">$ wget http://.../resiprocate-1.9.8.tar.gz
$ tar xzf resiprocate-1.9.8.tar.gz
$ cd resiprocate-1.9.8
$ debuild -rfakeroot -i -us -uc -b --no-lintian</programlisting>
</example>
<example xml:id="debuild-github">
<title>Running the <code>debuild</code> command using code from Git</title>
<programlisting format="linespecific">$ git clone https://github.com/resiprocate/resiprocate
$ cd resiprocate
$ git checkout 1.9.8
$ debuild -rfakeroot -i -us -uc -b --no-lintian</programlisting>
</example>
</appendix>