Project

General

Profile

Actions

Bug #961

closed

Slight change to /usr/src/etc/Makefile?

Added by dave1 over 16 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I'd like to propose the following change to /usr/src/etc/Makefile
as part of "make upgrade". What this does is allow one to say

make upgrade ETC_UPGRADE_ONLY=1

so that the upgrade process only affects files in /etc and doesn't
try to do anything else.

RCS file: /home/DragonFly/cvs-mirror/src/etc/Makefile,v
retrieving revision 1.211
diff u -u -r1.211 Makefile
--
Makefile 2 Feb 2008 18:24:00 -0000 1.211
+++ Makefile 5 Mar 2008 01:09:00 -0000
@ -127,9 +127,11 @
pw -V ${DESTDIR}/etc groupadd _sdpd -g 70

upgrade_etc:   preupgrade remove-obsolete-files
.if !defined(ETC_UPGRADE_ONLY)
.if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
cd ${UPGRADE_SRCDIR}/../share/mk; ${MAKE} install
.endif
.endif
cd ${UPGRADE_SRCDIR}; \
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${BINUPDATE} ${DESTDIR}/etc; \
@ -169,6 +171,8 @
.endif
.endfor
.endif
.if !defined(ETC_UPGRADE_ONLY)
# Counting on the fact that no other ETC upgrade stuff appears below this line
.if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
cd ${UPGRADE_SRCDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${FREEBSD} ${DESTDIR}/
@ -269,6 +273,8 @
.endif
.endif
.endif
# the below line matches .if defined(ETC_UPGRADE_ONLY)
.endif
distribution:
cd ${.CURDIR}; \
Actions

Also available in: Atom PDF