summaryrefslogtreecommitdiff
path: root/sysutils/tenshi/Makefile
blob: 664eff07507801d67edfbe5cf5b1b6696d44d793 (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.2 2015/01/26 23:03:37 wiz Exp $
#

DISTNAME=	tenshi-0.15
PKGREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://dev.inversepath.com/download/tenshi/

MAINTAINER=	henson@acm.org
HOMEPAGE=	http://www.inversepath.com/tenshi.html
COMMENT=	Log monitoring program to watch and report on log files
LICENSE=	isc

USE_TOOLS+=		perl:run
REPLACE_PERL=		tenshi
EGDIR=			share/examples/${PKGBASE}
CONF_FILES=		${PREFIX}/${EGDIR}/tenshi.conf ${PKG_SYSCONFDIR}/tenshi/tenshi.conf
BUILD_DEFS+=		VARBASE

DEPENDS+=	p5-IO-BufferedSelect>=1.0:../../sysutils/p5-IO-BufferedSelect

SUBST_CLASSES+= 	tenshi
SUBST_STAGE.tenshi=	pre-build
SUBST_FILES.tenshi=	tenshi tenshi.conf tenshi.8
SUBST_SED.tenshi=	-e 's,/etc/tenshi/tenshi.conf,${PKG_SYSCONFDIR}/tenshi.conf,g'
SUBST_SED.tenshi+=	-e 's,/var/run/tenshi.pid,${VARBASE}/lib/tenshi/tenshi.pid,g'

PKG_GROUPS=		tenshi
PKG_USERS=		tenshi:tenshi
PKG_HOME.tenshi=	${VARBASE}/lib/tenshi
OWN_DIRS_PERMS+=	${VARBASE}/lib/tenshi tenshi tenshi 0700
OWN_DIRS+=		${PKG_SYSCONFDIR}/tenshi

USE_LANGUAGES=	# none

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