Merge pull request #106 from defanator/debian12-support
packages: added Debian 12 "bookworm" supportpull/108/head
commit
700d01db95
|
@ -467,7 +467,7 @@ case "$os" in
|
||||||
incr_step
|
incr_step
|
||||||
|
|
||||||
case "$codename" in
|
case "$codename" in
|
||||||
buster|bullseye|bionic|focal|jammy)
|
buster|bullseye|bookworm|bionic|focal|jammy)
|
||||||
check_python 3
|
check_python 3
|
||||||
python_supported=3
|
python_supported=3
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
Source: nginx-amplify-agent
|
||||||
|
Homepage: https://github.com/nginxinc/nginx-amplify-agent
|
||||||
|
Maintainer: NGINX Packaging <nginx-packaging@f5.com>
|
||||||
|
Section: python
|
||||||
|
Priority: optional
|
||||||
|
Build-Depends: debhelper (>= 13),
|
||||||
|
dpkg-dev (>= 1.21),
|
||||||
|
python3,
|
||||||
|
dh-python
|
||||||
|
Standards-Version: 4.5.0
|
||||||
|
|
||||||
|
Package: nginx-amplify-agent
|
||||||
|
Description: Agent for NGINX Amplify monitoring platform
|
||||||
|
The NGINX Amplify Agent is a small, Python application that provides
|
||||||
|
system and NGINX metric collection. It is part of NGINX Amplify -
|
||||||
|
the monitoring and configuration assistance service for NGINX.
|
||||||
|
.
|
||||||
|
This package installs and runs NGINX Amplify Agent daemon.
|
||||||
|
.
|
||||||
|
See http://nginx.com/amplify for more information
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
${python3:Depends},
|
||||||
|
python3-daemon,
|
||||||
|
python3-psutil,
|
||||||
|
python3-setproctitle,
|
||||||
|
python3-greenlet,
|
||||||
|
python3-gevent,
|
||||||
|
python3-requests,
|
||||||
|
python3-ujson,
|
||||||
|
python3-netifaces,
|
||||||
|
python3-netaddr,
|
||||||
|
python3-pymysql,
|
||||||
|
python3-rstr,
|
||||||
|
lsb-release,
|
||||||
|
adduser
|
|
@ -22,7 +22,7 @@ build: build-arch build-indep
|
||||||
|
|
||||||
install:
|
install:
|
||||||
dh_testdir
|
dh_testdir
|
||||||
python3 setup.py install --prefix=/usr --root=$(INSTALLDIR) --no-compile
|
python3 setup.py install --prefix=/usr --install-scripts=/usr/bin --root=$(INSTALLDIR) --no-compile
|
||||||
|
|
||||||
binary-indep: build install
|
binary-indep: build install
|
||||||
dh_testdir
|
dh_testdir
|
||||||
|
@ -44,7 +44,7 @@ binary-arch: install
|
||||||
dh_shlibdeps -a
|
dh_shlibdeps -a
|
||||||
dh_gencontrol -a
|
dh_gencontrol -a
|
||||||
dh_md5sums -a
|
dh_md5sums -a
|
||||||
dh_builddeb nginx-amplify-agent
|
dh_builddeb nginx-amplify-agent -- -Zgzip
|
||||||
|
|
||||||
binary: binary-indep binary-arch
|
binary: binary-indep binary-arch
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
flup==1.0.3
|
||||||
|
crossplane==0.5.8
|
|
@ -7,6 +7,6 @@ crossplane==0.5.8
|
||||||
rstr==3.0.0
|
rstr==3.0.0
|
||||||
psutil==5.8.0
|
psutil==5.8.0
|
||||||
python-daemon==2.2.4
|
python-daemon==2.2.4
|
||||||
requests==2.26.0
|
requests==2.31.0
|
||||||
ujson==5.4.0
|
ujson==5.4.0
|
||||||
PyMySQL==1.0.2
|
PyMySQL==1.0.2
|
||||||
|
|
|
@ -7,6 +7,6 @@ crossplane==0.5.8
|
||||||
rstr==3.0.0
|
rstr==3.0.0
|
||||||
psutil==5.8.0
|
psutil==5.8.0
|
||||||
python-daemon==2.2.4
|
python-daemon==2.2.4
|
||||||
requests==2.26.0
|
requests==2.31.0
|
||||||
ujson==5.4.0
|
ujson==5.4.0
|
||||||
PyMySQL==1.0.2
|
PyMySQL==1.0.2
|
||||||
|
|
|
@ -7,6 +7,6 @@ crossplane==0.5.8
|
||||||
rstr==3.0.0
|
rstr==3.0.0
|
||||||
psutil==5.8.0
|
psutil==5.8.0
|
||||||
python-daemon==2.2.4
|
python-daemon==2.2.4
|
||||||
requests==2.26.0
|
requests==2.31.0
|
||||||
ujson==5.4.0
|
ujson==5.4.0
|
||||||
PyMySQL==1.0.2
|
PyMySQL==1.0.2
|
||||||
|
|
|
@ -17,7 +17,8 @@ COMPAT_LEVELS = {
|
||||||
'buster': 12,
|
'buster': 12,
|
||||||
'focal': 12,
|
'focal': 12,
|
||||||
'bullseye': 13,
|
'bullseye': 13,
|
||||||
'jammy': 13
|
'jammy': 13,
|
||||||
|
'bookworm': 13,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,14 @@ def build(bumprevision=False):
|
||||||
# sed version_build
|
# sed version_build
|
||||||
shell_call('sed -i.bak -e "s,self.version_build =.*,self.version_build = %d," amplify/agent/common/context.py' % bld)
|
shell_call('sed -i.bak -e "s,self.version_build =.*,self.version_build = %d," amplify/agent/common/context.py' % bld)
|
||||||
|
|
||||||
|
versioned_setup_py = "setup-py{0}{1}.py".format(sys.version_info[0], sys.version_info[1])
|
||||||
|
if os.path.isfile("packages/nginx-amplify-agent/%s" % versioned_setup_py):
|
||||||
|
setup_py = "packages/nginx-amplify-agent/%s" % versioned_setup_py
|
||||||
|
else:
|
||||||
|
setup_py = "packages/nginx-amplify-agent/setup.py"
|
||||||
|
|
||||||
# prepare sources
|
# prepare sources
|
||||||
shell_call('cp packages/nginx-amplify-agent/setup.py ./')
|
shell_call('cp %s ./setup.py' % setup_py)
|
||||||
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))
|
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))
|
||||||
shell_call('cp packages/nginx-amplify-agent/rpm/nginx-amplify-agent.service %s' % rpm_sources)
|
shell_call('cp packages/nginx-amplify-agent/rpm/nginx-amplify-agent.service %s' % rpm_sources)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue