Skip to content

deanwilson/unixdaemon-fpm-cookery-recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unixdaemon: FPM-Cookery Recipes

Actions Status

fpm-cookery is a very helpful wrapper around the excellent fpm rubygem, a gem that makes building packages amazingly easy. Cookery extends fpms powers by handling additional infrastructure requirements such as downloading files needed for the package build.

This repo contains some of the fpm-cookery recipes I've written for my personal use.

Using the recipes

# get the code and install the prerequisites
git clone https://github.com/deanwilson/unixdaemon-fpm-cookery-recipes.git

cd unixdaemon-fpm-cookery-recipes

bundle install   # this installs fpm-cookery

Now we'll build one of the packages from our recipes. In this case we'll create a goss Debian package.

cd goss

bundle exec fpm-cook --target deb package
... snip ...
===> Created package: /home/dwilson/.../recipes/goss/pkg/goss_0.1.3_amd64.deb

You can now list the contents of the package -

dpkg -c pkg/goss_*.deb

drwxrwxr-x 0/0               0 2016-04-05 23:36 ./usr/local/
drwxrwxr-x 0/0               0 2016-04-05 23:36 ./usr/local/bin/
-rwxrwxr-x 0/0         2323228 2016-04-05 23:36 ./usr/local/bin/goss

On Redhat you can build and confirm the package contents with

bundle exec fpm-cook --target rpm package

rpm -qvilp  pkg/goss*.rpm

This requires the rpm-build to be present.

Notes

I have seen the occasional addition of extra files when building packages on Fedora instances.

rpm -qvilp  pkg/*.rpm
... snip ...
drwxr-xr-x  2 root  root  0 Jan 18 17:05 /usr/lib/.build-id
drwxr-xr-x  2 root  root  0 Jan 18 17:05 /usr/lib/.build-id/3b

Setting the _build_id_links macro to none seems to prevent this behaviour. In my case I've added it to the ~/.rpmmacros configuration file.

cat ~/.rpmmacros
%_build_id_links none

Author

Dean Wilson

About

A collection of fpm-cookery recipes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •