Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 1996 17:49:06 +0200
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        "Jordan K. Hubbard" <jkh@time.cdrom.com>
Cc:        current@freebsd.org
Subject:   Re: Files installed to /etc, (was: review request) 
Message-ID:  <199604301549.RAA01126@localhost>
In-Reply-To: <23826.830823868@time.cdrom.com>
References:  <199604292241.PAA05374@phaeton.artisoft.com> <23826.830823868@time.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <dir> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604301549.RAA01126>