1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Backup existing init(8) as /sbin/init.bak.

PR:		12976
Submitted by:	Peter Jeremy <peter.jeremy@alcatel.com.au>
This commit is contained in:
Ruslan Ermilov 1999-08-05 09:13:57 +00:00
parent 96fa877024
commit ec3e2c5d4f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49432

View File

@ -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>