Skip to content

Commit b935cc5

Browse files
committed
Merge branch 'master' of github.com:cen1/bncsutil
2 parents 9162bd5 + c6cbab9 commit b935cc5

1 file changed

Lines changed: 36 additions & 2 deletions

File tree

README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,40 @@ For newer versions of Visual Studio we recommend to use MPIR library instead whi
2929
2. CMake will generate sln file in ./build. Open it and build the library.
3030

3131
### Linux
32-
1. Install GMP with the package manager. Also install all the necessary deveklopment tools (gcc, make or build-essential package on Debian).
32+
1. Install GMP with the package manager. Also install all the necessary development tools (gcc, make or build-essential package on Debian).
3333
2. Run `cmake -G "Unix Makefiles" -B./build -H./`.
34-
3. `cd build && make && make install`.
34+
3. `cd build && make && make install`.
35+
36+
## Building .deb and .rpm packages
37+
After invoking cmake, cd to build folder and generate them with `cpack -G "DEB"` and `cpack -G "RPM"`.
38+
You can then use `gdebi` to do a local install of .deb with automatic dependency resolution or `yum localinstall` on rpm distros. For dnf it's just `dnf install <name>.rpm`.
39+
40+
## Hosted Linux repositories
41+
DEB and RPM repositories are maintained with best effort.
42+
43+
### Debian (amd64)
44+
1. To `/etc/apt/sources.list` add:
45+
46+
```
47+
#apt.xpam.pl
48+
deb http://apt.xpam.pl/ jessie main
49+
```
50+
51+
2. Add GPG key: `wget -qO - http://apt.xpam.pl/xpam.pl-pubkey.asc | sudo apt-key add -`
52+
3. Update and install: `sudo apt-get update && sudo apt-get install bncsutil`
53+
54+
### Fedora/CentOS (amd64)
55+
1. In `/etc/yum.repos.d/rpm.xpam.pl.repo` add
56+
57+
```
58+
[rpm.xpam.pl]
59+
name = rpm.xpam.pl
60+
baseurl = https://rpm.xpam.pl
61+
```
62+
63+
or, with dnf on Fedora: `dnf config-manager --add-repo https://rpm.xpam.pl`
64+
2. If using dnf, make sure to import the public key: `rpm --import https://rpm.xpam.pl/stormlib-pubkey.asc`
65+
3. Update and install: `yum update && yum install stormlib` or dnf equivalent.
66+
67+
### Fedora/CentOS (x86)
68+
TBD

0 commit comments

Comments
 (0)