Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37039314
en ru br
Репозитории ALT
S:1.18.0-alt1
5.1: 1.4.12-alt0.M51.1
4.1: 1.0.2-alt1.M41.1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: unbound

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: unbound
Version: 1.0.2
Release: alt1.M41.1
License: BSD
Url: http://www.nlnetlabs.nl/unbound/
Source: http://www.unbound.net/downloads/%name-%version.tar.gz
Source1: unbound.init
Summary: Validating, recursive, and caching DNS resolver
Group: System/Servers
Packager: Slava Dubrovskiy <dubrsl at altlinux.ru>

%define _chrootdir %_localstatedir/%name

PreReq: chrooted
PreReq: lib%name = %version-%release

Provides: %name-chroot(%_chrootdir)

BuildRequires: flex gcc-c++ libssl-devel libldns-devel

%description
Unbound is a validating, recursive, and caching DNS resolver.

The C implementation of Unbound is developed and maintained by NLnet
Labs. It is based on ideas and algorithms taken from a java prototype
developed by Verisign labs, Nominet, Kirei and ep.net.

Unbound is designed as a set of modular components, so that also
DNSSEC (secure DNS) validation and stub-resolvers (that do not run
as a server, but are linked into an application) are easily possible.

%package -n lib%name
Summary: Library for %name
Group: System/Libraries

%description -n lib%name
This package contains shared libraries used by %name's daemons
and clients.

%package -n lib%name-static
Summary: Static library for %name
Group: System/Libraries

%description -n lib%name-static
This package contains static libraries used by %name's daemons
and clients.

%package -n lib%name-devel
Summary: Development package that includes the %name header files
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
The devel package contains the include files

%prep
%setup -q
rm -f ldns-src.tar.gz

%build
# configure with /var/unbound/unbound.conf so that all default chroot,
# pidfile and config file are in /var/unbound, ready for chroot jail set up.
#
# This is a build using libldns builtin version, the resulting binaries
# do not require libldns and this package does not have version dependencies.
# Could be smaller using a dependency on libldns (use --with-ldns=).
%autoreconf

%configure \
   --with-conf-file=%_chrootdir/unbound.conf \
   --with-username=_%name \
   --enable-debug \
   --disable-rpath
##    --disable-static \

%__make

sed -i '/do-ip6/a do-ip6: no' doc/example.conf

%install
%__make DESTDIR=%buildroot install
install -d 0700 %buildroot%_localstatedir/%name
install -d 0755 %buildroot%_initdir
install -m 0755 %SOURCE1 %buildroot%_initdir/unbound
# add symbolic link from /etc/unbound.conf -> /var/unbound/unbound.conf
ln -s %_localstatedir/unbound/unbound.conf %buildroot%_sysconfdir/unbound.conf

%pre
/usr/sbin/groupadd -r -f _%name
/usr/sbin/useradd -r -g _%name -d %_chrootdir -s /dev/null -n -c "Domain Name Server" _%name >/dev/null 2>&1 ||:

%post
%post_service %name

%preun
%preun_service %name

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files
%doc doc/README doc/CREDITS doc/LICENSE doc/FEATURES
%_initdir/%name
%attr(1775,root,_%name) %dir %_localstatedir/%name
%config(noreplace) %_localstatedir/%name/unbound.conf
%config(noreplace) %_sysconfdir/unbound.conf
%_sbindir/*
%_mandir/man1/*
%_mandir/man5/*
%_mandir/man8/*

%files -n lib%name
%_libdir/libunbound*so*
%_mandir/man3/*

%files -n lib%name-static
%_libdir/libunbound.a

%files -n lib%name-devel
%_includedir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin