68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
Summary: Dynamic DNS for ppp and dhclient
|
|
Name: dnsupdate
|
|
Version: 0.6.0
|
|
Release: 1%{?dist}
|
|
License: GPLv2+
|
|
Group: System Environment/Daemons
|
|
URL: http://netst.org/pub/fedora/st/
|
|
BuildArch: noarch
|
|
|
|
Requires: initscripts
|
|
Requires: ppp
|
|
Requires: bind-utils
|
|
|
|
Source0: dnsupdate
|
|
Source1: dhclient-dnsupdate.sh
|
|
Source2: ppp-dnsupdate.sh
|
|
Source3: dnsupdate.cron
|
|
Source4: nm-dnsupdate.sh
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
%description
|
|
Dynamic DNS for ppp and dhclient.
|
|
|
|
%install
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d
|
|
install -dm 755 $RPM_BUILD_ROOT%{_bindir}
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/ppp
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/ppp/ip-up.d
|
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
|
|
|
|
install -pm 755 %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/dnsupdate
|
|
install -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d/dnsupdate.sh
|
|
install -pm 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ppp/ip-up.d/dnsupdate.sh
|
|
install -pm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/dnsupdate
|
|
install -pm 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/dnsupdate
|
|
%{_sysconfdir}/NetworkManager/dispatcher.d/nm-dnsupdate.sh
|
|
%{_sysconfdir}/dhcp/dhclient.d/dnsupdate.sh
|
|
%{_sysconfdir}/ppp/ip-up.d/dnsupdate.sh
|
|
%{_sysconfdir}/cron.d/dnsupdate
|
|
|
|
%changelog
|
|
* Mon Jul 27 2015 Zoran Pericic <zpericic@netst.org> - 0.5.2-1
|
|
- Fix dhcpd script
|
|
|
|
* Sun Jul 26 2015 Zoran Pericic <zpericic@netst.org> - 0.5.1-1
|
|
- Fix cron job and permissions
|
|
|
|
* Wed Jul 22 2015 Zoran Pericic <zpericic@netst.org> - 0.5.0-1
|
|
- Many improvements
|
|
|
|
* Sun Apr 5 2015 Zoran Pericic <zpericic@netst.org>
|
|
- Initial commmit
|