Backup existing init(8) as /sbin/init.bak.
PR: 12976 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
This commit is contained in:
parent
96fa877024
commit
ec3e2c5d4f
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user