openbsd-ports/net/iblock/Makefile
op f9e26d0599 update net/iblock to 1.1.2
diff from prx (prx [at] si3t [dot] ch) with a minor tweak by me: retain
the do-build since the port' makefile uses -Os and it's easier than
patch it out.
2022-09-21 16:35:02 +00:00

28 lines
534 B
Makefile

COMMENT = inetd program to blackhole IPs connecting to it
V = 1.1.2
DISTNAME = iblock-${V}
CATEGORIES = net
HOMEPAGE = https://tildegit.org/solene/iblock/
# BSD 2-clause
PERMIT_PACKAGE = Yes
# uses pledge()
# uses unveil()
WANTLIB += c
MASTER_SITES = https://tildegit.org/solene/iblock/archive/
DISTFILES = iblock-{}${V}${EXTRACT_SUFX}
WRKSRC = ${WRKDIR}/iblock
MAKE_FLAGS = CC="${CC}"
# XXX: until it is updated to respect CFLAGS
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -o iblock main.c
.include <bsd.port.mk>