void-packages/srcpkgs/lilo/template

44 lines
1.2 KiB
Bash
Raw Normal View History

2015-02-14 06:57:13 +01:00
# Template file for 'lilo'
pkgname=lilo
version=24.1
2015-06-02 16:29:36 +02:00
revision=7
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
hostmakedepends="bin86"
makedepends="device-mapper-devel"
2015-02-14 06:57:13 +01:00
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() {
2015-03-18 11:30:54 +01:00
sed -i Makefile src/Makefile \
-e 's|^\tmake|\t$(MAKE)|g' \
-e '/images install/d' \
-e '/images all/d'
2015-02-14 06:57:13 +01:00
}
do_build() {
# LILO needs LC_ALL=C
LC_ALL=C make CC=${CC} ${makejobs} all
2015-02-14 06:57:13 +01:00
}
do_install() {
2015-06-02 16:29:36 +02:00
vmkdir usr/bin
2015-02-14 06:57:13 +01:00
make DESTDIR=${DESTDIR} install
2015-06-02 16:29:36 +02:00
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
2015-02-14 16:57:45 +01:00
rm ${DESTDIR}/etc/lilo.conf_example
for file in sample/*.conf; do
vsconf ${file}
done
2015-02-14 16:57:45 +01:00
# 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 06:57:13 +01:00
}