f9e26d0599
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.
28 lines
534 B
Makefile
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>
|