Subject: using PKGMANDIR?
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 10/10/2005 22:19:55
I realize that some packages use
PKGMANDIR?= man
is this necessary?
Also, MAKE_ENV+= PKGMANDIR=${PKGMANDIR}
no longer seems to be necessary.
PLIST_SUBST has PKGMANDIR=${PKGMANDIR}, so entries should look like
${PKGMANDIR}/man1/package.1
instead of
man/man1/package.1
shouldn't they?
So what is the purpose of the following code from mk/bsd.pkg.mk?
# plist awk pattern-action statement to convert man/ to ${PKGMANDIR}/
_PLIST_AWK_PKGMANDIR=
\
/^([^\/]*\/)*man\/([^\/]*\/)?(man[1-9ln]\/.*[1-9ln]|cat[1-9ln]\/.*[0-9])
$$/ { \
sub("^man/", "${PKGMANDIR}/");
\
}
\
/^@dirrm man\// {
\
sub(" man/", " ${PKGMANDIR}/");
\
it seems at rough glance that one could use man/man1/package.1 in PLIST,
and it will be converted. Isn't that somewhat intransparent and
inconsistent with the above PLIST_SUBST mechanism also in place?
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 178 8545053