1 <?
include ("barry.inc"); ?
>
3 <?
createHeader("Installing Barry"); ?
>
5 <?
createSubHeader("Dependencies"); ?
>
7 <p
>See the
<?
createLink("dependencies", "software dependencies"); ?
> page
for
8 detailed information on the software that Barry needs
.</p
>
11 <?
createSubHeader("Getting the Source"); ?
>
13 <p
>There are
3 ways to get the source code
:
15 <li
>download the release tarball from the
16 <a href
="http://sourceforge.net/project/showfiles.php?group_id=153722">download page
</a
></li
>
17 <li
>download the development tree
18 <a href
="http://sourceforge.net/cvs/?group_id=153722">using CVS
</a
></li
>
19 <li
>download the development tree
20 <a href
="http://repo.or.cz/w/barry.git">using git
</a
></li
>
25 <?
createSubHeader("Using The Tarball Release"); ?
>
27 <p
>There are multiple source packages available on the Sourceforge download page
.
28 The main tarball is always the tar
.bz2 package
. This contains everything in
29 CVS
, including pre
-built configure scripts
and website documentation
.</p
>
31 <p
>As an alternative
, the tar
.gz packages are Debian
-specific
. This comes
as
32 an
"orig" tarball
, with the debian
/ subdirectory contained in the diff
.gz file
.
33 A
.dsc file is included
as well
, for ease of Debian package building
. These
34 files can be expanded into a Debian style source tree with the following
37 dpkg
-source
-x barry_0
.15
-0.dsc
41 <p
>Once the tar
.gz
and diff
.gz files are combined
, you will have a tree
42 identical to what comes with the tar
.bz2 package
.</p
>
44 <p
>See
<i
>Building the Source
</i
> below
for instructions on building the
47 <p
>Alternatively
, there are rpm source packages
, in the form of src
.rpm files
.
48 These packages can be installed
and built
as usual
, using the rpm
and rpmbuild
52 <?
createSubHeader("Using CVS"); ?
>
54 <p
>Up to date instructions
for connecting to Sourceforge CVS repositories
56 <a href
="http://sourceforge.net/cvs/?group_id=153722">CVS page
</a
>. This
57 usually involves commands like this
:
60 cvs
-d
:pserver
:anonymous@barry
.cvs
.sourceforge
.net
:/cvsroot
/barry login
61 (press enter when it asks
for password
)
62 cvs
-d
:pserver
:anonymous@barry
.cvs
.sourceforge
.net
:/cvsroot
/barry co
-P barry
66 <p
>This will place the Barry sources in the barry directory
. To update
67 your source tree periodically
, do the following
:
70 ./buildgen
.sh
cleanall (optional
)
76 <?
createSubHeader("Using git"); ?
>
78 <p
>The same development tree is also available via git
, and can be browsed
79 on the web at the
<a href
="http://repo.or.cz/w/barry.git">Barry git page
</a
>.
80 You can
clone the repository like this
:
83 git
clone git
://repo.or.cz/barry.git barry
87 <p
>This will place the Barry sources in the barry directory
. To update
88 your source tree periodically
, do the following
:
92 ./buildgen
.sh
cleanall (optional
)
102 <?
createSubHeader("Preparing Development Sources for Configure"); ?
>
104 <p
>If you
're using a development tree, you'll need to build the usual
105 ./configure script before you can proceed
. To
do this
, you will need
106 autoconf
, automake
, and libtool
as stated on the dependencies page
.
107 The correct sequence of commands to build
./configure is already stored
108 in the
./buildgen
.sh shell script in the root level directory of the
119 <?
createSubHeader("Building the Source"); ?
>
121 <p
>At this point
, or if you are using a source tarball
, building Barry
122 is a matter of the common set of commands
:
126 make
install (possibly
as root
)
130 <p
> The top level configure script has two sub
-package options
:
132 <li
> --enable
-gui
</li
>
133 <li
> --enable
-opensync
-plugin
</li
>
137 <p
>Each option will recurse into the gui
/ (Backup application
) and
138 opensync
-plugin
/ directories respectively
, and build the subprojects
139 located there automatically
. Make sure you have the needed software
140 dependencies installed beforehand
.</p
>
142 <p
> If you want to generate doxygen documentation
, run
'doxygen' from
143 the root source directory
. The resulting files will be in
144 doc
/www
/doxygen
/html
/. Doxygen
1.5.6 has been used to
do this
,
145 but presumably more recent versions will work
as well
.</p
>
149 <?
createSubHeader("Build Everything!"); ?
>
151 <p
>An example that will build everything
, including the Boost features in
155 ./buildgen
.sh
cleanall (this will make a pristine tree
)
156 ./buildgen
.sh (this creates configure
)
157 ./configure
--enable
-boost
--enable
-gui
--enable
-opensync
-plugin
163 <p
>This will give you a set of command line
tools (bcharge
, btool
, breset
,
164 bidentify
, bjavaloader
, pppob
), as well
as the backup
GUI (barrybackup
),
165 and will install the opensync plugin into the system directory
for opensync
166 plugins (usually
/usr
/lib
/opensync
/plugins
). Available man pages are also
169 <p
>You can
use 'btool' to explore your device from the command line
.
170 Use the
-h
switch for help on its command line options
. Some good ones to
171 start with are
<code
>-l
</code
> to
list the devices found
, and <code
>-t
</code
>
172 to
list the Database Database
.</p
>
175 <?
createSubHeader("Configure udev to Run bcharge Automatically"); ?
>
177 <p
>The makefiles
do not install udev rules automatically
. There are sample
178 udev rules files in the udev
/ directory
. For a Debian system
, copy the
179 udev
/debian
/10-blackberry
.rules file to
/etc
/udev
/rules
.d
/10-blackberry
.rules
,
180 and copy the file modprobe
/blacklist
-berry_charge to
181 /etc
/modprobe
.d
/blacklist
-berry_charge
.
185 cp udev
/debian
/10-blackberry
.rules
/etc
/udev
/rules
.d
/10-blackberry
.rules
186 cp modprobe
/blacklist
-berry_charge
/etc
/modprobe
.d
/blacklist
-berry_charge
190 <p
>Make sure that bcharge was installed to
/usr
/sbin
. If you used a different
191 --prefix option on the
./configure command line
, you will need to update
192 your
10-blackberry
.rules file to match
.</p
>
195 <?
createSubHeader("Configure PPP chat scripts for your system"); ?
>
197 <p
>The source tree comes with sample PPP chat scripts
for using your
198 Blackberry
as a modem
. These sample scripts are located under ppp
/ in
199 your source directory
.
200 The binary packages install all the ppp options files under
/etc
/ppp
/peers
/
201 and all the chat
scripts (with the
*.chat extensions
) under
202 /etc
/chatscripts
/. These directories are important
, since the pppd
203 program expects to find options files under peers
/ and the options files
204 reference the chatscripts
.</p
>
206 <p
>Copy the above samples to their appropriate directories to install
207 modem support
for your system
. Make sure you have pppd installed
as well
.</p
>
209 <p
>If you install Barry in a location other than
/usr
, you will need
210 to edit the options files to correct the hard coded paths in these
211 files
. The files assume that pppob is located in
/usr
/sbin
/pppob
.</p
>
213 <p
>See the
<?
createLink("modem", "modem usage"); ?
> page
for more
214 information on using your Blackberry
as a modem
.</p
>
217 <?
createSubHeader("Building Barry RPMs from CVS"); ?
>
219 <p
> Paul Dugas reports on the mailing
list that he uses the following
220 steps
for building RPMs from CVS
:</p
>
228 $
./configure
--enable
-gui
--enable
-opensync
-plugin
230 $ rpmbuild
-tb barry
-0.13.tar
.gz
232 I prefer running rpmbuild from the tarball
as it
's typically the way
233 non-developers would build them. I have ~/.rpmmacros setting %_topdir
234 to %(echo $HOME)/.rpmbuild so the RPM building can run as me and not
235 root. The resulting RPMs end up in ~/.rpmbuild/RPMS/x86_64.
238 <p> On an RPM based system, install <b>rpm-build</b> and <b>rpmdevtools</b>,
239 then run <b>rpmdev-setuptree</b> to create an "rpmbuild" directory in your
243 <? createSubHeader("Building Barry DEBs from Source"); ?>
245 <p>Once you have ./configure generated as detailed above, you can
246 create Debian-style binary packages for your system by running the
250 fakeroot -- debian/rules binary