source: trunk/third/ifplugd/ifplugd.spec.in @ 20388

Revision 20388, 1.9 KB checked in by amb, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20387, which included commits to RCS files with non-trunk default branches.
Line 
1%define debug_package %{nil}
2
3Summary:      Detect and perform actions when an ethernet cable is (un)plugged.
4Name:         ifplugd
5Version:      @PACKAGE_VERSION@
6Release:      1
7Copyright:    GPL
8Group:        Networking/Daemons
9URL:          http://0pointer.de/lennart/projects/ifplugd/
10Source:       %{name}-%{version}.tar.gz
11Packager:     Diego Santa Cruz <Diego.SantaCruz@epfl.ch>
12BuildRoot:    %{_tmppath}/%{name}-%{version}-root
13BuildPrereq:  libdaemon-devel
14
15%description
16ifplugd is a Linux daemon which will automatically configure your
17ethernet device when a cable is plugged in and automatically
18unconfigure it if the cable is pulled. This is useful on laptops with
19network adapters onboard , since it will only configure the interface
20when a cable is really connected.
21
22ifplugd is a rather simplistic approach to this target since it relies
23on your distribution's native interface configuration system.
24
25%prep
26%setup -q
27%build
28%configure
29make
30
31%install
32[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
33mkdir -p "$RPM_BUILD_ROOT"/usr/sbin
34make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{prefix} install
35
36%clean
37[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
38
39%post
40/sbin/chkconfig --add ifplugd
41
42%preun
43/sbin/chkconfig --del ifplugd
44
45%files
46%defattr(755,root,root)
47%doc LICENSE README
48%doc doc/README.html doc/style.css
49%{_sbindir}/ifplugd
50%{_sbindir}/ifplugstatus
51%{_mandir}/man?/ifplugd*
52%{_mandir}/man?/ifplugstatus*
53%{_sysconfdir}/init.d/ifplugd
54%config %{_sysconfdir}/ifplugd/ifplugd.conf
55%config %{_sysconfdir}/ifplugd/ifplugd.action
56
57%changelog
58
59* Mon Jul 21 2003 Lennart Poettering 0.16
60- Modified slightly to be auto generated by autoconf
61
62* Wed Jul 16 2003 Diego Santa Cruz <Diego.SantaCruz@epfl.ch> 0.15
63- Updated to version 0.15
64- Make it depend on libdaemon
65
66* Thu Jan  9 2003 Asgeir Nilsen <rpmspec@asgeirnilsen.com> 0.11-2
67- Minor adjustments and init file patch
Note: See TracBrowser for help on using the repository browser.