summaryrefslogtreecommitdiffstats
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-02-15 04:33:52 +0000
committerwpaul <wpaul@FreeBSD.org>1995-02-15 04:33:52 +0000
commit8f10a7941e67944624c1cdc8722ace4ef8454b64 (patch)
treedc877deb6175d483ddc81a0aac2f73437e9e4bcf /gnu/usr.sbin
parent5911bb0d89bd3a924935ddc0999692facb05e4c2 (diff)
downloadFreeBSD-src-8f10a7941e67944624c1cdc8722ace4ef8454b64.zip
FreeBSD-src-8f10a7941e67944624c1cdc8722ace4ef8454b64.tar.gz
Fix losing Makefile so that it properly honors DESTDIR when installing
/var/yp/Makefile and /usr/libexec/mknetid. *grumble* *mutter* *mutter*
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r--gnu/usr.sbin/ypserv/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/gnu/usr.sbin/ypserv/Makefile b/gnu/usr.sbin/ypserv/Makefile
index 8ce36f6..1d064a7 100644
--- a/gnu/usr.sbin/ypserv/Makefile
+++ b/gnu/usr.sbin/ypserv/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.4 1995/02/03 22:01:17 wpaul Exp $
+# $Id: Makefile,v 1.5 1995/02/04 21:31:58 wpaul Exp $
# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
PROG= ypserv
@@ -9,13 +9,12 @@ CFLAGS+=-DINSTDIR='"/usr/libexec"'
MAN8= ypserv.8
-afterinstall: /var/yp/Makefile /usr/libexec/mknetid
-
-/var/yp/Makefile: ${.CURDIR}/Makefile.yp
- @if [ ! -d /var/yp ]; then mkdir /var/yp; fi
- install -c -o bin -g bin -m 444 ${.CURDIR}/Makefile.yp /var/yp/Makefile
-
-/usr/libexec/mknetid: ${.CURDIR}/mknetid
- install -c -o bin -g bin -m 555 ${.CURDIR}/mknetid /usr/libexec/mknetid
+afterinstall:
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${.CURDIR}/Makefile.yp \
+ ${DESTDIR}/var/yp/Makefile
+ install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${.CURDIR}/mknetid \
+ ${DESTDIR}/usr/libexec/mknetid
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud