2015-02-14 05:57:13 +00:00
|
|
|
# Template file for 'lilo'
|
|
|
|
pkgname=lilo
|
2015-11-26 06:22:34 +00:00
|
|
|
version=24.2
|
|
|
|
revision=1
|
2015-04-26 10:08:47 +00:00
|
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
2015-02-15 09:31:13 +00:00
|
|
|
hostmakedepends="bin86"
|
|
|
|
makedepends="device-mapper-devel"
|
2015-02-14 05:57:13 +00:00
|
|
|
short_desc="Standard Linux boot loader"
|
2015-11-26 06:22:34 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2015-02-14 05:57:13 +00:00
|
|
|
homepage="https://alioth.debian.org/projects/lilo/"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
|
2015-11-26 06:22:34 +00:00
|
|
|
checksum=e158f19de4560c935ebe0507c21b79bff17618b9230d8076fe8c5fff9fdbd5b1
|
2015-02-14 05:57:13 +00:00
|
|
|
|
|
|
|
pre_build() {
|
2015-03-18 10:30:54 +00:00
|
|
|
sed -i Makefile src/Makefile \
|
|
|
|
-e 's|^\tmake|\t$(MAKE)|g' \
|
|
|
|
-e '/images install/d' \
|
|
|
|
-e '/images all/d'
|
2015-02-14 05:57:13 +00:00
|
|
|
}
|
|
|
|
do_build() {
|
|
|
|
# LILO needs LC_ALL=C
|
2015-11-26 06:22:34 +00:00
|
|
|
LC_ALL=C make CC=${CC} CFLAGS="$CFLAGS $LDFLAGS" ${makejobs} all
|
2015-02-14 05:57:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2015-06-02 14:29:36 +00:00
|
|
|
vmkdir usr/bin
|
2015-02-14 05:57:13 +00:00
|
|
|
make DESTDIR=${DESTDIR} install
|
2015-06-02 14:29:36 +00:00
|
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
|
|
|
|
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
|
2015-02-14 15:57:45 +00:00
|
|
|
|
|
|
|
rm ${DESTDIR}/etc/lilo.conf_example
|
2015-03-18 10:50:08 +00:00
|
|
|
for file in sample/*.conf; do
|
|
|
|
vsconf ${file}
|
|
|
|
done
|
2015-02-14 15:57:45 +00: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 05:57:13 +00:00
|
|
|
}
|