1
0
mirror of https://github.com/jordansissel/fpm synced 2025-04-29 14:58:00 +02:00
Commit Graph

25 Commits

Author SHA1 Message Date
loic.chabert
788387c0d2 Add space on changes.erb to conform with debian specs 2022-10-03 13:34:22 -07:00
loic.chabert
37f56269c3 Replace whatever in changelog.erb and deb.changes.erb
In order to support packaging upload, the distribution must be
set/aligned in changelog and changes files.
Required for example inside dput-ng repo upload app.
2022-10-03 13:34:22 -07:00
Jordan Sissel
72a925b048 Ensure an if-then-else doesn't have an empty if block
Issue #1749
2021-06-17 08:30:31 -07:00
Andreas Ulm
c795ed7ef4 implemented --deb-maintainerscripts-force-errorchecks (#1696)
Switched from always enabling errexit to fpm parameter as result of
discussion in #1696.

Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
2021-01-19 14:33:01 -08:00
Andreas Ulm
feb53faa14 added set -e to debian maintainer scripts #1696
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
2021-01-19 14:33:01 -08:00
c-ameron
d7b466787d default to false for deb-systemd starts 2019-03-25 22:15:44 -07:00
c-aamm
e066e632ed remove multiple systemd services on uninstall 2019-03-25 22:15:44 -07:00
c-aamm
823b3947fc allow starting of multiple deb systemd services 2019-03-25 22:15:44 -07:00
c-aamm
a7626cb99b Allow auto-enable and auto-start for deb-systemd services after install
Adds in two new options to enable/disable and autostart systemd services
--[no-]deb-systemd-enable to enable the systemd service after install
--[no-]deb-systemd-auto-start to auto start the service after install

Additionally, any service start/stop/restart will use deb-systemd-invoke
wrapper if installed on the system
2019-03-25 22:15:44 -07:00
Fabian Mettler
fa0d15d581 FIX: Proper indentation for changes (#1552)
Set the expected indentation format in changes according to the documentation: https://www.debian.org/doc/debian-policy/ch-source.html#s-dpkgchangelog
2018-09-10 17:37:30 -07:00
Timo Boettcher
07b0be428e Generate .changes file for Debian
This will generate .changes file for Debian packages. Some Debian
repository management tools use .changes files for importing packages.
The command line option --(no-)deb-generate-changes allows to select to
generate the .changes file, the option --deb-dist allows to set a
distribution (like sid) for the package.
2018-05-12 21:05:27 -07:00
Alexander Weidinger
127b29194a Add --deb-after-purge FILE 2017-07-20 16:41:15 -07:00
Dan Kegel
14c4819e41 Implement reproducible gem -> deb conversion (#1360)
* Add option --source-date-epoch-default and implement for deb output.

This is the first step towards supporting bit-for-bit identical
output files given identical inputs.

Alas, Apple's ar is not too good at reading gnu ar archives,
so always use ar_cmd to find ar.

* deb: remove lines duplicated in a tragic merge conflict

Probably introduced by 62d0060178 and not removed by 500f0c052fb52

* Add options --source-date-epoch-from-changelog and --gem-stagingdir to support bit-for-bit reproducible gem -> deb conversion

In those cases where we can get the release date out of the changelog,
use it; otherwise fall back to the value given by SOURCE_DATE_EPOCH aka --source-date-epoch-default.

--gem-stagingdir is a bit of a kludge, only needed because no
compiler supports https://reproducible-builds.org/specs/build-path-prefix-map/ yet.
Could have been global option, but not sure any other package handler
invokes compilers?  Could hoist it up later.

Also:
- Defer initializing staging_path so subclasses can sneak in new value
- gem: remove build files

* gem: handle a few more gem changelog variants

* gem: also remove mkmf.log; lets ffi, kgio, raindrops, and ruby-ldap build reproducibly.

* deb: don't expect diffoscope to be installed in /usr/bin.  Lets it be found on mac.

* gem: document new options
2017-07-20 12:33:14 -07:00
Jens Peter Schroer
f92427dc8a adding flag to trigger systemd service restart after upgrade 2015-09-08 14:10:23 +02:00
Jens Peter Schroer
c0021cbb74 let fpm generate the systemd start / stop commands as well 2015-07-10 17:34:12 +02:00
Daniel Haskin
19bf369d4f Fix for *debian* packages for #875 2015-04-09 23:17:54 -06:00
Daniel Haskin
a2fa9c7afd Add improved abort-install and abort-remove 2015-04-08 21:56:44 -06:00
Wesley Spikes
f746c1f94e Don't allow empty functions for before/after install
If you invoke fpm with --before-upgrade, but not --before-install, then
the resultant before_install function becomes an empty function, which
bash/dash do not allow. (Syntax errors) This same problem applies to the
after flags. To avoid this, we'll insert a null statement if there's no
install script specified.

We don't need to do this for the (before|after)_upgrade functions, since
the time these templates are used is when --(before|after)-upgrade is
specified.
2015-01-22 15:25:35 -08:00
Wesley Spikes
d2120a84f4 Bash does not allow for empty functions.
Instead, we use the null operator here. Tested in both dash
and bash.
2015-01-22 14:49:55 -08:00
Wesley Spikes
b3f4a9f019 Add missing shebang lines for deb maintenance scripts
These scripts are only used when before/after-upgrade options are
provided to fpm.
2015-01-22 14:46:51 -08:00
Dave Anderson
cc967ff913 Remove errant space in debian postinst_upgrade.sh
This space was preventing postinst scripts to run on initial install of the .deb package
2014-12-10 14:37:05 -07:00
Jordan Sissel
6244cab3df Fix copy/paste problem 2014-11-05 00:31:43 +00:00
Jordan Sissel
c6f66dd024 deb: Always provide a "changes" file
lintian in Ubuntu 14.04 now errors when a file
/usr/share/NAME/changelog.Debian.gz doesn't exist.

In the spirit of respecting lintian's meaningful errors, this commit
fixes that error.

The new behavior is that a changelog file is *always* provided. If the
--deb-changelog flag is not given, then fpm will produce a default one
based on the package being built in hope that it satisfies lintian.

With this commit, the lintian rspec test passes on Ubuntu 14.04.

Fixes #784
2014-10-25 04:07:46 +00:00
Daniel Haskin
5b07133a1c Add debian upgrade functionality 2014-09-18 07:24:37 -06:00
Jordan Sissel
93f132a7f5 - add ldconfig template 2013-04-09 04:55:48 +00:00