Support staging.
Update message in pkg-install.
This commit is contained in:
parent
ffc72665c6
commit
26969760b7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358799
2 changed files with 5 additions and 8 deletions
|
@ -18,10 +18,8 @@ FONTSDIR= lib/X11/fonts/TrueType
|
|||
MAKE_ENV= FONTSDIR=${FONTSDIR}
|
||||
PLIST_SUB= FONTSDIR=${FONTSDIR}
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
${INSTALL_DATA} ${WRKDIR}/mona.ttf ${FILESDIR}/fonts.dir.mona ${PREFIX}/${FONTSDIR}
|
||||
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/${FONTSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/mona.ttf ${FILESDIR}/fonts.dir.mona ${STAGEDIR}${PREFIX}/${FONTSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -2,11 +2,10 @@
|
|||
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
|
||||
if [ "$2" = "PRE-INSTALL" ]; then
|
||||
if [ ! -d ${FONTDIR} ]; then
|
||||
echo "*********************************************************"
|
||||
echo "**************************************************************"
|
||||
echo "Please add ${FONTDIR} to your font path"
|
||||
echo "and load 'xtt' module in /etc/XF86Config."
|
||||
echo "*********************************************************"
|
||||
mkdir $FONTDIR
|
||||
echo "in /etc/X11/xorg.conf."
|
||||
echo "**************************************************************"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue