Merge pull request #1887 from kubiko/deb-build-cleanup

debian: use 'install -D' instead 'mkdir + install'
This commit is contained in:
Olivier Gayot 2024-01-24 14:53:25 +01:00 committed by GitHub
commit ed5329dcff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

6
debian/rules vendored
View File

@ -26,10 +26,8 @@ override_dh_python3:
override_dh_installinit:
dh_installsystemd --no-start --name=console-conf@
dh_installsystemd --no-start --name=serial-console-conf@
mkdir $(CURDIR)/debian/console-conf/usr/lib/systemd/system/getty@.service.d/
install -m 0644 $(CURDIR)/debian/console-conf.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/getty@.service.d/
mkdir $(CURDIR)/debian/console-conf/usr/lib/systemd/system/serial-getty@.service.d/
install -m 0644 $(CURDIR)/debian/console-conf-serial.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/serial-getty@.service.d/
install -D -m 0644 $(CURDIR)/debian/console-conf.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/getty@.service.d/console-conf.conf
install -D -m 0644 $(CURDIR)/debian/console-conf-serial.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/serial-getty@.service.d/console-conf-serial.conf
override_dh_auto_test:
@echo "No tests."