Search
j0ke.net Open Build Service
>
Projects
>
home:hostmaster
>
resolv_dummy
> resolv_dummy.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File resolv_dummy.spec of Package resolv_dummy
Name: resolv_dummy Summary: resolve_dummy will add a resolv.conf to build environment Version: 0.1 Release: 1 License: GPL URL: http://www.linux-administrator.com/ Group: System Packager: Carsten Schoene <cs@linux-administrator.com Vendor: linux-administrator.com BuildRoot: %_tmppath/%name-%version-%release-root BuildArch: noarch Autoreqprov: off %if 0%{?suse_version} Requires: sysconfig dhcp-client %endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} Requires: dhclient %endif %description resolv_dummy creates /etc/resolv.conf in virtual build environment %prep %install mkdir -p $RPM_BUILD_ROOT/etc echo "nameserver 82.149.224.2" > $RPM_BUILD_ROOT/etc/resolv.conf echo "nameserver 82.149.225.2" >> $RPM_BUILD_ROOT/etc/resolv.conf %post %if 0%{?suse_version} || 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} /sbin/dhclient eth0 %endif %clean rm -rf ${buildroot} %files %defattr(-,root,root) %config /etc/resolv.conf %changelog * Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com> - create dummy package which creates a resolv.conf with nameserver entrys in build environment