Changeset 202 in MondoRescue for branches/2.05/mindi-failsafe-kernel


Ignore:
Timestamp:
Dec 14, 2005, 3:53:19 PM (18 years ago)
Author:
bcornec
Message:

Update on failsafe kernel to adapt it to the new mindi layout in /usr/lib/mindi

Location:
branches/2.05/mindi-failsafe-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.05/mindi-failsafe-kernel/install.sh

    r30 r202  
    55    exit 1
    66fi
    7 local=/usr/local
    8 mkdir -p $local/share/mindi
    9 mkdir -p $local/sbin
    107
    11 cp --parents -pRdf * $local/share/mindi/
    12 exit 0
     8if [ "_$PREFIX" != "_" ]; then
     9        local=$PREFIX/usr
     10        if [ -f /usr/local/sbin/mindi ]; then
     11                echo "WARNING: /usr/local/sbin/mindi exists. You should probably
     12 remove it !"
     13        fi
     14        echo $PATH | grep /usr/sbin > /dev/null || echo "Warning - your PATH env
     15ironmental variable is BROKEN. Please add /usr/sbin to your PATH."
     16else
     17        local=/usr/local
     18        if [ -f /usr/sbin/mindi ]; then
     19                echo "WARNING: /usr/sbin/mindi exists. You should probably remov
     20e the mindi package !"
     21        fi
     22        echo $PATH | grep $local/sbin > /dev/null || echo "Warning - your PATH e
     23nvironmental variable is BROKEN. Please add $local/sbin to your PATH."
     24
     25fi
     26
     27echo "mindi-failsafe-kernel will be installed under $local"
     28
     29echo "Creating target directories ..."
     30mkdir -p $local/lib/mindi
     31
     32echo "Copying files ..."
     33cp -a lib.tar.bz2 vmlinuz $local/lib/mindi/
  • branches/2.05/mindi-failsafe-kernel/mindi-kernel-1.0.spec

    r35 r202  
    22# $Id$
    33#
    4 %define _prefix /usr/local
    54Summary:    A program that creates emergency boot disks/CDs using your kernel, tools and modules.
    65Name:       mindi-kernel
    7 Version:    1.0
     6Version:    1.05
    87Release:    1
    98Copyright:  GPL
     
    1312BuildRoot:  /tmp/%{name}-%{version}
    1413Requires:   binutils
    15 Prefix:     /usr/local
    1614Autoreq:    0
    1715
     
    2523%install
    2624%{__rm} -rf $RPM_BUILD_ROOT
    27 MINDIDIR=$RPM_BUILD_ROOT%{_datadir}/mindi
    28 %{__mkdir_p} $MINDIDIR $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_sysconfdir}/mindi
    29 %{__cp} -a * $MINDIDIR
    30 #
     25export PREFIX=${RPM_BUILD_ROOT}
     26./install.sh
    3127
    3228%clean
     
    3531%files
    3632%defattr(-,root,root,-)
    37 %{_datadir}/mindi
     33%{_libdir}/mindi
    3834
    3935%changelog
     36* Wed Dec 14 2005 Bruno Cornec <bcornec@users.berlios.de> 1.05-1
     37- adapted to the new mindi location (in 1.05-r194 and upper)
     38
    4039* Mon May 19 2003 Hugo Rabson <hugorabson@msn.com> 1.0-1
    4140- initial release
Note: See TracChangeset for help on using the changeset viewer.