Mon Dec 17 03:03:47 2018 UTC ()
Explicitly NOT_FOR_PLATFORM where not yet supported.


(schmonz)
diff -r1.4 -r1.5 pkgsrc/pkgtools/rc.d-boot/Makefile

cvs diff -r1.4 -r1.5 pkgsrc/pkgtools/rc.d-boot/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/rc.d-boot/Makefile 2018/12/16 05:41:01 1.4
+++ pkgsrc/pkgtools/rc.d-boot/Makefile 2018/12/17 03:03:47 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.4 2018/12/16 05:41:01 schmonz Exp $ 1# $NetBSD: Makefile,v 1.5 2018/12/17 03:03:47 schmonz Exp $
2# 2#
3 3
4PKGNAME= rc.d-boot-20181211 4PKGNAME= rc.d-boot-20181211
5CATEGORIES= pkgtools 5CATEGORIES= pkgtools
6 6
7MAINTAINER= schmonz@NetBSD.org 7MAINTAINER= schmonz@NetBSD.org
8COMMENT= Run package rc.d scripts at boot on any supported OS 8COMMENT= Run package rc.d scripts at boot on any supported OS
9LICENSE= 2-clause-bsd 9LICENSE= 2-clause-bsd
10 10
11ONLY_FOR_PLATFORM= # empty by default 11ONLY_FOR_PLATFORM= # empty by default
12 12
13.include "../../mk/bsd.prefs.mk" 13.include "../../mk/bsd.prefs.mk"
14 14
@@ -38,26 +38,28 @@ RCDBOOT_STYLE= darwin-launchd @@ -38,26 +38,28 @@ RCDBOOT_STYLE= darwin-launchd
38CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/org.pkgsrc.rc.d-boot.plist \ 38CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/org.pkgsrc.rc.d-boot.plist \
39 /Library/LaunchDaemons/org.pkgsrc.rc.d-boot.plist 39 /Library/LaunchDaemons/org.pkgsrc.rc.d-boot.plist
40.elif ${OPSYS} == "FreeBSD" && exists(/etc/rc.d) 40.elif ${OPSYS} == "FreeBSD" && exists(/etc/rc.d)
41ONLY_FOR_PLATFORM+= ${OPSYS}-*-* 41ONLY_FOR_PLATFORM+= ${OPSYS}-*-*
42RCDBOOT_STYLE= freebsd-native 42RCDBOOT_STYLE= freebsd-native
43.elif ${OPSYS} == "Linux" && exists(/etc/systemd/system) 43.elif ${OPSYS} == "Linux" && exists(/etc/systemd/system)
44ONLY_FOR_PLATFORM+= ${OPSYS}-*-* 44ONLY_FOR_PLATFORM+= ${OPSYS}-*-*
45RCDBOOT_STYLE= linux-systemd 45RCDBOOT_STYLE= linux-systemd
46CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/pkgsrc-rc.d-boot.service \ 46CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/pkgsrc-rc.d-boot.service \
47 /etc/systemd/system/pkgsrc-rc.d-boot.service 47 /etc/systemd/system/pkgsrc-rc.d-boot.service
48.elif ${OPSYS} == "NetBSD" && exists(/etc/rc.d) 48.elif ${OPSYS} == "NetBSD" && exists(/etc/rc.d)
49ONLY_FOR_PLATFORM+= ${OPSYS}-*-* 49ONLY_FOR_PLATFORM+= ${OPSYS}-*-*
50RCDBOOT_STYLE= netbsd-native 50RCDBOOT_STYLE= netbsd-native
 51.else
 52NOT_FOR_PLATFORM+= ${OPSYS}-*-*
51.endif 53.endif
52 54
53INSTALLATION_DIRS= sbin share/examples/${PKGBASE} 55INSTALLATION_DIRS= sbin share/examples/${PKGBASE}
54 56
55do-extract: 57do-extract:
56 ${CP} -R ${FILESDIR} ${WRKSRC} 58 ${CP} -R ${FILESDIR} ${WRKSRC}
57 59
58do-install: 60do-install:
59. for i in org.pkgsrc.rc.d-boot.plist \ 61. for i in org.pkgsrc.rc.d-boot.plist \
60 pkgsrc-rc.d-boot.service 62 pkgsrc-rc.d-boot.service
61 ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}/ 63 ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}/
62. endfor 64. endfor
63 ${INSTALL_SCRIPT} ${WRKSRC}/rc.d-boot ${DESTDIR}${PREFIX}/sbin/ 65 ${INSTALL_SCRIPT} ${WRKSRC}/rc.d-boot ${DESTDIR}${PREFIX}/sbin/