Move mkfiles from /etc/mk to /usr/share/mk
Simplifies pkgsrc porting.
This commit is contained in:
parent
c0c8d25799
commit
e10916476a
27 changed files with 18 additions and 1870 deletions
2
Makefile
2
Makefile
|
@ -36,7 +36,7 @@ world: mkfiles includes depend gnu-libraries install
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
mkfiles:
|
mkfiles:
|
||||||
cp etc/mk/*.mk /etc/mk/
|
make -C share/mk install
|
||||||
|
|
||||||
includes:
|
includes:
|
||||||
$(MAKE) -C include includes
|
$(MAKE) -C include includes
|
||||||
|
|
|
@ -288,7 +288,7 @@ include statement.
|
||||||
The
|
The
|
||||||
.Fl m
|
.Fl m
|
||||||
option can be used multiple times to form a search path.
|
option can be used multiple times to form a search path.
|
||||||
This path will override the default system include path: /etc/mk.
|
This path will override the default system include path: /usr/share/mk.
|
||||||
Furthermore the system include path will be appended to the search path used
|
Furthermore the system include path will be appended to the search path used
|
||||||
for
|
for
|
||||||
.Qo Ar file Qc Ns -style
|
.Qo Ar file Qc Ns -style
|
||||||
|
@ -1800,7 +1800,7 @@ see the description of
|
||||||
.Ql Va .OBJDIR
|
.Ql Va .OBJDIR
|
||||||
for more details.
|
for more details.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /etc/mk -compact
|
.Bl -tag -width /usr/share/mk -compact
|
||||||
.It .depend
|
.It .depend
|
||||||
list of dependencies
|
list of dependencies
|
||||||
.It Makefile
|
.It Makefile
|
||||||
|
@ -1809,7 +1809,7 @@ list of dependencies
|
||||||
list of dependencies
|
list of dependencies
|
||||||
.It sys.mk
|
.It sys.mk
|
||||||
system makefile
|
system makefile
|
||||||
.It /etc/mk
|
.It /usr/share/mk
|
||||||
system makefile directory
|
system makefile directory
|
||||||
.El
|
.El
|
||||||
.Sh COMPATIBILITY
|
.Sh COMPATIBILITY
|
||||||
|
|
|
@ -46,12 +46,8 @@
|
||||||
#endif
|
#endif
|
||||||
#define _PATH_DEFSYSMK "sys.mk"
|
#define _PATH_DEFSYSMK "sys.mk"
|
||||||
#ifndef _PATH_DEFSYSPATH
|
#ifndef _PATH_DEFSYSPATH
|
||||||
#if defined(__minix)
|
|
||||||
#define _PATH_DEFSYSPATH "/etc/mk"
|
|
||||||
#else
|
|
||||||
#define _PATH_DEFSYSPATH "/usr/share/mk"
|
#define _PATH_DEFSYSPATH "/usr/share/mk"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#ifndef _PATH_TMP
|
#ifndef _PATH_TMP
|
||||||
#define _PATH_TMP "/tmp/" /* with trailing slash */
|
#define _PATH_TMP "/tmp/" /* with trailing slash */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
20100625:
|
||||||
|
/etc/mk has been moved to /usr/share/mk. You will need to
|
||||||
|
create /usr/share/mk manually.
|
||||||
|
# mkdir /usr/share/mk
|
||||||
20100515:
|
20100515:
|
||||||
/usr/src/etc/usr/rc updated: copy it (or merge it) to /usr/etc/rc.
|
/usr/src/etc/usr/rc updated: copy it (or merge it) to /usr/etc/rc.
|
||||||
/etc/inet.conf is now line-based; if you have hand-edited this file
|
/etc/inet.conf is now line-based; if you have hand-edited this file
|
||||||
|
|
|
@ -6,7 +6,6 @@ FILES1=fstab group hostname.file inet.conf motd.install mtab passwd profile \
|
||||||
rs.inet rs.single make.conf system.conf
|
rs.inet rs.single make.conf system.conf
|
||||||
FILES2=shadow
|
FILES2=shadow
|
||||||
FILES3=daily dhcptags.conf rc
|
FILES3=daily dhcptags.conf rc
|
||||||
DIR1=mk
|
|
||||||
|
|
||||||
all::
|
all::
|
||||||
|
|
||||||
|
@ -20,11 +19,6 @@ install::
|
||||||
@echo "Making hierarchy.."
|
@echo "Making hierarchy.."
|
||||||
sh mtree.sh mtree/minix.tree
|
sh mtree.sh mtree/minix.tree
|
||||||
@for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
|
@for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
|
||||||
@echo "Installing /etc/mk.."
|
|
||||||
rm $(ETC)/$(DIR1)/*
|
|
||||||
cp $(DIR1)/*.mk $(ETC)/$(DIR1)
|
|
||||||
chmod 644 $(ETC)/$(DIR1)/*
|
|
||||||
chown root $(ETC)/$(DIR1)/*
|
|
||||||
@echo "Making devices.."
|
@echo "Making devices.."
|
||||||
p=`pwd` && cd /dev && sh $$p/../commands/MAKEDEV/MAKEDEV.sh null
|
p=`pwd` && cd /dev && sh $$p/../commands/MAKEDEV/MAKEDEV.sh null
|
||||||
p=`pwd` && cd /dev && sh $$p/../commands/MAKEDEV/MAKEDEV.sh std 2>/dev/null
|
p=`pwd` && cd /dev && sh $$p/../commands/MAKEDEV/MAKEDEV.sh std 2>/dev/null
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
755 root operator /dev
|
755 root operator /dev
|
||||||
/dev/mouse -> /dev/kbdaux
|
/dev/mouse -> /dev/kbdaux
|
||||||
755 root operator /etc
|
755 root operator /etc
|
||||||
755 root operator /etc/mk
|
|
||||||
755 root operator /boot
|
755 root operator /boot
|
||||||
755 root operator /boot/image
|
755 root operator /boot/image
|
||||||
555 root operator /mnt
|
555 root operator /mnt
|
||||||
|
@ -76,6 +75,7 @@
|
||||||
700 root operator /usr/preserve
|
700 root operator /usr/preserve
|
||||||
755 root operator /usr/run
|
755 root operator /usr/run
|
||||||
755 root operator /usr/share
|
755 root operator /usr/share
|
||||||
|
755 root operator /usr/share/mk
|
||||||
755 root operator /usr/share/zoneinfo
|
755 root operator /usr/share/zoneinfo
|
||||||
755 root operator /usr/spool
|
755 root operator /usr/spool
|
||||||
711 root operator /usr/spool/at
|
711 root operator /usr/spool/at
|
||||||
|
|
|
@ -10,7 +10,7 @@ MAN= acd.1 anm.1 ar.1 ash.1 asize.1 at.1 banner.1 basename.1 \
|
||||||
fsck.1 head.1 host.1 hostaddr.1 ifdef.1 \
|
fsck.1 head.1 host.1 hostaddr.1 ifdef.1 \
|
||||||
install.1 isodir.1 isoinfo.1 isoread.1 join.1 kill.1 \
|
install.1 isodir.1 isoinfo.1 isoread.1 join.1 kill.1 \
|
||||||
last.1 leave.1 loadfont.1 loadkeys.1 logger.1 login.1 \
|
last.1 leave.1 loadfont.1 loadkeys.1 logger.1 login.1 \
|
||||||
look.1 lp.1 ls.1 lspci.1 M.1 mail.1 make.1 makewhatis.1 \
|
look.1 lp.1 ls.1 lspci.1 M.1 mail.1 makewhatis.1 \
|
||||||
man.1 mdb.1 mesg.1 mixer.1 mkdep.1 mkdir.1 mkfifo.1 mkfs.1 \
|
man.1 mdb.1 mesg.1 mixer.1 mkdep.1 mkdir.1 mkfifo.1 mkfs.1 \
|
||||||
mkproto.1 modem.1 mount.1 mt.1 nice.1 nm.1 nohup.1 od.1 \
|
mkproto.1 modem.1 mount.1 mt.1 nice.1 nm.1 nohup.1 od.1 \
|
||||||
ossinfo.1 ossmix.1 ossplay.1 ossrecord.1 osstest.1 passwd.1 \
|
ossinfo.1 ossmix.1 ossplay.1 ossrecord.1 osstest.1 passwd.1 \
|
||||||
|
|
1846
man/man1/make.1
1846
man/man1/make.1
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,5 @@
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
SUBDIR= zoneinfo
|
SUBDIR= mk zoneinfo
|
||||||
|
|
||||||
.include <bsd.subdir.mk>
|
.include <bsd.subdir.mk>
|
||||||
|
|
|
@ -353,13 +353,13 @@ rm -rf $RELEASEDIR/usr/$SRC/doc/bugs
|
||||||
if [ "$USB" -eq 0 ]
|
if [ "$USB" -eq 0 ]
|
||||||
then date >$RELEASEDIR/CD
|
then date >$RELEASEDIR/CD
|
||||||
fi
|
fi
|
||||||
echo " * Bootstrap /etc/mk files"
|
echo " * Bootstrap /usr/share/mk files"
|
||||||
# Need /etc/mk in the new system to invoke make. Real ownerships
|
# Need /usr/share/mk in the new system to invoke make. Real ownerships
|
||||||
# and permissions will be set by its own src/etc/Makefile.
|
# and permissions will be set by its own src/share/mk/Makefile.
|
||||||
mkdir -p $RELEASEDIR/etc/mk
|
mkdir -p $RELEASEDIR/usr/share/mk
|
||||||
chmod 755 $RELEASEDIR/etc/mk
|
chmod 755 $RELEASEDIR/usr/share/mk
|
||||||
cp $RELEASEDIR/usr/src/etc/mk/* $RELEASEDIR/etc/mk/
|
cp $RELEASEDIR/usr/src/share/mk/* $RELEASEDIR/usr/share/mk/
|
||||||
chown -R root $RELEASEDIR/etc/mk
|
chown -R root $RELEASEDIR/usr/share/mk
|
||||||
echo " * Chroot build"
|
echo " * Chroot build"
|
||||||
cp chrootmake.sh $RELEASEDIR/usr/$SRC/tools/chrootmake.sh
|
cp chrootmake.sh $RELEASEDIR/usr/$SRC/tools/chrootmake.sh
|
||||||
chroot $RELEASEDIR "PATH=/$XBIN MAKEMAP=$MAKEMAP sh -x /usr/$SRC/tools/chrootmake.sh" || exit 1
|
chroot $RELEASEDIR "PATH=/$XBIN MAKEMAP=$MAKEMAP sh -x /usr/$SRC/tools/chrootmake.sh" || exit 1
|
||||||
|
|
Loading…
Reference in a new issue