diff options
author | joerg <joerg> | 2009-02-10 00:25:00 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-02-10 00:25:00 +0000 |
commit | 8c85c5dd36f990ff81dd78b07127897e41f59e05 (patch) | |
tree | cc2b335c9c8f5ef0cafa853f9379419bd5507dba /pkgtools/rc.subr | |
parent | fafbe31abebe325d9a26bf323212d7af84305748 (diff) | |
download | pkgsrc-8c85c5dd36f990ff81dd78b07127897e41f59e05.tar.gz |
DESTDIR support.
Diffstat (limited to 'pkgtools/rc.subr')
-rw-r--r-- | pkgtools/rc.subr/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/pkgtools/rc.subr/Makefile b/pkgtools/rc.subr/Makefile index beec932c676..a0f33517bd7 100644 --- a/pkgtools/rc.subr/Makefile +++ b/pkgtools/rc.subr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2009/01/18 22:35:35 shattered Exp $ +# $NetBSD: Makefile,v 1.20 2009/02/10 00:25:00 joerg Exp $ # DISTNAME= rc.subr-20090118 @@ -10,14 +10,14 @@ MAINTAINER= grant@NetBSD.org HOMEPAGE= http://www.NetBSD.org/ COMMENT= Portable NetBSD rc.subr implementation for pkgsrc -ONLY_FOR_PLATFORM= Darwin-*-* FreeBSD-[0-4].*-* Interix-*-* -ONLY_FOR_PLATFORM+= Linux-*-* SunOS-*-* -ONLY_FOR_PLATFORM+= QNX-*-* +PKG_DESTDIR_SUPPORT= user-destdir + +#ONLY_FOR_PLATFORM= Darwin-*-* FreeBSD-[0-4].*-* Interix-*-* +#ONLY_FOR_PLATFORM+= Linux-*-* SunOS-*-* +#ONLY_FOR_PLATFORM+= QNX-*-* NO_BUILD= yes -NO_CHECKSUM= yes NO_CONFIGURE= yes -NO_MTREE= yes CHECK_FILES_SUPPORTED= no @@ -25,19 +25,18 @@ PLIST_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR:S/^\///} CONF_FILES+= ${PREFIX}etc/rc.conf.example ${PREFIX}etc/rc.conf -INSTALLATION_DIRS= etc +INSTALLATION_DIRS= etc ${RCD_SCRIPTS_DIR:S/^\///} do-extract: @${CP} -R ${FILESDIR} ${WRKSRC} do-install: - ${INSTALL_DATA_DIR} ${PREFIX}${RCD_SCRIPTS_DIR} - ${INSTALL_DATA} ${WRKSRC}/rc.conf.example ${PREFIX}etc/rc.conf.example - ${INSTALL_DATA} ${WRKSRC}/rc.subr ${PREFIX}etc/rc.subr - ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/DAEMON ${PREFIX}${RCD_SCRIPTS_DIR} - ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/LOGIN ${PREFIX}${RCD_SCRIPTS_DIR} - ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/NETWORKING ${PREFIX}${RCD_SCRIPTS_DIR} - ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/SERVERS ${PREFIX}${RCD_SCRIPTS_DIR} + ${INSTALL_DATA} ${WRKSRC}/rc.conf.example ${DESTDIR}${PREFIX}etc/rc.conf.example + ${INSTALL_DATA} ${WRKSRC}/rc.subr ${DESTDIR}${PREFIX}etc/rc.subr + ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/DAEMON ${DESTDIR}${PREFIX}${RCD_SCRIPTS_DIR} + ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/LOGIN ${DESTDIR}${PREFIX}${RCD_SCRIPTS_DIR} + ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/NETWORKING ${DESTDIR}${PREFIX}${RCD_SCRIPTS_DIR} + ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/SERVERS ${DESTDIR}${PREFIX}${RCD_SCRIPTS_DIR} .include "../../mk/bsd.pkg.mk" |