Skip to content

Commit 090de08

Browse files
committed
packages: added Debian 12 "bookworm" support
While here, updated some Python dependencies to address security issues.
1 parent ede484f commit 090de08

File tree

9 files changed

+53
-8
lines changed

9 files changed

+53
-8
lines changed

packages/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ case "$os" in
467467
incr_step
468468

469469
case "$codename" in
470-
buster|bullseye|bionic|focal|jammy)
470+
buster|bullseye|bookworm|bionic|focal|jammy)
471471
check_python 3
472472
python_supported=3
473473
;;
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Source: nginx-amplify-agent
2+
Homepage: https://github.com/nginxinc/nginx-amplify-agent
3+
Maintainer: NGINX Packaging <nginx-packaging@f5.com>
4+
Section: python
5+
Priority: optional
6+
Build-Depends: debhelper (>= 13),
7+
dpkg-dev (>= 1.21),
8+
python3,
9+
dh-python
10+
Standards-Version: 4.5.0
11+
12+
Package: nginx-amplify-agent
13+
Description: Agent for NGINX Amplify monitoring platform
14+
The NGINX Amplify Agent is a small, Python application that provides
15+
system and NGINX metric collection. It is part of NGINX Amplify -
16+
the monitoring and configuration assistance service for NGINX.
17+
.
18+
This package installs and runs NGINX Amplify Agent daemon.
19+
.
20+
See http://nginx.com/amplify for more information
21+
Architecture: any
22+
Depends: ${misc:Depends},
23+
${python3:Depends},
24+
python3-daemon,
25+
python3-psutil,
26+
python3-setproctitle,
27+
python3-greenlet,
28+
python3-gevent,
29+
python3-requests,
30+
python3-ujson,
31+
python3-netifaces,
32+
python3-netaddr,
33+
python3-pymysql,
34+
python3-rstr,
35+
lsb-release,
36+
adduser

packages/nginx-amplify-agent/deb/debian/rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ build: build-arch build-indep
2222

2323
install:
2424
dh_testdir
25-
python3 setup.py install --prefix=/usr --root=$(INSTALLDIR) --no-compile
25+
python3 setup.py install --prefix=/usr --install-scripts=/usr/bin --root=$(INSTALLDIR) --no-compile
2626

2727
binary-indep: build install
2828
dh_testdir
@@ -44,7 +44,7 @@ binary-arch: install
4444
dh_shlibdeps -a
4545
dh_gencontrol -a
4646
dh_md5sums -a
47-
dh_builddeb nginx-amplify-agent
47+
dh_builddeb nginx-amplify-agent -- -Zgzip
4848

4949
binary: binary-indep binary-arch
5050

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
flup==1.0.3
2+
crossplane==0.5.8

packages/nginx-amplify-agent/requirements-py310.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ crossplane==0.5.8
77
rstr==3.0.0
88
psutil==5.8.0
99
python-daemon==2.2.4
10-
requests==2.26.0
10+
requests==2.31.0
1111
ujson==5.4.0
1212
PyMySQL==1.0.2

packages/nginx-amplify-agent/requirements-py39.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ crossplane==0.5.8
77
rstr==3.0.0
88
psutil==5.8.0
99
python-daemon==2.2.4
10-
requests==2.26.0
10+
requests==2.31.0
1111
ujson==5.4.0
1212
PyMySQL==1.0.2

packages/nginx-amplify-agent/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ crossplane==0.5.8
77
rstr==3.0.0
88
psutil==5.8.0
99
python-daemon==2.2.4
10-
requests==2.26.0
10+
requests==2.31.0
1111
ujson==5.4.0
1212
PyMySQL==1.0.2

tools/builders/deb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
'buster': 12,
1818
'focal': 12,
1919
'bullseye': 13,
20-
'jammy': 13
20+
'jammy': 13,
21+
'bookworm': 13,
2122
}
2223

2324

tools/builders/rpm.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@ def build(bumprevision=False):
4545
# sed version_build
4646
shell_call('sed -i.bak -e "s,self.version_build =.*,self.version_build = %d," amplify/agent/common/context.py' % bld)
4747

48+
versioned_setup_py = "setup-py{0}{1}.py".format(sys.version_info[0], sys.version_info[1])
49+
if os.path.isfile("packages/nginx-amplify-agent/%s" % versioned_setup_py):
50+
setup_py = "packages/nginx-amplify-agent/%s" % versioned_setup_py
51+
else:
52+
setup_py = "packages/nginx-amplify-agent/setup.py"
53+
4854
# prepare sources
49-
shell_call('cp packages/nginx-amplify-agent/setup.py ./')
55+
shell_call('cp %s ./setup.py' % setup_py)
5056
shell_call('tar -cz --transform "s,^,nginx-amplify-agent-%s/," -f %s/nginx-amplify-agent-%s.tar.gz LICENSE MANIFEST.in amplify/agent amplify/ext amplify/__init__.py etc/ packages/ nginx-amplify-agent.py setup.py' % (version, rpm_sources, version))
5157
shell_call('cp packages/nginx-amplify-agent/rpm/nginx-amplify-agent.service %s' % rpm_sources)
5258

0 commit comments

Comments
 (0)