[20387] | 1 | %define debug_package %{nil} |
---|
| 2 | |
---|
| 3 | Summary: Detect and perform actions when an ethernet cable is (un)plugged. |
---|
| 4 | Name: ifplugd |
---|
| 5 | Version: @PACKAGE_VERSION@ |
---|
| 6 | Release: 1 |
---|
| 7 | Copyright: GPL |
---|
| 8 | Group: Networking/Daemons |
---|
| 9 | URL: http://0pointer.de/lennart/projects/ifplugd/ |
---|
| 10 | Source: %{name}-%{version}.tar.gz |
---|
| 11 | Packager: Diego Santa Cruz <Diego.SantaCruz@epfl.ch> |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildPrereq: libdaemon-devel |
---|
| 14 | |
---|
| 15 | %description |
---|
| 16 | ifplugd is a Linux daemon which will automatically configure your |
---|
| 17 | ethernet device when a cable is plugged in and automatically |
---|
| 18 | unconfigure it if the cable is pulled. This is useful on laptops with |
---|
| 19 | network adapters onboard , since it will only configure the interface |
---|
| 20 | when a cable is really connected. |
---|
| 21 | |
---|
| 22 | ifplugd is a rather simplistic approach to this target since it relies |
---|
| 23 | on your distribution's native interface configuration system. |
---|
| 24 | |
---|
| 25 | %prep |
---|
| 26 | %setup -q |
---|
| 27 | %build |
---|
| 28 | %configure |
---|
| 29 | make |
---|
| 30 | |
---|
| 31 | %install |
---|
| 32 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT" |
---|
| 33 | mkdir -p "$RPM_BUILD_ROOT"/usr/sbin |
---|
| 34 | make 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 |
---|