FreeBSD: Don't set MANPATH, use OS configuration
- make installer to set up man(1) paths using /usr/local/etc/man.d/* - don't override empty/unset MANPATH with compiled in default
This commit is contained in:
committed by
Jon Trulson
parent
f0a60e47b1
commit
c3cb5b8aa6
@@ -10,6 +10,7 @@ XCOMM #######
|
|||||||
PRODUCT=CDE
|
PRODUCT=CDE
|
||||||
FILESET=CDE-MIN
|
FILESET=CDE-MIN
|
||||||
DO_CONFIGURATION=""
|
DO_CONFIGURATION=""
|
||||||
|
PREFIX=/usr/local
|
||||||
retval=0
|
retval=0
|
||||||
|
|
||||||
FixEtcServices()
|
FixEtcServices()
|
||||||
@@ -194,6 +195,17 @@ RemoveMinFiles()
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetManPath()
|
||||||
|
{
|
||||||
|
DTMANPATH=CDE_INSTALLATION_TOP/share/man
|
||||||
|
echo "MANPATH $DTMANPATH" > ${PREFIX}/etc/man.d/cde.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
UnSetManPath()
|
||||||
|
{
|
||||||
|
rm -f ${PREFIX}/etc/man.d/cde.conf
|
||||||
|
}
|
||||||
|
|
||||||
VerifyInstalledFiles()
|
VerifyInstalledFiles()
|
||||||
{
|
{
|
||||||
echo "Status mode owner group filename"
|
echo "Status mode owner group filename"
|
||||||
@@ -227,6 +239,8 @@ XCOMM ###############################################################
|
|||||||
|
|
||||||
: FixEtcInetdDotConf
|
: FixEtcInetdDotConf
|
||||||
|
|
||||||
|
SetManPath
|
||||||
|
|
||||||
HASH
|
HASH
|
||||||
HASH create the /var/dt/tmp directory for the dtspcd
|
HASH create the /var/dt/tmp directory for the dtspcd
|
||||||
HASH
|
HASH
|
||||||
@@ -239,6 +253,8 @@ XCOMM ###############################################################
|
|||||||
elif [ "$OPERATION" = "deconfigure" ]
|
elif [ "$OPERATION" = "deconfigure" ]
|
||||||
then
|
then
|
||||||
|
|
||||||
|
UnsetManPath
|
||||||
|
|
||||||
UnfixEtcServices
|
UnfixEtcServices
|
||||||
|
|
||||||
: UnfixEtcInetdDotConf
|
: UnfixEtcInetdDotConf
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ XCOMM ####################################################################
|
|||||||
|
|
||||||
#define HASH #
|
#define HASH #
|
||||||
|
|
||||||
|
#if !defined(__FreeBSD__)
|
||||||
HASH
|
HASH
|
||||||
HASH Source TIMEZONE
|
HASH Source TIMEZONE
|
||||||
HASH
|
HASH
|
||||||
@@ -55,6 +56,7 @@ if [ -f $MANPATH_FILE -a -r $MANPATH_FILE ]; then
|
|||||||
export MANPATH="$MANPATH:`cat $MANPATH_FILE`"
|
export MANPATH="$MANPATH:`cat $MANPATH_FILE`"
|
||||||
fi
|
fi
|
||||||
unset MANPATH_FILE
|
unset MANPATH_FILE
|
||||||
|
#endif
|
||||||
|
|
||||||
XCOMM ######################### eof #####################
|
XCOMM ######################### eof #####################
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,12 @@ ManSearchPath::ManSearchPath
|
|||||||
const char * sep
|
const char * sep
|
||||||
) : SearchPath(user, envvar, sep)
|
) : SearchPath(user, envvar, sep)
|
||||||
{
|
{
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
|
/* Installer on FreeBSD sets up man configuration so that
|
||||||
|
* setting MANPATH is not necessary
|
||||||
|
*/
|
||||||
|
if (!user->OS()->MANPATH().isNull()) {
|
||||||
|
#endif
|
||||||
if (user->DTMANPATH())
|
if (user->DTMANPATH())
|
||||||
search_path = user->FactoryManPath() + "," + *user->DTMANPATH();
|
search_path = user->FactoryManPath() + "," + *user->DTMANPATH();
|
||||||
else
|
else
|
||||||
@@ -55,6 +61,9 @@ ManSearchPath::ManSearchPath
|
|||||||
|
|
||||||
NormalizePath();
|
NormalizePath();
|
||||||
TraversePath();
|
TraversePath();
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ UnixEnvironment::UnixEnvironment()
|
|||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
manpath = "/usr/share/man:/usr/X11R6/man:/usr/local/man:/usr/ports/infrastructure/man";
|
manpath = "/usr/share/man:/usr/X11R6/man:/usr/local/man:/usr/ports/infrastructure/man";
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
manpath = "/usr/share/man:/usr/local/man";
|
manpath = temp;
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
manpath = temp;
|
manpath = temp;
|
||||||
|
|||||||
Reference in New Issue
Block a user