summaryrefslogtreecommitdiff
path: root/scripts/package-build/pmacct
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-08-26 15:21:14 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2024-08-29 09:30:52 +0000
commitcc7d0993b420c3245e628a818f887411d72530ff (patch)
tree53fd8ab2b5dea74c1f7969b8ff853179d81f8fec /scripts/package-build/pmacct
parent70bb3c5baacb6e0c72b9532f6dda417d395a6bc0 (diff)
downloadvyos-build-cc7d0993b420c3245e628a818f887411d72530ff.tar.gz
vyos-build-cc7d0993b420c3245e628a818f887411d72530ff.zip
T6674: Add build-scrips for packages without Jenkins
Add build scripts for .deb packages without Jenkins. To exclude Jenkins we need some place where we can put new builds-scripts to run in parallel (old/new) during meantime We will deprecate old Jenkins package builds in the future.
Diffstat (limited to 'scripts/package-build/pmacct')
-rw-r--r--scripts/package-build/pmacct/.gitignore6
l---------scripts/package-build/pmacct/build.py1
-rw-r--r--scripts/package-build/pmacct/package.toml4
-rw-r--r--scripts/package-build/pmacct/patches/0001-fix-pmacctd-SEGV-when-ICMP-ICMPv6-traffic-was-proces.patch49
4 files changed, 60 insertions, 0 deletions
diff --git a/scripts/package-build/pmacct/.gitignore b/scripts/package-build/pmacct/.gitignore
new file mode 100644
index 00000000..7007417a
--- /dev/null
+++ b/scripts/package-build/pmacct/.gitignore
@@ -0,0 +1,6 @@
+pmacct/
+*.buildinfo
+*.build
+*.changes
+*.deb
+*.dsc
diff --git a/scripts/package-build/pmacct/build.py b/scripts/package-build/pmacct/build.py
new file mode 120000
index 00000000..3c76af73
--- /dev/null
+++ b/scripts/package-build/pmacct/build.py
@@ -0,0 +1 @@
+../build.py \ No newline at end of file
diff --git a/scripts/package-build/pmacct/package.toml b/scripts/package-build/pmacct/package.toml
new file mode 100644
index 00000000..6f5961be
--- /dev/null
+++ b/scripts/package-build/pmacct/package.toml
@@ -0,0 +1,4 @@
+[[packages]]
+name = "pmacct"
+commit_id = "debian/1.7.7-1"
+scm_url = "https://salsa.debian.org/debian/pmacct.git"
diff --git a/scripts/package-build/pmacct/patches/0001-fix-pmacctd-SEGV-when-ICMP-ICMPv6-traffic-was-proces.patch b/scripts/package-build/pmacct/patches/0001-fix-pmacctd-SEGV-when-ICMP-ICMPv6-traffic-was-proces.patch
new file mode 100644
index 00000000..cb5f7399
--- /dev/null
+++ b/scripts/package-build/pmacct/patches/0001-fix-pmacctd-SEGV-when-ICMP-ICMPv6-traffic-was-proces.patch
@@ -0,0 +1,49 @@
+From 58900c9d0f98f224577c28dc2323061d33823f39 Mon Sep 17 00:00:00 2001
+From: Paolo Lucente <pl+github@pmacct.net>
+Date: Fri, 4 Mar 2022 22:07:29 +0000
+Subject: [PATCH] * fix, pmacctd: SEGV when ICMP/ICMPv6 traffic was processed
+ and 'flows' primitive was enabled. To address Issue #586
+
+---
+ src/nl.c | 12 +++---------
+ 1 file changed, 3 insertions(+), 9 deletions(-)
+
+diff --git a/src/nl.c b/src/nl.c
+index c42689ed..6a3da94b 100644
+--- a/src/nl.c
++++ b/src/nl.c
+@@ -1,6 +1,6 @@
+ /*
+ pmacct (Promiscuous mode IP Accounting package)
+- pmacct is Copyright (C) 2003-2021 by Paolo Lucente
++ pmacct is Copyright (C) 2003-2022 by Paolo Lucente
+ */
+
+ /*
+@@ -293,10 +293,7 @@ int ip_handler(register struct packet_ptrs *pptrs)
+ }
+ }
+ else {
+- if (pptrs->l4_proto != IPPROTO_ICMP) {
+- pptrs->tlh_ptr = dummy_tlhdr;
+- }
+-
++ pptrs->tlh_ptr = dummy_tlhdr;
+ if (off < caplen) pptrs->payload_ptr = ptr;
+ }
+
+@@ -479,10 +476,7 @@ int ip6_handler(register struct packet_ptrs *pptrs)
+ }
+ }
+ else {
+- if (pptrs->l4_proto != IPPROTO_ICMPV6) {
+- pptrs->tlh_ptr = dummy_tlhdr;
+- }
+-
++ pptrs->tlh_ptr = dummy_tlhdr;
+ if (off < caplen) pptrs->payload_ptr = ptr;
+ }
+
+--
+2.34.1
+