summaryrefslogtreecommitdiff
path: root/sysutils/skill/Makefile
blob: d7ed49335252180b0ea1c36f0a1549609c3d0f83 (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
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.24 2007/10/28 02:18:08 obache Exp $
#

DISTNAME=	skill-4.1.4
CATEGORIES=	sysutils
MASTER_SITES=	ftp://ftp.flux.utah.edu/pub/skill/
EXTRACT_SUFX=	.tgz

MAINTAINER=	kim@tac.nyc.ny.us
HOMEPAGE=	http://mysite.verizon.net/jforys/jeffware.html
COMMENT=	Signal processes given user names, ttys, commands, or pids

NOT_FOR_PLATFORM+= Interix-*-* # currently no machdep support

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
MAKE_ENV+=	OSTYPE=nbsd-44
.elif ${OPSYS} == "Darwin"
MAKE_ENV+=	OSTYPE=nbsd-44
.elif ${OPSYS} == "DragonFly"
MAKE_ENV+=	OSTYPE=nbsd-44
CPPFLAGS+=	-DHAS_STRERROR=1
.elif ${OPSYS} == "SunOS"
BINMODE=	02555
MAKE_ENV+=	OSTYPE=sys-5r4 BINGRP=sys CPPFLAGS=
.elif ${OPSYS} == "FreeBSD"
MAKE_ENV+=	OSTYPE=nbsd-44
.elif ${OPSYS} == "Linux"
MAKE_ENV+=	OSTYPE=linux-1
CPPFLAGS+=	-DHAS_STRERROR=1
.elif ${OPSYS} == "IRIX"
MAKE_ENV+=	OSTYPE=irix5
.elif ${OPSYS} == "OSF"
MAKE_ENV+=	OSTYPE=mach-3
.elif ${OPSYS} == "AIX"
MAKE_ENV+=	OSTYPE=aix-3
.elif ${OPSYS} == "HPUX"
MAKE_ENV+=	OSTYPE=hpux-10
.endif

pre-install:
	${INSTALL_PROGRAM} ${WRKSRC}/skill ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/skill.1 ${PREFIX}/${PKGMANDIR}/man1
	${RM} -f ${PREFIX}/bin/snice ${PREFIX}/${PKGMANDIR}/man1/snice.1
	${LN} -s skill ${PREFIX}/bin/snice
	${LN} -s skill.1 ${PREFIX}/${PKGMANDIR}/man1/snice.1

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