Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 36668675
en ru br
ALT Linux repos
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.1
Release: alt2

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

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

# due to dnsdomainname call in copy_resolv_conf

Requires(post): /bin/hostname
Requires: glibc-nss

%define ROOT /var/resolv
Provides: %ROOT

# due to copy_resolv_conf/copy_resolv_lib

BuildPreReq: chrooted >= 0.3

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

for n in all conf lib; do
install -pD -m750 "%_sourcedir/resolv.chroot.$n" \
sed -i 's,%%ROOT,%ROOT,g' "%buildroot%_sysconfdir/chroot.d/"*

mkdir -p %buildroot%ROOT{%_sysconfdir,/%_lib,/var/{nis,yp/binding}}
touch %buildroot%ROOT{%_sysconfdir/{localtime,hosts,services,{host,nsswitch,resolv}.conf},/var/nis/NIS_COLD_START}


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

%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


Full changelog you can see here

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