summaryrefslogtreecommitdiffstats
path: root/sbin/init
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-05-28 16:58:35 +0000
committerru <ru@FreeBSD.org>2001-05-28 16:58:35 +0000
commitfd136031ceff193a9faff1c5a1283bfd251e29a7 (patch)
treedf6973391fc87c097133dee8a54ec4a74a9aaf02 /sbin/init
parentd893654545fd16a39ef20487e90e3ebb42c57dcb (diff)
downloadFreeBSD-src-fd136031ceff193a9faff1c5a1283bfd251e29a7.zip
FreeBSD-src-fd136031ceff193a9faff1c5a1283bfd251e29a7.tar.gz
Use new backup feature of install(1).
Diffstat (limited to 'sbin/init')
-rw-r--r--sbin/init/Makefile8
1 files changed, 1 insertions, 7 deletions
diff --git a/sbin/init/Makefile b/sbin/init/Makefile
index a48e90c..400d623 100644
--- a/sbin/init/Makefile
+++ b/sbin/init/Makefile
@@ -5,15 +5,9 @@ PROG= init
MAN= init.8
MLINKS= init.8 securelevel.8
BINMODE=500
-INSTALLFLAGS=-fschg
+INSTALLFLAGS=-fschg -b -B.bak
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT
DPADD= ${LIBUTIL} ${LIBCRYPT}
LDADD= -lutil -lcrypt
-beforeinstall:
-.if exists(${DESTDIR}${BINDIR}/${PROG})
- -chflags noschg ${DESTDIR}${BINDIR}/${PROG}
- mv ${DESTDIR}${BINDIR}/${PROG} ${DESTDIR}${BINDIR}/${PROG}.bak
-.endif
-
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud