summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-23 13:11:38 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-23 13:11:38 +0000
commit5be9275821adc14c0b1da85a89a5b9e5b1fde6a5 (patch)
treeb07edb1ff939d8bd2225b1ff77dbef8918a728d2 /perl-install
parent2cb1420b509d0db13754aa899169b1784cc997e5 (diff)
downloaddrakx-5be9275821adc14c0b1da85a89a5b9e5b1fde6a5.tar
drakx-5be9275821adc14c0b1da85a89a5b9e5b1fde6a5.tar.gz
drakx-5be9275821adc14c0b1da85a89a5b9e5b1fde6a5.tar.bz2
drakx-5be9275821adc14c0b1da85a89a5b9e5b1fde6a5.tar.xz
drakx-5be9275821adc14c0b1da85a89a5b9e5b1fde6a5.zip
final changes batch
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/drakxtools.spec23
1 files changed, 22 insertions, 1 deletions
diff --git a/perl-install/drakxtools.spec b/perl-install/drakxtools.spec
index 3ced14c20..7059dfaca 100644
--- a/perl-install/drakxtools.spec
+++ b/perl-install/drakxtools.spec
@@ -178,6 +178,20 @@ cat > $RPM_BUILD_ROOT%_menudir/harddrake-ui <<EOF
command="/usr/sbin/harddrake2"\
icon="harddrake.png"
EOF
+
+cat > $RPM_BUILD_ROOT%_sbindir/convert-harddrake <<EOF
+#!/usr/bin/perl -w
+use diagnostics;
+use strict;
+use Storable;
+
+my \$last_boot_config = "/etc/sysconfig/harddrake2/previous_hw";
+
+my \$config = do \$last_boot_config;
+store \$config, \$last_boot_config;
+EOF
+chmod +x $RPM_BUILD_ROOT%_sbindir/convert-harddrake
+
%find_lang libDrakX
cat libDrakX.lang >> %name.list
@@ -209,6 +223,8 @@ done
%postun -n harddrake-ui
%clean_menus
+%triggerpostun -n harddrake -- harddrake <= 1.1.0
+%_sbindir/convert-harddrake
%files newt -f %name.list
%defattr(-,root,root)
@@ -228,6 +244,7 @@ done
%dir /etc/sysconfig/harddrake2/
%config(noreplace) /etc/sysconfig/harddrake2/previous_hw
%_datadir/harddrake/service_harddrake
+%_sbindir/convert-harddrake
%files -n harddrake-ui
%defattr(-,root,root)
@@ -246,7 +263,11 @@ done
%changelog
* Tue Jul 23 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1.8-9mdk
-- reorganization cleanup:
+- harddrake :
+ o don't show "cancel" button in about and help windows
+ o service: convert config file from plain perl to Storable binary
+ file (faster startup)
+- general reorganization cleanup:
o move interactive_* into interactive::*
o move partition_table_* into partition_table::*
- XFdrake: more cleanups