diff options
author | ru <ru@FreeBSD.org> | 1999-08-05 09:13:57 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 1999-08-05 09:13:57 +0000 |
commit | 14b85267a6439160d96ca09750db5bf0600f2561 (patch) | |
tree | 109d6d7aa1f8025d42b061a50f26715cde804d24 /sbin | |
parent | faee7df917a07b37da8f9e59450103f6829e5ab4 (diff) | |
download | FreeBSD-src-14b85267a6439160d96ca09750db5bf0600f2561.zip FreeBSD-src-14b85267a6439160d96ca09750db5bf0600f2561.tar.gz |
Backup existing init(8) as /sbin/init.bak.
PR: 12976
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Diffstat (limited to 'sbin')
-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 af8f90a..999a307 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> |