summaryrefslogtreecommitdiff
path: root/sysutils/tenshi/Makefile
blob: eb0cb91ec6b63fc60b93d74dd0b2c188909e273a (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.9 2021/05/24 19:54:20 wiz Exp $
#

DISTNAME=	tenshi-0.15
PKGREVISION=	7
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"