install.sh
changeset 27 8c5f1eba0ea6
parent 24 48ea255e8a85
child 31 b7a7e566833c
equal deleted inserted replaced
26:668951708f2f 27:8c5f1eba0ea6
     7 LANG=C
     7 LANG=C
     8 PATH=/bin:/usr/sbin:/usr/bin
     8 PATH=/bin:/usr/sbin:/usr/bin
     9 INSTALL_OPTS="-g 0 -o 0 -p -v"
     9 INSTALL_OPTS="-g 0 -o 0 -p -v"
    10 PREFIX=/usr/local
    10 PREFIX=/usr/local
    11 PF_CONFDIR=$(postconf -h config_directory)
    11 PF_CONFDIR=$(postconf -h config_directory)
       
    12 PF_GID=$(id -g postfix)
    12 DOC_DIR=${PREFIX}/share/doc/vmm
    13 DOC_DIR=${PREFIX}/share/doc/vmm
    13 MAN1DIR=${PREFIX}/share/man/man1
    14 MAN1DIR=${PREFIX}/share/man/man1
    14 MAN5DIR=${PREFIX}/share/man/man5
    15 MAN5DIR=${PREFIX}/share/man/man5
    15 DOCS="ChangeLog COPYING INSTALL README"
    16 DOCS="ChangeLog COPYING INSTALL README"
    16 
    17 
    21 
    22 
    22 python setup.py install --prefix ${PREFIX}
    23 python setup.py install --prefix ${PREFIX}
    23 python setup.py clean --all >/dev/null
    24 python setup.py clean --all >/dev/null
    24 
    25 
    25 install -b -m 0600 ${INSTALL_OPTS} vmm.cfg ${PREFIX}/etc/
    26 install -b -m 0600 ${INSTALL_OPTS} vmm.cfg ${PREFIX}/etc/
    26 install -b -m 0640 ${INSTALL_OPTS} pgsql-*.cf ${PF_CONFDIR}/
    27 install -b -m 0640 -g ${PF_GID} -o 0 -p -v pgsql-*.cf ${PF_CONFDIR}/
    27 install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin
    28 install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin
    28 
    29 
    29 [ -d ${MAN1DIR} ] || mkdir -m 0755 -p ${MAN1DIR}
    30 [ -d ${MAN1DIR} ] || mkdir -m 0755 -p ${MAN1DIR}
    30 install -m 0644 ${INSTALL_OPTS} vmm.1 ${MAN1DIR}
    31 install -m 0644 ${INSTALL_OPTS} vmm.1 ${MAN1DIR}
    31 
    32