summaryrefslogtreecommitdiffstats
path: root/perl-install/drakxtools.spec
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-08 09:59:45 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-08 09:59:45 +0000
commit7f006e0213f75353531a216a0985769604c41ec1 (patch)
treebd02c7ef3edb1324f7379f05606b0b2477efe43e /perl-install/drakxtools.spec
parent54e573b27af58ec862bcafe12c5e63ff40a5abb3 (diff)
downloaddrakx-7f006e0213f75353531a216a0985769604c41ec1.tar
drakx-7f006e0213f75353531a216a0985769604c41ec1.tar.gz
drakx-7f006e0213f75353531a216a0985769604c41ec1.tar.bz2
drakx-7f006e0213f75353531a216a0985769604c41ec1.tar.xz
drakx-7f006e0213f75353531a216a0985769604c41ec1.zip
fixes for missing files
Diffstat (limited to 'perl-install/drakxtools.spec')
-rw-r--r--perl-install/drakxtools.spec12
1 files changed, 7 insertions, 5 deletions
diff --git a/perl-install/drakxtools.spec b/perl-install/drakxtools.spec
index ddbe7bc4b..6c0a1fe17 100644
--- a/perl-install/drakxtools.spec
+++ b/perl-install/drakxtools.spec
@@ -101,6 +101,11 @@ make
rm -rf $RPM_BUILD_ROOT
make PREFIX=$RPM_BUILD_ROOT install
+mkdir -p $RPM_BUILD_ROOT%_initrddir/
+if [ -f $RPM_BUILD_ROOT%_sbindir/service_harddrake ]; then
+ mv $RPM_BUILD_ROOT%_sbindir/service_harddrake $RPM_BUILD_ROOT%_initrddir/harddrake2
+ else cp standalone/service_harddrake $RPM_BUILD_ROOT%_initrddir/harddrake2
+fi
mv ${RPM_BUILD_ROOT}%{_sbindir}/net_monitor \
${RPM_BUILD_ROOT}%{_sbindir}/net_monitor.real
@@ -127,11 +132,8 @@ cat > $RPM_BUILD_ROOT%_menudir/%name <<EOF
command="/usr/sbin/harddrake"\
icon="harddrake.png"
EOF
-mkdir -p $RPM_BUILD_ROOT%_initrddir/
-mv $RPM_BUILD_ROOT%_sbindir/service_harddrake $RPM_BUILD_ROOT%_initrddir/harddrake2
-
%find_lang libDrakX
-
+cat libDrakX.lang >> %name.list
%clean
rm -rf $RPM_BUILD_ROOT
@@ -168,7 +170,7 @@ done
%clean_menus
-%files newt -f %{name}.list -f libDrakX.lang
+%files newt -f %name.list
%defattr(-,root,root)
%config(noreplace) /etc/security/fileshare.conf
%doc diskdrake/diskdrake.html