mirror of
https://tildegit.org/solene/iblock.git
synced 2024-11-21 17:49:50 +01:00
92e8239a50
Some minor changes too: * doas is called with flag "-n", this avoid blocking iblock if doas ismisconfigured. * pfctl calls are run in separate fork process * iblock listening port is now the better 2507 instead of already used by other softwares 666. * Added a rc script to start iblock as daemon.
24 lines
491 B
Makefile
24 lines
491 B
Makefile
PREFIX = /usr/local
|
|
|
|
CFLAGS = -pedantic -Wall -Wextra -Wmissing-prototypes \
|
|
-Werror -Wshadow -Wstrict-overflow -fno-strict-aliasing \
|
|
-Wstrict-prototypes -Wwrite-strings \
|
|
-Os
|
|
|
|
|
|
all: iblock
|
|
|
|
iblock: main.c
|
|
${CC} ${CFLAGS} -o iblock main.c
|
|
|
|
clean:
|
|
rm -f iblock
|
|
|
|
install: iblock
|
|
install -o root -g wheel iblock ${PREFIX}/sbin/
|
|
install -o root -g wheel iblock.rc /etc/rc.d/iblock
|
|
|
|
test: clean iblock
|
|
@printf "hello\n" | nc -4 localhost 666
|
|
@printf "hello\n" | nc -6 localhost 666
|