Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37793119
en ru br
ALT Linux repositórios
S:0.6-alt1
5.0: 0.2-alt2

Group :: Sistema/Configurações/Rede
RPM: installer-feature-resolver-bind-stage3

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

pax_global_header00006660000000000000000000000064122773631610014522gustar00rootroot0000000000000052 comment=ebb28c3e949d28de3497db12b31ccd50c28c38f1
installer-feature-resolver-bind-stage3-0.3/000075500000000000000000000000001227736316100207455ustar00rootroot00000000000000installer-feature-resolver-bind-stage3-0.3/.gear-rules000064400000000000000000000000071227736316100230110ustar00rootroot00000000000000tar: .
installer-feature-resolver-bind-stage3-0.3/90-resolver-bind.sh000075500000000000000000000025261227736316100243120ustar00rootroot00000000000000#!/bin/sh -efu

a= . install2-init-functions

[ -f "$destdir/lib/systemd/systemd" ] && exit 0
[ -z "$AUTOINSTALL" ] || exit 0

etcnet_lo_dir="$destdir/etc/net/ifaces/lo"
etcnet_lo_resolvconf="$etcnet_lo_dir/resolv.conf"
resolvconf_file="$destdir/etc/resolvconf.conf"
bind_root="$destdir/var/lib/bind"
bind_local_file="$bind_root/etc/local.conf"
bind_options_file="$bind_root/etc/options.conf"

resolvconf_zones_file="/etc/resolvconf-zones.conf"
resolvconf_options_file="/etc/resolvconf-options.conf"

#setup loopback resolv.conf to local server
[ -d "$etcnet_lo_dir" -a ! -f "$etcnet_lo_resolvconf" ] &&
echo 'nameserver 127.0.0.1' >"$etcnet_lo_resolvconf"

#zones from resolvconf
grep -qs "^[[:space:]]*include[[:space:]]\+\"$resolvconf_zones_file\"[[:space:]]*;" "$bind_local_file" ||
printf 'include "%s";\n' "$resolvconf_zones_file" >>"$bind_local_file"
touch "$bind_root/$resolvconf_zones_file"

#comment out old forward and forwarders
sed -i 's|^\([[:space:]]*\)\(//\)\?\([[:space:]]*forward\(ers\)\?[[:space:]]\)|\1//\3|' "$bind_options_file"

#options from resolvconf
grep -qs "^[[:space:]]*include[[:space:]]\+\"$resolvconf_options_file\"[[:space:]]*;" "$bind_options_file" ||
sed -i '/^[[:space:]]*\/\/[[:space:]]*forwarders[[:space:]]/ a \ include "'"$resolvconf_options_file"'";' "$bind_options_file"
touch "$bind_root$resolvconf_options_file"
installer-feature-resolver-bind-stage3-0.3/installer-feature-resolver-bind-stage3.spec000064400000000000000000000026501227736316100312070ustar00rootroot00000000000000Name: installer-feature-resolver-bind-stage3
Version: 0.3
Release: alt2

Summary: Setup bind as a main local resolver
License: GPL
Group: System/Configuration/Other
Url: http://www.altlinux.org/Installer/beans
Packager: Stanislav Ievlev <inger@altlinux.org>
BuildArch: noarch
Requires: bind etcnet openresolv-bind
Source: %name-%version.tar

%description
This package contains installer stage3 hook to setup bind
as a main local resolver.

%prep
%setup

%install
%define hookdir %_datadir/install2/postinstall.d
mkdir -p %buildroot%hookdir
install -pm755 *.sh %buildroot%hookdir/

%files
%hookdir/*

%changelog
* Fri Feb 14 2014 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.3-alt2
- exit code fixed

* Tue Feb 04 2014 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.3-alt1
- skip if systemd

* Wed Dec 09 2009 Mikhail Efremov <sem@altlinux.org> 0.2-alt4
- require openresolv-bind.

* Thu Aug 06 2009 Mikhail Efremov <sem@altlinux.org> 0.2-alt3
- create resolv.conf for 'lo' interface.

* Mon Apr 13 2009 Stanislav Ievlev <inger@altlinux.org> 0.2-alt2
- update for latest openresolv

* Mon Apr 13 2009 Dmitry V. Levin <ldv@altlinux.org> 0.2-alt1
- Cleanup.

* Sun Apr 12 2009 Stanislav Ievlev <inger@altlinux.org> 0.1-alt3
- touch included files to create correct configuration for bind

* Tue Mar 17 2009 Stanislav Ievlev <inger@altlinux.org> 0.1-alt2
- move to stage3

* Mon Mar 16 2009 Stanislav Ievlev <inger@altlinux.org> 0.1-alt1
- Initial build
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009