Fpm

From BCCD 3.0

Jump to: navigation, search

Contents

Introduction

Fpm (aka F'ing Package Manager) is a Ruby-based tool for producing .deb (among many other) packages from a directory tree.

Installation

  1. Install ruby-dev:
  1. Install fpm using gem: sudo gem install fpm
    1. Use on pre-v3.4.0 if you get dependency problems: gem1.9.1 install fpm -v 1.4.0, will be installed in /var/lib

Building a package

A basic build will look like this:

/usr/local/bin/fpm -n atlas -v 3.10.1~v332 -a amd64 \
   -s dir -t deb ${BCCD_SW}/ATLAS/3.10.1/${ARCHPATH}

You will get a .deb package you can add to Reprepro. Replace v332 with the current BCCD revision number.

You can also use the auto_fpm script in Subversion to automate builds in /bccd/software

Special note on version numbers

Not all software packages use version numbers that work with deb packages. Perform the following version number translations:

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox