Репозиторий Sisyphus
Последнее обновление: 24 июня 2018 | Пакетов: 18575 | Посещений: 11739956
en ru br
Репозитории ALT

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

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

Name: nsd
Version: 4.1.22
Release: alt1

Summary: Name Server Daemon
License: BSD
Group: System/Servers
Url: http://www.nlnetlabs.nl/projects/nsd/

Source0: %name-%version.tar
Source1: %name.conf
Source2: %name.service
Source3: example.com.zone
Source4: 0.0.10.zone
Source5: %name.init
Source6: %name.tmpfiles

Patch0: 0001-Enable-control-by-default.patch

BuildRequires: flex bison libevent-devel libssl-devel

%description
NSD is an authoritative only, high performance, simple and open source name server

%prep
%setup

%patch0 -p1

%build
%autoreconf
%configure \
 --with-user=_nsd \
 --enable-bind8-stats \
 --enable-zone-stats \
 --enable-ratelimit \
 --enable-root-server \
 --disable-largefile \
 --disable-recvmmsg \
 --with-pidfile=%_runtimedir/%name.pid \
 --with-dbfile=%_localstatedir/%name/%name.db \
 --with-difffile=%_localstatedir/%name/ixfr.db \
 --with-xfrdfile=%_localstatedir/%name/xfrd.state \
 --localstatedir=%_var
%make_build

%install
%makeinstall_std
mkdir -p %buildroot/%systemd_unitdir
mkdir -p %buildroot/%_localstatedir/%name
mkdir -p %buildroot/%_initdir
mv %buildroot/%_sysconfdir/%name/%name.conf.sample .
cp %SOURCE1 %buildroot/%_sysconfdir/%name
cp %SOURCE2 %buildroot/%systemd_unitdir
cp %SOURCE3 %buildroot/%_sysconfdir/%name
cp %SOURCE4 %buildroot/%_sysconfdir/%name
cp %SOURCE5 %buildroot/%_initdir/%name
install -Dpm 644 %SOURCE6 %buildroot%_tmpfilesdir/%name.conf

%pre
/usr/sbin/groupadd -r -f _nsd
/usr/sbin/useradd -r -g _nsd -d /var/empty -s /sbin/nologin -n -c "Name Server Daemon" _nsd >/dev/null 2>&1 ||:

%preun
%preun_service nsd

%post
%post_service nsd

%files
%_sbindir/*
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/%name.conf
%config(noreplace) %_sysconfdir/%name/*.zone
%_tmpfilesdir/%name.conf
%systemd_unitdir/%name.service
%attr(0755,root,root) %_initdir/%name
%attr(0755,_nsd,_nsd) %dir %_localstatedir/%name
%_man5dir/*
%_man8dir/*
%doc doc contrib %name.conf.sample

%changelog

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

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