alemayhu / 2nft

web application to use iptables-translate
https://2nft.alemayhu.com/
6 stars 0 forks source link

scripts: make it easier to run patches from patchwork #2

Closed aalemayhu closed 7 years ago

aalemayhu commented 7 years ago

We are already cloning and compiling nftables and friends. I am currently applying patches manually, but this should be pretty straightforward to automate. Untested, but maybe something like

cd /home/tester/src/netfilter.org/iptables/
wget -O $ID.patch http://patchwork.ozlabs.org/patch/$ID/raw/
git apply $ID.patch
git diff
/tmp/Scripts/nft-dev local # might require root?
chown -R tester:tester .

This does not handle multiple patches, but that could be a follow up?