diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 1999-08-05 09:13:57 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 1999-08-05 09:13:57 +0000 |
| commit | ec3e2c5d4fcc3dbeabe4491a01680bdaa4d34362 (patch) | |
| tree | 32c147087b818ce422f949f9f4ca74b7b46ab4d7 | |
| parent | 96fa877024068e03f4dff1db5a419b71f11ce46e (diff) | |
Notes
| -rw-r--r-- | sbin/init/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sbin/init/Makefile b/sbin/init/Makefile index af8f90ac6cfa3..999a30723baea 100644 --- a/sbin/init/Makefile +++ b/sbin/init/Makefile @@ -1,5 +1,5 @@ # @(#)Makefile 8.1 (Berkeley) 7/19/93 -# $Id: Makefile,v 1.16 1999/06/18 09:08:06 ru Exp $ +# $Id: Makefile,v 1.17 1999/07/01 13:33:56 ru Exp $ PROG= init MAN8= init.8 @@ -16,8 +16,6 @@ DPADD= ${LIBUTIL} ${SCRYPTOBJDIR}/libscrypt.a LDADD= -lutil -L${SCRYPTOBJDIR} -lscrypt .endif -.include <bsd.prog.mk> - .if exists(${.OBJDIR}/../../lib/libcrypt) SCRYPTOBJDIR= ${.OBJDIR}/../../lib/libcrypt .else @@ -33,3 +31,11 @@ DESCRYPTOBJDIR= ${.CURDIR}/../../secure/lib/libcrypt .endif .endif + +beforeinstall: +.if exists(${DESTDIR}${BINDIR}/${PROG}) + -chflags noschg ${DESTDIR}${BINDIR}/${PROG} + mv ${DESTDIR}${BINDIR}/${PROG} ${DESTDIR}${BINDIR}/${PROG}.bak +.endif + +.include <bsd.prog.mk> |
