2016-06-02 19:06:04 +00:00
|
|
|
|
2022-10-11 19:27:51 +00:00
|
|
|
BLOCKLIST_DIR=${SRCTOP}/contrib/blocklist
|
|
|
|
.PATH: ${BLOCKLIST_DIR}/bin ${BLOCKLIST_DIR}/port
|
2016-06-02 19:06:04 +00:00
|
|
|
|
2023-10-10 14:41:52 +00:00
|
|
|
PACKAGE= blocklist
|
|
|
|
|
2018-07-31 16:39:38 +00:00
|
|
|
CONFS= blacklistd.conf
|
2016-06-02 19:06:04 +00:00
|
|
|
PROG= blacklistd
|
|
|
|
SRCS= blacklistd.c conf.c run.c state.c support.c internal.c \
|
|
|
|
sockaddr_snprintf.c pidfile.c strtoi.c popenve.c
|
2016-06-03 06:15:52 +00:00
|
|
|
MAN= blacklistd.8 blacklistd.conf.5
|
2016-06-02 19:06:04 +00:00
|
|
|
|
|
|
|
LDFLAGS+=-L${LIBBLACKLISTDIR}
|
|
|
|
LIBADD+= blacklist util
|
|
|
|
|
2022-10-11 19:27:51 +00:00
|
|
|
CFLAGS+=-I${BLOCKLIST_DIR}/include -I${BLOCKLIST_DIR}/port \
|
2016-06-02 19:06:04 +00:00
|
|
|
-D_PATH_BLCONTROL=\"/usr/libexec/blacklistd-helper\" \
|
|
|
|
-DHAVE_CONFIG_H -DHAVE_DB_H -DHAVE_LIBUTIL_H \
|
|
|
|
-DHAVE_CLOCK_GETTIME -DHAVE_FGETLN -DHAVE_FPARSELN \
|
|
|
|
-DHAVE_GETPROGNAME -DHAVE_STRLCAT -DHAVE_STRLCPY \
|
|
|
|
-DHAVE_STRUCT_SOCKADDR_SA_LEN
|
|
|
|
# CFLAGS+= -D_REENTRANT
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|