summaryrefslogtreecommitdiff
path: root/sysutils/whowatch/Makefile
blob: 88f2fe27df441dfbfe0f307a8b31becbe367d5c5 (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
# Created by: Daniel Harris <dannyboy@subdimension.com>
# $FreeBSD$

PORTNAME=	whowatch
PORTVERSION=	1.4
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://wizard.ae.krakow.pl/~mike/download/ \
		${MASTER_SITE_PACKETSTORM}
MASTER_SITE_SUBDIR=	UNIX/IDS

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Displays information in real time about users currently logged on

GNU_CONFIGURE=	yes

MAN1=		whowatch.1
PLIST_FILES=	bin/whowatch

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900006
EXTRA_PATCHES=	${PATCHDIR}/utmpx-whowatch.h \
		${PATCHDIR}/utmpx-whowatch.c
.endif

pre-patch:
	@${FIND} ${WRKSRC} -name 'proc????.c' | ${XARGS} ${REINPLACE_CMD} -E \
		-e 's/kp_.?proc\.._/ki_/ ; s/pcred\.p_//'

.include <bsd.port.post.mk>