import dnsfilter; input/ok landry@, sthen@ some time ago
dnsfilter is a filter and rate limiter for the Domain Name System. DNS queries should be redirected into the filter using the pf(4) divert-packet command.
This commit is contained in:
parent
81e36d2931
commit
94f0c920d0
35
net/dnsfilter/Makefile
Normal file
35
net/dnsfilter/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/12/04 16:10:25 florian Exp $
|
||||
|
||||
COMMENT= dns rate limiter for divert(4)
|
||||
|
||||
DISTNAME= dnsfilter-0.4
|
||||
CATEGORIES= net
|
||||
|
||||
HOMEPAGE= http://sha256.net/dnsfilter/
|
||||
MAINTAINER= Florian Obser <florian+dnsfilter@narrans.de>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB += c ldns util
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
LIB_DEPENDS= net/ldns/libldns
|
||||
|
||||
MAKE_FLAGS= BINDIR="${TRUEPREFIX}/sbin" \
|
||||
MANDIR="${TRUEPREFIX}/man/man"
|
||||
|
||||
do-configure:
|
||||
perl -pi -e s,/etc,${SYSCONFDIR}, ${WRKSRC}/dnsfilter.h
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dnsfilter
|
||||
${INSTALL_DATA} ${WRKSRC}/dnsfilter.conf ${PREFIX}/share/examples/dnsfilter/dnsfilter.conf
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/dnsfilter/distinfo
Normal file
2
net/dnsfilter/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (dnsfilter-0.4.tar.gz) = 4L5DSiXHU3EalMIAJlQrKbLbk1rip5c+yaSg14ehZ8s=
|
||||
SIZE (dnsfilter-0.4.tar.gz) = 39337
|
3
net/dnsfilter/pkg/DESCR
Normal file
3
net/dnsfilter/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
dnsfilter is a filter and rate limiter for the Domain Name System. DNS
|
||||
queries should be redirected into the filter using the pf(4)
|
||||
divert-packet command.
|
10
net/dnsfilter/pkg/PLIST
Normal file
10
net/dnsfilter/pkg/PLIST
Normal file
@ -0,0 +1,10 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/12/04 16:10:25 florian Exp $
|
||||
@newgroup _dnsfilter:709
|
||||
@newuser _dnsfilter:709:709:daemon:DNSFilter Daemon:/var/empty:/sbin/nologin
|
||||
@man man/man5/dnsfilter.conf.5
|
||||
@man man/man8/dnsfilter.8
|
||||
@bin sbin/dnsfilter
|
||||
share/examples/dnsfilter/
|
||||
share/examples/dnsfilter/dnsfilter.conf
|
||||
@sample ${SYSCONFDIR}/dnsfilter.conf
|
||||
@rcscript ${RCDIR}/dnsfilter
|
12
net/dnsfilter/pkg/dnsfilter.rc
Normal file
12
net/dnsfilter/pkg/dnsfilter.rc
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: dnsfilter.rc,v 1.1.1.1 2012/12/04 16:10:25 florian Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/dnsfilter"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp="dnsfilter: parent"
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
Loading…
x
Reference in New Issue
Block a user