install.sh
changeset 39 8dcf739fc97e
parent 37 89f952b0f366
child 81 89b71a9abfcf
--- a/install.sh	Wed Jun 11 05:07:07 2008 +0000
+++ b/install.sh	Tue Jun 17 00:37:23 2008 +0000
@@ -7,11 +7,16 @@
 LANG=C
 PATH=/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
 PREFIX=/usr/local
+
 PF_CONFDIR=$(postconf -h config_directory)
 PF_GID=$(id -g $(postconf -h mail_owner))
 LOCALE_DIR=${PREFIX}/share/locale
 DOC_DIR=${PREFIX}/share/doc/vmm
-MANDIR=${PREFIX}/share/man
+if [ ${PREFIX} == "/usr" ]; then
+    MANDIR=${PREFIX}/share/man
+else
+    MANDIR=${PREFIX}/man
+fi
 DOCS="ChangeLog COPYING INSTALL README"
 
 INSTALL_OPTS="-g 0 -o 0 -p"