Skip to content

Commit 80923fb

Browse files
author
mirkobrombin
committed
chore: Switch license to FPAL v1.0 and replace incompatible dependencies
Replaced third-party libraries that weren’t compatible with FPAL and updated project license to Fabricators Public Access License v1.0.
1 parent cd6f2e8 commit 80923fb

54 files changed

Lines changed: 935 additions & 698 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ podman-launcher
77
go.work
88
go.work.sum
99
/tools/host-spawn
10-
/tools/busybox
10+
/tools/nsenter

LICENSE

Lines changed: 104 additions & 674 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
.PHONY: all clean download cpak
2-
all: clean download cpak
1+
.PHONY: all clean download nsenter cpak
2+
all: clean download nsenter cpak
33

44
clean:
55
@rm -f cpak
66
@rm -f pkg/tools/rootlesskit.tar.gz
7-
@rm -f pkg/tools/busybox
7+
@rm -f pkg/tools/nsenter
88

99
download:
1010
curl -L \
11-
https://github.com/rootless-containers/rootlesskit/releases/download/v2.0.0-alpha.0/rootlesskit-x86_64.tar.gz \
11+
https://github.com/rootless-containers/rootlesskit/releases/download/v2.3.5/rootlesskit-x86_64.tar.gz \
1212
-o pkg/tools/rootlesskit.tar.gz
13-
curl -L \
14-
https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox \
15-
-o pkg/tools/busybox
13+
14+
nsenter:
15+
musl-gcc -static -O2 -s native/nsenter/nsenter.c -o pkg/tools/nsenter
1616

1717
cpak:
1818
go build -trimpath -ldflags="-s -w" -o cpak .

NOTICE

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
This product includes software developed by third parties.
2+
3+
---
4+
5+
## Libraries
6+
7+
**github.com/distrobox/hrun/pkg**
8+
License: MIT
9+
[https://github.com/distrobox/hrun/blob/v0.0.3/LICENSE](https://github.com/distrobox/hrun/blob/v0.0.3/LICENSE)
10+
11+
**github.com/mirkobrombin/dabadee/pkg**
12+
License: Apache-2.0
13+
[https://github.com/mirkobrombin/dabadee/blob/v1.0.0/LICENSE](https://github.com/mirkobrombin/dabadee/blob/v1.0.0/LICENSE)
14+
15+
**github.com/containerd/stargz-snapshotter/estargz**
16+
License: Apache-2.0
17+
[https://github.com/containerd/stargz-snapshotter/blob/estargz/v0.14.3/estargz/LICENSE](https://github.com/containerd/stargz-snapshotter/blob/estargz/v0.14.3/estargz/LICENSE)
18+
19+
**github.com/creack/pty**
20+
License: MIT
21+
[https://github.com/creack/pty/blob/v1.1.21/LICENSE](https://github.com/creack/pty/blob/v1.1.21/LICENSE)
22+
23+
**github.com/docker/cli/cli/config**
24+
License: Apache-2.0
25+
[https://github.com/docker/cli/blob/v24.0.0/LICENSE](https://github.com/docker/cli/blob/v24.0.0/LICENSE)
26+
27+
**github.com/docker/distribution/registry/client/auth/challenge**
28+
License: Apache-2.0
29+
[https://github.com/docker/distribution/blob/v2.8.2/LICENSE](https://github.com/docker/distribution/blob/v2.8.2/LICENSE)
30+
31+
**github.com/docker/docker-credential-helpers**
32+
License: MIT
33+
[https://github.com/docker/docker-credential-helpers/blob/v0.7.0/LICENSE](https://github.com/docker/docker-credential-helpers/blob/v0.7.0/LICENSE)
34+
35+
**github.com/docker/docker/pkg/homedir**
36+
License: Apache-2.0
37+
[https://github.com/docker/docker/blob/v25.0.6/LICENSE](https://github.com/docker/docker/blob/v25.0.6/LICENSE)
38+
39+
**github.com/google/go-containerregistry**
40+
License: Apache-2.0
41+
[https://github.com/google/go-containerregistry/blob/v0.16.1/LICENSE](https://github.com/google/go-containerregistry/blob/v0.16.1/LICENSE)
42+
43+
**github.com/google/uuid**
44+
License: BSD-3-Clause
45+
[https://github.com/google/uuid/blob/v1.3.1/LICENSE](https://github.com/google/uuid/blob/v1.3.1/LICENSE)
46+
47+
**github.com/jinzhu/inflection**
48+
License: MIT
49+
[https://github.com/jinzhu/inflection/blob/v1.0.0/LICENSE](https://github.com/jinzhu/inflection/blob/v1.0.0/LICENSE)
50+
51+
**github.com/jinzhu/now**
52+
License: MIT
53+
[https://github.com/jinzhu/now/blob/v1.1.5/License](https://github.com/jinzhu/now/blob/v1.1.5/License)
54+
55+
**github.com/klauspost/compress**
56+
License: Apache-2.0
57+
[https://github.com/klauspost/compress/blob/v1.16.5/LICENSE](https://github.com/klauspost/compress/blob/v1.16.5/LICENSE)
58+
59+
**github.com/klauspost/compress/internal/snapref**
60+
License: BSD-3-Clause
61+
[https://github.com/klauspost/compress/blob/v1.16.5/internal/snapref/LICENSE](https://github.com/klauspost/compress/blob/v1.16.5/internal/snapref/LICENSE)
62+
63+
**github.com/klauspost/compress/zstd/internal/xxhash**
64+
License: MIT
65+
[https://github.com/klauspost/compress/blob/v1.16.5/zstd/internal/xxhash/LICENSE.txt](https://github.com/klauspost/compress/blob/v1.16.5/zstd/internal/xxhash/LICENSE.txt)
66+
67+
**github.com/mattn/go-runewidth**
68+
License: MIT
69+
[https://github.com/mattn/go-runewidth/blob/v0.0.16/LICENSE](https://github.com/mattn/go-runewidth/blob/v0.0.16/LICENSE)
70+
71+
**github.com/mattn/go-sqlite3**
72+
License: MIT
73+
[https://github.com/mattn/go-sqlite3/blob/v1.14.22/LICENSE](https://github.com/mattn/go-sqlite3/blob/v1.14.22/LICENSE)
74+
75+
**github.com/minio/highwayhash**
76+
License: Apache-2.0
77+
[https://github.com/minio/highwayhash/blob/v1.0.2/LICENSE](https://github.com/minio/highwayhash/blob/v1.0.2/LICENSE)
78+
79+
**github.com/mirkobrombin/go-struct-flags/v1/binder**
80+
License: MIT
81+
[https://github.com/mirkobrombin/go-struct-flags/blob/v1.0.1/LICENSE](https://github.com/mirkobrombin/go-struct-flags/blob/v1.0.1/LICENSE)
82+
83+
**github.com/mitchellh/colorstring**
84+
License: MIT
85+
[https://github.com/mitchellh/colorstring/blob/d06e56a500db/LICENSE](https://github.com/mitchellh/colorstring/blob/d06e56a500db/LICENSE)
86+
87+
**github.com/mitchellh/go-homedir**
88+
License: MIT
89+
[https://github.com/mitchellh/go-homedir/blob/v1.1.0/LICENSE](https://github.com/mitchellh/go-homedir/blob/v1.1.0/LICENSE)
90+
91+
**github.com/olekukonko/tablewriter**
92+
License: MIT
93+
[https://github.com/olekukonko/tablewriter/blob/v0.0.5/LICENSE.md](https://github.com/olekukonko/tablewriter/blob/v0.0.5/LICENSE.md)
94+
95+
**github.com/opencontainers/go-digest**
96+
License: Apache-2.0
97+
[https://github.com/opencontainers/go-digest/blob/v1.0.0/LICENSE](https://github.com/opencontainers/go-digest/blob/v1.0.0/LICENSE)
98+
99+
**github.com/opencontainers/image-spec/specs-go**
100+
License: Apache-2.0
101+
[https://github.com/opencontainers/image-spec/blob/v1.1.0-rc3/LICENSE](https://github.com/opencontainers/image-spec/blob/v1.1.0-rc3/LICENSE)
102+
103+
**github.com/pkg/errors**
104+
License: BSD-2-Clause
105+
[https://github.com/pkg/errors/blob/v0.9.1/LICENSE](https://github.com/pkg/errors/blob/v0.9.1/LICENSE)
106+
107+
**github.com/rivo/uniseg**
108+
License: MIT
109+
[https://github.com/rivo/uniseg/blob/v0.4.7/LICENSE.txt](https://github.com/rivo/uniseg/blob/v0.4.7/LICENSE.txt)
110+
111+
**github.com/schollz/progressbar/v3**
112+
License: MIT
113+
[https://github.com/schollz/progressbar/blob/v3.13.1/LICENSE](https://github.com/schollz/progressbar/blob/v3.13.1/LICENSE)
114+
115+
**github.com/shirou/gopsutil**
116+
License: BSD-3-Clause
117+
[https://github.com/shirou/gopsutil/blob/v3.21.11/LICENSE](https://github.com/shirou/gopsutil/blob/v3.21.11/LICENSE)
118+
119+
**github.com/sirupsen/logrus**
120+
License: MIT
121+
[https://github.com/sirupsen/logrus/blob/v1.9.1/LICENSE](https://github.com/sirupsen/logrus/blob/v1.9.1/LICENSE)
122+
123+
**github.com/spf13/cobra**
124+
License: Apache-2.0
125+
[https://github.com/spf13/cobra/blob/v1.8.0/LICENSE.txt](https://github.com/spf13/cobra/blob/v1.8.0/LICENSE.txt)
126+
127+
**github.com/spf13/pflag**
128+
License: BSD-3-Clause
129+
[https://github.com/spf13/pflag/blob/v1.0.5/LICENSE](https://github.com/spf13/pflag/blob/v1.0.5/LICENSE)
130+
131+
**github.com/tklauser/go-sysconf**
132+
License: BSD-3-Clause
133+
[https://github.com/tklauser/go-sysconf/blob/v0.3.12/LICENSE](https://github.com/tklauser/go-sysconf/blob/v0.3.12/LICENSE)
134+
135+
**github.com/tklauser/numcpus**
136+
License: Apache-2.0
137+
[https://github.com/tklauser/numcpus/blob/v0.6.1/LICENSE](https://github.com/tklauser/numcpus/blob/v0.6.1/LICENSE)
138+
139+
**github.com/vbatts/tar-split/archive/tar**
140+
License: BSD-3-Clause
141+
[https://github.com/vbatts/tar-split/blob/v0.11.3/LICENSE](https://github.com/vbatts/tar-split/blob/v0.11.3/LICENSE)
142+
143+
**golang.org/x/sync/errgroup**
144+
License: BSD-3-Clause
145+
[https://cs.opensource.google/go/x/sync/+/v0.10.0\:LICENSE](https://cs.opensource.google/go/x/sync/+/v0.10.0:LICENSE)
146+
147+
**golang.org/x/sys**
148+
License: BSD-3-Clause
149+
[https://cs.opensource.google/go/x/sys/+/v0.29.0\:LICENSE](https://cs.opensource.google/go/x/sys/+/v0.29.0:LICENSE)
150+
151+
**golang.org/x/term**
152+
License: BSD-3-Clause
153+
[https://cs.opensource.google/go/x/term/+/v0.28.0\:LICENSE](https://cs.opensource.google/go/x/term/+/v0.28.0:LICENSE)
154+
155+
**golang.org/x/text**
156+
License: BSD-3-Clause
157+
[https://cs.opensource.google/go/x/text/+/v0.21.0\:LICENSE](https://cs.opensource.google/go/x/text/+/v0.21.0:LICENSE)
158+
159+
**gorm.io/driver/sqlite**
160+
License: MIT
161+
[https://github.com/go-gorm/sqlite/blob/v1.5.7/License](https://github.com/go-gorm/sqlite/blob/v1.5.7/License)
162+
163+
**gorm.io/gorm**
164+
License: MIT
165+
[https://github.com/go-gorm/gorm/blob/v1.26.1/LICENSE](https://github.com/go-gorm/gorm/blob/v1.26.1/LICENSE)
166+
167+
## Binaries
168+
169+
**github.com/rootless-containers/rootlesskit**
170+
License: Apache-2.0
171+
[https://github.com/rootless-containers/rootlesskit/blob/master/LICENSE](https://github.com/rootless-containers/rootlesskit/blob/master/LICENSE)
172+

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<img src="cpak-logo.svg#gh-dark-mode-only" height="120">
44
<p>A fast, decentralized, portable, powerful and low-memory footprint package
55
format for Linux.</p>
6+
<p>
7+
<a href="https://github.com/fabricatorsltd/FPAL/blob/main/LICENSE.md">
8+
<img src="https://img.shields.io/badge/License-FPAL_1.0-orange.svg" alt="License: FPAL-1.0">
9+
</a>
10+
</p>
611
</div>
712

813
---

cmd/audit.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
// Esempio cmd/audit.go
1+
/*
2+
* Copyright (c) 2025 FABRICATORS S.R.L.
3+
* Licensed under the Fabricators Public Access License (FPAL) v1.0
4+
* See https://github.com/fabricatorsltd/FPAL for details.
5+
*/
26
package cmd
37

48
import (

cmd/dedup.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) 2025 FABRICATORS S.R.L.
3+
* Licensed under the Fabricators Public Access License (FPAL) v1.0
4+
* See https://github.com/fabricatorsltd/FPAL for details.
5+
*/
16
package cmd
27

38
import (

cmd/extract.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) 2025 FABRICATORS S.R.L.
3+
* Licensed under the Fabricators Public Access License (FPAL) v1.0
4+
* See https://github.com/fabricatorsltd/FPAL for details.
5+
*/
16
package cmd
27

38
import (

cmd/hostexec_client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) 2025 FABRICATORS S.R.L.
3+
* Licensed under the Fabricators Public Access License (FPAL) v1.0
4+
* See https://github.com/fabricatorsltd/FPAL for details.
5+
*/
16
package cmd
27

38
import (

cmd/hostexec_server.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) 2025 FABRICATORS S.R.L.
3+
* Licensed under the Fabricators Public Access License (FPAL) v1.0
4+
* See https://github.com/fabricatorsltd/FPAL for details.
5+
*/
16
package cmd
27

38
import (

0 commit comments

Comments
 (0)