2020-03-22 14:21:05 +01:00
|
|
|
# $NetBSD: Makefile,v 1.34 2020/03/22 13:21:05 tnn Exp $
|
2003-06-19 18:07:10 +02:00
|
|
|
#
|
|
|
|
|
2018-12-26 01:29:07 +01:00
|
|
|
PKGNAME= rc.subr-20181226
|
2003-06-19 18:07:10 +02:00
|
|
|
CATEGORIES= pkgtools
|
|
|
|
|
2010-03-23 01:27:11 +01:00
|
|
|
MAINTAINER= sbd@NetBSD.org
|
2020-01-19 00:30:43 +01:00
|
|
|
HOMEPAGE= https://www.NetBSD.org/
|
2003-06-19 18:07:10 +02:00
|
|
|
COMMENT= Portable NetBSD rc.subr implementation for pkgsrc
|
2014-03-03 06:12:35 +01:00
|
|
|
LICENSE= original-bsd
|
2003-06-19 18:07:10 +02:00
|
|
|
|
2016-10-17 03:11:30 +02:00
|
|
|
ONLY_FOR_PLATFORM= Darwin-*-* FreeBSD-[0-4].*-* Interix-*-* IRIX*-*-*
|
2018-12-26 01:29:07 +01:00
|
|
|
ONLY_FOR_PLATFORM+= Linux-*-* OpenBSD-*-* QNX-*-* SunOS-*-*
|
2003-06-19 18:07:10 +02:00
|
|
|
|
2005-09-28 22:52:18 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_CONFIGURE= yes
|
2020-03-22 14:21:05 +01:00
|
|
|
NOT_FOR_UNPRIVILEGED= yes
|
2003-06-19 18:07:10 +02:00
|
|
|
|
2006-10-05 10:51:59 +02:00
|
|
|
CHECK_FILES_SUPPORTED= no
|
2009-12-13 08:49:55 +01:00
|
|
|
BUILD_DEFS+= RCD_SCRIPTS_DIR
|
2006-10-05 10:51:59 +02:00
|
|
|
|
2004-08-01 10:56:10 +02:00
|
|
|
PLIST_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR:S/^\///}
|
|
|
|
|
2009-12-13 08:49:55 +01:00
|
|
|
CONF_FILES+= etc/rc.conf.example etc/rc.conf
|
2003-06-19 18:07:10 +02:00
|
|
|
|
2009-02-10 01:25:00 +01:00
|
|
|
INSTALLATION_DIRS= etc ${RCD_SCRIPTS_DIR:S/^\///}
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2003-06-19 18:07:10 +02:00
|
|
|
do-extract:
|
2009-12-13 08:49:55 +01:00
|
|
|
${CP} -R ${FILESDIR} ${WRKSRC}
|
2003-06-19 18:07:10 +02:00
|
|
|
|
|
|
|
do-install:
|
2009-02-10 01:25:00 +01:00
|
|
|
${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}
|
2003-06-19 18:07:10 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
|
|
|
|
# if you change this, be sure to include a trailing /
|
2003-06-23 09:02:16 +02:00
|
|
|
PREFIX:= /
|