summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-02-10 00:25:00 +0000
committerjoerg <joerg@pkgsrc.org>2009-02-10 00:25:00 +0000
commitf147bc5cc484332ba099f3fba4f1ada64ffbd441 (patch)
treecc2b335c9c8f5ef0cafa853f9379419bd5507dba /pkgtools
parent4b89fd67b540933c587ec3909c388929f6676316 (diff)
downloadpkgsrc-f147bc5cc484332ba099f3fba4f1ada64ffbd441.tar.gz
DESTDIR support.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/rc.subr/Makefile27
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"