Files
dnsupdate/dnsupdate.spec
2015-11-06 00:41:56 +01:00

64 lines
1.8 KiB
RPMSpec

Summary: Dynamic DNS for ppp and dhclient
Name: dnsupdate
Version: 0.5.2
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
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 -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
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/dnsupdate
%{_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