summaryrefslogtreecommitdiff
path: root/sysutils/dwatch/Makefile
blob: d4cc815aae1396438452529f335f402910c8e96c (plain) (blame)
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
# Created by: Andrew Turner <zombie@i4free.co.nz>
# $FreeBSD$

PORTNAME=	dwatch
PORTVERSION=	0.1.1
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://siag.nu/pub/dwatch/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Daemon Watcher

LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

MAN1=		dwatch.1
PLIST_FILES=	bin/dwatch etc/dwatch.conf-dist

CFLAGS+=	-DETCDIR="\"${PREFIX}/etc\"" \
		-DPS="\"/bin/ps -ax\""

NO_STAGE=	yes
do-build:
	(cd ${BUILD_WRKSRC}; ${CC} ${CFLAGS} -o dwatch dwatch.c)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dwatch ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/dwatch.1 ${MANPREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/dwatch.conf ${PREFIX}/etc/dwatch.conf-dist

.include <bsd.port.mk>