Skip to content

Commit 6762aaa

Browse files
committed
Add documentation.
1 parent fe9b2e1 commit 6762aaa

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

packaging.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# How to build a Debian package.
2+
3+
If you can read this file, you should be in a checked-out `debian/latest` branch.
4+
5+
0. Apply the patches listed in `debian/patches/series`. They should apply cleanly before the repository can be compiled.
6+
```sh
7+
cat debian/series | xargs -I{} patch --strip=1 -i "debian/patches/{}"
8+
```
9+
Or
10+
11+
```sh
12+
while read -r f; do
13+
patch -i "debian/patches/$f"
14+
done < debian/series
15+
```
16+
17+
In order to compile Sweeptool on Debian, [OpenSSL 1.1.1](https://www.openssl.org/source/openssl-1.1.1t.tar.gz) is required. After downloading and compiling it, compile sweeptool with a command in the form:
18+
7
19+
```sh
20+
OPENSSL_DIR=$HOME/wip/openssl-1.1.1t OPENSSL_LIB_DIR=$HOME/wip/openssl-1.1.1t cargo build
21+
```

0 commit comments

Comments
 (0)