From ec3e2c5d4fcc3dbeabe4491a01680bdaa4d34362 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 5 Aug 1999 09:13:57 +0000 Subject: Backup existing init(8) as /sbin/init.bak. PR: 12976 Submitted by: Peter Jeremy --- sbin/init/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sbin/init') 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 - .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 -- cgit v1.3