blob: 750a2302e7aa51f870a925a4b816f1de3971d5f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.6 2012/10/03 21:57:39 wiz Exp $
DISTNAME= lilo-22.8.src
PKGREVISION= 2
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
PKG_DESTDIR_SUPPORT= user-destdir
# This is LInux LOader; it can load different operating systems.
# Build untested on other operating systems.
ONLY_FOR_PLATFORM= Linux-*-*
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
# 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 perl:run
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
# TODO: later handle boot directory too?
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 \
share/lilo share/doc/lilo
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lilo ${DESTDIR}${PREFIX}/sbin/lilo
${INSTALL_SCRIPT} ${WRKSRC}/mkrescue ${DESTDIR}${PREFIX}/sbin/mkrescue
${INSTALL_SCRIPT} ${WRKSRC}/keytab-lilo.pl ${DESTDIR}${PREFIX}/sbin/keytab-lilo
${INSTALL_MAN} ${WRKSRC}/manPages/lilo.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
${INSTALL_MAN} ${WRKSRC}/manPages/lilo.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
${INSTALL_MAN} ${WRKSRC}/manPages/mkrescue.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/lilo
${INSTALL_DATA} ${WRKSRC}/sample/lilo.sample.conf ${DESTDIR}${PREFIX}/share/lilo
${INSTALL_DATA} ${FILESDIR}/lilo.conf.example ${DESTDIR}${PREFIX}/share/lilo
.include "../../mk/bsd.pkg.mk"
|