2015-02-14 05:57:13 +00:00
|
|
|
# Template file for 'lilo'
|
|
|
|
pkgname=lilo
|
|
|
|
version=24.1
|
2015-02-14 15:57:45 +00:00
|
|
|
revision=2
|
2015-02-15 09:31:13 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
hostmakedepends="bin86"
|
|
|
|
makedepends="device-mapper-devel"
|
2015-02-14 15:57:45 +00:00
|
|
|
make_dirs="/etc/lilo.d 0755 root root"
|
2015-02-14 05:57:13 +00:00
|
|
|
conf_files="/etc/lilo.conf"
|
|
|
|
short_desc="Standard Linux boot loader"
|
|
|
|
maintainer="Sören Tempel <soeren+void@soeren-tempel.net>"
|
|
|
|
homepage="https://alioth.debian.org/projects/lilo/"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
|
|
|
|
checksum=a15280edacb8bca31b9163d65e61270b8c06cb9ffea74374a3a42164a13d4532
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
# Don't install images
|
|
|
|
sed '/images install/d' -i Makefile
|
|
|
|
sed '/images all/d' -i Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
# LILO needs LC_ALL=C
|
2015-02-14 15:57:45 +00:00
|
|
|
export LC_ALL=C
|
|
|
|
make CC=${CC} all
|
2015-02-14 05:57:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin
|
2015-02-14 15:57:45 +00:00
|
|
|
|
|
|
|
# Setup config files
|
|
|
|
rm ${DESTDIR}/etc/lilo.conf_example
|
|
|
|
vinstall ${FILESDIR}/lilo.conf 600 etc
|
|
|
|
|
|
|
|
# Setup kernel hooks
|
|
|
|
rm -rf ${DESTDIR}/etc/initramfs ${DESTDIR}/etc/kernel
|
|
|
|
vinstall ${FILESDIR}/kernel.d/lilo.post-install 750 \
|
|
|
|
etc/kernel.d/post-install 50-lilo
|
|
|
|
vinstall ${FILESDIR}/kernel.d/lilo.post-remove 750 \
|
|
|
|
etc/kernel.d/post-remove 50-lilo
|
2015-02-14 05:57:13 +00:00
|
|
|
}
|