summaryrefslogtreecommitdiffstats
path: root/usr.sbin/blacklistctl
diff options
context:
space:
mode:
authorlidl <lidl@FreeBSD.org>2016-06-02 19:06:04 +0000
committerlidl <lidl@FreeBSD.org>2016-06-02 19:06:04 +0000
commit6f31a383cc6d2459585d754d3d30f980487df06f (patch)
tree45c1a8bc32e7b9d60122086211c8fa6df289de16 /usr.sbin/blacklistctl
parent44920da28cde32f352e76a4220b068c8f623c60d (diff)
downloadFreeBSD-src-6f31a383cc6d2459585d754d3d30f980487df06f.zip
FreeBSD-src-6f31a383cc6d2459585d754d3d30f980487df06f.tar.gz
Add basic blacklist build support
Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5913
Diffstat (limited to 'usr.sbin/blacklistctl')
-rw-r--r--usr.sbin/blacklistctl/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/usr.sbin/blacklistctl/Makefile b/usr.sbin/blacklistctl/Makefile
new file mode 100644
index 0000000..fd63b85
--- /dev/null
+++ b/usr.sbin/blacklistctl/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+BLACKLIST_DIR=${SRCTOP}/contrib/blacklist
+.PATH: ${BLACKLIST_DIR}/bin ${BLACKLIST_DIR}/port
+
+PROG= blacklistctl
+SRCS= blacklistctl.c conf.c state.c support.c internal.c \
+ sockaddr_snprintf.c pidfile.c strtoi.c popenve.c
+MAN= blacklistctl.8
+
+LDFLAGS+=-L${LIBBLACKLISTDIR}
+LIBADD+= blacklist util
+
+CFLAGS+=-I${BLACKLIST_DIR}/include -I${BLACKLIST_DIR}/port \
+ -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>
OpenPOWER on IntegriCloud