summaryrefslogtreecommitdiff
path: root/net/hobbitclient/Makefile
blob: b8f428f0842ca9a8e53d002375992a2917ea9c44 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# $NetBSD: Makefile,v 1.6 2007/07/04 20:54:49 jlam Exp $
#

DISTNAME=	hobbit-4.2.0
PKGNAME=	hobbitclient-4.2.0
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=hobbitmon/}

MAINTAINER=	gendalia@NetBSD.org
HOMEPAGE=	http://hobbitmon.sourceforge.net/
COMMENT=	Free-software client for the Hobbit monitor

PATCHFILES+=allinone.patch
SITES.allinone.patch=http://www.hobbitmon.com/hobbitsw/patches/

HAS_CONFIGURE=	YES
USE_TOOLS+=	gmake
#INSTALL_TARGET=

.include "../../mk/bsd.prefs.mk"

BBUSER?=	hobbit
BBGROUP?=	hobbit
BBTOPDIR?=	${PREFIX}/hobbit
BBLOGDIR?=	${VARBASE}/log/hobbit
BBSERVERNAME?=	"`uname -n`"
BBSERVERIP?=	127.0.0.1
CONFTYPE?=	"server"
BUILD_DEFS+=	VARBASE
BUILD_DEFS+=	BBSERVERNAME
BUILD_DEFS+=	BBSERVERIP

RCD_SCRIPTS+=	hobbitclient
PKG_GROUPS=	${BBGROUP}
PKG_USERS=	${BBUSER:Q}:${BBGROUP:Q}

PKG_GECOS.${BBUSER}=	Hobbit monitor
PKG_HOME.${BBUSER}=	${BBTOPDIR}

PKG_GROUPS_VARS+=	BBGROUP
PKG_USERS_VARS+=	BBUSER

CONFIGURE_ARGS+="--client"

CONFIGURE_ENV+=	TARGET=hobbit
CONFIGURE_ENV+=	BBHOSTNAME="${BBSERVERNAME}"
CONFIGURE_ENV+=	BBUSER=${BBUSER:Q}
CONFIGURE_ENV+=	BBTOPDIR=${BBTOPDIR:Q}
CONFIGURE_ENV+=	BBLOGDIR=${BBLOGDIR:Q}
CONFIGURE_ENV+=	BBHOSTIP=${BBSERVERIP:Q}
CONFIGURE_ENV+=	MANROOT=${PREFIX}/${PKGMANDIR}/
CONFIGURE_ENV+=	CONFTYPE="${CONFTYPE}"

USE_TOOLS+=     awk:run         cat:run         cp:run
USE_TOOLS+=     cut:run         date:run        egrep:run
USE_TOOLS+=     expr:run        find:run        grep:run
USE_TOOLS+=     head:run        id:run          ls:run
USE_TOOLS+=     mv:run          rm:run          sed:run
USE_TOOLS+=     sort:run        tail:run        touch:run
USE_TOOLS+=     tr:run          wc:run

MAKE_ENV+=	MAKE=${MAKE_PROGRAM:Q}
MAKE_ENV+=	PKGDIR=${PREFIX:Q}
MAKE_ENV+=	${TOOLS_ENV}

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