wok view mindi/receipt @ rev 25037

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