From owner-freebsd-current Tue Apr 30 09:16:24 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA18382 for current-outgoing; Tue, 30 Apr 1996 09:16:24 -0700 (PDT) Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA18357 for ; Tue, 30 Apr 1996 09:16:11 -0700 (PDT) Received: from ole.cs.tu-berlin.de (wosch@ole.cs.tu-berlin.de [130.149.22.3]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id SAA14062; Tue, 30 Apr 1996 18:15:19 +0200 Received: (from wosch@localhost) by localhost (8.6.12/8.6.12) id RAA01126; Tue, 30 Apr 1996 17:49:06 +0200 Date: Tue, 30 Apr 1996 17:49:06 +0200 From: Wolfram Schneider Message-Id: <199604301549.RAA01126@localhost> To: "Jordan K. Hubbard" Cc: current@freebsd.org Subject: Re: Files installed to /etc, (was: review request) In-Reply-To: <23826.830823868@time.cdrom.com> References: <199604292241.PAA05374@phaeton.artisoft.com> <23826.830823868@time.cdrom.com> Reply-to: Wolfram Schneider MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jordan K. Hubbard writes: >OK, there appears to be widespread support for the general idea and >considerable input on how to do it, as well. Now the $10,000 >question: Which of us will be the one to defiantly raise the metal >golf club of CVS on the treeless, stormy golf course of >FreeBSD-committers? :-) BTW, if we do a Makefile cleanup 1. some Makefile use 'mv' without option '-f'. This may fail mv(1) into interactive mode if you are not root and the destination file is write protected. $ touch a b; chmod 444 a b; /bin/mv a b override r--r--r-- wosch/wheel for b? ;-(( Solution: a variable MV="mv -f" in sys.mk 2. Same problem for 'rm', use variable RM="rm -f"in sys.mk 3. Wired /usr/share/mk/sys.mk. make -I do not change the directory for sys.mk. We need this for ``make DESTDIR=/foo world'' so /foo/usr/share/mk/sys.mk would be used. Does someone test the following patch? --- 1.1 1996/04/23 13:30:23 +++ pathnames.h 1996/04/23 13:56:42 @@ -36,5 +36,5 @@ #define _PATH_OBJDIR "obj" #define _PATH_DEFSHELLDIR "/bin" -#define _PATH_DEFSYSMK "/usr/share/mk/sys.mk" +#define _PATH_DEFSYSMK "sys.mk" #define _PATH_DEFSYSPATH "/usr/share/mk" 4. A target for executable scripts e.g.: usr.bin/pagesize/Makefile: SCRIPTS= pagesize.sh # blubber.pl foo.elc share/mk/bsd.prog.mk: .if defined(SCRIPTS) && !empty(SCRIPTS) afterinstall: scriptinstall .endif scriptinstall: .for __script in ${SCRIPTS} ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/${__script} ${DESTDIR}/${BINDIR}/${__script:R} .endfor Wolfram