unbound port
This commit is contained in:
parent
96e19cba19
commit
72abc03bfb
40
net/unbound/Makefile
Normal file
40
net/unbound/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/05/23 06:52:21 jakob Exp $
|
||||
|
||||
COMMENT= validating DNS resolver
|
||||
|
||||
DISTNAME= unbound-1.0.0
|
||||
|
||||
CATEGORIES= net
|
||||
|
||||
MASTER_SITES= http://www.unbound.net/downloads/
|
||||
HOMEPAGE= http://www.unbound.net/
|
||||
|
||||
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
SEPARATE_BUILD= concurrent
|
||||
CONFIGURE_STYLE= gnu
|
||||
USE_LIBTOOL= Yes
|
||||
USE_GMAKE= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
SHARED_LIBS+= unbound 0.0
|
||||
|
||||
WANTLIB= c crypto event
|
||||
BUILD_DEPENDS+= ::devel/doxygen
|
||||
|
||||
CONFIGURE_ARGS+= --with-ssl=/usr \
|
||||
--with-libevent=/usr \
|
||||
--without-pthreads \
|
||||
--with-conf-file=/var/unbound/etc/unbound.conf
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/unbound
|
||||
${INSTALL_DATA} ${WRKINST}/var/unbound/etc/unbound.conf ${PREFIX}/share/examples/unbound
|
||||
|
||||
.include <bsd.port.mk>
|
5
net/unbound/distinfo
Normal file
5
net/unbound/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (unbound-1.0.0.tar.gz) = BbdTLCbmAF91ddBPxE+4kw==
|
||||
RMD160 (unbound-1.0.0.tar.gz) = oIr/eTwRXy/ihcbRVXvMqY4MTbo=
|
||||
SHA1 (unbound-1.0.0.tar.gz) = qDdAfYZvCRhUfGEi+PZUwhm0tR8=
|
||||
SHA256 (unbound-1.0.0.tar.gz) = SOJ5BcssveYEJS+90Z3NkVo7lwxV8roqAz2sAgSN4f4=
|
||||
SIZE (unbound-1.0.0.tar.gz) = 3554571
|
12
net/unbound/patches/patch-daemon_unbound_c
Normal file
12
net/unbound/patches/patch-daemon_unbound_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-daemon_unbound_c,v 1.1.1.1 2008/05/23 06:52:21 jakob Exp $
|
||||
--- daemon/unbound.c.orig Thu May 22 10:41:08 2008
|
||||
+++ daemon/unbound.c Thu May 22 10:42:40 2008
|
||||
@@ -376,6 +376,8 @@ run_daemon(char* cfgfile, int cmdline_verbose, int deb
|
||||
struct daemon* daemon = NULL;
|
||||
int done_chroot = 0;
|
||||
|
||||
+ tzset();
|
||||
+
|
||||
if(!(daemon = daemon_init()))
|
||||
fatal_exit("alloc failure");
|
||||
while(!daemon->need_to_exit) {
|
33
net/unbound/patches/patch-doc_example_conf
Normal file
33
net/unbound/patches/patch-doc_example_conf
Normal file
@ -0,0 +1,33 @@
|
||||
$OpenBSD: patch-doc_example_conf,v 1.1.1.1 2008/05/23 06:52:21 jakob Exp $
|
||||
--- doc/example.conf.orig Thu Apr 24 15:29:34 2008
|
||||
+++ doc/example.conf Tue May 20 21:58:39 2008
|
||||
@@ -162,17 +162,17 @@ server:
|
||||
# How to do this is specific to your OS.
|
||||
#
|
||||
# If you give "" no chroot is performed. The path must not end in a /.
|
||||
- # chroot: "/usr/local/etc/unbound"
|
||||
+ chroot: "/var/unbound"
|
||||
|
||||
# if given, user privileges are dropped (after binding port),
|
||||
# and the given username is assumed. Default is user "unbound".
|
||||
# If you give "" no privileges are dropped.
|
||||
- # username: "unbound"
|
||||
+ username: "_unbound"
|
||||
|
||||
# the working directory. The relative files in this config are
|
||||
# relative to this directory. If you give "" the working directory
|
||||
# is not changed.
|
||||
- # directory: "/usr/local/etc/unbound"
|
||||
+ directory: "/var/unbound/etc"
|
||||
|
||||
# the log file, "" means log to stderr.
|
||||
# Use of this option sets use-syslog to "no".
|
||||
@@ -183,7 +183,7 @@ server:
|
||||
# use-syslog: yes
|
||||
|
||||
# the pid file.
|
||||
- # pidfile: "/usr/local/etc/unbound/unbound.pid"
|
||||
+ pidfile: "/var/unbound/var/run/unbound.pid"
|
||||
|
||||
# file to read root hints from.
|
||||
# get one from ftp://FTP.INTERNIC.NET/domain/named.cache
|
2
net/unbound/pkg/DESCR
Normal file
2
net/unbound/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
Unbound is an implementation of a recursive DNS resolver, that does caching
|
||||
and DNSSEC validation.
|
12
net/unbound/pkg/MESSAGE
Normal file
12
net/unbound/pkg/MESSAGE
Normal file
@ -0,0 +1,12 @@
|
||||
You should add:
|
||||
|
||||
syslogd_flags="${syslogd_flags} -a /var/unbound/dev/log"
|
||||
|
||||
to /etc/rc.conf.local to create a syslog socket in the unbound chroot.
|
||||
|
||||
You may also want to add the following to /etc/rc.local to start unbound
|
||||
at boot:
|
||||
|
||||
if [ -x ${PREFIX}/sbin/unbound ]; then
|
||||
echo -n ' unbound'; ${PREFIX}/sbin/unbound
|
||||
fi
|
2
net/unbound/pkg/PFRAG.shared
Normal file
2
net/unbound/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/05/23 06:52:21 jakob Exp $
|
||||
@lib lib/libunbound.so.${LIBunbound_VERSION}
|
23
net/unbound/pkg/PLIST
Normal file
23
net/unbound/pkg/PLIST
Normal file
@ -0,0 +1,23 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/05/23 06:52:21 jakob Exp $
|
||||
@newgroup _unbound:601
|
||||
@newuser _unbound:601:601:daemon:Unbound Daemon:/var/unbound:/sbin/nologin
|
||||
%%SHARED%%
|
||||
include/unbound.h
|
||||
lib/libunbound.a
|
||||
lib/libunbound.la
|
||||
@man man/man1/unbound-host.1
|
||||
@man man/man3/libunbound.3
|
||||
@man man/man5/unbound.conf.5
|
||||
@man man/man8/unbound-checkconf.8
|
||||
@man man/man8/unbound.8
|
||||
sbin/unbound
|
||||
sbin/unbound-checkconf
|
||||
sbin/unbound-host
|
||||
share/examples/unbound/unbound.conf
|
||||
@sample /var/unbound/
|
||||
@sample /var/unbound/dev/
|
||||
@sample /var/unbound/etc/
|
||||
@sample /var/unbound/etc/unbound.conf
|
||||
@mode 775
|
||||
@group _unbound
|
||||
@sample /var/unbound/var/run/
|
Loading…
x
Reference in New Issue
Block a user