install.sh
changeset 39 8dcf739fc97e
parent 37 89f952b0f366
child 81 89b71a9abfcf
equal deleted inserted replaced
38:c44ea4526546 39:8dcf739fc97e
     5 # run: ./install.sh
     5 # run: ./install.sh
     6 
     6 
     7 LANG=C
     7 LANG=C
     8 PATH=/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
     8 PATH=/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
     9 PREFIX=/usr/local
     9 PREFIX=/usr/local
       
    10 
    10 PF_CONFDIR=$(postconf -h config_directory)
    11 PF_CONFDIR=$(postconf -h config_directory)
    11 PF_GID=$(id -g $(postconf -h mail_owner))
    12 PF_GID=$(id -g $(postconf -h mail_owner))
    12 LOCALE_DIR=${PREFIX}/share/locale
    13 LOCALE_DIR=${PREFIX}/share/locale
    13 DOC_DIR=${PREFIX}/share/doc/vmm
    14 DOC_DIR=${PREFIX}/share/doc/vmm
    14 MANDIR=${PREFIX}/share/man
    15 if [ ${PREFIX} == "/usr" ]; then
       
    16     MANDIR=${PREFIX}/share/man
       
    17 else
       
    18     MANDIR=${PREFIX}/man
       
    19 fi
    15 DOCS="ChangeLog COPYING INSTALL README"
    20 DOCS="ChangeLog COPYING INSTALL README"
    16 
    21 
    17 INSTALL_OPTS="-g 0 -o 0 -p"
    22 INSTALL_OPTS="-g 0 -o 0 -p"
    18 INSTALL_OPTS_CF="-b -m 0640 -g ${PF_GID} -o 0 -p"
    23 INSTALL_OPTS_CF="-b -m 0640 -g ${PF_GID} -o 0 -p"
    19 
    24