diff --git a/ifplugd.spec b/ifplugd.spec index 8abcd1f..2fc5c45 100644 --- a/ifplugd.spec +++ b/ifplugd.spec @@ -1,15 +1,14 @@ -Summary: Detect and take action when an ethernet cable is unplugged +Summary: Detect and take action when an ethernet cable is unplugged Name: ifplugd Version: 0.24 Release: 5 License: GPL -Epoch: 0 Group: System Environment/Daemons URL: http://0pointer.de/lennart/projects/ifplugd Source0: http://0pointer.de/lennart/projects/ifplugd/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: libdaemon >= 0:0.5 -BuildRequires: libdaemon >= 0:0.5, pkgconfig +Requires: libdaemon >= 0.5 +BuildRequires: libdaemon >= 0.5, pkgconfig %description ifplugd is a Linux daemon which will automatically configure your @@ -25,6 +24,7 @@ when a cable is really connected. %build %configure --prefix=/ --disable-lynx --disable-xmltoman --disable-subversion make %{?_smp_mflags} all + %install rm -rf $RPM_BUILD_ROOT install -p -D -m755 src/ifplugd $RPM_BUILD_ROOT/%{_sbindir}/ifplugd @@ -35,6 +35,7 @@ install -p -D -m755 conf/ifplugd.action $RPM_BUILD_ROOT/%{_sysconfdir}/ifplugd/i install -p -D man/ifplugd.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/ifplugd.conf.5 install -p -D man/ifplugd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ifplugd.8 install -p -D man/ifplugstatus.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ifplugstatus.8 + %clean rm -rf $RPM_BUILD_ROOT @@ -49,10 +50,10 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/ifplugstatus.8* %doc README LICENSE -%post +%post /sbin/chkconfig --add ifplugd -%preun +%preun /sbin/chkconfig --del ifplugd %changelog @@ -62,7 +63,7 @@ rm -rf $RPM_BUILD_ROOT * Thu Jun 3 2004 - 0:0.24-0.fdr.4 - renamed confpatches.patch to ifplugd-0.24-confpatches.patch -- used %config for /etc/init.d/ifplugd +- used %config for /etc/init.d/ifplugd - added %config(noreplace) for /etc/ifplugd/* - removed patch @@ -78,7 +79,7 @@ rm -rf $RPM_BUILD_ROOT * Mon May 3 2004 - Revamped for Fedora.us packaging guidelines -* Wed Mar 31 2004 +* Wed Mar 31 2004 - Initial build.