head	1.8;
access;
symbols
	RELENG_7_4_0_RELEASE:1.7.12.1
	RELENG_7_4:1.7.0.12
	RELENG_7_4_BP:1.7
	RELENG_7_3_0_RELEASE:1.7.10.1
	RELENG_7_3:1.7.0.10
	RELENG_7_3_BP:1.7
	RELENG_7_2_0_RELEASE:1.7.8.1
	RELENG_7_2:1.7.0.8
	RELENG_7_2_BP:1.7
	RELENG_7_1_0_RELEASE:1.7.6.1
	RELENG_6_4_0_RELEASE:1.5.2.1.6.1
	RELENG_7_1:1.7.0.6
	RELENG_7_1_BP:1.7
	RELENG_6_4:1.5.2.1.0.6
	RELENG_6_4_BP:1.5.2.1
	RELENG_7_0_0_RELEASE:1.7
	RELENG_6_3_0_RELEASE:1.5.2.1
	RELENG_7_0:1.7.0.4
	RELENG_7_0_BP:1.7
	RELENG_6_3:1.5.2.1.0.4
	RELENG_6_3_BP:1.5.2.1
	RELENG_7:1.7.0.2
	RELENG_7_BP:1.7
	RELENG_6_2_0_RELEASE:1.5.2.1
	RELENG_6_2:1.5.2.1.0.2
	RELENG_6_2_BP:1.5.2.1
	RELENG_5_5_0_RELEASE:1.4
	RELENG_5_5:1.4.0.8
	RELENG_5_5_BP:1.4
	RELENG_6_1_0_RELEASE:1.5
	RELENG_6_1:1.5.0.6
	RELENG_6_1_BP:1.5
	RELENG_6_0_0_RELEASE:1.5
	RELENG_6_0:1.5.0.4
	RELENG_6_0_BP:1.5
	RELENG_6:1.5.0.2
	RELENG_6_BP:1.5
	RELENG_5_4_0_RELEASE:1.4
	RELENG_5_4:1.4.0.6
	RELENG_5_4_BP:1.4
	RELENG_5_3_0_RELEASE:1.4
	RELENG_5_3:1.4.0.4
	RELENG_5_3_BP:1.4
	RELENG_5:1.4.0.2
	RELENG_5_BP:1.4
	NetBSD_20040325:1.1.1.1
	NETBSD:1.1.1;
locks; strict;
comment	@# @;


1.8
date	2008.08.31.14.27.59;	author yar;	state dead;
branches;
next	1.7;

1.7
date	2006.08.20.04.25.20;	author yar;	state Exp;
branches
	1.7.2.1
	1.7.6.1
	1.7.8.1
	1.7.10.1
	1.7.12.1;
next	1.6;

1.6
date	2006.08.19.08.24.01;	author yar;	state Exp;
branches;
next	1.5;

1.5
date	2004.11.13.17.12.22;	author ru;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2004.03.26.07.44.49;	author ru;	state Exp;
branches;
next	1.3;

1.3
date	2004.03.26.00.36.27;	author gad;	state Exp;
branches;
next	1.2;

1.2
date	2004.03.25.21.58.55;	author gad;	state Exp;
branches;
next	1.1;

1.1
date	2004.03.25.19.08.48;	author gad;	state Exp;
branches
	1.1.1.1;
next	;

1.7.2.1
date	2012.11.17.08.08.39;	author svnexp;	state Exp;
branches;
next	;

1.7.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.7.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.7.10.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.7.12.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.7.12.2;

1.7.12.2
date	2012.11.17.08.17.43;	author svnexp;	state Exp;
branches;
next	;

1.5.2.1
date	2006.09.01.14.32.35;	author yar;	state Exp;
branches
	1.5.2.1.6.1;
next	1.5.2.2;

1.5.2.2
date	2012.11.17.07.45.52;	author svnexp;	state Exp;
branches;
next	;

1.5.2.1.6.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.1.1.1
date	2004.03.25.20.38.22;	author gad;	state Exp;
branches;
next	;


desc
@@


1.8
log
@SVN rev 182543 on 2008-08-31 14:27:59Z by yar

pkill(1) first appeared in /usr/bin, but later it was moved to /bin
for the convenience of rc.d.  Now it has happily lived there for quite
a while.  So move the pkill(1) source files from usr.bin to bin, too.

Approved by:	gad
@
text
@#	$NetBSD: Makefile,v 1.1 2002/03/01 11:21:58 ad Exp $
# $FreeBSD: src/usr.bin/pkill/Makefile,v 1.7 2006/08/20 04:25:20 yar Exp $

BINDIR=	/bin

PROG=	pkill
WARNS?=	5

DPADD=	${LIBKVM}
LDADD=	-lkvm

LINKS=	${BINDIR}/pkill ${BINDIR}/pgrep
MLINKS=	pkill.1 pgrep.1

#
# If considering retirement of these compatibility symlinks,
# keep in mind that pkill is installed to /usr/bin in other
# OS types, e.g., NetBSD, OpenBSD, Solaris, and Linux.
#
SYMLINKS=	${BINDIR}/pkill /usr/bin/pkill
SYMLINKS+=	${BINDIR}/pgrep /usr/bin/pgrep

.include <bsd.prog.mk>
@


1.7
log
@Tell in a comment that the symlinks from /usr/bin are
for compatibility with other OS types, too.

Pointed out by:		gad
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.7.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/usr.bin/pkill/Makefile 161463 2006-08-20 04:25:20Z yar $
@


1.7.12.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.7.12.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/usr.bin/pkill/Makefile 161463 2006-08-20 04:25:20Z yar $
@


1.7.10.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.7.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.7.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.6
log
@Install pkill(1), aka pgrep(1), to /bin so that rc scripts
can use this small and nifty utility.  Create compatibility
symlinks from /usr/bin for the time being to avoid breaking
custom scripts relying on the hardcoded path to the utility.

If pkill(1) takes root, its source should be repocopied some
day to src/bin.

Idea by:	des
Discussed with:	brooks (in cvs-src and cvs-all)
@
text
@d15 5
@


1.5
log
@Removed bitrot.
@
text
@d4 2
d15 3
@


1.5.2.1
log
@MFC rev 1.6, 1.7:

Install pkill/pgrep to /bin to the benefit of rc scripts.
Create compatibility symlinks from /usr/bin though.

Approved by:	re (mux & kensmith)
@
text
@a3 2
BINDIR=	/bin

a12 8
#
# If considering retirement of these compatibility symlinks,
# keep in mind that pkill is installed to /usr/bin in other
# OS types, e.g., NetBSD, OpenBSD, Solaris, and Linux.
#
SYMLINKS=	${BINDIR}/pkill /usr/bin/pkill
SYMLINKS+=	${BINDIR}/pgrep /usr/bin/pgrep

@


1.5.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/usr.bin/pkill/Makefile 161816 2006-09-01 14:32:35Z yar $
@


1.5.2.1.6.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.4
log
@Apply style.Makefile(5).
@
text
@a9 3
#BINGRP=	kmem
#BINMODE=	2555

@


1.3
log
@Add a cast to get this to compile with WARNS=5 on sparc64.  This is
needed because off_t == __int64_t, while size_t == __uint64_t.  This
also compiles with WARNS=5 on amd64, but I haven't tested the other
platforms yet.
@
text
@a4 2
SRCS=	pkill.c
MAN=	pkill.1
d7 2
a8 2
LDADD+=	-lkvm
DPADD+=	${LIBKVM}
d13 2
a14 2
LINKS+=	${BINDIR}/pkill ${BINDIR}/pgrep
MLINKS+=pkill.1 pgrep.1
@


1.2
log
@Change some routine and variable names to match the FreeBSD system.

Written by:	Mario Sergio Fujikawa Ferreira <lioux@@FreeBSD.org>
Obtained from:	the sysutils/pkill port
@
text
@d7 1
a7 1
WARNS?=	1
@


1.1
log
@Add the `pkill' and `pgrep' commands from NetBSD.  This is the source
straight from NetBSD (except to add the RCS-ID lines for FreeBSD).
These will probably require a few updates before they are added to
the FreeBSD buildworld.  I might MFC these to 4.x-stable after 4.10.

Discussed on:	freebsd-arch
Obtained from:	NetBSD (and OpenBSD also has these)
@
text
@d7 1
d11 3
@


1.1.1.1
log
@As suggested by des, add a "vendor branch" for this code from NetBSD.
@
text
@d1 2
a2 1
#	$NetBSD$
@

