c8c69a55da
Changes since 1.2: - Fixed several bugs in fast mode `-f' (directories were cleaned even if this flag was given, so it was of no use). - Ability to keep tools while cleaning (KEEP_TOOLS variable); rebuild them only when necessary (not found). - When directly calling "make" or "config", use the binaries in the TOOLDIR directory, not the ones of the current system. - Fixed a typo in usage (pointed by Sergio Jiménez).
70 lines
2.3 KiB
Makefile
70 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2002/12/08 11:37:18 jmmv Exp $
|
|
#
|
|
|
|
DISTNAME= sysbuild-1.3
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= jmmv@netbsd.org
|
|
COMMENT= Automate NetBSD system and kernel unprivileged builds
|
|
|
|
EXTRACT_ONLY= # empty
|
|
NO_CHECKSUM= yes
|
|
NO_PATH= yes
|
|
NO_CONFIGURE= yes
|
|
WRKSRC= ${WRKDIR}
|
|
CHECK_SHLIBS= no
|
|
SHLIB_HANDLING= no
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# SYSBUILD_HOME - Home directory of SYSBUILD_USER user.
|
|
SYSBUILD_HOMEDIR?= /home/sysbuild
|
|
# SYSBUILD_USER - Unpriviledged user that runs the build script.
|
|
SYSBUILD_USER?= sysbuild
|
|
# SYSBUILD_OBJGROUP - Group that owns build files (should not be shared).
|
|
SYSBUILD_OBJGROUP?= wobj
|
|
# SYSBUILD_SRCGROUP - Group that owns sources (may be shared).
|
|
SYSBUILD_SRCGROUP?= wsrc
|
|
|
|
FILES_SUBST+= SYSBUILD_HOMEDIR=${SYSBUILD_HOMEDIR}
|
|
FILES_SUBST+= SYSBUILD_USER=${SYSBUILD_USER}
|
|
FILES_SUBST+= SYSBUILD_OBJGROUP=${SYSBUILD_OBJGROUP}
|
|
FILES_SUBST+= SYSBUILD_SRCGROUP=${SYSBUILD_SRCGROUP}
|
|
FILES_SUBST+= EGDIR=${EGDIR}
|
|
MESSAGE_SUBST+= SYSBUILD_USER=${SYSBUILD_USER}
|
|
|
|
DEINSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
|
|
INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
|
|
|
|
PKG_GROUPS= ${SYSBUILD_OBJGROUP} ${SYSBUILD_SRCGROUP}
|
|
PKG_USERS= ${SYSBUILD_USER}:${SYSBUILD_OBJGROUP}::`hostname`\\ sysbuild\\ output:${SYSBUILD_HOMEDIR}:${SH}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/sysbuild
|
|
|
|
do-build:
|
|
@${ECHO} "Generating sysbuild.sh..."
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/sysbuild.sh > \
|
|
${WRKSRC}/sysbuild.sh
|
|
@${ECHO} "Generating sysbuild.8..."
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/sysbuild.8 > \
|
|
${WRKSRC}/sysbuild.8
|
|
@${ECHO} "Generating sample default.conf..."
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/default.conf > \
|
|
${WRKSRC}/default.conf
|
|
@${ECHO} "Generating sample crontab..."
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/crontab > ${WRKSRC}/crontab
|
|
@${ECHO} "Generating sample profile..."
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/profile > ${WRKSRC}/profile
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sysbuild
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sysbuild.sh ${PREFIX}/bin/sysbuild
|
|
${INSTALL_MAN} ${WRKSRC}/sysbuild.8 ${PREFIX}/man/man8/sysbuild.8
|
|
${INSTALL_DATA} ${WRKSRC}/default.conf ${EGDIR}/default.conf
|
|
${INSTALL_DATA} ${WRKSRC}/crontab ${EGDIR}/crontab
|
|
${INSTALL_DATA} ${WRKSRC}/profile ${EGDIR}/profile
|
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|