[pve-devel] [PATCH V2 ifupdown2 2/3] add debian/rules

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jan 9 13:09:30 CET 2020


On 1/9/20 12:23 PM, Alexandre Derumier wrote:
> comment export DH_VERBOSE=1 to have patches applied
> 
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  debian/rules | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>  create mode 100755 debian/rules
> 
> diff --git a/debian/rules b/debian/rules
> new file mode 100755
> index 0000000..6274b3a
> --- /dev/null
> +++ b/debian/rules
> @@ -0,0 +1,27 @@
> +#!/usr/bin/make -f
> +
> +#export DH_VERBOSE=1
> +export PYBUILD_NAME=ifupdown2
> +export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ --install-scripts=/usr/share/
> +
> +%:
> +	dh $@ --with python2 --with systemd --buildsystem=pybuild
> +
> +override_dh_installman:
> +	./ifupdown2/man/genmanpages.sh ./ifupdown2/man ./man
> +	dh_installman
> +
> +override_dh_install:
> +	dh_install
> +	mkdir -p debian/ifupdown2/lib/systemd/system/
> +	install --mode=644 debian/ifup at .service debian/ifupdown2/lib/systemd/system/
> +
> +
> +override_dh_systemd_start:
> +	dh_systemd_start --name=networking --no-start
> +
> +override_dh_systemd_enable:
> +	dh_systemd_enable --name=networking
> +
> +override_dh_compress:
> +	dh_compress -X.py
> 

this is the exact same one as ifupdown2 ships in it's debian/ folder, so as we
just sync our debian folder into their (i.e., no full overwrite) we could omit this.
Or do I miss something?



More information about the pve-devel mailing list