2021-07-14 13:48:18 +03:00
|
|
|
# kafkacat
|
|
|
|
|
|
|
|
This is a Fedora package repository of [kafkacat](https://github.com/edenhill/kafkacat) utility
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
|
|
|
|
1. librdkafka
|
|
|
|
|
|
|
|
```
|
|
|
|
# dnf install librdkafka
|
|
|
|
```
|
|
|
|
|
|
|
|
2. fedora build system
|
|
|
|
|
|
|
|
```
|
|
|
|
# dnf install fedora-packager fedora-review
|
|
|
|
# usermod -a -G mock <your-user-name>
|
|
|
|
```
|
|
|
|
|
|
|
|
... and perform a relogin to update user groups
|
|
|
|
|
|
|
|
# how to run
|
|
|
|
|
|
|
|
1. clone this repo
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://github.com/bvn13/kafkacat.git
|
|
|
|
```
|
|
|
|
|
|
|
|
2. update submodule
|
|
|
|
|
|
|
|
```
|
|
|
|
git submodule foreach git pull origin master
|
|
|
|
```
|
|
|
|
|
2021-07-14 13:54:02 +03:00
|
|
|
3. make a symlink
|
|
|
|
|
|
|
|
```
|
|
|
|
ln -sf kafkacat kafkacat-1.7.0
|
|
|
|
```
|
|
|
|
|
|
|
|
4. make a tar archive
|
|
|
|
|
|
|
|
```
|
|
|
|
tar -cf kafkacat-1.7.0.tar kafkacat-1.7.0
|
|
|
|
```
|
|
|
|
|
|
|
|
5. build fedora package
|
2021-07-14 13:48:18 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
fedpkg --release f34 local
|
|
|
|
```
|
|
|
|
|
2021-07-14 13:54:02 +03:00
|
|
|
6. install built rpm
|
2021-07-14 13:48:18 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
# rpm -i x86_64/kafkacat-1.7.0-1.x86_64.rpm
|
|
|
|
```
|
2021-07-14 13:54:02 +03:00
|
|
|
|
|
|
|
## or...
|
|
|
|
|
2021-07-14 13:54:37 +03:00
|
|
|
you may run `./build.sh` script to build rpm (steps 1-5)
|