aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/dwatch/Makefile
blob: b48e4145edfea4e4c6852e96070e49fcffeb987c (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
32
33
34
# New ports collection makefile for:    dwatch
# Date created:     14 Aug 2002
# Whom:         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=    A 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\""

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>