Skip to content

Commit

Permalink
added p7zip to dynamic-apps
Browse files Browse the repository at this point in the history
Added p7zip file compression utility to dynamic apps. This includes the root directory, README.md, libraries, binaries, and sample files.

Signed-off-by: Sina Mahdavi <[email protected]>
  • Loading branch information
sinamhdv committed Sep 24, 2023
1 parent 0afd0e6 commit 512f1a0
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 0 deletions.
Binary file added p7zip/7z
Binary file not shown.
Binary file added p7zip/7z.so
Binary file not shown.
Binary file added p7zip/7zCon.sfx
Binary file not shown.
Binary file added p7zip/7za
Binary file not shown.
Binary file added p7zip/7zr
Binary file not shown.
49 changes: 49 additions & 0 deletions p7zip/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# p7zip

This is the p7zip compression utility that can be used with Unikraft bincompat mode.

## Content

- `lib/` & `lib64/`: required libs for p7zip
- `/7z`: the 7z main binary
- `7z.so`, `7za`, `7zCon.sfx`, `7zr`: different code modules for p7zip that will be used by 7z binary to perform different operations.

## Extracting Dynamic Libraries

```console
../extract.sh ./7z
```

## Running on Linux

This will create a new archive called `archive.zip` and add the file `README.md` to it.

```console
7z a archive.zip README.md
```

This will extract the archive:

```console
7z x archive.zip
```

## Running on Unikraft

This will create a new archive called `archive.zip` and add the file `README.md` to it.

```console
./run.sh -r ../dynamic-apps/p7zip /7z a archive.zip README.md
```

This will extract an archive file called `archive.zip`.

```console
./run.sh -r ../dynamic-apps/p7zip /7z x archive.zip
```

We can use this command to check that everything worked properly:

```console
7z l archive.zip
```
Binary file added p7zip/archive.zip
Binary file not shown.
Binary file added p7zip/lib/x86_64-linux-gnu/libc.so.6
Binary file not shown.
Binary file added p7zip/lib/x86_64-linux-gnu/libdl.so.2
Binary file not shown.
Binary file added p7zip/lib/x86_64-linux-gnu/libgcc_s.so.1
Binary file not shown.
Binary file added p7zip/lib/x86_64-linux-gnu/libm.so.6
Binary file not shown.
Binary file added p7zip/lib/x86_64-linux-gnu/libpthread.so.0
Binary file not shown.
Binary file added p7zip/lib/x86_64-linux-gnu/libstdc++.so.6
Binary file not shown.
Binary file added p7zip/lib64/ld-linux-x86-64.so.2
Binary file not shown.

0 comments on commit 512f1a0

Please sign in to comment.