StamusNetworks / gophercap

Accurate, modular, scalable PCAP manipulation tool written in Go.
GNU General Public License v3.0
85 stars 12 forks source link

README update: ArchLinux AUR package #1

Closed JSkier21 closed 3 years ago

JSkier21 commented 3 years ago

I have created an AUR package for ArchLinux here: https://aur.archlinux.org/packages/gophercap/

Feel free to update the README file to include installation via user build with makepkg or using yay: yay- S gophercap

markuskont commented 3 years ago

This is really cool. I will add it to README soon. Just a few minor notes.

We just embedded a version number with binary for our own deployments. Consider using this in PKGBUILD

go build -ldflags="-X 'gopherCap/cmd.Version=$pkgver'" -o ./$pkgname ./

That way, gophercap version outputs correct build tag.

I also suggest adding libpcap as dependency. The writer currently needs it. If missing, then makepkg would fail I guess.

JSkier21 commented 3 years ago

Not a problem, I added the additional build details, works great, thank you.

markuskont commented 3 years ago

Reference has been added to the contributed AUR package. Thanks a lot!

https://github.com/StamusNetworks/gophercap#arch-linux

Happy to close the issue.