|
|
e1b8628 |
Summary: Detect and take action when an ethernet cable is unplugged
|
|
|
e1b8628 |
Name: ifplugd
|
|
|
e1b8628 |
Version: 0.28
|
|
|
e096487 |
Release: 15%{?dist}
|
|
|
3df2f68 |
|
|
|
4e6eda4 |
License: GPLv2+
|
|
|
e1b8628 |
Group: System Environment/Daemons
|
|
|
e1b8628 |
URL: http://0pointer.de/lennart/projects/ifplugd
|
|
|
e1b8628 |
Source0: http://0pointer.de/lennart/projects/ifplugd/%{name}-%{version}.tar.gz
|
|
|
e1b8628 |
Patch0: interface_c.patch
|
|
|
e096487 |
Patch1: ifplugd_action-readability.patch
|
|
|
e1b8628 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
e1b8628 |
Requires: libdaemon
|
|
|
2786082 |
BuildRequires: libdaemon-devel, pkgconfig
|
|
cvsextras |
af939e2 |
|
|
cvsextras |
af939e2 |
%description
|
|
cvsextras |
af939e2 |
ifplugd is a Linux daemon which will automatically configure your
|
|
cvsextras |
af939e2 |
ethernet device when a cable is plugged in and automatically
|
|
cvsextras |
af939e2 |
unconfigure it if the cable is pulled. This is useful on laptops with
|
|
cvsextras |
af939e2 |
onboard network adapters, since it will only configure the interface
|
|
cvsextras |
af939e2 |
when a cable is really connected.
|
|
cvsextras |
af939e2 |
|
|
cvsextras |
af939e2 |
%prep
|
|
cvsextras |
af939e2 |
%setup -q
|
|
|
f24c5bc |
%patch0 -p1
|
|
|
e096487 |
%patch1 -p0
|
|
cvsextras |
af939e2 |
|
|
cvsextras |
af939e2 |
%build
|
|
|
bacb457 |
%configure --prefix=/ --disable-lynx --disable-xmltoman --disable-subversion --with-initdir=%{_initrddir}
|
|
cvsextras |
af939e2 |
make %{?_smp_mflags} all
|
|
|
3ef1597 |
|
|
cvsextras |
af939e2 |
%install
|
|
cvsextras |
af939e2 |
rm -rf $RPM_BUILD_ROOT
|
|
cvsextras |
af939e2 |
install -p -D -m755 src/ifplugd $RPM_BUILD_ROOT/%{_sbindir}/ifplugd
|
|
cvsextras |
af939e2 |
install -p -D -m755 src/ifplugstatus $RPM_BUILD_ROOT/%{_sbindir}/ifplugstatus
|
|
|
6d0324b |
install -p -D conf/ifplugd.init $RPM_BUILD_ROOT/%{_initrddir}/ifplugd
|
|
cvsextras |
af939e2 |
install -p -D -m755 conf/ifplugd.conf $RPM_BUILD_ROOT/%{_sysconfdir}/ifplugd/ifplugd.conf
|
|
cvsextras |
af939e2 |
install -p -D -m755 conf/ifplugd.action $RPM_BUILD_ROOT/%{_sysconfdir}/ifplugd/ifplugd.action
|
|
cvsextras |
af939e2 |
install -p -D man/ifplugd.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/ifplugd.conf.5
|
|
cvsextras |
af939e2 |
install -p -D man/ifplugd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ifplugd.8
|
|
cvsextras |
af939e2 |
install -p -D man/ifplugstatus.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ifplugstatus.8
|
|
|
3ef1597 |
|
|
cvsextras |
af939e2 |
%clean
|
|
cvsextras |
af939e2 |
rm -rf $RPM_BUILD_ROOT
|
|
cvsextras |
af939e2 |
|
|
cvsextras |
af939e2 |
%files
|
|
cvsextras |
af939e2 |
%defattr(0755,root,root)
|
|
|
6d0324b |
%config %{_initrddir}/ifplugd
|
|
cvsextras |
af939e2 |
%config(noreplace) %{_sysconfdir}/ifplugd
|
|
cvsextras |
af939e2 |
%{_sbindir}/ifplugd
|
|
cvsextras |
af939e2 |
%{_sbindir}/ifplugstatus
|
|
cvsextras |
af939e2 |
%{_mandir}/man5/ifplugd.conf.5*
|
|
cvsextras |
af939e2 |
%{_mandir}/man8/ifplugd.8*
|
|
cvsextras |
af939e2 |
%{_mandir}/man8/ifplugstatus.8*
|
|
cvsextras |
af939e2 |
%doc README LICENSE
|
|
cvsextras |
af939e2 |
|
|
|
3ef1597 |
%post
|
|
cvsextras |
af939e2 |
/sbin/chkconfig --add ifplugd
|
|
cvsextras |
af939e2 |
|
|
|
3ef1597 |
%preun
|
|
cvsextras |
af939e2 |
/sbin/chkconfig --del ifplugd
|
|
cvsextras |
af939e2 |
|
|
cvsextras |
af939e2 |
%changelog
|
|
|
e096487 |
* Mon May 31 2010 José Matos <jamatos@fc.up.pt> - 0.28-15
|
|
|
e096487 |
- Add action readability patch (thanks to Niels de Vos) (bz#597866)
|
|
|
e096487 |
|
|
|
5d457f2 |
* Thu Jul 30 2009 Jesse Keating <jkeating@redhat.com> - 0.28-14
|
|
|
5d457f2 |
- Rebuild for F12 mass rebuild
|
|
|
5d457f2 |
|
|
|
178136f |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-13
|
|
|
178136f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
178136f |
|
|
|
f24c5bc |
* Sun Sep 21 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.28-12
|
|
|
f24c5bc |
- Fix Patch0:/%%patch mismatch.
|
|
|
f24c5bc |
|
|
|
bacb457 |
* Tue Apr 1 2008 José Matos <jamatos[AT]fc.up.pt> - 0.28-11
|
|
|
bacb457 |
- Pass initdir to configure.
|
|
|
bacb457 |
|
|
|
1aca21e |
* Tue Apr 1 2008 José Matos <jamatos[AT]fc.up.pt> - 0.28-10
|
|
|
1aca21e |
- Rebuild again (the failure in configure is gone).
|
|
|
1aca21e |
|
|
|
3aa5a7a |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.28-9
|
|
|
3aa5a7a |
- Autorebuild for GCC 4.3
|
|
|
3aa5a7a |
|
|
|
677d45c |
* Thu Feb 14 2008 José Matos <jamatos[AT]fc.up.pt> - 0.28-8
|
|
|
677d45c |
- Rebuild for gcc 4.3
|
|
|
677d45c |
|
|
|
4e6eda4 |
* Tue Aug 28 2007 José Matos <jamatos[AT]fc.up.pt> - 0.28-7
|
|
|
4e6eda4 |
- License fix, rebuild for devel (F8).
|
|
|
4e6eda4 |
|
|
|
20a2b44 |
* Sat Apr 21 2007 José Matos <jamatos[AT]fc.up.pt> - 0.28-6
|
|
|
20a2b44 |
- Rebuild (for F7).
|
|
|
20a2b44 |
|
|
|
ac46fe6 |
* Thu Sep 28 2006 José Matos <jamatos[AT]fc.up.pt> - 0.28-5
|
|
|
ac46fe6 |
- Add dist tag to release.
|
|
|
ac46fe6 |
|
|
|
6d0324b |
* Thu Sep 28 2006 José Matos <jamatos[AT]fc.up.pt> - 0.28-4
|
|
|
6d0324b |
- Place deamon in _initrddir (/etc/rc.d/init.d)
|
|
|
6d0324b |
|
|
|
1871fb5 |
* Wed Sep 27 2006 José Matos <jamatos[AT]fc.up.pt> - 0.28-3
|
|
|
1871fb5 |
- Add patch to cvs ( --follow-the-mind would be nice).
|
|
|
1871fb5 |
|
|
|
e1b8628 |
* Wed Sep 27 2006 José Matos <jamatos[AT]fc.up.pt> - 0.28-2
|
|
|
e1b8628 |
- Apply patch to src/interface.c
|
|
|
e1b8628 |
|
|
|
683b10a |
* Wed Sep 27 2006 José Matos <jamatos[AT]fc.up.pt> - 0.28-1
|
|
|
683b10a |
- New upstream version
|
|
|
683b10a |
|
|
|
2786082 |
* Wed Sep 27 2006 José Matos <jamatos[AT]fc.up.pt> - 0.24-8
|
|
|
2786082 |
- BuildRequires libdaemon-devel to get libdaemon.pc file
|
|
|
2786082 |
|
|
|
bd488b8 |
* Wed Sep 27 2006 José Matos <jamatos[AT]fc.up.pt> - 0.24-7
|
|
|
bd488b8 |
- Rebuild for FC-6.
|
|
|
bd488b8 |
|
|
|
3df2f68 |
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
3df2f68 |
- rebuilt
|
|
|
3df2f68 |
|
|
|
47eba06 |
* Fri Jun 4 2004 Aaron Bennett <aaron.bennett@olin.edu> - 0:0.24-0.fdr.5
|
|
cvsextras |
af939e2 |
- Capitalized summary tag
|
|
cvsextras |
af939e2 |
- Added /etc/ifplugd directory
|
|
cvsextras |
af939e2 |
|
|
|
47eba06 |
* Thu Jun 3 2004 Aaron Bennett <aaron.bennett@olin.edu> - 0:0.24-0.fdr.4
|
|
cvsextras |
af939e2 |
- renamed confpatches.patch to ifplugd-0.24-confpatches.patch
|
|
|
3ef1597 |
- used %config for /etc/init.d/ifplugd
|
|
cvsextras |
af939e2 |
- added %config(noreplace) for /etc/ifplugd/*
|
|
cvsextras |
af939e2 |
- removed patch
|
|
cvsextras |
af939e2 |
|
|
|
47eba06 |
* Wed Jun 2 2004 Aaron Bennett <aaron.bennett@olin.edu> - 0:0.24-0.fdr.3
|
|
cvsextras |
af939e2 |
- Fixed summary
|
|
cvsextras |
af939e2 |
- added -p option to install
|
|
cvsextras |
af939e2 |
- added buildrequires
|
|
cvsextras |
af939e2 |
|
|
|
47eba06 |
* Tue May 3 2004 Aaron Bennett <aaron.bennett@olin.edu>
|
|
cvsextras |
af939e2 |
- Changed Source0 to URL for source
|
|
cvsextras |
af939e2 |
- signed package
|
|
cvsextras |
af939e2 |
|
|
|
47eba06 |
* Mon May 3 2004 Aaron Bennett <aaron.bennett@olin.edu>
|
|
cvsextras |
af939e2 |
- Revamped for Fedora.us packaging guidelines
|
|
cvsextras |
af939e2 |
|
|
|
47eba06 |
* Wed Mar 31 2004 Aaron Bennett <abennett@olin.edu>
|
|
cvsextras |
af939e2 |
- Initial build.
|
|
cvsextras |
af939e2 |
|
|
cvsextras |
af939e2 |
|