pkgsrc/pkgtools/rc.subr/Makefile
tv 049d18c583 Don't "cp -p" for *source* files. Builds are usually done as an unprivileged
user, so it's not nice to try to use an option that will try to chown if
the repository isn't owned by the builder.

(Some OS's do in fact cause an error when the chown in "cp -p" fails.)
2005-01-06 05:32:29 +00:00

41 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2005/01/06 05:32:30 tv Exp $
#
DISTNAME= rc.subr-20041011
PKGREVISION= 1
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= grant@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/
COMMENT= Portable NetBSD rc.subr implementation for pkgsrc
ONLY_FOR_PLATFORM= Darwin-*-* Interix-*-* Linux-*-* SunOS-*-*
NO_BUILD= # defined
NO_CHECKSUM= # defined
NO_CONFIGURE= # defined
NO_MTREE= # defined
USE_PKGINSTALL= YES
PLIST_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR:S/^\///}
CONF_FILES+= ${PREFIX}etc/rc.conf.example ${PREFIX}etc/rc.conf
do-extract:
@${CP} -R ${FILESDIR} ${WRKSRC}
do-install:
${INSTALL_DATA_DIR} ${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 ${RCD_SCRIPTS_DIR}
${INSTALL_SCRIPT} ${WRKSRC}/rc.d/LOGIN ${RCD_SCRIPTS_DIR}
${INSTALL_SCRIPT} ${WRKSRC}/rc.d/NETWORKING ${RCD_SCRIPTS_DIR}
${INSTALL_SCRIPT} ${WRKSRC}/rc.d/SERVERS ${RCD_SCRIPTS_DIR}
.include "../../mk/bsd.pkg.mk"
# if you change this, be sure to include a trailing /
PREFIX:= /