mirror of
https://git.proxmox.com/git/mirror_ifupdown2
synced 2025-08-09 12:35:15 +00:00
python3: update debian files to build python3 deb
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
parent
0e936c3ffa
commit
516fd7266f
14
debian/control
vendored
14
debian/control
vendored
@ -4,21 +4,21 @@ Priority: optional
|
|||||||
Maintainer: Julien Fortin <julien@cumulusnetworks.com>
|
Maintainer: Julien Fortin <julien@cumulusnetworks.com>
|
||||||
Build-Depends: debhelper (>=9),
|
Build-Depends: debhelper (>=9),
|
||||||
dh-systemd,
|
dh-systemd,
|
||||||
dh-python,
|
python3,
|
||||||
python-all,
|
python3-all,
|
||||||
python-setuptools,
|
python3-setuptools,
|
||||||
python-docutils
|
python3-docutils
|
||||||
Standards-Version: 4.2.1
|
Standards-Version: 4.2.1
|
||||||
Homepage: https://github.com/cumulusnetworks/ifupdown2
|
Homepage: https://github.com/cumulusnetworks/ifupdown2
|
||||||
X-Python-Version: >= 2.7
|
X-Python-Version: >= 3.7
|
||||||
|
|
||||||
Package: ifupdown2
|
Package: ifupdown2
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Provides: ifupdown
|
Provides: ifupdown
|
||||||
Conflicts: ifupdown
|
Conflicts: ifupdown
|
||||||
Replaces: ifupdown
|
Replaces: ifupdown
|
||||||
Depends: ${python:Depends}, ${misc:Depends}, iproute2, python-argcomplete, python-ipaddr
|
Depends: ${python:Depends}, ${misc:Depends}, iproute2, python3-argcomplete
|
||||||
Suggests: isc-dhcp-client, bridge-utils, ethtool, python-gvgen, python-mako
|
Suggests: isc-dhcp-client, bridge-utils, ethtool, python3-gvgen, python3-mako
|
||||||
Description: Network Interface Management tool similar to ifupdown
|
Description: Network Interface Management tool similar to ifupdown
|
||||||
ifupdown2 is ifupdown re-written in Python. It replaces ifupdown and provides
|
ifupdown2 is ifupdown re-written in Python. It replaces ifupdown and provides
|
||||||
the same user interface as ifupdown for network interface configuration.
|
the same user interface as ifupdown for network interface configuration.
|
||||||
|
8
debian/ifupdown2.postinst
vendored
8
debian/ifupdown2.postinst
vendored
@ -92,14 +92,6 @@ case "$1" in
|
|||||||
process_udev
|
process_udev
|
||||||
chmod +x /usr/share/ifupdown2/__main__.py
|
chmod +x /usr/share/ifupdown2/__main__.py
|
||||||
postinst_remove_diverts
|
postinst_remove_diverts
|
||||||
|
|
||||||
#### WORK AROUND
|
|
||||||
# We have to manually install pip3
|
|
||||||
# apt-get install python3-pip -y
|
|
||||||
echo "Please make sure that python3-pip is installed, run: apt-get install python3-pip -y"
|
|
||||||
pip3 install wheel
|
|
||||||
pip3 install setuptools
|
|
||||||
pip3 install ipaddr
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -5,7 +5,7 @@ export PYBUILD_NAME=ifupdown2
|
|||||||
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ --install-scripts=/usr/share/
|
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ --install-scripts=/usr/share/
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --with python2 --with systemd --buildsystem=pybuild
|
dh $@ --with=python3 --with systemd --buildsystem=pybuild
|
||||||
|
|
||||||
override_dh_installman:
|
override_dh_installman:
|
||||||
./ifupdown2/man/genmanpages.sh ./ifupdown2/man ./man
|
./ifupdown2/man/genmanpages.sh ./ifupdown2/man ./man
|
||||||
|
Loading…
Reference in New Issue
Block a user