equal
deleted
inserted
replaced
11 PF_GID=$(id -g $(postconf -h mail_owner)) |
11 PF_GID=$(id -g $(postconf -h mail_owner)) |
12 LOCALE_DIR=${PREFIX}/share/locale |
12 LOCALE_DIR=${PREFIX}/share/locale |
13 DOC_DIR=${PREFIX}/share/doc/vmm |
13 DOC_DIR=${PREFIX}/share/doc/vmm |
14 if [ ${PREFIX} = "/usr" ]; then |
14 if [ ${PREFIX} = "/usr" ]; then |
15 MANDIR=${PREFIX}/share/man |
15 MANDIR=${PREFIX}/share/man |
|
16 SYSCONFDIR=/etc |
16 else |
17 else |
17 MANDIR=${PREFIX}/man |
18 MANDIR=${PREFIX}/man |
|
19 SYSCONFDIR=${PREFIX}/etc |
18 fi |
20 fi |
19 DOCS="ChangeLog Configure.Dovecot_2 COPYING INSTALL NEWS README" |
21 DOCS="ChangeLog Configure.Dovecot_2 COPYING INSTALL NEWS README" |
20 |
22 |
21 INSTALL_OPTS="-g 0 -o 0 -p" |
23 INSTALL_OPTS="-g 0 -o 0 -p" |
22 INSTALL_OPTS_CF="-b -m 0640 -g ${PF_GID} -o 0 -p" |
24 INSTALL_OPTS_CF="-b -m 0640 -g ${PF_GID} -o 0 -p" |
27 fi |
29 fi |
28 |
30 |
29 python setup.py -q install --force --prefix ${PREFIX} |
31 python setup.py -q install --force --prefix ${PREFIX} |
30 python setup.py clean --all >/dev/null |
32 python setup.py clean --all >/dev/null |
31 |
33 |
32 install -b -m 0600 ${INSTALL_OPTS} vmm.cfg ${PREFIX}/etc/ |
34 [ -d ${SYSCONFDIR} ] || mkdir -m 0755 -p ${SYSCONFDIR} |
|
35 install -b -m 0600 ${INSTALL_OPTS} vmm.cfg ${SYSCONFDIR}/ |
33 install ${INSTALL_OPTS_CF} postfix/pgsql-*.cf ${PF_CONFDIR}/ |
36 install ${INSTALL_OPTS_CF} postfix/pgsql-*.cf ${PF_CONFDIR}/ |
34 install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin |
37 install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin |
35 |
38 |
36 [ -d ${LOCALE_DIR} ] || mkdir -m 0755 -p ${LOCALE_DIR} |
39 [ -d ${LOCALE_DIR} ] || mkdir -m 0755 -p ${LOCALE_DIR} |
37 cd po |
40 cd po |