Search
j0ke.net Open Build Service
>
Projects
>
home:hostmaster
>
resolv_dummy
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
resolv_dummy.spec
@@ -11,6 +11,13 @@ BuildArch: noarch Autoreqprov: off +%if 0%{?suse_version} +Requires: 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 @@ -21,6 +28,11 @@ 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}