summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-08-19 08:24:01 +0000
committeryar <yar@FreeBSD.org>2006-08-19 08:24:01 +0000
commita0a656a4f785ee53e32309233d1ea839b686d2ca (patch)
treeab699d8d911c26e6478c3072a81135657d1ebd30 /usr.bin
parentc417a693c2f200a513f974680d7f92f2b8ef8f02 (diff)
downloadFreeBSD-src-a0a656a4f785ee53e32309233d1ea839b686d2ca.zip
FreeBSD-src-a0a656a4f785ee53e32309233d1ea839b686d2ca.tar.gz
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)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pkill/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/pkill/Makefile b/usr.bin/pkill/Makefile
index 632d6f4..31f7fc4 100644
--- a/usr.bin/pkill/Makefile
+++ b/usr.bin/pkill/Makefile
@@ -1,6 +1,8 @@
# $NetBSD: Makefile,v 1.1 2002/03/01 11:21:58 ad Exp $
# $FreeBSD$
+BINDIR= /bin
+
PROG= pkill
WARNS?= 5
@@ -10,4 +12,7 @@ LDADD= -lkvm
LINKS= ${BINDIR}/pkill ${BINDIR}/pgrep
MLINKS= pkill.1 pgrep.1
+SYMLINKS= ${BINDIR}/pkill /usr/bin/pkill
+SYMLINKS+= ${BINDIR}/pgrep /usr/bin/pgrep
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud