diff options
author | Jakub Bogusz | 2003-10-14 20:40:36 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 09803aa23b037fb435e47218cf85ee5e408611ae (patch) | |
tree | e36864944763dbd65affc595cf806bdd494d5802 | |
parent | 5cd306dc4d4fb52dc5733145bc726bece3108524 (diff) | |
download | netplug-09803aa23b037fb435e47218cf85ee5e408611ae.zip netplug-09803aa23b037fb435e47218cf85ee5e408611ae.tar.gz |
- cleanups, missing dir, more deps, fixed upgrade
Changed files:
netplug.spec -> 1.4
-rw-r--r-- | netplug.spec | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/netplug.spec b/netplug.spec index 35b1f8d..37b8a26 100644 --- a/netplug.spec +++ b/netplug.spec @@ -3,11 +3,17 @@ Summary(pl): Demon reagujący na podłączenia/odłączenie kabla ethernetowego Name: netplug Version: 1.0 Release: 1 -Group: Networking License: GPL +Vendor: Key Research, Inc. <http://www.keyresearch.com/> +Group: Networking Source0: %{name}-%{version}.tar.bz2 #URL: http://www.serpentine.com/~bos/netplug/ -Vendor: Key Research, Inc. <http://www.keyresearch.com/> +PreReq: rc-scripts +Requires(post,preun): /sbin/chkconfig +Requires(post): diffutils +Requires(post,postun): fileutils +Requires(post): grep +Requires(post,postun): sed Requires: iproute >= 2.4.7 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -45,24 +51,25 @@ ręcznej interwencji. %install rm -rf $RPM_BUILD_ROOT -%{__make} install prefix=$RPM_BUILD_ROOT \ - initdir=$RPM_BUILD_ROOT/%{_initrddir} \ - mandir=$RPM_BUILD_ROOT/%{_mandir} + +%{__make} install \ + prefix=$RPM_BUILD_ROOT \ + initdir=$RPM_BUILD_ROOT%{_initrddir} \ + mandir=$RPM_BUILD_ROOT%{_mandir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -/sbin/netplugd -%config %{_sysconfdir}/netplug/netplugd.conf +%doc COPYING README TODO +%attr(755,root,root) /sbin/netplugd +%dir %{_sysconfdir}/netplug +%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/netplug/netplugd.conf %{_sysconfdir}/netplug.d -/etc/rc.d/init.d/netplugd -%docdir %{_mandir}/* +%attr(754,root,root) /etc/rc.d/init.d/netplugd %{_mandir}/*/* -%doc COPYING README TODO - %post /sbin/chkconfig --add netplugd @@ -86,9 +93,12 @@ for cfg in %{sysconfig}/ifcfg-eth*; do done %preun -/sbin/chkconfig --del netplugd +if [ "$1" = "0" ]; then + /sbin/chkconfig --del netplugd +fi %postun +if [ "$1" = "0" ]; then for precfg in %{sysconfig}/*.pre-netplug; do if [ ! -f "$precfg" ]; then continue @@ -104,3 +114,4 @@ for precfg in %{sysconfig}/*.pre-netplug; do fi rm "$cfg.new.$$" "$cfg.pre-netplug" done +fi |