mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
101 lines
6.1 KiB
Bash
101 lines
6.1 KiB
Bash
#!/bin/sh
|
|
|
|
if [ "x$1" = "x" ]; then
|
|
exit 1;
|
|
fi
|
|
if [ "x$2" != "xINSTALL" -a "x$2" != "xDEINSTALL" ]; then
|
|
exit 1;
|
|
fi
|
|
|
|
export FONTDIR; FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local
|
|
|
|
if [ "$2x" = "INSTALLx" -a ! -d ${FONTDIR} ]; then
|
|
echo '**********************************************************************'
|
|
echo "****** ${FONTDIR}/ doesn't exist."
|
|
echo "****** Creating ${FONTDIR}/"
|
|
echo '****** Please upgrade your XFree86 to 3.3.3 or upper,'
|
|
echo "****** or add this directory to your /etc/XF86Config's FontPath entry."
|
|
echo '**********************************************************************'
|
|
mkdir ${FONTDIR}
|
|
fi
|
|
|
|
# font alias entry here!
|
|
TMPFILE=/tmp/install-fonts-alias-$$
|
|
cat << EOF > ${TMPFILE}
|
|
mona6x12a -mona-gothic-medium-r-normal--12-110-75-75-p-60-iso8859-1
|
|
mona6x12aB -mona-gothic-bold-r-normal--12-110-75-75-p-60-iso8859-1
|
|
mona6x12aBI -mona-gothic-bold-i-normal--12-110-75-75-p-60-iso8859-1
|
|
mona6x12aI -mona-gothic-medium-i-normal--12-110-75-75-p-60-iso8859-1
|
|
mona6x12r -mona-gothic-medium-r-normal--12-110-75-75-p-60-jisx0201.1976-0
|
|
mona6x12rB -mona-gothic-bold-r-normal--12-110-75-75-p-60-jisx0201.1976-0
|
|
mona6x12rBI -mona-gothic-bold-i-normal--12-110-75-75-p-60-jisx0201.1976-0
|
|
mona6x12rI -mona-gothic-medium-i-normal--12-110-75-75-p-60-jisx0201.1976-0
|
|
mona7x14a -mona-gothic-medium-r-normal--14-130-75-75-p-70-iso8859-1
|
|
mona7x14aB -mona-gothic-bold-r-normal--14-130-75-75-p-70-iso8859-1
|
|
mona7x14aBI -mona-gothic-bold-i-normal--14-130-75-75-p-70-iso8859-1
|
|
mona7x14aI -mona-gothic-medium-i-normal--14-130-75-75-p-70-iso8859-1
|
|
mona7x14r -mona-gothic-medium-r-normal--14-130-75-75-p-70-jisx0201.1976-0
|
|
mona7x14rB -mona-gothic-bold-r-normal--14-130-75-75-p-70-jisx0201.1976-0
|
|
mona7x14rBI -mona-gothic-bold-i-normal--14-130-75-75-p-70-jisx0201.1976-0
|
|
mona7x14rI -mona-gothic-medium-i-normal--14-130-75-75-p-70-jisx0201.1976-0
|
|
mona8x16a -mona-gothic-medium-r-normal--16-150-75-75-p-80-iso8859-1
|
|
mona8x16aB -mona-gothic-bold-r-normal--16-150-75-75-p-80-iso8859-1
|
|
mona8x16aBI -mona-gothic-bold-i-normal--16-150-75-75-p-80-iso8859-1
|
|
mona8x16aI -mona-gothic-medium-i-normal--16-150-75-75-p-80-iso8859-1
|
|
mona8x16r -mona-gothic-medium-r-normal--16-150-75-75-p-80-jisx0201.1976-0
|
|
mona8x16rB -mona-gothic-bold-r-normal--16-150-75-75-p-80-jisx0201.1976-0
|
|
mona8x16rBI -mona-gothic-bold-i-normal--16-150-75-75-p-80-jisx0201.1976-0
|
|
mona8x16rI -mona-gothic-medium-i-normal--16-150-75-75-p-80-jisx0201.1976-0
|
|
monak12 -mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1990-0
|
|
monak12B -mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1990-0
|
|
monak12BI -mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1990-0
|
|
monak12I -mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1990-0
|
|
monak14 -mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1990-0
|
|
monak14B -mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1990-0
|
|
monak14BI -mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1990-0
|
|
monak14I -mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1990-0
|
|
monak16 -mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1990-0
|
|
monak16B -mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1990-0
|
|
monak16BI -mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1990-0
|
|
monak16I -mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1990-0
|
|
monau16 -mona-gothic-medium-r-normal--16-150-75-75-p-160-iso10646-1
|
|
monau16B -mona-gothic-bold-r-normal--16-150-75-75-p-160-iso10646-1
|
|
monau16BI -mona-gothic-bold-i-normal--16-150-75-75-p-160-iso10646-1
|
|
monau16I -mona-gothic-medium-i-normal--16-150-75-75-p-160-iso10646-1
|
|
-mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1990-0
|
|
-mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1990-0
|
|
-mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1990-0
|
|
-mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1990-0
|
|
-mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1990-0
|
|
-mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1990-0
|
|
-mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1990-0
|
|
-mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1990-0
|
|
-mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1990-0
|
|
-mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1990-0
|
|
-mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1990-0
|
|
-mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1990-0
|
|
-mona-gothic-medium-r-normal--24-230-75-75-p-240-jisx0208.1983-0 -jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0
|
|
-mona-gothic-medium-r-normal--20-190-75-75-p-200-jisx0208.1983-0 -kappa-mincho-medium-r-normal--20-190-75-75-c-200-jisx0208.1990-0
|
|
-mona-gothic-medium-r-normal--10-70-75-75-p-100-jisx0208.1983-0 -elisa-fixed-medium-r-normal--10-70-75-75-c-100-jisx0208.1983-0
|
|
-mona-gothic-bold-r-normal--20-190-75-75-p-200-jisx0208.1983-0 -kappa-mincho-bold-r-normal--20-190-75-75-c-200-jisx0208.1990-0
|
|
EOF
|
|
|
|
echo "Updating ${FONTDIR}/fonts.alias"
|
|
cd ${FONTDIR}
|
|
touch fonts.alias
|
|
cp fonts.alias fonts.alias.orig
|
|
if [ "$2" = "INSTALL" ] ; then
|
|
(grep -v -e "`cat ${TMPFILE}`" fonts.alias.orig ; \
|
|
cat ${TMPFILE}) > fonts.alias
|
|
elif [ "$2" = "DEINSTALL" ] ; then
|
|
grep -v -- "`cat ${TMPFILE}`" fonts.alias.orig > fonts.alias
|
|
fi
|
|
rm -f fonts.alias.orig ${TMPFILE}
|
|
|
|
echo "**********************************************************"
|
|
echo "You should restart X server or do 'xset fp rehash' command"
|
|
echo "to enable this update."
|
|
echo "**********************************************************"
|
|
|
|
exit 0;
|