Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 648467facc7ffc43634309da01b3a4f0 > files > 3

noip-2.1.9-1.mga5.src.rpm

%define         real_name noip-duc-linux
%define         min_ver 1
%define         max_ver 2

Name:           noip
Summary:        NoIP client
Version:        2.1.9
Release:        %mkrel 1
Source0:        https://www.noip.com/client/linux/%{real_name}.tar.gz
Source1:        noip2.service
Patch0:         noip-2.1.9-makefile.patch
URL:            https://www.noip.com
Group:          Networking/Other
License:        GPLv2 

BuildRequires:	binutils-devel

%description
This Dynamic DNS Update Client continually checks for 
IP address changes in the background and 
automatically updates the DNS at No-IP whenever it changes.

%prep 
%setup -q -n %{name}-%{version}-%{min_ver}
%patch0 -b .tryconf

%build
%make

%install
%makeinstall PREFIX=%{buildroot} CONFDIR=%{buildroot}%{_sysconfdir} BINDIR=%{buildroot}%{_bindir}

install -d -D -m755 %{buildroot}%{_unitdir}
install -m644 %{S:1} %{buildroot}%{_unitdir}/%{name}%{max_ver}.service

%files 
%doc README.FIRST* COPYING
%{_bindir}/%name%{max_ver}
%{_unitdir}/%{name}%{max_ver}.service



%changelog
* Sun Dec 21 2014 matteo <matteo> 2.1.9-1.mga5
+ Revision: 804686
- added unit file for systemd (noip2.service)
- set proper confdir
- imported package noip