I developed the directions on this page using Fedora. However they should work with any RPM based Linux distro.

Note: The following instructions should be completed by a non-root user, except for a few specific commands as noted in the text.

  1. If you have not already done so, configure your home directory so that you can build RPM files without needing root privileges. This involves two steps:

    1. Create an RPM build directory structure in your home directory. I call mine "rpm", you may want to call yours "rpmbuild" or whatever... but choose a name which doesn't already exist. The example assumes you are using "rpm" as the name:

      % cd
      % mkdir -m 755 rpm
      % cd rpm
      % mkdir -m 755 BUILD RPMS SOURCES SPECS SRPMS

    2. Create a .rpmmacros file in your home directory which contains a pointer to the directory structure you just created. I use a second line which marks any RPM packages I build with my own name and email address- while not strictly required, it is a good idea. My file looks like this:

      %_topdir /home/marlowe/rpm
      %packager Patrick R McDonald <marlowe@antagonism.org>

      Obviously you need to substitute the full path to the "rpm" directory within your home directory, as well as your own name and email address.

  2. You will need to download the zebedee src RPM to your ~/rpm/SRPMS directory. Once you downloaded the file, you will need to install it. A couple of notes, you may need to press the Enter key after the download completes do to the "&" character in the URL. Second, the zebedee.spec will install owned by the root user. You will need to change the ownership to your user. The below example demonstrates this with the user, marlowe. Change the instructions accordingly.

    % wget -c http://downloads.sourceforge.net/zebedee/zebedee-2.4.1-1.src.rpm?modtime=1022707893&big_mirror=0
    % sudo rpm -ihv ~/rpm/SRPMS/zebedee-2.4.1-1.src.rpm
    % sudo chown -R marlowe.marlowe ~/rpm/SPECS/zebedee.spec

  3. Download the 2.4.1A patch to your ~/rpm/SOURCES directory. The 2.4.1A patch protects against a possible denial of service and upgrades the versions of the libraries used. The instructions below detail how to accomplish this.

    % cd ~/rpm/SOURCES
    % wget -c http://www.antagonism.org/files/zebedee-2.4.1-2.4.1A.patch

  4. Next you will need to edit the zebedee.spec file to incorporate the patch. Below shows the changes which need to be made to the file. Also you need to update spec, replacing the Copyright definition with the License definition.

    1. Change the Copyright defintion to License.

      Line 9 should be:
      Copyright: GPL

      Change it to read:
      License: GPL

    2. Add the Patch defintion.

      Lines 11-13 should be:
      Source: %{name}-%{version}.tar.gz
      Prefix: /usr
      BuildRoot: /var/tmp/zebedee

      Change them to read:
      Source: %{name}-%{version}.tar.gz
      Patch1: %{name}-%{version}-%{version}A.patch
      Prefix: /usr
      BuildRoot: /var/tmp/zebedee

    3. Add the patch command to the %prep section

      The %prep section should read:
      %prep
      %setup

      Change it to read:
      %prep
      %setup
      %patch -p1

  5. Build the zebedee RPM files.

    % rpmbuild -ba ~/rpm/SPECS/zebedee.spec

    (The below section is taken almost verbatim from the following page by John Simpson.

    This should go through the process of configuring and compiling the zebedee software according to the truecrypt.spec file. It will then "install" the software to a temporary working directory, and then scan that directory to build a list of the files which were installed. It then compares that list to a checklist in the spec file to make sure you aren't missing anything, and you aren't forgetting to include any files which are installed from the source, and then builds the binary RPM files.

  6. Install the zebedee software.

    % su -
    Password:
    # cd ~userid/rpm/RPMS/i386
    # rpm -ihv zebedee-*
    # exit


Downloads

File: zebedee-2.4.1-2.4.1A.patch
Size: 3,660 bytes
Date: 2008-05-29 20:19:46 -0700
MD5: ab47e8f306758da6092ae42affa6ee51
SHA-1: 1afdf53b9e24254529ff76eaa514c3ee790f5b91
RIPEMD-160: 38bfd2e5bef7f328bc3f44e59b79ac418d03aa27
PGP Signature: zebedee-2.4.1-2.4.1A.patch.asc