-
Notifications
You must be signed in to change notification settings - Fork 707
Provide DEB or RPM #1498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Working on it |
@seladb @tigercosmos How to provide the deb file? |
@seladb @tigercosmos // file: test.cpp int main() { Compilation: Ouput: |
Thank you @bhaskarbhar for working on it! 🙏 Where is your DEB file hosted? I think we'd like to add it to every release from now on, so we need to add building the DEB/RPM to our CI (probably to Please let me know what you think. |
@seladb We can also think about how we can put PCPP into the apt source list. |
@seladb @tigercosmos
For CI, I we can automate this in package.yml using the same steps to build .deb. |
@seladb name: Build and Release DEB Package
on:
release:
types: [published]
jobs:
build-deb:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends cmake make g++ libpcap-dev
- name: Build project
run: |
mkdir build
cd build
cmake ..
make -j$(nproc)
make install DESTDIR=$PWD/install-root
- name: Create DEB control file
run: |
cd build/install-root
mkdir -p DEBIAN
cat <<EOF > DEBIAN/control
Package: pcapplusplus
Version: ${{ github.event.release.tag_name }}
Section: libs
Architecture: amd64
Maintainer: Bhaskar Bhar <[email protected]>
Description: PcapPlusPlus - C++ library for packet parsing and crafting
EOF
- name: Build DEB package
run: |
cd build
dpkg-deb --build install-root pcapplusplus_${{ github.event.release.tag_name }}_amd64.deb
- name: Upload DEB to release
uses: softprops/action-gh-release@v1
with:
files: build/pcapplusplus_${{ github.event.release.tag_name }}_amd64.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
That' s a great idea. |
@bhaskarbhar Could you open a PR? We will go through the code review. |
Opened a PR. PR failed due to pre-commit. |
For Linux, we can consider to provide DEB or RPM.
The text was updated successfully, but these errors were encountered: