wok-current view lilo/receipt @ rev 25639
Fix lilo receipt
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Jan 16 18:22:10 2024 +0000 (11 months ago) |
parents | e6c086aad08f |
children | 5926178cd6fa |
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Patches from slackware for mem > 4G and nvme
28 patch -p1 < $stuff/lilo.ignore.usable.memory.above.4G.diff
29 patch -p1 < $stuff/lilo.nvme.support.diff
30 make alles &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/examples/lilo
38 cp -a $install/sbin $fs
39 cp $stuff/lilo.conf $fs/usr/share/examples/lilo
40 }
42 post_install()
43 {
44 cat <<EOT
46 # Copy example configuration file to /etc:
47 cp /usr/share/examples/lilo/lilo.conf /etc/lilo.conf
49 # To modify default configuration, edit
50 /etc/lilo.conf
52 # To install lilo to MBR on device sda enter:
53 lilo
54 EOT
55 }