1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY libcddb-download-http "&sourceforge-dl;/libcddb/libcddb-&libcddb-version;.tar.bz2">
|
---|
8 | <!ENTITY libcddb-download-ftp " ">
|
---|
9 | <!ENTITY libcddb-md5sum "8bb4a6f542197e8e9648ae597cd6bc8a">
|
---|
10 | <!ENTITY libcddb-size "384 KB">
|
---|
11 | <!ENTITY libcddb-buildsize "3.9 MB (with tests)">
|
---|
12 | <!ENTITY libcddb-time "0.2 SBU (with tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libcddb" xreflabel="libcddb-&libcddb-version;">
|
---|
16 | <?dbhtml filename="libcddb.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>libcddb-&libcddb-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="libcddb">
|
---|
22 | <primary sortas="a-libcddb">libcddb</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to libcddb</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>libcddb</application> is a library that implements
|
---|
30 | the different protocols (CDDBP, HTTP, SMTP) to access data on a CDDB
|
---|
31 | server.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs122_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&libcddb-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&libcddb-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &libcddb-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &libcddb-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &libcddb-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &libcddb-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | &test-use-internet;
|
---|
71 |
|
---|
72 | </sect2>
|
---|
73 |
|
---|
74 | <sect2 role="installation">
|
---|
75 | <title>Installation of libcddb</title>
|
---|
76 |
|
---|
77 | <para>
|
---|
78 | By default this package accesses
|
---|
79 | <systemitem class='domainname'>freedb.org</systemitem>, which is
|
---|
80 | already closed. Modify the default to use
|
---|
81 | <systemitem class='domainname'>gnudb.gnudb.org</systemitem> instead,
|
---|
82 | and fix two stale test data files:
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <screen><userinput>sed -e '/DEFAULT_SERVER/s/freedb.org/gnudb.gnudb.org/' \
|
---|
86 | -e '/DEFAULT_PORT/s/888/&0/' \
|
---|
87 | -i include/cddb/cddb_ni.h &&
|
---|
88 | sed '/^Genre:/s/Trip-Hop/Electronic/' -i tests/testdata/920ef00b.txt &&
|
---|
89 | sed '/DISCID/i# Revision: 42' -i tests/testcache/misc/12340000</userinput></screen>
|
---|
90 |
|
---|
91 | <para>
|
---|
92 | Fix a problem building with gcc-14:
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <screen><userinput>sed -i 's/size_t l;/socklen_t l;/' lib/cddb_net.c</userinput></screen>
|
---|
96 |
|
---|
97 | <para>
|
---|
98 | Install <application>libcddb</application> by running the
|
---|
99 | following commands:
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
103 | make</userinput></screen>
|
---|
104 |
|
---|
105 | <para>
|
---|
106 | To test the results, issue: <command>make check -k</command>.
|
---|
107 | The test suite needs the Internet connection. One test fails due to
|
---|
108 | missing test server.
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | <sect2 role="content">
|
---|
120 | <title>Contents</title>
|
---|
121 |
|
---|
122 | <segmentedlist>
|
---|
123 | <segtitle>Installed Programs</segtitle>
|
---|
124 | <segtitle>Installed Library</segtitle>
|
---|
125 | <segtitle>Installed Directories</segtitle>
|
---|
126 |
|
---|
127 | <seglistitem>
|
---|
128 | <seg>
|
---|
129 | cddb_query
|
---|
130 | </seg>
|
---|
131 | <seg>
|
---|
132 | libcddb.so
|
---|
133 | </seg>
|
---|
134 | <seg>
|
---|
135 | /usr/include/cddb
|
---|
136 | </seg>
|
---|
137 | </seglistitem>
|
---|
138 | </segmentedlist>
|
---|
139 |
|
---|
140 | <variablelist>
|
---|
141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
142 | <?dbfo list-presentation="list"?>
|
---|
143 | <?dbhtml list-presentation="table"?>
|
---|
144 |
|
---|
145 | <varlistentry id="cddb_query">
|
---|
146 | <term><command>cddb_query</command></term>
|
---|
147 | <listitem>
|
---|
148 | <para>
|
---|
149 | provides a user interface to a CDDB server
|
---|
150 | </para>
|
---|
151 | <indexterm zone="libcddb cddb_query">
|
---|
152 | <primary sortas="b-cddb_query">cddb_query</primary>
|
---|
153 | </indexterm>
|
---|
154 | </listitem>
|
---|
155 | </varlistentry>
|
---|
156 |
|
---|
157 | </variablelist>
|
---|
158 | </sect2>
|
---|
159 |
|
---|
160 | </sect1>
|
---|