Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#------------------------------------------------------------------------------
# .github/workflows/build.yaml
#------------------------------------------------------------------------------
# Build simbe's forked ptpd deb package and upload to gemfury on tags.
#------------------------------------------------------------------------------
# Authors: Mike Purvis <mike.purvis@simberobotics.com>
# Copyright (c) 2025, Simbe Robotics, Inc.
#------------------------------------------------------------------------------
name: Build

on: push

jobs:
deb:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- run: |
sudo apt-get update
sudo apt-get install -yq build-essential devscripts equivs

- name: Install build dependencies
run: |
sudo mk-build-deps --install \
--tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -yq'

- run: dpkg-buildpackage -uc -b

- name: Show contents
run: dpkg -c ../ptpd_*.deb

- name: Push deb to gemfury on tag
if: startsWith(github.ref, 'refs/tags/')
run: |
tag="${{ github.ref_name }}"
version="$(dpkg-parsechangelog -SVersion)"

if [ "$tag" != "$version" ]; then
echo "::error ::Tag '$tag' does not match changelog version '$version'"
exit 1
fi

curl -F package=@$(ls ../ptpd_*.deb) https://${{ secrets.GEMFURY_API_KEY }}@push.fury.io/simberobotics
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ debian/ptpd.debhelper.log
debian/ptpd
debian/files
debian/ptpd.substvars
debian/ptpd.postrm.debhelper
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
ptpd (2.3.1-debian1-4build2-simbe0) noble; urgency=medium

* Bring in upstream source as of 1ec9e65
* Add in systemd unit
* simbe-specific conffile in /etc/ptpd.conf

-- Mike Purvis <mike.purvis@simberobotics.com> Fri, 30 May 2025 19:18:15 -0400

ptpd (2.3.1-debian1-4build2) noble; urgency=medium

* No-change rebuild for CVE-2024-3094
Expand Down
7 changes: 0 additions & 7 deletions debian/ptpd.default

This file was deleted.

155 changes: 0 additions & 155 deletions debian/ptpd.init

This file was deleted.

1 change: 1 addition & 0 deletions debian/ptpd.install
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/ptpd2 usr/sbin
simbe/ptpd.conf etc
15 changes: 15 additions & 0 deletions debian/ptpd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=Precision Time Protocol Daemon
Wants=network-online.target
After=network.target network-online.target ntpdate.service sntp.service ntp.service chronyd.service
Conflicts=ptp4l.service

[Service]
Type=simple
ExecStart=/usr/sbin/ptpd --global:lock_file=/var/run/ptpd.pid -c /etc/ptpd.conf --foreground
Restart=on-failure
CPUAffinity=0
Nice=-19

[Install]
WantedBy=multi-user.target
Loading