From d7fdde0a0649c507a57a1cc1834b14b0c3356a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 14 Feb 2015 06:57:13 +0100 Subject: [PATCH] New package: lilo-24.1 --- srcpkgs/lilo/template | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/lilo/template diff --git a/srcpkgs/lilo/template b/srcpkgs/lilo/template new file mode 100644 index 0000000000..67a1487906 --- /dev/null +++ b/srcpkgs/lilo/template @@ -0,0 +1,31 @@ +# Template file for 'lilo' +pkgname=lilo +version=24.1 +revision=1 +makedepends="bin86" +depends="device-mapper" +conf_files="/etc/lilo.conf" +short_desc="Standard Linux boot loader" +maintainer="Sören Tempel " +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 + LC_ALL=C make all +} + +do_install() { + make DESTDIR=${DESTDIR} install + rm -r ${DESTDIR}/etc/initramfs ${DESTDIR}/etc/kernel + mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin + mv ${DESTDIR}/etc/lilo.conf_example ${DESTDIR}/etc/lilo.conf +}