wok annotate mindi/receipt @ rev 24614
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 06 21:04:14 2022 +0000 (2022-03-06) |
parents | 241fb98cab1c |
children |
rev | line source |
---|---|
erjo@13493 | 1 # SliTaz package receipt. |
erjo@13493 | 2 |
erjo@13493 | 3 PACKAGE="mindi" |
erjo@13493 | 4 VERSION="2.1.3" |
erjo@13493 | 5 CATEGORY="system-tools" |
erjo@13493 | 6 SHORT_DESC="GPL disaster recovery solution." |
erjo@13493 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
erjo@13493 | 9 WEB_SITE="http://www.mondorescue.org/" |
erjo@13493 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24614 | 11 WGET_URL="http://www.mondorescue.org/ftp/src/$TARBALL" |
erjo@13493 | 12 |
erjo@13493 | 13 DEPENDS="syslinux syslinux-extra" |
erjo@13493 | 14 BUILD_DEPENDS="" |
erjo@13493 | 15 |
pascal@24453 | 16 # What is the latest version available today? |
pascal@24453 | 17 current_version() |
pascal@24453 | 18 { |
pascal@24453 | 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24453 | 21 } |
pascal@24453 | 22 |
erjo@13493 | 23 # Rules to configure and make the package. |
erjo@13493 | 24 compile_rules() |
erjo@13493 | 25 { |
pascal@20561 | 26 sed -i 's|uname -m|echo i686|' install.sh mindi parted2fdisk.pl |
erjo@13493 | 27 PREFIX=$install/usr \ |
erjo@13493 | 28 CONFDIR=$install/etc \ |
erjo@13493 | 29 CACHEDIR=$install/var/cache/mindi ./install.sh |
erjo@13493 | 30 } |
erjo@13493 | 31 |
erjo@13493 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@13493 | 33 genpkg_rules() |
erjo@13493 | 34 { |
erjo@13493 | 35 mkdir -p $fs/usr |
erjo@13493 | 36 |
erjo@13493 | 37 cp -a $install/usr/sbin $fs/usr |
erjo@13493 | 38 cp -a $install/usr/lib $fs/usr |
erjo@13493 | 39 cp -a $install/etc $fs/ |
erjo@13493 | 40 cp -a $install/var $fs/ |
erjo@13493 | 41 |
erjo@13493 | 42 #Fix path |
erjo@13493 | 43 sed -i -e "s!$install/!/!" $fs/etc/mindi/perl-scripts |
erjo@13493 | 44 sed -i -e "s!$install/!/!" $fs/usr/sbin/mindi |
erjo@13493 | 45 sed -i -e "s!/usr/lib/isolinux.bin!/boot/isolinux/isolinux.bin!" $fs/usr/sbin/mindi |
erjo@13493 | 46 } |