LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dhcp-client-ep.spec of Package dhcp-client-ep (Project home:ErlangPro)

Name: dhcp-client-ep
Version: 0.2.2
%define Release 1
Release: cx1
Group: Productivity/Networking/Boot/Clients
License: GPLv3
Summary: DHCP client confuguration for ErlangPro woker VM
Source: dhclient.conf.ep
Source1: dhclient-enter-hooks
BuildArch: noarch
Requires(post): sysconfig
Requires(post): dhcp-client
%description
%summary.
%prep

%build

%install
install -d -m755 %buildroot%_sysconfdir/erlangpro/global
install -D -m644 %SOURCE0 %buildroot%_datadir/%name/dhclient.conf
install -D -m755 %SOURCE1 %buildroot%_sysconfdir

%post
cp -a  %_sysconfdir/dhclient.conf{,.ep-save}
cat %_datadir/%name/dhclient.conf >  %_sysconfdir/dhclient.conf
sed -e '/^DHCLIENT_BIN=/s/=.*/="dhclient"/' \
    -e '/^DHCLIENT_SET_HOSTNAME=/s/=.*/="yes"/' \
    -i.ep-save %_sysconfdir/sysconfig/network/dhcp

%postun
mv %_sysconfdir/dhclient.conf{.ep-save,}
mv %_sysconfdir/sysconfig/network/dhcp{.ep-save,}

%files
%defattr(-,root,root)
%_datadir/%name
%config %_sysconfdir/*

%changelog
* Fri Apr 13 2012 Alexander Bandura <xand.bandura@gmail.com> 0.2.2-cx1
- Add setting fqdn hostname in hostsystem

* Wed Apr 11 2012 Alexander Bandura <xand.bandura@gmail.com> 0.2.1-cx1
- Add setting fqdn hostname in hostsystem

* Tue Apr 10 2012 Alexander Bandura <xand.bandura@gmail.com> 0.2-cx1
- Add setting hostname in lxc-containers

* Mon Mar 19 2012 Alexander Bandura <xand.bandura@gmail.com> 0.1-cx1
- Initial build