template (1212B)
1# Template file for 'lilo' 2pkgname=lilo 3version=24.2 4revision=5 5archs="i686* x86_64*" 6hostmakedepends="bin86" 7makedepends="device-mapper-devel" 8short_desc="Standard Linux boot loader" 9maintainer="Dash Eclipse <dashezup@disroot.org>" 10license="BSD-3-Clause" 11homepage="http://www.joonet.de/lilo" 12distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz" 13checksum=e158f19de4560c935ebe0507c21b79bff17618b9230d8076fe8c5fff9fdbd5b1 14tags="ezup" 15 16pre_build() { 17 sed -i Makefile src/Makefile \ 18 -e 's|^\tmake|\t$(MAKE)|g' \ 19 -e '/images install/d' \ 20 -e '/images all/d' 21} 22do_build() { 23 # LILO needs LC_ALL=C 24 LC_ALL=C make CC=${CC} CFLAGS="$CFLAGS $LDFLAGS" ${makejobs} all 25} 26 27do_install() { 28 vmkdir usr/bin 29 make DESTDIR=${DESTDIR} install 30 mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin 31 mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin 32 33 rm ${DESTDIR}/etc/lilo.conf_example 34 for file in sample/*.conf; do 35 vsconf ${file} 36 done 37 38 # Setup kernel hooks 39 rm -rf ${DESTDIR}/etc/initramfs ${DESTDIR}/etc/kernel 40 vinstall ${FILESDIR}/kernel.d/lilo.post-install 750 \ 41 etc/kernel.d/post-install 50-lilo 42 vinstall ${FILESDIR}/kernel.d/lilo.post-remove 750 \ 43 etc/kernel.d/post-remove 50-lilo 44 45 vlicense COPYING 46}