Skip to content

Commit

Permalink
Merge pull request #868 from c-po/package-build
Browse files Browse the repository at this point in the history
T6674: move patches to "package/<package_name>" subfolder
  • Loading branch information
sever-sever authored Dec 22, 2024
2 parents 77f3471 + 53ceb24 commit 3b377bd
Show file tree
Hide file tree
Showing 52 changed files with 44 additions and 405 deletions.
8 changes: 8 additions & 0 deletions scripts/package-build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.buildinfo
*.build
*.changes
*.deb
*.udeb
*.dsc
*.tar.gz
*.tar.xz
8 changes: 1 addition & 7 deletions scripts/package-build/amazon-cloudwatch-agent/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
amazon-cloudwatch-agent/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
/amazon-cloudwatch-agent/
8 changes: 1 addition & 7 deletions scripts/package-build/amazon-ssm-agent/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
amazon-ssm-agent/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
/amazon-ssm-agent/
9 changes: 1 addition & 8 deletions scripts/package-build/aws-gwlbtun/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
aws-gwlbtun*/
*.tar.gz
*.tar.xz
*.deb
*.dsc
*.buildinfo
*.build
*.changes
/aws-gwlbtun*/
3 changes: 1 addition & 2 deletions scripts/package-build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def apply_patches(repo_dir: Path, patch_dir: Path) -> None:
series.write(patch.name + '\n')
print(f"I: Applied patch: {patch.name}")


def prepare_package(repo_dir: Path, install_data: str) -> None:
"""Prepare a package"""
if not install_data:
Expand Down Expand Up @@ -95,7 +94,7 @@ def build_package(package: list, patch_dir: Path) -> None:

# Apply patches if any
if (repo_dir / 'patches'):
apply_patches(repo_dir, patch_dir)
apply_patches(repo_dir, patch_dir / repo_name)

# Sanitize the commit ID and build a tarball for the package
commit_id_sanitized = package['commit_id'].replace('/', '_')
Expand Down
8 changes: 1 addition & 7 deletions scripts/package-build/ddclient/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
ddclient/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

/ddclient/
8 changes: 1 addition & 7 deletions scripts/package-build/dropbear/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
dropbear/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
/dropbear/
8 changes: 1 addition & 7 deletions scripts/package-build/ethtool/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
ethtool/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

/ethtool/
12 changes: 3 additions & 9 deletions scripts/package-build/frr/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
frr/
rtrlib/
libyang/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
/frr/
/rtrlib/
/libyang/
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ index 43e5d7e61..1f971ab22 100755
--enable-vty-group=frrvty \
--enable-configfile-mask=0640 \
--enable-logfile-mask=0640 \
+ --enable-pcre2posix \
+ --enable-pcre2posix \
# end

override_dh_auto_install:
Expand Down
7 changes: 1 addition & 6 deletions scripts/package-build/frr_exporter/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
frr_exporter /
*.buildinfo
*.build
*.changes
*.deb
*.dsc
/frr_exporter/
9 changes: 2 additions & 7 deletions scripts/package-build/hostap/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
hostap/
wpa/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
/hostap/
/wpa/
8 changes: 1 addition & 7 deletions scripts/package-build/hsflowd/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
host-sflow/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
/host-sflow/
8 changes: 1 addition & 7 deletions scripts/package-build/isc-dhcp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
isc-dhcp/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
/isc-dhcp/
8 changes: 1 addition & 7 deletions scripts/package-build/kea/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
isc-kea/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

/isc-kea/
8 changes: 1 addition & 7 deletions scripts/package-build/keepalived/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
keepalived/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

/keepalived/
8 changes: 1 addition & 7 deletions scripts/package-build/ndppd/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
ndppd/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

/ndppd/
7 changes: 1 addition & 6 deletions scripts/package-build/net-snmp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
net-snmp/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
/net-snmp/
6 changes: 0 additions & 6 deletions scripts/package-build/netfilter/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
/pkg-libnftnl/
/pkg-nftables/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
195 changes: 0 additions & 195 deletions scripts/package-build/netfilter/build.py

This file was deleted.

1 change: 1 addition & 0 deletions scripts/package-build/netfilter/build.py
6 changes: 0 additions & 6 deletions scripts/package-build/node_exporter/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
node_exporter/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

7 changes: 1 addition & 6 deletions scripts/package-build/opennhrp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
opennhrp/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
/opennhrp/
Loading

0 comments on commit 3b377bd

Please sign in to comment.