Группа :: Система/Серверы
Пакет: pdnsd
Главная Изменения Спек Патчи Загрузить Bugs and FR
Name: pdnsd
Version: 1.2.5
Release: alt0.M24.1
Summary: A caching DNS proxy for small networks and dialup users
License: GPL
Group: System/Servers
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Url: http://www.phys.uu.nl/~rombouts/pdnsd.html
Source0: %name-%version-par.tar.bz2
Source1: %name.init
Source2: %name.conf
Source3: %name.ip-up
Source4: %name.init.old
Source5: %name-1.2-README.ALT
Patch1: %name-1.2-alt-chroot_dir.patch
Patch2: %name-1.2.4-alt-droppriv.patch
Patch3: %name-1.2.4-alt-no-old-glibc.patch
Patch4: %name-1.2.5-alt-sock_path.patch
Patch5: %name-1.2.5-alt-stat_sock.patch
Patch6: %name-1.2.4-alt-syslog.patch
Patch7: %name-1.2-alt-cache.patch
Patch8: %name-1.2-alt-no-stat-conff.patch
# TODO
Patch20: %name-1.1.7a-alt-getopt.patch
BuildPreReq: %_bindir/mksock
BuildRequires: rpm-build-compat
%description
pdnsd is a proxy DNS daemon with permanent disk cache and the ability
to serve local records.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
#patch20 -p1
cp -a %SOURCE5 README.ALT
%build
%__autoreconf
%configure --with-default-id=%name
%make_build
%install
%make_install DESTDIR=%buildroot install
%__mkdir_p %buildroot{%_cachedir/%name,%_var/run/%name}
rm -f contrib/Makefile*
install -pD -m755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m755 %SOURCE2 %buildroot%_sysconfdir/%name.conf
install -pD -m755 %SOURCE3 %buildroot%_sysconfdir/ppp/ip-up.d/0%name
touch %buildroot%_cachedir/%name/%name.cache
mksock %buildroot%_var/run/%name/socket
%files
%doc AUTHORS Change* COPYING.BSD NEWS README* THANKS TODO doc/pdnsd.conf contrib doc/txt doc/html
%_sbindir/%{name}*
%_mandir/man?/%{name}*
%config %_initdir/%name
%config %_sysconfdir/ppp/ip-up.d/0%name
%config(noreplace) %_sysconfdir/%name.conf
%attr(700,root,%name) %dir %_var/run/%name
%ghost %attr(600,root,%name) %_var/run/%name/socket
%attr(700,root,%name) %dir %_cachedir/%name
%ghost %attr(600,root,%name) %verify(not md5 mtime size) %config(noreplace) %_cachedir/%name/%name.cache
%pre
%_sbindir/groupadd -r -f %name >/dev/null 2>&1 ||:
%_sbindir/useradd -r -g %name -d /dev/null -s /dev/null -n %name >/dev/null 2>&1 ||:
%post
[ -s %_cachedir/%name/%name.cache ] ||
echo -n -e "pd12\0\0\0\0" >%_cachedir/%name/%name.cache
chmod 0600 %_cachedir/%name/%name.cache
chown root:%name %_cachedir/%name/%name.cache
%post_service %name
%preun
%preun_service %name
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.2.5
Release: alt0.M24.1
Summary: A caching DNS proxy for small networks and dialup users
License: GPL
Group: System/Servers
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Url: http://www.phys.uu.nl/~rombouts/pdnsd.html
Source0: %name-%version-par.tar.bz2
Source1: %name.init
Source2: %name.conf
Source3: %name.ip-up
Source4: %name.init.old
Source5: %name-1.2-README.ALT
Patch1: %name-1.2-alt-chroot_dir.patch
Patch2: %name-1.2.4-alt-droppriv.patch
Patch3: %name-1.2.4-alt-no-old-glibc.patch
Patch4: %name-1.2.5-alt-sock_path.patch
Patch5: %name-1.2.5-alt-stat_sock.patch
Patch6: %name-1.2.4-alt-syslog.patch
Patch7: %name-1.2-alt-cache.patch
Patch8: %name-1.2-alt-no-stat-conff.patch
# TODO
Patch20: %name-1.1.7a-alt-getopt.patch
BuildPreReq: %_bindir/mksock
BuildRequires: rpm-build-compat
%description
pdnsd is a proxy DNS daemon with permanent disk cache and the ability
to serve local records.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
#patch20 -p1
cp -a %SOURCE5 README.ALT
%build
%__autoreconf
%configure --with-default-id=%name
%make_build
%install
%make_install DESTDIR=%buildroot install
%__mkdir_p %buildroot{%_cachedir/%name,%_var/run/%name}
rm -f contrib/Makefile*
install -pD -m755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m755 %SOURCE2 %buildroot%_sysconfdir/%name.conf
install -pD -m755 %SOURCE3 %buildroot%_sysconfdir/ppp/ip-up.d/0%name
touch %buildroot%_cachedir/%name/%name.cache
mksock %buildroot%_var/run/%name/socket
%files
%doc AUTHORS Change* COPYING.BSD NEWS README* THANKS TODO doc/pdnsd.conf contrib doc/txt doc/html
%_sbindir/%{name}*
%_mandir/man?/%{name}*
%config %_initdir/%name
%config %_sysconfdir/ppp/ip-up.d/0%name
%config(noreplace) %_sysconfdir/%name.conf
%attr(700,root,%name) %dir %_var/run/%name
%ghost %attr(600,root,%name) %_var/run/%name/socket
%attr(700,root,%name) %dir %_cachedir/%name
%ghost %attr(600,root,%name) %verify(not md5 mtime size) %config(noreplace) %_cachedir/%name/%name.cache
%pre
%_sbindir/groupadd -r -f %name >/dev/null 2>&1 ||:
%_sbindir/useradd -r -g %name -d /dev/null -s /dev/null -n %name >/dev/null 2>&1 ||:
%post
[ -s %_cachedir/%name/%name.cache ] ||
echo -n -e "pd12\0\0\0\0" >%_cachedir/%name/%name.cache
chmod 0600 %_cachedir/%name/%name.cache
chown root:%name %_cachedir/%name/%name.cache
%post_service %name
%preun
%preun_service %name
%changelog
…
Полный changelog можно просмотреть здесь