summaryrefslogtreecommitdiff
path: root/sysutils/fscd/Makefile
blob: be06527231d6448c5f87860fe166ec459e4c7663 (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
# $NetBSD: Makefile,v 1.8 2019/11/04 21:28:45 rillig Exp $

DISTNAME=	fscd-1.1
PKGREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://komkon2.de/

MAINTAINER=	jdf@NetBSD.org
HOMEPAGE=	https://vcs.in-berlin.de/schrank21_fscd/index
COMMENT=	FreeBSD service check daemon to monitor services
LICENSE=	2-clause-bsd

CPPFLAGS+=		-DSYSCONFDIR=\"${PKG_SYSCONFDIR}/\"
# Only for platforms with kqueue.
ONLY_FOR_PLATFORM=	NetBSD-[2-9].*-* FreeBSD-[4-9].*-* OpenBSD-*-* DragonFly-*-* Darwin-*-*

RCD_SCRIPTS=		fscd
INSTALLATION_DIRS=	bin sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8

.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
BUILDLINK_TRANSFORM+=	rm:-Wno-traditional
.elif !empty(PKGSRC_COMPILER:Mgcc)
CFLAGS+=	-Wno-error=unused-but-set-variable
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/fscadm/fscadm ${DESTDIR}${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/fscadm/fscadm.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
	${INSTALL_PROGRAM} ${WRKSRC}/fscd/fscd ${DESTDIR}${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/fscd/fscd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
	${INSTALL_DATA} ${WRKSRC}/fscd/fscd.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
	${INSTALL_SCRIPT} ${WRKSRC}/service/service ${DESTDIR}${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/service/service.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8

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