summaryrefslogtreecommitdiff
path: root/pkgtools/rc.subr/Makefile
blob: 8949f533fa3a784be30811942b5152536c375d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $NetBSD: Makefile,v 1.3 2003/06/23 07:03:49 grant Exp $
#

DISTNAME=		rc.subr-20030622
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=	Linux-*-* SunOS-*-*

NO_BUILD=		# defined
NO_CHECKSUM=		# defined
NO_CONFIGURE=		# defined
NO_MTREE=		# defined
USE_PKGINSTALL=		YES

CONF_FILES+=		${PREFIX}etc/rc.conf.example ${PREFIX}etc/rc.conf

do-extract:
	@${CP} -Rp ${FILESDIR} ${WRKSRC}

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}etc/rc.d
	${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}etc/rc.d
	${INSTALL_SCRIPT} ${WRKSRC}/rc.d/LOGIN ${PREFIX}etc/rc.d
	${INSTALL_SCRIPT} ${WRKSRC}/rc.d/NETWORKING ${PREFIX}etc/rc.d
	${INSTALL_SCRIPT} ${WRKSRC}/rc.d/SERVERS ${PREFIX}etc/rc.d

.include "../../mk/bsd.pkg.mk"

# if you change this, be sure to include a trailing /
PREFIX:=		/