wok-current rev 16073
Add hfsprescue
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 14 10:24:30 2014 +0000 (2014-03-14) |
parents | 893447290d82 |
children | fff2fdfa76f3 |
files | hfsprescue/receipt syslinux/stuff/iso2exe/init |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hfsprescue/receipt Fri Mar 14 10:24:30 2014 +0000 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="hfsprescue" 1.7 +VERSION="0.3" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="HFS+ recovery tool." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.plop.at/en/hfsprescue.html" 1.14 +WGET_URL="http://download.plop.at/files/$PACKAGE/$TARBALL" 1.15 + 1.16 +DEPENDS="gcc-lib-base" 1.17 +BUILD_DEPENDS="" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.23 + --mandir=/usr/share/man \ 1.24 + $CONFIGURE_ARGS && 1.25 + make && 1.26 + make DESTDIR=$DESTDIR install 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/usr 1.33 + cp -a $install/usr/bin $fs/usr 1.34 +} 1.35 +
2.1 --- a/syslinux/stuff/iso2exe/init Thu Mar 13 16:12:30 2014 +0000 2.2 +++ b/syslinux/stuff/iso2exe/init Fri Mar 14 10:24:30 2014 +0000 2.3 @@ -252,14 +252,13 @@ 2.4 unix2dos >> /mnt/boot.ini <<EOT 2.5 C:\\slitaz\\boot\\tazboot.exe="SliTaz" 2.6 EOT 2.7 - grep -qs menuitem /mnt/config.sys && ! grep -q tazboot /mnt/config.sys && 2.8 +false && 2.9 + grep -qis menuitem /mnt/config.sys && ! grep -qi tazboot /mnt/config.sys && 2.10 echo "Update config.sys ..." && 2.11 - sed -i 's/menudefault=/menuitem=slitaz,SliTaz\r\n&/' /mnt/config.sys && 2.12 - echo -e "[slitaz]\r" >> /mnt/config.sys && 2.13 - echo "Update autoexec.bat ..." && 2.14 - unix2dos >> /mnt/autoexec.bat <<EOT 2.15 -:slitaz 2.16 -\\slitaz\\boot\\tazboot.exe 2.17 + sed -i 's/menudefault/menuitem SLITAZ, SliTaz\r\n&/' /mnt/config.sys && 2.18 + unix2dos >> /mnt/config.sys <<EOT 2.19 +[SLITAZ] 2.20 +install=\\slitaz\\boot\\tazboot.exe 2.21 EOT 2.22 return 0 2.23 } 2.24 @@ -316,6 +315,7 @@ 2.25 [ -x /init1 ] || return 2.26 umount -d /media/cdrom 2.27 umount /mnt/slitaz 2.28 + rm -f /dev/cdrom 2.29 umount /mnt 2.30 mkdir /mnt/dos 2.31 umount_proc 2.32 @@ -574,6 +574,7 @@ 2.33 { 2.34 umount_loram 2.35 umount -d /media/cdrom 2.36 + rm -f /dev/cdrom 2.37 umount /mnt 2.38 umount_proc 2.39 exec /init