mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +01:00
223b633217
. Bring PicoBSD up to date with -CURRENT reality. . Make PicoBSD smart and not spam /dev/vn0 and /mnt. Now it uses the first unused vn device and creates a temporary mountpoint in /tmp. . Miscellaneous build cleanups and optimizations. Unfortunately the bridge, isp, and router floppies are too big and need the axe treatment. The install floppy needs updating to -CURRENT. Dial and net build and (appear to) run OK. I will be adressing these in the near future (unless someone beats me to it :-) ). PR: misc/17737 Submitted by: Omachonu Ogali <oogali@intranova.net>
76 lines
1.4 KiB
Makefile
76 lines
1.4 KiB
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
.ifndef (DESTDIR)
|
|
DESTDIR?=/mnt
|
|
.endif
|
|
|
|
STAND_LINKS= bin sbin
|
|
USR_LINKS= bin sbin libexec
|
|
PL_LOCALE_LINKS= pl polish
|
|
US_LOCALE_LINKS= en english
|
|
MY_DEVS= std sysmouse tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0 \
|
|
psm0 \
|
|
wd0s1h wd0s2 wd0s3 wd0s4 wd1s1h wd1s2 wd1s3 wd1s4
|
|
|
|
.if ${LANGUAGE} == pl
|
|
LOCALE=pl_PL.ISO_8859-2
|
|
LOCALE_LINKS=${PL_LOCALE_LINKS}
|
|
FONT=iso02-8x16.fnt
|
|
KBD=pl_PL.ISO_8859-2.kbd
|
|
.else
|
|
LOCALE=en_US.ISO_8859-1
|
|
LOCALE_LINKS=${US_LOCALE_LINKS}
|
|
.endif
|
|
|
|
all: tree links
|
|
|
|
tree:
|
|
mtree -deU -f ../build/mfs.mtree -p ${DESTDIR}
|
|
|
|
links: tree
|
|
(cd ${DESTDIR}; \
|
|
for i in ${STAND_LINKS}; \
|
|
do \
|
|
ln -s /stand $${i}; \
|
|
done; \
|
|
cd var/run; \
|
|
ln -s /dev/null log; \
|
|
cd ../../usr; \
|
|
for i in ${USR_LINKS}; \
|
|
do \
|
|
ln -s /stand $${i}; \
|
|
done; \
|
|
cd share/misc;\
|
|
ln -s /etc/termcap termcap; \
|
|
echo emacs >${DESTDIR}/usr/share/misc/init.ee; \
|
|
cd ../; \
|
|
cd locale; \
|
|
for i in ${LOCALE_LINKS}; \
|
|
do \
|
|
ln -s ${LOCALE} $${i}; \
|
|
done; \
|
|
mkdir ${LOCALE}/; \
|
|
cp /usr/share/locale/${LOCALE}/* ${LOCALE}/; \
|
|
if [ "X${FONT}" != "X" ]; \
|
|
then \
|
|
cp /usr/share/syscons/fonts/${FONT} ../syscons/; \
|
|
cp /usr/share/syscons/keymaps/${KBD} ../syscons/; \
|
|
fi; \
|
|
cd ../nls; \
|
|
for i in ${LOCALE_LINKS}; \
|
|
do \
|
|
ln -s ${LOCALE} $${i}; \
|
|
done;)
|
|
|
|
|
|
# We don't do it under 'all' because it's needed only on non-DEVFS systems
|
|
devnodes: tree
|
|
(cd ${DESTDIR}/dev; \
|
|
ln -s /dev/MAKEDEV; \
|
|
./MAKEDEV ${MY_DEVS} ; \
|
|
rm MAKEDEV)
|
|
|
|
clean:
|