ifupdown-ng-waitif

An ifupdown-ng executor which blocks until the interface is actually running

git clone https://git.8pit.net/ifupdown-ng-waitif.git

 1PREFIX  ?= /usr/local
 2EXECDIR ?= $(PREFIX)/libexec/ifupdown-ng
 3DOCDIR  ?= $(PREFIX)/share/doc/waitif
 4RUNDIR  ?= /var/run
 5
 6CPPFLAGS += -D_POSIX_C_SOURCE=200809L
 7CPPFLAGS += -DRUNDIR=\"$(RUNDIR)\"
 8
 9CFLAGS ?= -O0 -g -Werror
10CFLAGS += -std=c99
11CFLAGS += -Wpedantic -Wall -Wextra -Wconversion \
12	      -Wmissing-prototypes -Wpointer-arith \
13	      -Wstrict-prototypes -Wshadow -Wformat-nonliteral
14
15LDLIBS = -lmnl -pthread
16
17waitif: waitif.c
18install: waitif README.md
19	install -Dm755 waitif "$(DESTDIR)$(EXECDIR)/waitif"
20	install -Dm644 README.md "$(DESTDIR)$(DOCDIR)/README.md"
21
22.PHONY: install