A patched dhclient for the Orange Fibre ISP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.0 KiB

Hacking Guide

Setup the development environment

Pre-requisites:

  • Fedora 34 or higher
  • mock
  • rpmdevtools
  • rpm-build
  • git (with LFS enabled)
  • createrepo
  • rsync
  • rclone
cd ~
git clone https://github.com/nmasse-itix/dhclient-orange.git rpmbuild

See https://rpm-packaging-guide.github.io/

Building

cd ~/rpmbuild
rpm -Uvh SRPMS/dhcp-*.src.rpm
git checkout -- SPECS/dhcp.spec
./build.sh
./release.sh

Backport new version of dhclient

On a CentOS Steam machine:

cd /tmp
dnf download dhcp --source

And then, on your development machine:

mv SOURCES/dhcp-orange-fibre.patch .
rm -f SOURCES/*
scp centos-stream-machine:/tmp/dhcp-*.src.rpm SRPMS
rpm -Uvh SRPMS/dhcp-*.src.rpm
rm SRPMS/dhcp-*.src.rpm
mv dhcp-orange-fibre.patch SOURCES/

Do a git diff to see potential changes against current version. Do not forget to:

  • change the version/release from x.y.z-t to x.y.z-t.itix1
  • change the package name from client to client-orange-isp
  • re-add the patch "dhcp-orange-fibre.patch"
./build.sh