Skip to content

Instantly share code, notes, and snippets.

@skiold
Last active December 20, 2015 09:59
Show Gist options
  • Save skiold/6112283 to your computer and use it in GitHub Desktop.
Save skiold/6112283 to your computer and use it in GitHub Desktop.
class MinimalExample < FPM::Cookery::Recipe
homepage 'https://gist.github.com/skiold/6112283'
section 'Utilities'
name 'minimal-example'
version '3.2.2'
description 'fail fast example'
revision 0
vendor 'fpm'
maintainer '<[email protected]>'
license 'Apache 2.0 License'
source '', :with => :noop
omnibus_package true
omnibus_dir "/opt/#{name}"
config_files '/etc/hosts'
omnibus_additional_paths config_files
def build
# Nothing
end
def install
# Set paths to package scripts
self.class.post_install builddir('post-install')
self.class.pre_uninstall builddir('pre-uninstall')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment