blob: f614ce5d898aa1cb10d9b36b30f2ab7d66f0843b (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# 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
COMMENT= NetBSD's pgrep and pkill: find or signal processes matching criteria
USE_SIZE= yes
MAKE_ENV= DESTDIR=${PREFIX} \
BINDIR=/bin \
MANDIR=/man/man
MANCOMPRESSED= yes
MAN1= pgrep.1 pkill.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502110
IGNORE= "is included in the base system"
.endif
.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>
|