d50910ff17
* Don't overwrite $ISODIR/etc/profile every time chroot target is invoked, provide defaults only the first time we run it. * Ask interactively to the user if he/she wants to remove the current iso image found on $BASEDIR/$IMAGE_NAME and create a new one if that was selected.
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.14 2005/01/11 02:08:53 xtraeme Exp $
|
|
|
|
DISTNAME= mklivecd-0.9
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= xtraeme@NetBSD.org
|
|
COMMENT= Build a NetBSD i386 Live CD via command line
|
|
|
|
DEPENDS+= {cdrecord,cdrtools-ossdvd}-[0-9]*:../../sysutils/cdrecord
|
|
DEPENDS+= grub>=0.95:../../sysutils/grub
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
EXTRACT_ONLY= # empty
|
|
NO_CHECKSUM= YES
|
|
NO_CONFIGURE= YES
|
|
NO_BUILDLINK= YES
|
|
NO_BUILD= YES
|
|
|
|
INSTALLATION_DIRS= man/man8 sbin share/mklivecd
|
|
|
|
FILES= KERN-LIVECD personal_config
|
|
|
|
do-install:
|
|
.for f in mfs_rcd mklivecd.sh
|
|
@${SED} -e "s,@PREFIX@,${PREFIX},g" \
|
|
-e "s,@LOCALBASE@,${LOCALBASE},g" \
|
|
-e "s,@TAR@,${TAR},g" \
|
|
-e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
|
|
${FILESDIR}/${f} > ${WRKDIR}/${f}
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/mklivecd
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mklivecd.sh ${PREFIX}/sbin/mklivecd
|
|
${INSTALL_MAN} ${FILESDIR}/mklivecd.8 ${PREFIX}/man/man8
|
|
${INSTALL_DATA} ${WRKDIR}/mfs_rcd ${PREFIX}/share/mklivecd
|
|
.for F in ${FILES}
|
|
${INSTALL_DATA} ${FILESDIR}/${F} ${PREFIX}/share/mklivecd
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|