Commit Graph

136 Commits

Author SHA1 Message Date
Jordan Sissel 100a825796 Version bump for a newer pleaserun 2017-07-28 14:59:15 -07:00
Jordan Sissel 42b7c5acd3 - Version bump.
- This version adds solaris package support. Thanks to Ben Rockwood for
  donating a Joyent Solaris instance so I could work on this.
2017-07-21 10:24:13 -07:00
Elan Ruusamäe fa31f84058 spec: stud is runtime dependency (#1354) 2017-07-20 13:05:44 -07:00
Diego Martins 488863b321 remove archive-tar-minitar as a dependency (#1355) 2017-06-20 14:33:24 -07:00
Jordan Sissel 051c4db507 Pin archive-tar-minitar to work around https://github.com/halostatue/minitar/issues/23 2017-02-05 01:45:32 -08:00
Jordan Sissel 16401efae9 Version bump to 1.7.0 2016-11-28 15:45:54 -08:00
Jordan Sissel b0367de0a2 Don't include 'pyc' (python bytecode) files in the fpm gem package. Will prevent #1191 from happening again. 2016-09-15 10:33:28 -07:00
Matt Hoffman c05bf2b111 prevents json dependency from creeping to version 2.0
json 2.0.1 was published today and requires ruby's version
to be greater than 2.0.
2016-07-01 11:47:13 -04:00
Jordan Sissel e2b1ca3d04 Update dependency on pleaserun 2016-05-23 14:03:50 -07:00
Jordan Sissel 6881690bfc Work-in-progress adding a pleaserun source for fpm.
Long term, we'll probably have a "smart" post-install that will choose
the correct service (systemd, etc) to install based on the platform
doing the installation, not the platform creating the package :)

Adds dependencies on pleaserun and upgrades clamp to suit.

Example using the defaults in pleaserun:

    # Create a package called 'example-service' that installs a service named 'example'
    % bin/fpm -s pleaserun -t rpm -n example-service --pleaserun-name example  =logger hello world
    No platform selected. Autodetecting... {:platform=>"systemd", :version=>"default", :level=>:warn}
    Writing file {:destination=>"/tmp/package-pleaserun-staging20160513-12576-1ozurnf/lib/systemd/system/example.service"}
    Writing install actions. You will want to run this script to properly activate your service on the target host {:path=>"/tmp/package-pleaserun-staging20160513-12576-1ozurnf/install_actions.sh"}
    Created package {:path=>"example-service-1.0-1.x86_64.rpm"}

    # ^^ The above service will execute "logger hello world"

    # What's in our rpm?
    % rpm -qlp example-service-1.0-1.x86_64.rpm
    /lib/systemd/system/example.service

    # What about any post-install steps?
    % rpm -qp example-service-1.0-1.x86_64.rpm --scripts
    postinstall scriptlet (using /bin/sh):
    systemctl --system daemon-reload

    # Install it.
    % sudo rpm -ivh example-service-1.0-1.x86_64.rpm

    # Start it.
    % sudo systemctl start example

    # Check the logs!
    % sudo tail -n1 /var/log/messages
    May 13 03:32:55 localhost root: hello world

Example choosing 'sysv' as the platform:

    % bin/fpm -s pleaserun -t rpm -n example-service --pleaserun-platform sysv --pleaserun-name example  =logger hello world
    Writing file
    {:destination=>"/tmp/package-pleaserun-staging20160513-13675-xae6xd/etc/init.d/example"}
    Writing file
    {:destination=>"/tmp/package-pleaserun-staging20160513-13675-xae6xd/etc/default/example"}
    Created package {:path=>"example-service-1.0-1.x86_64.rpm"}

    % rpm -qlp example-service-1.0-1.x86_64.rpm
    /etc/default/example
    /etc/init.d/example
2016-05-13 20:10:11 -07:00
Paweł Tomulik 74a2ede8c4 workaround rubygems issue #1608 and remove dependency of corefines 2016-05-10 18:24:05 +02:00
Paweł Tomulik 89cb138486 use corefines for backward compatiblity with ruby 1.9.3 2016-04-07 21:57:02 +02:00
Pete Fritchman cd531449ea initial support for building freebsd/pkgng packages 2016-03-01 15:23:44 -08:00
Jordan Sissel 0829c4e72e Merge pull request #756 from pstengel/feature/rake
Add RakeTask
2015-11-07 12:07:07 -08:00
Elan Ruusamäe ccfda0d5be rspec tests use .reject
and .reject seems to came from insist 0.0.6
but work with 1.0.0 as well
2015-08-25 15:49:03 +03:00
Paul Stengel ae112bf56e Refactor for Ruby 1.8.7 and add spec 2015-05-16 15:32:38 -04:00
Jordan Sissel f1cc07963f Bump arr-pm version for a small bugfix in RPM::File#config_files 2015-04-13 23:00:24 -07:00
Jordan Sissel d3e72d36f5 Use rspec 3.0.0
Ran transpec on spec/ directory for automatic and delicious upgrades.

Also removed minitest dependency since fpm doesn't use it.
2014-06-19 05:32:11 +00:00
Jordan Sissel 3066626db0 Remove ftw; not used anymore. (#675) 2014-04-22 21:55:01 -07:00
Jordan Sissel ec44dedca4 Upgrade arr-pm to 0.0.9; fixes a race condition in RPM file reading
This only affected the tests, best I can tell, but would have only
caused problems for using '-s rpm' (rpm input).
2014-02-05 06:53:05 +00:00
Pranay Kanwar d51ce699e4 Handle copying of special files (pipe, socket, etc.) 2013-08-02 01:41:44 +05:30
Jordan Sissel a2255aa218 - duplicate license info (#493) 2013-07-17 13:26:12 -07:00
Jordan Sissel a5cb2286b6 - Add path mapping
Behavior
    * some/file=/some/path
      Result: /some/path
    * some/directory=/some/path
      Result: /some/path/directory/...
- drop dependency on Rush
2013-07-11 22:23:29 -07:00
Tray Torrance f05a82e47d Allow JSON >= 1.7.7 to be used with FPM 2013-06-21 14:46:07 -07:00
Mike Williams d0711e61dd Relax dependency on Clamp.
This allows other gems using Clamp to be mixed into the same Gemfile
as fpm.
2013-05-22 10:53:45 +10:00
Jordan Sissel 55bf290333 - relax requirement 2013-05-14 16:01:50 -07:00
Tray Torrance 7ec2739dbd Switch from Open4 to ChildProcess - Fixes #268 2013-05-11 14:42:54 -07:00
Jordan Sissel 695aa90cd4 I use pry a lot. 2013-04-30 17:56:40 -07:00
Jordan Sissel 4f9e459141 - new version of clamp is out, EXCELLENT. 2013-04-30 17:14:51 -07:00
Jordan Sissel 47d50ade00 - add ftw for http fetches 2013-04-30 00:25:25 -07:00
Pranay Kanwar 94e17efbff Add minitest to spec, fix rspec test breakage 2013-03-22 08:44:21 +00:00
Jordan Sissel a6c8dc80b4 - new arr-pm because ruby 2. 2013-03-20 20:11:22 -07:00
Matt Blair f5e2c070af remove fpm-npm ref in gemspec so the gem builds. 2013-02-11 08:54:26 -05:00
Ronald Holshausen f50aae98a5 change the dependancy on json gem from a hard =1.6.6 to a softer >=1.6.6 2013-01-24 15:36:30 +11:00
Jordan Sissel d851cc3caa Fix cabin version 2013-01-21 10:56:25 -08:00
Jordan Sissel cd5af5b0ef - use cabin 0.6.0's new logger.pipe method. 2013-01-11 23:04:15 -08:00
Jay Buffington d10f7cca1c subprocess output should go through the logger
Controlling where output is sent is necessary if you want to use fpm as
a library rather just a command line tool.

This is implemented using the open4 rubygem because the open3 that ships
with ruby 1.8.7's stdlib doesn't set $? so you can't get the exit
status of the process.

The negative side effect of this change is that it introduces buffering,
so you don't get stderr and stdout in the order in which they were
output.  And the output isn't sent to the terminal until the process has
completed, which is annoying.  Perhaps it's possible to do something
with threads to solve this problem.
2013-01-03 04:57:02 -08:00
Jordan Sissel 3643c00bc7 - Add new 'version' info
- Make 'fpm --help' report the version as well as some other useful
  info (fixes #281)
2012-11-26 21:40:57 -08:00
Jordan Sissel 58188bd854 - version bump 2012-11-15 11:43:01 -08:00
Jordan Sissel 13b4db2baf - upgraaaade 2012-11-08 16:59:31 -08:00
Jordan Sissel e6dfe754f3 - bump version 2012-10-05 15:20:32 -07:00
Jordan Sissel 9a52b77a5b update changelog/version 2012-09-26 00:38:37 -07:00
Jordan Sissel 1b6e9ce105 - prep for release 2012-09-25 13:51:49 -07:00
Jordan Sissel 9deb4a836e version bump 2012-09-12 13:08:16 -07:00
Jordan Sissel 29e33cbf27 - bump version to 0.4.16
- note fix for ruby 1.8.7
2012-09-06 21:13:29 -07:00
Jordan Sissel 2255f7a1ba - bump version with completed changelist. 2012-09-06 20:00:29 -07:00
Jordan Sissel 2d0cd756f2 version bump 2012-08-24 17:06:20 -04:00
Jordan Sissel f3b76ec95d - bump for release 2012-08-14 16:05:27 -07:00
Jordan Sissel dadc31f717 bump for release 2012-08-10 16:01:28 -07:00
Jordan Sissel 7a2ab4f4aa - remove monkeypatches and upgrade to backports 2.6.2 2012-08-07 09:32:59 -07:00