-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
464 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,9 @@ jobs: | |
arch: | ||
- amd64 | ||
target: | ||
- "debian:bookworm" | ||
- "debian:buster" | ||
- "debian:bullseye" | ||
- "debian:bookworm" | ||
- "ubuntu:bionic" | ||
- "ubuntu:focal" | ||
- "ubuntu:jammy" | ||
|
||
|
@@ -30,16 +29,91 @@ jobs: | |
run: ./debpkg-setup.sh | ||
- name: Build packages | ||
run: ./debpkg-build.sh | ||
- name: Store packages | ||
- name: Set environment variables for upload | ||
run: echo DIRNAME=${{ matrix.target }} | tr ':' '_' >> $GITHUB_ENV | ||
- name: Copy packages to uploadable location | ||
run: | | ||
export DIRNAME=`echo ${{ matrix.target }} | tr ':' '_'` | ||
mkdir -p packages/${DIRNAME} | ||
cp ../*.deb packages/${DIRNAME}/ | ||
- name: Publish packages to cloudsmith | ||
uses: wandnz/action-cloudsmith-upload-[email protected] | ||
- name: Store packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: packages/ | ||
repo: ${{ secrets.CLOUDSMITH_OWNER }}/libtrace | ||
username: salcock | ||
api_key: ${{ secrets.CLOUDSMITH_API_KEY }} | ||
name: packages-${{ env.DIRNAME }} | ||
path: packages/${{ env.DIRNAME }}/*.deb | ||
retention-days: 1 | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.target }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- amd64 | ||
target: | ||
- "debian:buster" | ||
- "debian:bullseye" | ||
- "ubuntu:focal" | ||
- "ubuntu:jammy" | ||
- "debian:bookworm" | ||
needs: build | ||
steps: | ||
- name: Set environment variables for download | ||
run: echo DIRNAME=${{ matrix.target }} | tr ':' '_' >> $GITHUB_ENV | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: packages-${{ env.DIRNAME }} | ||
- name: Add repositories | ||
run: | | ||
apt update -y | ||
apt install -y apt-transport-https curl | ||
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandio/cfg/setup/bash.deb.sh' | bash | ||
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandder/cfg/setup/bash.deb.sh' | bash | ||
- name: Test package install | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
apt update -y | ||
find . -name "*.deb" | xargs apt install -y | ||
- name: Test package removal | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
apt remove -y --purge libtrace4 | ||
publish: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.target }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- amd64 | ||
target: | ||
- "debian:buster" | ||
- "debian:bullseye" | ||
- "debian:bookworm" | ||
- "ubuntu:focal" | ||
- "ubuntu:jammy" | ||
needs: test | ||
steps: | ||
- name: Set environment variables for download | ||
run: echo DIRNAME=${{ matrix.target }} | tr ':' '_' >> $GITHUB_ENV | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: packages-${{ env.DIRNAME }} | ||
- name: Copy packages | ||
run: | | ||
mkdir -p packages/${DIRNAME} | ||
find . -name "*.deb" | xargs cp -t packages/${DIRNAME}/ | ||
- name: Publish package to cloudsmith | ||
uses: wanduow/action-cloudsmith-upload-packages@v1 | ||
with: | ||
path: packages/ | ||
repo: ${{ secrets.CLOUDSMITH_OWNER }}/libtrace | ||
username: salcock | ||
api_key: ${{ secrets.CLOUDSMITH_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Packaging for Centos and Fedora | ||
name: Packaging for RPM | ||
|
||
on: | ||
push: | ||
|
@@ -7,40 +7,126 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.target }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- amd64 | ||
target: | ||
- "centos:7" | ||
- "fedora:37" | ||
- "fedora:38" | ||
- "rockylinux:8" | ||
- "rockylinux:9" | ||
|
||
|
||
steps: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.target }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- amd64 | ||
target: | ||
- "rockylinux:8" | ||
- "rockylinux:9" | ||
- "fedora:39" | ||
- "fedora:38" | ||
- "centos:7" | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Install prereq packages | ||
run: ./rpmpkg-setup.sh ${{ matrix.target }} | ||
- name: Build packages | ||
run: ./rpmpkg-build.sh ${{ matrix.target }} | ||
- name: Store packages | ||
run: ./rpmpkg-build.sh | ||
- name: Set environment variables for upload | ||
run: echo DIRNAME=${{ matrix.target }} | tr ':' '_' >> $GITHUB_ENV | ||
- name: Copy packages to uploadable location | ||
run: | | ||
export DIRNAME=`echo ${{ matrix.target }} | tr ':' '_'` | ||
mkdir -p packages/${DIRNAME} | ||
cp ~/rpmbuild/RPMS/x86_64/*.rpm packages/${DIRNAME}/ | ||
- name: Publish packages to cloudsmith | ||
uses: salcock/action-cloudsmith-upload-[email protected] | ||
- name: Store packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: packages/ | ||
repo: ${{ secrets.CLOUDSMITH_OWNER }}/libtrace | ||
username: salcock | ||
api_key: ${{ secrets.CLOUDSMITH_API_KEY }} | ||
name: packages-${{ env.DIRNAME }} | ||
path: packages/${{ env.DIRNAME }}/*.rpm | ||
retention-days: 1 | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.target }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- amd64 | ||
target: | ||
- "rockylinux:8" | ||
- "rockylinux:9" | ||
- "fedora:39" | ||
- "fedora:38" | ||
- "centos:7" | ||
needs: build | ||
steps: | ||
- name: Set environment variables for download | ||
run: echo DIRNAME=${{ matrix.target }} | tr ':' '_' >> $GITHUB_ENV | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: packages-${{ env.DIRNAME }} | ||
- name: Add repositories | ||
env: | ||
TARGET: ${{ matrix.target }} | ||
run: | | ||
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandio/cfg/setup/bash.rpm.sh' | bash | ||
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandder/cfg/setup/bash.rpm.sh' | bash | ||
if [ "${TARGET}" == "centos:7" ]; then | ||
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm || true | ||
fi | ||
if [[ "${TARGET}" =~ rocky* ]]; then | ||
dnf install -y dnf-plugins-core epel-release || true | ||
dnf config-manager --set-enabled powertools || true | ||
/usr/bin/crb enable || true | ||
fi | ||
- name: Test package install | ||
run: | | ||
yum install -y findutils | ||
find . -name "*.rpm" | xargs yum install -y | ||
- name: Test package removal | ||
run: | | ||
rpm -e libtrace4-tools | ||
rpm -e libpacketdump4-devel | ||
rpm -e libtrace4-devel | ||
rpm -e libpacketdump4 | ||
rpm -e libtrace4 | ||
publish: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.target }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- amd64 | ||
target: | ||
- "rockylinux:8" | ||
- "rockylinux:9" | ||
- "fedora:39" | ||
- "fedora:38" | ||
- "centos:7" | ||
needs: test | ||
steps: | ||
- name: Set environment variables for download | ||
run: echo DIRNAME=${{ matrix.target }} | tr ':' '_' >> $GITHUB_ENV | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: packages-${{ env.DIRNAME }} | ||
- name: Copy packages | ||
run: | | ||
mkdir -p packages/${DIRNAME} | ||
yum install -y findutils | ||
find . -name "*.rpm" | xargs cp -t packages/${DIRNAME}/ | ||
- name: Publish package to cloudsmith | ||
uses: wanduow/action-cloudsmith-upload-packages@v1 | ||
with: | ||
path: packages/ | ||
repo: ${{ secrets.CLOUDSMITH_OWNER }}/libtrace | ||
username: salcock | ||
api_key: ${{ secrets.CLOUDSMITH_API_KEY }} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ | |
# Now you only need to update the version number in two places - below, | ||
# and in the README | ||
|
||
AC_INIT([libtrace],[4.0.23],[[email protected]],[libtrace]) | ||
AC_INIT([libtrace],[4.0.24],[[email protected]],[libtrace]) | ||
|
||
LIBTRACE_MAJOR=4 | ||
LIBTRACE_MID=0 | ||
LIBTRACE_MINOR=23 | ||
LIBTRACE_MINOR=24 | ||
|
||
# OpenSolaris hides libraries like libncurses in /usr/gnu/lib, which is not | ||
# searched by default - add it to LDFLAGS so we at least have a chance of | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
libtrace4 (4.0.24-1) unstable; urgency=medium | ||
|
||
* ndagtcp: fix miscalculation of ERF header length that would | ||
prevent packets from being able to be decoded correctly. | ||
* traceucast: do not exit if the client disconnects, instead try to | ||
reconnect and resume unicasting. | ||
* traceucast: fix memory errors when attempting to send a captured | ||
packet that is larger than 10K bytes. | ||
* ndagtcp: fix issue that would cause input to silently stop reading | ||
if it received a packet larger than 10K bytes. | ||
* ndagtcp: fix lock-up that occurred when trying to halt a program | ||
that was reading from an ndagtcp input. | ||
* ndagtcp: fix erroneous "Malformed beacon" message when an ndagtcp | ||
input reconnects to traceucast. | ||
* traceucast: fix getaddrinfo memory leak. | ||
* traceucast: fix endless reconnection loop bug. | ||
* traceucast: fix race condition that would prevent Ctrl-C from | ||
halting traceucast properly. | ||
|
||
-- Shane Alcock <[email protected]> Wed, 24 Jan 2024 13:43:51 +1300 | ||
|
||
libtrace4 (4.0.23-1) unstable; urgency=medium | ||
|
||
* Add new tool: traceucast, a TCP unicast variant of tracemcast. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.