Commit Graph

2034 Commits

Author SHA1 Message Date
Jordan Sissel a6f01b795f Merge pull request #1121 from mkopta/master
example of usage for --rpm-attr
2016-05-31 08:46:58 -07:00
Jordan Sissel a1c62d8c0c Merge pull request #1122 from LStuker/master
last_comment is depricated replaced with last_description
2016-05-31 08:46:20 -07:00
Lucien Stuker e334c1a004 last_comment is depricated replaced with last_description 2016-05-31 09:12:39 +02:00
Martin Kopta 20d3a6b0cd example of usage for --rpm-attr 2016-05-30 09:43:51 +02:00
Jordan Sissel 86ac3bcc6e Credit Aaron Mildenstein for the idea ❤️ 2016-05-24 00:15:07 -07:00
Jordan Sissel 6505860c53 version bump 2016-05-23 14:22:24 -07:00
Jordan Sissel 1365df219c Merge pull request #1119 from jordansissel/feature/pleaserun
New source: pleaserun
2016-05-25 20:10:24 -07:00
Jordan Sissel e2b1ca3d04 Update dependency on pleaserun 2016-05-23 14:03:50 -07:00
Jordan Sissel 7bc5fba4bd Start work for acceptance tests. 2016-05-23 11:28:51 -07:00
Jordan Sissel 20364dd305 Merge pull request #1115 from josegonzalez/patch-1
Drop duplicate .conf suffix
2016-05-18 09:59:51 -07:00
Jose Diaz-Gonzalez a24cabb475 Drop duplicate .conf suffix
Closes #861
2016-05-17 02:29:27 -04:00
Jordan Sissel 76c41ea5f7 Check for /lib and /usr/lib. Debian uses /lib, everyone else seems to use /usr/lib. 2016-05-16 05:22:41 -07:00
Jordan Sissel 3c7f176a48 If no description is given, set the description to the pleaserun_name. Without this, the default is 'no description given' which is not a helpful default 2016-05-16 05:22:18 -07:00
Jordan Sissel 2ee569a1e4 Fix an RPM spec failure on Fedora 23 2016-05-16 04:18:20 -07:00
Jordan Sissel 37ccaa007b Add comment 2016-05-15 04:23:03 -07:00
Jordan Sissel 0a2badb1c8 Refactor. Also now we attempt cleanup upon package removal.
The `install.sh` will generate a cleanup.sh script that is executed when
the package is removed.
2016-05-15 04:09:19 -07:00
Jordan Sissel 7a07301141 Disable freebsd for now, until rcng support is added to pleaserun. 2016-05-14 22:26:16 -07:00
Jordan Sissel 918afbad44 Write scripts to tar and dir package outputs
The scripts will be written to the top-level `.scripts/` directory
2016-05-14 22:11:45 -07:00
Jordan Sissel eac9049a06 Generate Upstart 0.6.5 as well 2016-05-14 22:01:22 -07:00
Jordan Sissel 82cecf3037 Some small fixes
* Only try install actions if they exist
* Add special case for Upstart 0.6.5 (CentOS 6)
2016-05-14 22:00:41 -07:00
Jordan Sissel 2e90fe3363 Make copying not rely on rsync. Also tell the user if no platform was detected.
Also move files to be /platform/version/... instead of
/platform-version/...
2016-05-14 17:36:24 -07:00
Jordan Sissel e1336aafda Make copying not rely on rsync. Also tell the user if no platform was detected. 2016-05-14 17:35:02 -07:00
Jordan Sissel 5dc70815a1 WIP continues. 2016-05-14 04:01:26 -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
Leo P 4600b78bfd Merge remote-tracking branch 'jordansissel/master' into archlinux_groups_fix 2016-05-13 14:15:27 -04:00
Jordan Sissel 37e8b88a6b Fix specs failing when the host is freebsd 2016-05-11 12:12:37 -07:00
Jordan Sissel f9a482857b Merge pull request #1110 from liger1978/master
Fix fpm to work with recent versions of pip (with helpful comment)
2016-05-11 11:07:35 -07:00
liger1978 2cdbfee25e Add TODO comment for older versions of pip 2016-05-11 17:39:19 +01:00
Jordan Sissel 21d58db858 Merge pull request #1100 from ketan/improve-help
Clarify that --replaces is the same as rpm "Obsoletes"
2016-05-11 08:56:58 -07:00
Jordan Sissel fd8167c4fd Merge pull request #1108 from ptomulik/fix/rubygems-1608
workaround rubygems issue #1608 and remove dependency of corefines
2016-05-11 08:36:05 -07:00
Jordan Sissel a889eeb052 Merge pull request #1102 from PagerDuty/rake-task-should-not-exit-on-success
Rake task should not exit if successful
2016-05-11 08:33:55 -07:00
Jordan Sissel e1d539a998 Merge pull request #1101 from evan2645/add-missing-require-in-rake-task
Add fpm namespace require for rake task
2016-05-11 08:33:29 -07:00
liger1978 77e0cf7a76 Fix fpm to work with recent versions of pip
`--no-install` option has been removed from recent versions of pip.  Instead `pip download` should be used.
2016-05-11 15:17:55 +01:00
Paweł Tomulik 74a2ede8c4 workaround rubygems issue #1608 and remove dependency of corefines 2016-05-10 18:24:05 +02:00
Evan Gilman 7aa3109b55 iQEcBAABAgAGBQJXKBeWAAoJEO+bTIvB7eHnx7oIAI5LcyyNqJ7wQBz/7pOzX3wt
r/tZjUvfFQyPo32u2OazeNrIGhKmi8Gk8CLrvJj9XOB7ulKXs/gi4mptwR4+kX9h
 eo53lTrOP4IRuBzEm71l+AzPrg55G5ACJULg61KXJI7PK/93bDj0SDOO/h/SLCKL
 wrrpZkyA1nw5t7n0j7Dbp6jw9kaTZcLxiyGc0UPdug6F6FlNF0YT5fc4sKmZz3/x
 rreaL0wEyjUlEXBe+yxjSYpybusx8huQ8TkvDCsTzgNzKFH9a0zoCc2ERXhU2UIn
 6W6w/0W+dBz1nmwC3TExBGpMFTyx2rzmFGQjsUsanXD/5IxLzYc7fqsrQ4nuvv8=
 =iw78
 -----END PGP SIGNATURE-----

Rake task should not exit if successful
Exiting after fpm success means that further rake tasks fail to execute,
and Rake simply exits. Instead, only abort if the fpm exits non-zero
2016-05-02 20:12:09 -07:00
Evan Gilman 8dfc92344b iQEcBAABAgAGBQJXJ5HHAAoJEO+bTIvB7eHnLL8IAMRftLeeEC3en+TtR0jZaaU6
ig0GxqsSuCj6tSzaXEaL6D0kDqqfilydBKDJ5R/eycf1Vd6U1l1ttR7Gsuhl5KSm
 SID7LuRO+DkfNXayH7LApq+++kx8d4ucuL5trcWISdtbOLc71Ppvf4Rv2X61xQpv
 A1TbJGks2yiUfDrm7XLJtIOClRAbE18K2VdJ/f891P5rwPdLcfAfJgbb9lxqcJHo
 vsoYxIef+hIsgczQr+WnAQQVRCpSNy6LAox706uk8BBjeGLpkardZnhlGiUnQ/t1
 UWOzWm3prHO2O7nhCcQDjfBQj/d3m9XtR0Knv5fnyEUJrAYgpDUbTeGQ0R5iIoo=
 =WpBr
 -----END PGP SIGNATURE-----

Add fpm namespace require for rake task
The rake task class needs to require the fpm namespace in order
to be included elsewhere.
2016-05-02 10:42:40 -07:00
Ketan Padegaonkar 7f01468e56 Clarify that --replaces is the same as rpm "Obsoletes" 2016-04-28 10:42:01 +05:30
Jordan Sissel 15497b2064 Merge pull request #1091 from ptomulik/fix/python_spec
add FPM::Util.execmd and fix python_spec.rb
2016-04-27 21:41:44 -07:00
Jordan Sissel 627513d8f8 Merge pull request #1056 from hejeke/20151229
File class do not have a world_readable function
2016-04-27 21:27:33 -07:00
Jordan Sissel 83cf669772 Merge pull request #1097 from sergeyromanov/patch-1
Fix #782
2016-04-27 21:27:00 -07:00
Jordan Sissel 5bf6d8b0f0 Merge pull request #1054 from Knetic/apk
Alpine Package Keeper (apk) format support
2016-04-27 21:24:41 -07:00
Jordan Sissel 9a8f46bf2e Update years on license.
Hard to believe fpm's been around for over 5 years...
2016-04-25 14:00:55 -07:00
sergeyromanov 0b8fd2915d Fix #782
Removed reference to an undefined `package` variable.
2016-04-26 00:16:07 +04:00
Jordan Sissel fed6820e66 Merge pull request #1094 from mildred/master
Fix gem error
2016-04-22 04:59:42 -07:00
Mildred Ki'Lya a65d73e208 Fix gem error
Without --no-user-install, the gem command fails with:
ERROR:  User --install-dir or --user-install but not both
2016-04-22 10:35:29 +02:00
Paweł Tomulik dc7e73237d add FPM::Util.execmd and fix python_spec.rb 2016-04-19 05:59:13 +02:00
Jordan Sissel 95610fa5a2 Merge pull request #1093 from ptomulik/fix/freebsd-to_s
fixes for FPM::Package#to_s and relatives
2016-04-18 20:55:55 -07:00
Paweł Tomulik 3d01940682 further minor corrections to #to_s methods 2016-04-19 05:39:35 +02:00
Paweł Tomulik cde662ef75 minor corrections to FPM::Package#to_s_* methods and to freebsd/pkg_data 2016-04-16 07:37:45 +02:00
Paweł Tomulik 455e60f159 fixes for FPM::Package#to_s and relatives 2016-04-15 13:30:37 +02:00