summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/chmod/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/chmod/Makefile b/bin/chmod/Makefile
index 193e47d658b..e9303ec65b9 100644
--- a/bin/chmod/Makefile
+++ b/bin/chmod/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2000/07/19 19:42:31 mickey Exp $
+# $OpenBSD: Makefile,v 1.7 2001/09/06 18:52:55 mickey Exp $
PROG= chmod
CFLAGS+=-DSUPPORT_DOT
@@ -8,8 +8,11 @@ LINKS= ${BINDIR}/chmod ${BINDIR}/chgrp \
# XXX compatibility
afterinstall:
- ln -fs /sbin/chown ${DESTDIR}/usr/sbin/chown
- ln -fs ${BINDIR}/chgrp ${DESTDIR}/usr/sbin/chgrp
- ln -fs ${BINDIR}/chmod ${DESTDIR}/usr/bin/chflags
+ (cd ${DESTDIR}/usr/sbin; \
+ ln -sf ../../sbin/chown .; \
+ ln -sf ../../bin/chgrp .)
+ (cd ${DESTDIR}/usr/bin; \
+ ln -sf ../../bin/chmod chflags)
+
.include <bsd.prog.mk>