summaryrefslogtreecommitdiff
path: root/sysutils/lilo/Makefile
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2008-03-08 00:46:23 +0000
committerreed <reed@pkgsrc.org>2008-03-08 00:46:23 +0000
commit0cc93da3cbc73d93a94c206e5f423d33c0fd38e1 (patch)
tree9dbe72a080175c50dbb165db051b7ccf7b97938a /sysutils/lilo/Makefile
parent60a8b26dfb7794ff4f87e0dd0aaf35927c62ceb6 (diff)
downloadpkgsrc-0cc93da3cbc73d93a94c206e5f423d33c0fd38e1.tar.gz
Import new package from pkgsrc-wip: lilo
LILO is the Linux boot loader. It includes combined boot sector, generic chain loader, map installer, and a simple boot partition setter. LILO allows booting from multiple disks, and can have menus for choosing different boot images. LILO is also able to pass command-line options to the Linux kernel. LILO does not depend on a specific file system, can boot Linux kernel images from floppy disks and from hard disks, and can even act as a "boot manager" for other operating systems. LILO should be ran whenever any part of the system that it knows about changes, e.g. after installing a new kernel.
Diffstat (limited to 'sysutils/lilo/Makefile')
-rw-r--r--sysutils/lilo/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/sysutils/lilo/Makefile b/sysutils/lilo/Makefile
new file mode 100644
index 00000000000..e041180ee3c
--- /dev/null
+++ b/sysutils/lilo/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/03/08 00:46:23 reed Exp $
+
+DISTNAME= lilo-22.8.src
+PKGNAME= ${DISTNAME:S/.src//}
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SUNSITE:=system/boot/lilo/} \
+ http://home.san.rr.com/johninsd/pub/linux/lilo/
+
+MAINTAINER= reed@reedmedia.net
+HOMEPAGE= http://lilo.go.dyndns.org/
+COMMENT= Generic boot loader for Linux
+
+# This is LInux LOader; it can load different operating systems.
+# Build untested on other operating systems.
+ONLY_FOR_PLATFORM= Linux-*-*
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+# Don't force perl for extra tool -- maybe a MESSAGE?
+#USE_PERL5= YES
+
+#BUILD_DEPENDS+= dev86>=0.16.10:../../devel/dev86
+# bcc is old and doesn't have -v switch to indicate version
+#BUILD_DEPENDS+= bcc>=95.3.12:../../devel/bcc
+BUILD_DEPENDS+= bin86>=0.16.10:../../devel/bin86
+BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
+
+USE_TOOLS+= gmake
+MAKE_ENV+= ROOT=${PREFIX:Q}
+
+CONF_FILES= ${PREFIX}/share/lilo/lilo.conf.example ${PKG_SYSCONFDIR}/lilo.conf
+
+REPLACE_INTERPRETER+= bash
+REPLACE.bash.old= .*/bin/bash
+REPLACE.bash.new= ${SH}
+REPLACE_FILES.bash= mkrescue
+
+REPLACE_INTERPRETER+= perl
+REPLACE.perl.old= .*/bin/perl
+REPLACE.perl.new= ${PERL5}
+REPLACE_FILES.perl= keytab-lilo.pl
+
+post-patch:
+ ${CP} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig
+ ${SED} -e "s:@@PREFIX@@:${PREFIX}:" \
+ -e "s:@@PKG_SYSCONFDIR@@:${PKG_SYSCONFDIR}:" \
+ < ${WRKSRC}/config.h.orig > ${WRKSRC}/config.h
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/lilo ${PREFIX}/sbin/lilo
+ ${INSTALL_SCRIPT} ${WRKSRC}/mkrescue ${PREFIX}/sbin/mkrescue
+ ${INSTALL_SCRIPT} ${WRKSRC}/keytab-lilo.pl ${PREFIX}/sbin/keytab-lilo
+ ${INSTALL_MAN} ${WRKSRC}/manPages/lilo.8 ${PREFIX}/${PKGMANDIR}/man8
+ ${INSTALL_MAN} ${WRKSRC}/manPages/lilo.conf.5 ${PREFIX}/${PKGMANDIR}/man5
+ ${INSTALL_MAN} ${WRKSRC}/manPages/mkrescue.8 ${PREFIX}/${PKGMANDIR}/man8
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lilo
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/lilo
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/lilo
+ ${INSTALL_DATA} ${WRKSRC}/sample/lilo.sample.conf ${PREFIX}/share/lilo
+ ${INSTALL_DATA} ${FILESDIR}/lilo.conf.example ${PREFIX}/share/lilo
+
+.include "../../mk/bsd.pkg.mk"