1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-27 13:06:12 +02:00
Commit Graph

108 Commits

Author SHA1 Message Date
Nick Gerakines 83505988b2 feat: added support for "rules" debian package file (#49)
* Added support for rules debian package file

* Fixing typo in CONTRIBUTING.md

* Runing 'make fmt' on project.
2019-08-31 09:37:22 -03:00
Adrian Wennberg 75cf0f6b4e Added Packager and Epoch tags (#58)
* feat: Add optional packager tag to rpm spec

Using the `Maintainer` tag from deb as the `Packager` tag for rpm

See #57

* feat: Optional epoch field added to both rpm and dep packages

See #57

* test: Adding test for deb epoch field

Adding a unit test for the epoch field and fixing the implementation
of version number with epoch for deb packager.

See #57
2019-06-25 09:56:32 -03:00
Carlos Alexandro Becker 26a86166dc
feat: test os ppc64le too 2019-03-19 21:34:06 -03:00
Carlos Alexandro Becker 32909dea74
fix: lint issues 2019-03-04 10:14:05 -03:00
Michael Hanselmann 052766cdfa deb: Avoid emitting empty fields
The Debian policy[1] declares the following control file fields as
required for binary packages:

 * Package
 * Version
 * Section
 * Priority
 * Architecture
 * Maintainer
 * Description

All other fields are optional. A few programs handling .deb packages
emit warnings when optional fields exist without a value.

With this change the template generating the control file is updated to
omit empty values. Comments are added to denote mandatory fields.
A newly added test verifies the generated control file.

[1]
<https://www.debian.org/doc/debian-policy/ch-controlfields.html#
binary-package-control-files-debian-control>

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2019-03-04 10:03:59 -03:00
Carlos Alexandro Becker e9205e74c0
fix: lint issues 2018-09-12 13:17:59 -03:00
Carlos Alexandro Becker 7d1cb29113
fix: deb: fixed wrong error message 2018-09-12 12:58:41 -03:00
Carlos Alexandro Becker 923d6a7473 chore: typo 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker 91a3393a74 fix: linter 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker 121a714dab fix: deb: windows paths inside tar/ar files 2018-07-08 19:49:15 -07:00
Carlos Alexandro Becker e50dcef204
chore: using golangci-lint as linter 2018-06-02 15:22:21 -03:00
Carlos Alexandro Becker 91995af536 fix: shadowed error 2018-05-16 21:42:34 -03:00
Carlos Alexandro Becker f146edb4fb fix: deb: cyclo complexity 2018-05-16 21:42:34 -03:00
Carlos Alexandro Becker 36ec9c04e2 feat: deb: create empty managed dirs 2018-05-16 21:42:34 -03:00
Erno Aapa d0b56fa5f1 add: Add arm6 and arm7 support to deb package
To be able to build arm6 and arm7 packages, added required
architectures to the goarchToDebian mapping.
2018-04-25 14:16:19 +03:00
Tympanix d598c7fcbb test: e2e tests for deb maintainer scripts 2018-04-09 13:19:45 -03:00
Tympanix 992e1aac41 feat: maintainer scripts for deb 2018-04-09 13:19:45 -03:00
Carlos Alexandro Becker f83817330e
Merge pull request #17 from tympanix/feat-globs
feat: File globs using mattn/go-zglob library
2018-03-25 15:14:58 -03:00
Carlos Alexandro Becker 9deb9817c5
style: dont need to have arches that are the same 2018-03-23 14:04:58 -03:00
Carlos Alexandro Becker b4d00589a1
test: acceptance tests for debian i386 2018-03-23 13:56:57 -03:00
Carlos Alexandro Becker 9f7e12ad8f
fix: arch map for debian packages
refs #21
2018-03-21 18:07:35 -03:00
tympanix 15055e0337
Merge branch 'master' into feat-globs 2018-03-12 15:30:37 +01:00
tympanix cd7e1af4f2 refactor: Renamed package pkgutil to glob 2018-03-11 16:59:12 +01:00
tympanix e7c7c8342b feat: File globs using mattn/go-zglob library
Added file globs to deb and rpm packager. Since the destination for
a glob can not be a single file, the files collected by the glob are
stored in: join(dst, trim(lcp(src), src)) (read: lcp = longest common
prefix). Thereby the longest common prefix is removed from every path in
the globbed files and joined with the destination path. Implementation
is backwards compatible (i.e. non-globs will work as before)
2018-03-10 23:49:01 +01:00
Carlos Alexandro Becker eb6140663c
fix: fixed empty lists on deb
closes #16
2018-03-10 14:41:41 -03:00
Carlos Alexandro Becker 20c7fa9722
style: deb: organized code 2018-02-25 17:29:24 -03:00
Carlos Alexandro Becker a7efc0190f
typo: deb 2018-02-25 15:19:39 -03:00
Carlos Alexandro Becker 1ae64d6aa4
fix: deb: do not create multiple entries for the same folder 2018-02-25 15:17:55 -03:00
Carlos Alexandro Becker 4ece0503a8
fix: deb: folder modtime 2018-02-25 15:10:17 -03:00
Carlos Alexandro Becker d1e56a3269
fix: deb: create subfolders and use GNU tar format 2018-02-25 14:56:29 -03:00
Carlos Alexandro Becker 3fb90ada0a
fix: deb: remove / prefix from files 2018-02-25 13:06:58 -03:00
Carlos Alexandro Becker e4f8dde4bc
style: deb: simplified code a little 2018-02-25 13:00:42 -03:00
Carlos Alexandro Becker 6760f1586a
fix: deb: hashing was just plain wrong 2018-02-25 12:59:31 -03:00
Carlos Alexandro Becker 0be274c6a1
fix: invalid filename on md5sums file 2018-02-25 12:45:28 -03:00
Carlos Alexandro Becker 7094e234cc
fix: double recommends on deb pkg 2018-02-18 19:40:47 -03:00
Carlos Alexandro Becker 4486870ddd
feat: handle rpmbuild version and adds suggests as well 2018-02-18 18:41:32 -03:00
Carlos Alexandro Becker 2d6378cbe4
feat: support recommending packages 2018-02-18 17:14:55 -03:00
Carlos Alexandro Becker b7566dc587
feat: deb now fully support config files 2018-02-17 18:49:09 -02:00
Carlos Alexandro Becker e5fe548add
test: added some more 2018-02-16 19:11:52 -02:00
Carlos Alexandro Becker 4b73ac9428
chore: ignore md5 sec errs 2018-02-16 00:16:44 -02:00
Carlos Alexandro Becker 8e30ff779d
style: improving code 2018-02-16 00:12:54 -02:00
Carlos Alexandro Becker 6d018d3505
style: improving code 2018-02-15 23:58:37 -02:00
Carlos Alexandro Becker 37a2dbf86b
fix: defaults 2018-02-12 19:15:37 -02:00
Carlos Alexandro Becker 74f4bdaa15
wrap errors 2018-02-12 14:09:59 -02:00
Carlos Alexandro Becker 216e0a45de
init/register 2018-02-12 13:50:25 -02:00
Carlos Alexandro Becker 5fff8cc780
fix: rpm config files 2018-02-06 00:28:30 -02:00
Carlos Alexandro Becker 173904cdbd
chore: renamed to nfpm 2018-02-04 23:53:22 -02:00
Carlos Alexandro Becker ccc17de7b0
feat: wip: rpm: depends et all 2018-02-04 23:42:03 -02:00
Carlos Alexandro Becker f0e39135fb
fix: rename 2018-02-03 17:10:49 -02:00
Carlos Alexandro Becker f078c16da5
fix: removed unused context 2018-01-11 13:55:44 -02:00
Carlos Alexandro Becker a6b0d76982
feat: improved api 2018-01-10 11:16:07 -02:00
Carlos Alexandro Becker a21b23e813
fix: provides, replaces, error handling 2018-01-10 11:05:54 -02:00
Carlos Alexandro Becker 13c7004374
refactor: do not depend on dpkg anymore 2018-01-09 21:03:01 -02:00
Carlos Alexandro Becker 3ef70e5c0e
root owner and group 2018-01-04 11:36:58 -02:00
Carlos Alexandro Becker 0871179d8b
create cmd cli 2018-01-04 11:31:53 -02:00
Carlos Alexandro Becker 134c29f70d
improvements 2018-01-04 10:52:26 -02:00
Carlos Alexandro Becker c6a9cad760
docs 2018-01-04 10:49:15 -02:00
Carlos Alexandro Becker bbf45571b4
first 2018-01-04 10:31:22 -02:00