From d90b97acaff16a751d0b0153dc4a405bfceb462c Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 19 Jan 2024 23:19:11 +0100 Subject: Created target marking readiness of a net DNS resolver The whole purpose is to have something that can recognize if systemd-resolved is ready, because it complained before it. I was unable to determine better method so here we are. The dependency on host(1) from bind9/named is annoying and writing a simple getaddrinfo(3) checker could be a good step forward. --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d26ccb9 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +DESTDIR= +PREFIX=/usr/local +LIBDIR=$(PREFIX)/lib +SYSDDIR=$(LIBDIR)/systemd/system + + +all: + @echo no-op + + +install: + install -m644 -Dt $(DESTDIR)$(SYSDDIR) dns-ready{-check.service,.target} + + +uninstall: + rm -f $(DESTDIR)$(SYSDDIR)/dns-ready{-check.service,.target} + + +.PHONY: all install uninstall -- cgit v1.1