diff options
Diffstat (limited to 'pkgtools/rc.d-boot/Makefile')
-rw-r--r-- | pkgtools/rc.d-boot/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgtools/rc.d-boot/Makefile b/pkgtools/rc.d-boot/Makefile index ead1203eccf..909f7e815bb 100644 --- a/pkgtools/rc.d-boot/Makefile +++ b/pkgtools/rc.d-boot/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2018/12/05 19:23:04 schmonz Exp $ +# $NetBSD: Makefile,v 1.2 2018/12/05 19:49:26 schmonz Exp $ # PKGNAME= rc.d-boot-20181205 @@ -7,10 +7,17 @@ CATEGORIES= pkgtools MAINTAINER= schmonz@NetBSD.org COMMENT= Run package rc.d scripts at boot on any supported OS -ONLY_FOR_PLATFORM= Darwin-*-* +ONLY_FOR_PLATFORM= Darwin-*-* NetBSD-*-* +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} != "NetBSD" DEPENDS+= rc.subr-[0-9]*:../../pkgtools/rc.subr DEPENDS+= rcorder-[0-9]*:../../pkgtools/rcorder +RCORDER= ${PREFIX}/sbin/rcorder +.else +RCORDER= /sbin/rcorder +.endif NO_CHECKSUM= yes NO_BUILD= yes @@ -18,10 +25,14 @@ NO_BUILD= yes SUBST_CLASSES= paths SUBST_STAGE.paths= pre-configure SUBST_FILES.paths= rc.d-boot org.pkgsrc.rc.d-boot.plist -SUBST_VARS.paths= PREFIX RCD_SCRIPTS_DIR +SUBST_VARS.paths= PREFIX RCD_SCRIPTS_DIR RCORDER + +FILES_SUBST+= OPSYS=${OPSYS:Q} +.if ${OPSYS} == "Darwin" CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/org.pkgsrc.rc.d-boot.plist \ /Library/LaunchDaemons/org.pkgsrc.rc.d-boot.plist +.endif INSTALLATION_DIRS= sbin share/examples/${PKGBASE} |