|
|
95b8039 |
Name: noip
|
|
|
95b8039 |
Version: 2.1.9
|
|
|
95b8039 |
Release: 17%{?dist}
|
|
|
95b8039 |
Summary: A dynamic DNS update client
|
|
|
95b8039 |
Group: System Environment/Daemons
|
|
|
95b8039 |
License: GPLv2+
|
|
|
95b8039 |
URL: http://www.no-ip.com
|
|
|
95b8039 |
Source0: http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
|
|
|
95b8039 |
# Patch for Fedora specifics
|
|
|
95b8039 |
Patch0: noip.patch
|
|
|
95b8039 |
|
|
|
95b8039 |
Requires(pre): shadow-utils
|
|
|
95b8039 |
Requires(post): chkconfig
|
|
|
95b8039 |
|
|
|
95b8039 |
Requires(preun): chkconfig
|
|
|
95b8039 |
# This is for /sbin/service
|
|
|
95b8039 |
Requires(preun): initscripts
|
|
|
95b8039 |
|
|
|
95b8039 |
%description
|
|
|
95b8039 |
Keep your current IP address in sync with your No-IP host or domain with
|
|
|
95b8039 |
this Dynamic Update Client (DUC). The client continually checks for IP
|
|
|
95b8039 |
address changes in the background and automatically updates the DNS at
|
|
|
95b8039 |
No-IP whenever it changes.
|
|
|
95b8039 |
|
|
|
95b8039 |
N.B. You need to run
|
|
|
95b8039 |
%# noip2 -C
|
|
|
95b8039 |
before starting the service.
|
|
|
95b8039 |
|
|
|
95b8039 |
%prep
|
|
|
95b8039 |
%setup -q -n %{name}-%{version}-1
|
|
|
95b8039 |
%patch0 -p1
|
|
|
95b8039 |
sed -i 's|@OPTFLAGS@|%{optflags}|g;s|@SBINDIR@|%{buildroot}%{_sbindir}|g;s|@SYSCONFDIR@|%{buildroot}%{_sysconfdir}|g' Makefile
|
|
|
95b8039 |
|
|
|
95b8039 |
%build
|
|
|
95b8039 |
make %{?_smp_mflags}
|
|
|
95b8039 |
|
|
|
95b8039 |
%install
|
|
|
95b8039 |
install -D -p -m 755 noip2 %{buildroot}/%{_sbindir}/noip2
|
|
|
95b8039 |
|
|
|
95b8039 |
# Make dummy config file
|
|
|
95b8039 |
mkdir -p %{buildroot}/%{_sysconfdir}
|
|
|
95b8039 |
touch %{buildroot}/%{_sysconfdir}/no-ip2.conf
|
|
|
95b8039 |
|
|
|
95b8039 |
# Install init script
|
|
|
95b8039 |
install -D -p -m 755 redhat.noip.sh %{buildroot}%{_initrddir}/noip
|
|
|
95b8039 |
|
|
|
95b8039 |
%pre
|
|
|
95b8039 |
# Add noip user & group
|
|
|
95b8039 |
getent group noip >/dev/null || groupadd -r noip
|
|
|
95b8039 |
getent passwd noip >/dev/null || \
|
|
|
95b8039 |
useradd -r -g noip -d /var/run/noip -s /sbin/nologin \
|
|
|
95b8039 |
-c "No-ip daemon user" noip
|
|
|
95b8039 |
|
|
|
95b8039 |
%post
|
|
|
95b8039 |
# This adds the proper /etc/rc*.d links for the script
|
|
|
95b8039 |
/sbin/chkconfig --add noip
|
|
|
95b8039 |
|
|
|
95b8039 |
%preun
|
|
|
95b8039 |
if [ $1 = 0 ] ; then
|
|
|
95b8039 |
/sbin/service noip stop >/dev/null 2>&1
|
|
|
95b8039 |
/sbin/chkconfig --del noip
|
|
|
95b8039 |
fi
|
|
|
95b8039 |
|
|
|
95b8039 |
%files
|
|
|
95b8039 |
%defattr(-,root,root,-)
|
|
|
95b8039 |
%doc COPYING README.FIRST
|
|
|
95b8039 |
%{_sbindir}/noip2
|
|
|
95b8039 |
%attr(600,noip,noip) %config(noreplace) %{_sysconfdir}/no-ip2.conf
|
|
|
95b8039 |
%{_initrddir}/noip
|
|
|
95b8039 |
|
|
|
95b8039 |
%changelog
|
|
|
95b8039 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.9-17
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-16
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-15
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-14
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-13
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-12
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-11
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-10
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-9
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Fri Dec 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.9-8
|
|
|
95b8039 |
- Drop unnecessary dir in /var/run.
|
|
|
95b8039 |
|
|
|
95b8039 |
* Fri Mar 12 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.9-7
|
|
|
95b8039 |
- Remove trailing space that caused %%pre scriptlet to fail.
|
|
|
95b8039 |
|
|
|
95b8039 |
* Sun Jan 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.9-6
|
|
|
95b8039 |
- Bump release.
|
|
|
95b8039 |
|
|
|
95b8039 |
* Sat Sep 26 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.9-5
|
|
|
95b8039 |
- Remove exit statement from %%pre.
|
|
|
95b8039 |
|
|
|
95b8039 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-4
|
|
|
95b8039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
95b8039 |
|
|
|
95b8039 |
* Sat Mar 14 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.9-3
|
|
|
95b8039 |
- Fix initrd file.
|
|
|
95b8039 |
|
|
|
95b8039 |
* Thu Nov 27 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.9-2
|
|
|
95b8039 |
- Add forgotten init file patch.
|
|
|
95b8039 |
|
|
|
95b8039 |
* Tue Nov 25 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.9-1
|
|
|
95b8039 |
- Update to 2.1.9.
|
|
|
95b8039 |
|
|
|
95b8039 |
* Thu Nov 06 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.7-1
|
|
|
95b8039 |
- First release.
|