Fpm
From BCCD 3.0
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
- Install ruby-dev:
- (only on pre v3.4.0) Install the ruby dev package:
sudo apt-get -y install ruby{,1.9.1}-dev
- (post v3.4.0)
sudo apt-get -y install ruby-{dev,ffi}
- (only on pre v3.4.0) Install the ruby dev package:
- Install fpm using gem:
sudo gem install fpm
- 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
- Use on pre-v3.4.0 if you get dependency problems:
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:
- _ -> -
- UPPER -> LOWER