2016-06-28 18:02:33 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
export PYBUILD_DISABLE_python2=1
|
|
|
|
export PYBUILD_INSTALL_DIR=usr/share/subiquity/
|
|
|
|
export PYBUILD_INSTALL_ARGS_python3=--install-lib=usr/share/subiquity/ \
|
2016-07-08 20:46:16 +00:00
|
|
|
--install-data=usr/ \
|
|
|
|
--no-compile -O0
|
|
|
|
export PYBUILD_DESTDIR=debian/tmp/
|
|
|
|
export PYBUILD_OPTION="-v"
|
2016-06-28 18:02:33 +00:00
|
|
|
|
|
|
|
%:
|
2016-07-09 01:43:07 +00:00
|
|
|
dh $@ --with python3,systemd --buildsystem=pybuild
|
2016-06-28 18:02:33 +00:00
|
|
|
|
2016-07-08 20:46:16 +00:00
|
|
|
override_dh_auto_clean:
|
2016-06-28 18:02:33 +00:00
|
|
|
rm -f .subiquity/subiquity-debug.log installer/geninstaller.log
|
|
|
|
rm -rf probert/
|
2020-03-10 12:00:13 +00:00
|
|
|
python3 setup.py build_i18n
|
2016-07-08 20:46:16 +00:00
|
|
|
dh_auto_clean
|
|
|
|
|
|
|
|
override_dh_install:
|
2019-06-25 09:15:12 +00:00
|
|
|
dh_install
|
2016-06-28 18:02:33 +00:00
|
|
|
|
|
|
|
override_dh_python3:
|
2019-08-06 12:36:40 +00:00
|
|
|
dh_python3 --ignore-shebangs usr/share/subiquity/
|
2016-07-08 20:46:16 +00:00
|
|
|
|
2016-06-28 18:02:33 +00:00
|
|
|
override_dh_installinit:
|
2019-06-25 09:15:12 +00:00
|
|
|
dh_installsystemd --no-start --name=console-conf@
|
|
|
|
dh_installsystemd --no-start --name=serial-console-conf@
|
2016-08-05 01:54:11 +00:00
|
|
|
mkdir $(CURDIR)/debian/console-conf/lib/systemd/system/getty@.service.d/
|
|
|
|
install -m 0644 $(CURDIR)/debian/console-conf.conf $(CURDIR)/debian/console-conf/lib/systemd/system/getty@.service.d/
|
|
|
|
mkdir $(CURDIR)/debian/console-conf/lib/systemd/system/serial-getty@.service.d/
|
|
|
|
install -m 0644 $(CURDIR)/debian/console-conf-serial.conf $(CURDIR)/debian/console-conf/lib/systemd/system/serial-getty@.service.d/
|
2016-06-28 18:02:33 +00:00
|
|
|
|
|
|
|
override_dh_auto_test:
|
|
|
|
@echo "No tests."
|