pax-cli 1.0.0-x86_64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +9 -0
  3. data/README.md +129 -0
  4. data/exe/pax +5 -0
  5. data/libexec/pax +0 -0
  6. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 24eec03a274197f16dd757460507e1270de9a437c5e1c85db635c93e9ee9034a
4
+ data.tar.gz: 28e71fc45b7d23ec7c00f88a87a78387f04df92661efec1398a497243fd13aa7
5
+ SHA512:
6
+ metadata.gz: 87795e1bf4d1a54259bba6fba32b1621916d5c88596a1b54bfccaccde14292529a8d13c49a980c6e7e8a918c95d40dab89104ae57b2ce0219ea1e0c0ca73d2ae
7
+ data.tar.gz: 60b74b1c3f08cb7ee257b58807107c59367f754ec62d4ec039b24801060e816ad8412f1d7324ff14e868a661b8d9aa36ca1a785a01162e3e32e12db733ee6ab0
data/LICENSE.txt ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kuzey Bilgin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,129 @@
1
+ # Pax
2
+
3
+ Pax builds and converts software packages. The Go CLI is the sole
4
+ implementation; format-specific external tool requirements are listed below.
5
+
6
+ ## Install
7
+
8
+ Download a platform archive from the
9
+ [GitHub Releases](https://github.com/meenbeese/pax/releases) page, extract it,
10
+ and place `pax` (or `pax.exe`) on your `PATH`. Release archives include the
11
+ CLI reference and license.
12
+
13
+ Or build from source with Go 1.24 or newer:
14
+
15
+ ```sh
16
+ make build
17
+ ./build/pax --help
18
+ ```
19
+
20
+ On supported Ruby platforms, install the prebuilt CLI from RubyGems:
21
+
22
+ ```sh
23
+ gem install pax-cli
24
+ pax --help
25
+ ```
26
+
27
+ The gem includes a native CLI binary for Linux, macOS, and Windows on amd64
28
+ and arm64. Release tags publish the platform gems to RubyGems; repository
29
+ maintainers must configure the `RUBYGEMS_API_KEY` GitHub Actions secret.
30
+
31
+ `make install` installs the binary into Go's configured `GOBIN` (or
32
+ `GOPATH/bin`). To build a container image, run `make docker-build`.
33
+ The image runs as a non-root user; when mounting local files, pass your host
34
+ UID/GID with `--user "$(id -u):$(id -g)"` to make output files editable.
35
+
36
+ ## Usage
37
+
38
+ Create a Debian package from a directory:
39
+
40
+ ```sh
41
+ pax -s dir -t deb -n my-package -v 1.0 path/to/files
42
+ ```
43
+
44
+ Convert an existing RPM to a tar archive:
45
+
46
+ ```sh
47
+ pax -s rpm -t tar path/to/package.rpm
48
+ ```
49
+
50
+ Use `pax --help` for all options. The generated
51
+ [CLI reference](docs/CLI.md) lists the current flags. `PAXOPTS`, `.pax`
52
+ configuration files, `--pax-options-file`, and `PAX_EDITOR` are supported.
53
+
54
+ ## Format support
55
+
56
+ ### Input formats
57
+
58
+ | Format | Notes |
59
+ | --- | --- |
60
+ | `cpan` | Local Perl distributions or module names resolved through MetaCPAN; builds and stages distributions using cpanm and Perl build tools. |
61
+ | `deb` | Debian packages. |
62
+ | `dir` | Directory trees. |
63
+ | `gem` | RubyGems packages. |
64
+ | `npm` | npm packages. |
65
+ | `osxpkg` | Flat macOS installer packages; requires macOS `pkgutil`. |
66
+ | `pacman` | Arch Linux package archives. |
67
+ | `pear` | PEAR packages. |
68
+ | `pleaserun` | A command and arguments used to generate service manifests. |
69
+ | `python` | Wheels, source distributions, and source directories. |
70
+ | `rpm` | RPM packages; bzip2 payloads and `--rpm-rpmbuild-define` require `rpmbuild`, while `--rpm-sign` requires GPG. |
71
+ | `snap` | Snap packages; requires `unsquashfs`. |
72
+ | `tar` | Tar archives, including supported compressed tar formats. |
73
+ | `virtualenv` | Python environments built from package specifications or requirements files. |
74
+ | `zip` | ZIP archives. |
75
+
76
+ ### Output formats
77
+
78
+ | Format | Notes |
79
+ | --- | --- |
80
+ | `apk` | Alpine packages; package signing is not performed. |
81
+ | `deb` | Debian packages. |
82
+ | `dir` | Directory trees. |
83
+ | `empty` | Metadata-only output. |
84
+ | `freebsd` | FreeBSD txz package archives. |
85
+ | `osxpkg` | Flat macOS packages; requires macOS `pkgbuild`. |
86
+ | `p5p` | Solaris IPS package archives; requires IPS tools. |
87
+ | `pacman` | Arch Linux package archives; requires `bsdtar` and `du`. |
88
+ | `pkgin` | NetBSD pkgin archives; requires `pkg_info` and `pkg_create`. |
89
+ | `puppet` | Puppet module directories. |
90
+ | `rpm` | RPM packages. |
91
+ | `sh` | Self-extracting shell installers. |
92
+ | `snap` | Snap packages; requires `mksquashfs`. |
93
+ | `solaris` | Solaris SVR4 packages; requires `pkgproto`, `pkgmk`, and `pkgtrans`. |
94
+ | `tar` | Tar archives. |
95
+ | `zip` | ZIP archives. |
96
+
97
+ Some input formats also need their ecosystem tools: `gem` uses RubyGems,
98
+ `python` uses pip, `npm` uses npm, `cpan` uses cpanm and Perl build tools,
99
+ `pear` uses PEAR, and `virtualenv` uses virtualenv-related tooling. The Docker
100
+ image includes common Linux ecosystem tools; Solaris, NetBSD, and macOS package
101
+ tools are platform specific and must be run on their supported systems.
102
+ RPM output is native by default. `rpmbuild` is used only for bzip2 payloads or
103
+ custom `--rpm-rpmbuild-define` values; native `--rpm-sign` uses GPG.
104
+
105
+ ## Script templates
106
+
107
+ With `--template-scripts`, script contents are rendered as Go
108
+ `text/template`, not Ruby ERB. For example, replace `<%= name %>` with
109
+ `{{.name}}`. Values passed with `--template-value KEY=VALUE` are available as
110
+ `{{.KEY}}`; keys that are not valid Go identifiers can be accessed with
111
+ `{{index . "key-with-dashes"}}`.
112
+
113
+ ## Development
114
+
115
+ ```sh
116
+ make test
117
+ make vet
118
+ make check
119
+ make docs
120
+ ```
121
+
122
+ `make docs` regenerates the CLI reference from the Go command. GitHub Actions
123
+ runs tests and vet on Linux and macOS, builds the container image, and creates
124
+ cross-platform release archives when a `v*` tag is pushed. A release tag
125
+ publishes GitHub release artifacts and the platform gems to RubyGems when the
126
+ `RUBYGEMS_API_KEY` secret is configured.
127
+
128
+ The Go CLI is the only implementation shipped by this repository. Some formats
129
+ require ecosystem or platform tools at runtime, as noted in the format tables.
data/exe/pax ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ spec = Gem.loaded_specs["pax-cli"] || Gem::Specification.find_by_name("pax-cli")
4
+ binary = File.join(spec.full_gem_path, "libexec", Gem.win_platform? ? "pax.exe" : "pax")
5
+ exec(binary, *ARGV)
data/libexec/pax ADDED
Binary file
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pax-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: x86_64-linux
6
+ authors:
7
+ - Kuzey Bilgin
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Pax is a Go command-line tool for building and converting software packages.
13
+ executables:
14
+ - pax
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - LICENSE.txt
19
+ - README.md
20
+ - exe/pax
21
+ - libexec/pax
22
+ homepage: https://github.com/meenbeese/pax
23
+ licenses:
24
+ - MIT
25
+ metadata:
26
+ source_code_uri: https://github.com/meenbeese/pax
27
+ bug_tracker_uri: https://github.com/meenbeese/pax/issues
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubygems_version: 3.6.9
43
+ specification_version: 4
44
+ summary: Build and convert software packages with Pax
45
+ test_files: []