systemd-resolved-rs 0.2.0

A compatibility-oriented reimplementation of systemd-resolved
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	cargo build --release --locked
	$(MAKE) -C nss

override_dh_auto_test:
	cargo test --locked

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/systemd-resolved-rs PREFIX=/usr
	install -Dm0644 nss/libnss_resolve.so.2 debian/systemd-resolved-rs/usr/lib/x86_64-linux-gnu/libnss_resolve.so.2

override_dh_installsystemd:
	dh_installsystemd systemd-resolved.service
	dh_installsystemd --no-enable systemd-resolved-varlink.socket systemd-resolved-monitor.socket