diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-09 08:43:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-09 08:43:55 +0000 |
commit | 18df03007b63e603bd46eaacd8404c2e34fe4ca9 (patch) | |
tree | 7153ee697417590be8e41083817626d6fd71219c /perl-install/drakxtools.spec | |
parent | 038acd20992b4994ba357f3ca56ad9510941217c (diff) | |
download | drakx-18df03007b63e603bd46eaacd8404c2e34fe4ca9.tar drakx-18df03007b63e603bd46eaacd8404c2e34fe4ca9.tar.gz drakx-18df03007b63e603bd46eaacd8404c2e34fe4ca9.tar.bz2 drakx-18df03007b63e603bd46eaacd8404c2e34fe4ca9.tar.xz drakx-18df03007b63e603bd46eaacd8404c2e34fe4ca9.zip |
- harddrake:
o don't pollute sbin namespace with one shot scripts
o add run wrapper script for harddrake service
o disable ?dm part
o timeout configurator offer to 5 seconds
Diffstat (limited to 'perl-install/drakxtools.spec')
-rw-r--r-- | perl-install/drakxtools.spec | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/perl-install/drakxtools.spec b/perl-install/drakxtools.spec index eb775d4da..925c1426b 100644 --- a/perl-install/drakxtools.spec +++ b/perl-install/drakxtools.spec @@ -1,7 +1,7 @@ Summary: The drakxtools (XFdrake, diskdrake, keyboarddrake, mousedrake...) Name: drakxtools Version: 1.1.9 -Release: 42mdk +Release: 43mdk Url: http://www.linux-mandrake.com/en/drakx.php3 Source0: %name-%version.tar.bz2 License: GPL @@ -184,7 +184,7 @@ cat > $RPM_BUILD_ROOT%_menudir/harddrake-ui <<EOF icon="harddrake.png" EOF -cat > $RPM_BUILD_ROOT%_sbindir/convert-harddrake <<EOF +cat > $RPM_BUILD_ROOT%_datadir/harddrake/convert <<EOF #!/usr/bin/perl use Storable; @@ -198,7 +198,18 @@ cat > $RPM_BUILD_ROOT%_sysconfdir/X11/xinit.d/harddrake2 <<EOF #!/bin/sh exec /usr/share/harddrake/service_harddrake X11 EOF -chmod +x $RPM_BUILD_ROOT{%_sbindir/convert-harddrake,%_sysconfdir/X11/xinit.d/harddrake2} + +cat > $RPM_BUILD_ROOT%_datadir/harddrake/confirm <<EOF +#!/usr/bin/perl +use lib qw(/usr/lib/libDrakX); +use interactive; + +my \$in = interactive->vnew; +my $res = \$in->ask_okcancel(\$ARGV[0], \$ARGV[1], 1); +$in->exit($res); +EOF + +chmod +x $RPM_BUILD_ROOT{%_datadir/harddrake/*,%_sysconfdir/X11/xinit.d/harddrake2} %find_lang libDrakX cat libDrakX.lang >> %name.list @@ -236,7 +247,7 @@ done %_preun_service harddrake %postun -n harddrake -file /etc/sysconfig/harddrake2/previous_hw | fgrep -q perl && %_sbindir/convert-harddrake || : +file /etc/sysconfig/harddrake2/previous_hw | fgrep -q perl && %_datadir/harddrake/convert || : %files newt -f %name.list %defattr(-,root,root) @@ -255,9 +266,8 @@ file /etc/sysconfig/harddrake2/previous_hw | fgrep -q perl && %_sbindir/convert- %config(noreplace) %_initrddir/harddrake %dir /etc/sysconfig/harddrake2/ %config(noreplace) /etc/sysconfig/harddrake2/previous_hw -%_datadir/harddrake/service_harddrake -%_sbindir/convert-harddrake -%_sysconfdir/X11/xinit.d/harddrake2 +%_datadir/harddrake/* +#%_sysconfdir/X11/xinit.d/harddrake2 %files -n harddrake-ui %defattr(-,root,root) @@ -279,6 +289,12 @@ file /etc/sysconfig/harddrake2/previous_hw | fgrep -q perl && %_sbindir/convert- %config(noreplace) %_sysconfdir/logrotate.d/drakxtools-http %changelog +* Sun Sep 8 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1.9-43mdk +- harddrake: + o don't pollute sbin namespace with one shot scripts + o add run wrapper script for harddrake service + o disable ?dm part + * Sat Sep 7 2002 Daouda LO <daouda@mandrakesoft.com> 1.1.9-42mdk - cvs up before packaging (fix messy drakboot conf). |