Skip to content

Commit

Permalink
make install: add requirement aardvark-dns
Browse files Browse the repository at this point in the history
Distro like fedora or centos

Signed-off-by: Douglas Landgraf <[email protected]>
  • Loading branch information
dougsland committed Jul 7, 2024
1 parent 1c5bdb3 commit 8ec7858
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ install:
@if ! grep -q '^SHARE_DIR=$(SHAREDIR)' $(DESTDIR)$(CONFIGDIR)/$(CONFIG_FILE); then \
echo 'SHARE_DIR=$(SHAREDIR)' >> $(DESTDIR)$(CONFIGDIR)/$(CONFIG_FILE); \
fi
if [ -f /etc/os-release ]; then \
. /etc/os-release; \
if [ "$$ID" = "fedora" ] || [ "$$ID" = "centos" ]; then \
if ! rpm -q aardvark-dns >/dev/null 2>&1; then \
sudo dnf install -y aardvark-dns; \
fi
fi
fi
@echo "Installation complete."

# Uninstall target
Expand Down

0 comments on commit 8ec7858

Please sign in to comment.