wok-current view lilo/receipt @ rev 25736
Add miss git-branch patch for cookutils
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jan 20 09:30:59 2025 +0000 (3 weeks ago) |
parents | 7e95bf4819fa |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lilo"
4 VERSION="24.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="LInux boot LOader."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.joonet.de/lilo/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}ftp/sources/$TARBALL"
14 BUILD_DEPENDS="dev86 libdevmapper"
15 DEPENDS="libdevmapper"
17 HOST_ARCH="i486 x86_64"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Patches from slackware for mem > 4G and nvme
30 patch -p1 < $stuff/lilo.ignore.usable.memory.above.4G.diff
31 patch -p1 < $stuff/lilo.nvme.support.diff
32 make alles &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share/examples/lilo
40 cp -a $install/sbin $fs
41 cp $stuff/lilo.conf $fs/usr/share/examples/lilo
42 }
44 post_install()
45 {
46 cat <<EOT
48 # Copy example configuration file to /etc:
49 cp /usr/share/examples/lilo/lilo.conf /etc/lilo.conf
51 # To modify default configuration, edit
52 /etc/lilo.conf
54 # To install lilo to MBR on device sda enter:
55 lilo
56 EOT
57 }