Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37837177
en ru br
ALT Linux repos
S:0.3.1-alt2
5.0: 0.3.1-alt2
4.1: 0.3.1-alt2
4.0: 0.3.1-alt2
3.0: 0.3-alt2

Group :: System/Base
RPM: chrooted-resolv

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: chrooted-resolv
Version: 0.3
Release: alt2

Summary: Chrooted environment with all required for resolver
Summary(ru_RU.KOI8-R): Chrooted environment со всем необходимым для resolver'a
License: GPL
Group: System/Base
BuildArch: noarch
Packager: Dmitry V. Levin <ldv at altlinux.org>

Source0: resolv.chroot.all
Source1: resolv.chroot.conf
Source2: resolv.chroot.lib

# due to dnsdomainname call in copy_resolv_conf

Requires(post): /bin/hostname

%define ROOT /var/resolv
Provides: %ROOT

# due to copy_resolv_conf/copy_resolv_lib

BuildPreReq: chrooted >= 0.3

%description
This package provides readonly chrooted environment with all stuff
required for resolver to work properly.

%install
for n in all conf lib; do
%__install -pD -m750 "$RPM_SOURCE_DIR/resolv.chroot.$n" \
"$RPM_BUILD_ROOT%_sysconfdir/chroot.d/resolv.$n"
done
%__subst -p 's,%%ROOT,%ROOT,g' "$RPM_BUILD_ROOT%_sysconfdir/chroot.d/"*

%__mkdir_p $RPM_BUILD_ROOT%ROOT{%_sysconfdir,/lib,/var/{nis,yp/binding}}
touch $RPM_BUILD_ROOT%ROOT{%_sysconfdir/{localtime,hosts,services,{host,nsswitch,resolv}.conf},/var/nis/NIS_COLD_START}

%post
%_sysconfdir/chroot.d/resolv.all

%preun
if [ $1 = 0 ]; then
%__rm -f %ROOT/lib/* %ROOT/var/yp/binding/*
fi

%files
%config %_sysconfdir/chroot.d/*
%dir %ROOT
%dir %ROOT/lib
%dir %ROOT%_sysconfdir
%ghost %ROOT%_sysconfdir/localtime
%ghost %ROOT%_sysconfdir/hosts
%ghost %ROOT%_sysconfdir/services
%ghost %ROOT%_sysconfdir/*.conf
%dir %ROOT/var
%dir %ROOT/var/nis
%ghost %config(missingok) %verify(not md5 mtime size) %ROOT/var/nis/NIS_COLD_START
%dir %ROOT/var/yp
%dir %ROOT/var/yp/binding

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin