summaryrefslogtreecommitdiffstats
path: root/sysutils/pkill/Makefile
blob: c5aeb3084d94836f6aecd90379eb012b281ab067 (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
# New ports collection makefile for:	NetBSD's pgrep/pkill
# Date created:				Tue Nov 5 14:01:47 UTC 2002
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	pkill
PORTVERSION=	0.2
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	lioux

MAINTAINER=	lioux@FreeBSD.org

MAKE_ENV=	DESTDIR=${PREFIX} \
		BINDIR=/bin \
		MANDIR=/man/man

MANCOMPRESSED=	yes
MAN1=		pgrep.1 pkill.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500000
DISTNAME=	${PORTNAME}-current-${PORTVERSION}
WRKSRC=		${WRKDIR}/${PORTNAME}-current
.else
. if ${OSVERSION} <= 300000
MAKE_ENV+=	NEED_KMEM=1
. endif
DISTNAME=	${PORTNAME}-stable-${PORTVERSION}
WRKSRC=		${WRKDIR}/${PORTNAME}-stable
.endif

post-install:
.if ${OSVERSION} <= 300000
	@${CHGRP} kmem ${PREFIX}/bin/pkill 
	@${CHMOD} 2555 ${PREFIX}/bin/pkill
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud