summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2008-11-07 18:58:08 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2008-11-07 18:58:08 (GMT)
commitadd909d9f8b0cefffacfd3b10682acb1291000be (patch)
tree28da694c4c815da63838bb3647ce19adf9009ab6
parent8f13ac8a3b3032bfbd859cdf112c447d8b517ff0 (diff)
downloadperl-Kolab-add909d9f8b0cefffacfd3b10682acb1291000be.tar.gz
Complete fixing the location of executables into sbin.
-rw-r--r--perl-kolab.spec10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-kolab.spec b/perl-kolab.spec
index 181fef8..158645b 100644
--- a/perl-kolab.spec
+++ b/perl-kolab.spec
@@ -75,13 +75,13 @@ AutoReqProv: no
%{l_prefix}/bin/perl-openpkg -d %{SOURCE0} -A "--config \"%{l_prefix}/etc/kolab\" --bin \"%{l_prefix}/bin\"" configure build install
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
mkdir -p $RPM_BUILD_ROOT/%{l_prefix}/sbin
- mv $RPM_BUILD_ROOT/%{l_prefix}/bin/kolabd $RPM_BUILD_ROOT/%{l_prefix}/sbin/kolabd
- mv $RPM_BUILD_ROOT/%{l_prefix}/bin/kolabcheckperm $RPM_BUILD_ROOT/%{l_prefix}/sbin/kolabcheckperm
- chmod 744 $RPM_BUILD_ROOT/%{l_prefix}/sbin/kolabd
- chmod 744 $RPM_BUILD_ROOT/%{l_prefix}/sbin/kolabcheckperm
+ for SBIN in kolabd kolabcheckperm kolabconf kolab_bootstrap; do \
+ mv $RPM_BUILD_ROOT/%{l_prefix}/bin/$SBIN $RPM_BUILD_ROOT/%{l_prefix}/sbin/$SBIN; \
+ chmod 744 $RPM_BUILD_ROOT/%{l_prefix}/sbin/$SBIN; \
+ sed -i -e "s#/bin/$SBIN#/sbin/$SBIN#" perl-openpkg-files; \
+ done
mkdir -p $RPM_BUILD_ROOT/%{l_prefix}/etc/kolab
cp $RPM_BUILD_DIR/%{V_package}-%{V_version}/%{V_package}-%{V_source_tag}/data/quotawarning.txt $RPM_BUILD_ROOT/%{l_prefix}/etc/kolab
- sed -i -e 's#/bin/kolabd#/sbin/kolabd#' -e 's#/bin/kolabconf#/sbin/kolabconf#' -e 's#/bin/kolab_bootstrap#/sbin/kolab_bootstrap#' -e 's#/bin/kolabcheckperm#/sbin/kolabcheckperm#' perl-openpkg-files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
%files -f files