[dropbear/el6] Fix chkconfig path caused by wrong macro.
Christopher Meng
cicku at fedoraproject.org
Tue Dec 10 09:30:40 UTC 2013
commit a667d49ebb4094f3661ea75b7971947e38b4a238
Author: Christopher Meng <i at cicku.me>
Date: Tue Dec 10 17:30:16 2013 +0800
Fix chkconfig path caused by wrong macro.
dropbear.spec | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/dropbear.spec b/dropbear.spec
index ce812a5..4273afc 100644
--- a/dropbear.spec
+++ b/dropbear.spec
@@ -1,6 +1,6 @@
Name: dropbear
Version: 2013.62
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: SSH2 server and client
Group: Applications/Internet
License: MIT
@@ -11,7 +11,7 @@ BuildRequires: libtomcrypt-devel
BuildRequires: libtommath-devel
BuildRequires: zlib-devel
Requires: initscripts
-Requires(post): chkconfig >= 0.9, initscripts
+Requires(post): chkconfig initscripts
%description
Dropbear is a relatively small SSH server and client. Dropbear
@@ -36,16 +36,16 @@ install -d %{buildroot}%{_initrddir}
install -pm755 %{S:1} %{buildroot}%{_initrddir}/dropbear
%post
-%{_sbindir}/chkconfig --add dropbear
+/sbin/chkconfig --add dropbear
%postun
-%{_sbindir}/service dropbear condrestart > /dev/null 2>&1 || :
+/sbin/service dropbear condrestart > /dev/null 2>&1 || :
%preun
if [ "$1" = 0 ]
then
- %{_sbindir}/service dropbear stop > /dev/null 2>&1 || :
- %{_sbindir}/chkconfig --del dropbear
+ sbin/service dropbear stop > /dev/null 2>&1 || :
+ sbin/chkconfig --del dropbear
fi
%files
@@ -60,6 +60,9 @@ fi
%{_mandir}/man8/*.8*
%changelog
+* Tue Dec 10 2013 Christopher Meng <rpm at cicku.me> - 2013.62-2
+- Cleanup scriptlets
+
* Wed Dec 04 2013 Christopher Meng <rpm at cicku.me> - 2013.62-1
- Update to 2013.62
More information about the scm-commits
mailing list